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"
This commit is part of merge request !387. Comments created here will be created in the context of that merge request.
......@@ -22,6 +22,7 @@ class IsMotion
{
public:
IsMotion(const StateStructure& _structure);
virtual ~IsMotion();
// Queries to the processor:
......@@ -38,6 +39,12 @@ class IsMotion
};
inline IsMotion::IsMotion(const StateStructure& _structure) :
state_structure_(_structure)
{
//
}
}
///// IMPLEMENTATION ///////
......
......@@ -23,6 +23,7 @@ ProcessorMotion::ProcessorMotion(const std::string& _type,
SizeEigen _calib_size,
ParamsProcessorMotionPtr _params_motion) :
ProcessorBase(_type, _dim, _params_motion),
IsMotion(_state_structure),
params_motion_(_params_motion),
processing_step_(RUNNING_WITHOUT_KF),
x_size_(_state_size),
......@@ -44,7 +45,6 @@ ProcessorMotion::ProcessorMotion(const std::string& _type,
jacobian_delta_(delta_cov_size_, delta_cov_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