mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-25 01:41:43 +00:00
[wpimath] Explicitly export wpimath symbols
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
committed by
Peter Johnson
parent
161e211734
commit
382deef750
@@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/SymbolExports.h>
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Core"
|
||||
@@ -13,7 +14,7 @@ namespace frc {
|
||||
/**
|
||||
* Represents a hermite spline of degree 3.
|
||||
*/
|
||||
class CubicHermiteSpline : public Spline<3> {
|
||||
class WPILIB_DLLEXPORT CubicHermiteSpline : public Spline<3> {
|
||||
public:
|
||||
/**
|
||||
* Constructs a cubic hermite spline with the specified control vectors. Each
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <wpi/SymbolExports.h>
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "Eigen/Core"
|
||||
@@ -13,7 +14,7 @@ namespace frc {
|
||||
/**
|
||||
* Represents a hermite spline of degree 5.
|
||||
*/
|
||||
class QuinticHermiteSpline : public Spline<5> {
|
||||
class WPILIB_DLLEXPORT QuinticHermiteSpline : public Spline<5> {
|
||||
public:
|
||||
/**
|
||||
* Constructs a quintic hermite spline with the specified control vectors.
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/SymbolExports.h>
|
||||
#include <wpi/array.h>
|
||||
|
||||
#include "frc/spline/CubicHermiteSpline.h"
|
||||
@@ -17,7 +18,7 @@ namespace frc {
|
||||
* Helper class that is used to generate cubic and quintic splines from user
|
||||
* provided waypoints.
|
||||
*/
|
||||
class SplineHelper {
|
||||
class WPILIB_DLLEXPORT SplineHelper {
|
||||
public:
|
||||
/**
|
||||
* Returns 2 cubic control vectors from a set of exterior waypoints and
|
||||
|
||||
@@ -33,6 +33,8 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <wpi/SymbolExports.h>
|
||||
|
||||
#include "frc/spline/Spline.h"
|
||||
#include "units/angle.h"
|
||||
#include "units/curvature.h"
|
||||
@@ -44,7 +46,7 @@ namespace frc {
|
||||
/**
|
||||
* Class used to parameterize a spline by its arc length.
|
||||
*/
|
||||
class SplineParameterizer {
|
||||
class WPILIB_DLLEXPORT SplineParameterizer {
|
||||
public:
|
||||
using PoseWithCurvature = std::pair<Pose2d, units::curvature_t>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user