Skip to content
Snippets Groups Projects
Commit 90647cda authored by Jeremie Deray's avatar Jeremie Deray
Browse files

fix LandmarkPolyline2D return state by copy

parent 8978a41b
No related branches found
No related tags found
1 merge request!138Solver manager
...@@ -60,7 +60,7 @@ void LandmarkPolyline2D::setLast(const Eigen::VectorXs& _point, bool _defined) ...@@ -60,7 +60,7 @@ void LandmarkPolyline2D::setLast(const Eigen::VectorXs& _point, bool _defined)
defineExtreme(true); defineExtreme(true);
} }
const Eigen::VectorXs& LandmarkPolyline2D::getPointVector(int _i) const const Eigen::VectorXs LandmarkPolyline2D::getPointVector(int _i) const
{ {
//std::cout << "LandmarkPolyline2D::getPointVector: " << _i << std::endl; //std::cout << "LandmarkPolyline2D::getPointVector: " << _i << std::endl;
//std::cout << "First: " << first_id_ << " - size: " << point_state_ptr_vector_.size() << std::endl; //std::cout << "First: " << first_id_ << " - size: " << point_state_ptr_vector_.size() << std::endl;
......
...@@ -72,7 +72,7 @@ class LandmarkPolyline2D : public LandmarkBase ...@@ -72,7 +72,7 @@ class LandmarkPolyline2D : public LandmarkBase
int getFirstId() const; int getFirstId() const;
int getLastId() const; int getLastId() const;
const Eigen::VectorXs& getPointVector(int _i) const; const Eigen::VectorXs getPointVector(int _i) const;
StateBlockPtr getPointStateBlockPtr(int _i); StateBlockPtr getPointStateBlockPtr(int _i);
......
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