Biorbd
KalmanReconsMarkers.h
1 #ifndef BIORBD_RIGIDBODY_KALMAN_RECONS_MARKERS_HPP
2 #define BIORBD_RIGIDBODY_KALMAN_RECONS_MARKERS_HPP
3 
4 #include "biorbdConfig.h"
5 #include "RigidBody/KalmanRecons.h"
6 
7 
8 namespace biorbd {
9 namespace rigidbody {
10 class Markers;
11 class NodeSegment;
12 
17 {
18 public:
19 
20  // Constructor
21 
26 
33  biorbd::Model& model,
35 
41 
46  void DeepCopy(const biorbd::rigidbody::KalmanReconsMarkers& other);
47 
57  virtual void reconstructFrame(
58  biorbd::Model &model,
59  const biorbd::rigidbody::Markers &Tobs,
63  bool removeAxes=true);
64 
74  virtual void reconstructFrame(
75  biorbd::Model &model,
76  const std::vector<biorbd::rigidbody::NodeSegment> &Tobs,
80  bool removeAxes=true);
81 
91  virtual void reconstructFrame(
92  biorbd::Model &model,
93  const biorbd::utils::Vector &Tobs,
97  bool removeAxes=true);
98 
102  virtual void reconstructFrame();
103 
108  bool first();
109 
110 protected:
114  virtual void initialize();
115 
122  virtual void manageOcclusionDuringIteration(
123  biorbd::utils::Matrix& InvTp,
124  biorbd::utils::Vector &measure,
125  const std::vector<unsigned int> &occlusion);
126 
127  std::shared_ptr<biorbd::utils::Matrix> m_PpInitial;
128  std::shared_ptr<bool> m_firstIteration;
129 };
130 
131 }}
132 
133 #endif // BIORBD_RIGIDBODY_KALMAN_RECONS_MARKERS_HPP
biorbd::utils::Vector
Wrapper of the Eigen VectorXd.
Definition: Vector.h:20
biorbd::rigidbody::KalmanParam
Parameters of the reconstruction.
Definition: KalmanRecons.h:25
biorbd::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition: GeneralizedCoordinates.h:15
biorbd::rigidbody::KalmanReconsMarkers::m_PpInitial
std::shared_ptr< biorbd::utils::Matrix > m_PpInitial
Initial covariance matrix.
Definition: KalmanReconsMarkers.h:127
biorbd::rigidbody::Markers
Holder for the marker set.
Definition: Markers.h:23
biorbd::rigidbody::KalmanReconsMarkers
Class Kinematic reconstruction algorithm using an Extended Kalman Filter using skin markers.
Definition: KalmanReconsMarkers.h:17
biorbd::Model
The actual musculoskeletal model that holds everything in biorbd.
Definition: BiorbdModel.h:78
biorbd::rigidbody::KalmanReconsMarkers::m_firstIteration
std::shared_ptr< bool > m_firstIteration
If first iteration was done.
Definition: KalmanReconsMarkers.h:128
biorbd::utils::Matrix
A wrapper for the Eigen::MatrixXd.
Definition: Matrix.h:21
biorbd::rigidbody::GeneralizedAcceleration
Class GeneralizedAcceleration.
Definition: GeneralizedAcceleration.h:15
biorbd::rigidbody::KalmanRecons
Class Kinematic reconstruction algorithm using an Extended Kalman Filter.
Definition: KalmanRecons.h:63
biorbd::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition: GeneralizedVelocity.h:15