Skip to content
Snippets Groups Projects
Commit c0fb2122 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add constructor

parent e1fa6c08
No related branches found
No related tags found
1 merge request!387Resolve "Publish odom"
...@@ -22,6 +22,7 @@ class IsMotion ...@@ -22,6 +22,7 @@ class IsMotion
{ {
public: public:
IsMotion(const StateStructure& _structure);
virtual ~IsMotion(); virtual ~IsMotion();
// Queries to the processor: // Queries to the processor:
...@@ -38,6 +39,12 @@ class IsMotion ...@@ -38,6 +39,12 @@ class IsMotion
}; };
inline IsMotion::IsMotion(const StateStructure& _structure) :
state_structure_(_structure)
{
//
}
} }
///// IMPLEMENTATION /////// ///// IMPLEMENTATION ///////
......
...@@ -23,6 +23,7 @@ ProcessorMotion::ProcessorMotion(const std::string& _type, ...@@ -23,6 +23,7 @@ ProcessorMotion::ProcessorMotion(const std::string& _type,
SizeEigen _calib_size, SizeEigen _calib_size,
ParamsProcessorMotionPtr _params_motion) : ParamsProcessorMotionPtr _params_motion) :
ProcessorBase(_type, _dim, _params_motion), ProcessorBase(_type, _dim, _params_motion),
IsMotion(_state_structure),
params_motion_(_params_motion), params_motion_(_params_motion),
processing_step_(RUNNING_WITHOUT_KF), processing_step_(RUNNING_WITHOUT_KF),
x_size_(_state_size), x_size_(_state_size),
...@@ -44,7 +45,6 @@ ProcessorMotion::ProcessorMotion(const std::string& _type, ...@@ -44,7 +45,6 @@ ProcessorMotion::ProcessorMotion(const std::string& _type,
jacobian_delta_(delta_cov_size_, delta_cov_size_), jacobian_delta_(delta_cov_size_, delta_cov_size_),
jacobian_calib_(delta_cov_size_, calib_size_) jacobian_calib_(delta_cov_size_, calib_size_)
{ {
setStateStructure(_state_structure);
// //
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment