[wpimath] Explicitly export wpimath symbols

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Thad House
2021-08-20 09:02:01 -07:00
committed by Peter Johnson
parent 161e211734
commit 382deef750
54 changed files with 207 additions and 101 deletions

View File

@@ -4,6 +4,7 @@
#pragma once
#include <wpi/SymbolExports.h>
#include <wpi/array.h>
#include "Eigen/Core"
@@ -44,7 +45,7 @@ namespace frc {
* <strong>y = [[x, y, theta]]ᵀ </strong> from vision,
* or <strong>y = [[dist_l, dist_r, theta]] </strong> from encoders and gyro.
*/
class DifferentialDrivePoseEstimator {
class WPILIB_DLLEXPORT DifferentialDrivePoseEstimator {
public:
/**
* Constructs a DifferentialDrivePoseEstimator.

View File

@@ -6,6 +6,7 @@
#include <cmath>
#include <wpi/SymbolExports.h>
#include <wpi/array.h>
#include "Eigen/Cholesky"
@@ -209,7 +210,8 @@ class KalmanFilter : public detail::KalmanFilterImpl<States, Inputs, Outputs> {
// Template specializations are used here to make common state-input-output
// triplets compile faster.
template <>
class KalmanFilter<1, 1, 1> : public detail::KalmanFilterImpl<1, 1, 1> {
class WPILIB_DLLEXPORT KalmanFilter<1, 1, 1>
: public detail::KalmanFilterImpl<1, 1, 1> {
public:
KalmanFilter(LinearSystem<1, 1, 1>& plant,
const wpi::array<double, 1>& stateStdDevs,
@@ -223,7 +225,8 @@ class KalmanFilter<1, 1, 1> : public detail::KalmanFilterImpl<1, 1, 1> {
// Template specializations are used here to make common state-input-output
// triplets compile faster.
template <>
class KalmanFilter<2, 1, 1> : public detail::KalmanFilterImpl<2, 1, 1> {
class WPILIB_DLLEXPORT KalmanFilter<2, 1, 1>
: public detail::KalmanFilterImpl<2, 1, 1> {
public:
KalmanFilter(LinearSystem<2, 1, 1>& plant,
const wpi::array<double, 2>& stateStdDevs,

View File

@@ -6,6 +6,7 @@
#include <functional>
#include <wpi/SymbolExports.h>
#include <wpi/array.h>
#include "Eigen/Core"
@@ -42,7 +43,7 @@ namespace frc {
* coords from vision, or <strong> y = [[theta]]ᵀ
* </strong> from the gyro.
*/
class MecanumDrivePoseEstimator {
class WPILIB_DLLEXPORT MecanumDrivePoseEstimator {
public:
/**
* Constructs a MecanumDrivePoseEstimator.