Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • mobile_robotics/wolf_projects/wolf_lib/wolf
1 result
Show changes
Commits on Source (2)
......@@ -83,7 +83,7 @@ class Problem : public std::enable_shared_from_this<Problem>
// Properties -----------------------------------------
public:
SizeEigen getDim() const;
StateStructure getFrameStructure() const;
const StateStructure& getFrameStructure() const;
protected:
void appendToStructure(const StateStructure& _structure);
......
......@@ -29,12 +29,12 @@ class IsMotion
virtual VectorComposite getState(const StateStructure& _structure = "") const = 0;
virtual VectorComposite getState(const TimeStamp& _ts, const StateStructure& _structure = "") const = 0;
std::string getStateStructure(){return state_structure_;};
void setStateStructure(std::string _state_structure){state_structure_ = _state_structure;};
const StateStructure& getStateStructure ( ) { return state_structure_; };
void setStateStructure(std::string _state_structure) { state_structure_ = _state_structure; };
void addToProblem(ProblemPtr _prb_ptr, IsMotionPtr _motion_ptr);
protected:
std::string state_structure_; ///< The structure of the state vector (to retrieve state blocks from frames)
StateStructure state_structure_; ///< The structure of the state vector (to retrieve state blocks from frames)
};
......
......@@ -543,7 +543,8 @@ SizeEigen Problem::getDim() const
{
return dim_;
}
StateStructure Problem::getFrameStructure() const
const StateStructure& Problem::getFrameStructure() const
{
return frame_structure_;
}
......