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

Initialize odometry when setting problem

parent e27109f2
No related branches found
No related tags found
1 merge request!387Resolve "Publish odom"
...@@ -118,7 +118,7 @@ void ProcessorBase::setProblem(ProblemPtr _problem) ...@@ -118,7 +118,7 @@ void ProcessorBase::setProblem(ProblemPtr _problem)
// adding processor is motion to the processor is motion vector // adding processor is motion to the processor is motion vector
auto is_motion_ptr = std::dynamic_pointer_cast<IsMotion>(shared_from_this()); auto is_motion_ptr = std::dynamic_pointer_cast<IsMotion>(shared_from_this());
if (is_motion_ptr) if (is_motion_ptr)
getProblem()->addProcessorIsMotion(is_motion_ptr); is_motion_ptr->addToProblem(_problem, is_motion_ptr);
} }
///////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////
......
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