Skip to content
Snippets Groups Projects
Commit b691f7a9 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Add addToProblem to IsMotion

parent f2a3e52b
No related branches found
No related tags found
No related merge requests found
Pipeline #5372 failed
...@@ -356,6 +356,7 @@ SET(SRCS_LANDMARK ...@@ -356,6 +356,7 @@ SET(SRCS_LANDMARK
src/landmark/landmark_base.cpp src/landmark/landmark_base.cpp
) )
SET(SRCS_PROCESSOR SET(SRCS_PROCESSOR
src/processor/is_motion.cpp
src/processor/motion_buffer.cpp src/processor/motion_buffer.cpp
src/processor/processor_base.cpp src/processor/processor_base.cpp
src/processor/processor_diff_drive.cpp src/processor/processor_diff_drive.cpp
......
...@@ -50,6 +50,7 @@ class Problem : public std::enable_shared_from_this<Problem> ...@@ -50,6 +50,7 @@ class Problem : public std::enable_shared_from_this<Problem>
friend SolverManager; // Enable SolverManager to acces protected functions (consumeXXXNotificationMap()) friend SolverManager; // Enable SolverManager to acces protected functions (consumeXXXNotificationMap())
friend ProcessorBase; friend ProcessorBase;
friend ProcessorMotion; friend ProcessorMotion;
friend IsMotion;
protected: protected:
TreeManagerBasePtr tree_manager_; TreeManagerBasePtr tree_manager_;
......
...@@ -45,7 +45,8 @@ class IsMotion ...@@ -45,7 +45,8 @@ class IsMotion
std::string getStateStructure(){return state_structure_;}; std::string getStateStructure(){return state_structure_;};
void setStateStructure(std::string _state_structure){state_structure_ = _state_structure;}; void setStateStructure(std::string _state_structure){state_structure_ = _state_structure;};
void addToProblem(ProblemPtr _prb_ptr, IsMotionPtr _motion_ptr);
protected: protected:
std::string state_structure_; ///< The structure of the state vector (to retrieve state blocks from frames) std::string state_structure_; ///< The structure of the state vector (to retrieve state blocks from frames)
...@@ -83,8 +84,6 @@ inline Eigen::VectorXd IsMotion::getState(const TimeStamp& _ts) const ...@@ -83,8 +84,6 @@ inline Eigen::VectorXd IsMotion::getState(const TimeStamp& _ts) const
return x; return x;
} }
} /* namespace wolf */ } /* namespace wolf */
#endif /* PROCESSOR_IS_MOTION_H_ */ #endif /* PROCESSOR_IS_MOTION_H_ */
#include "core/processor/is_motion.h"
#include "core/problem/problem.h"
using namespace wolf;
void IsMotion::addToProblem(ProblemPtr _prb_ptr, IsMotionPtr _motion_ptr)
{
_prb_ptr->addProcessorIsMotion(_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