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

Remove default in getParam()

parent 257448bf
No related branches found
No related tags found
3 merge requests!30Release after RAL,!29After 2nd RAL submission,!3Resolve "new processor: pc matching for demo"
...@@ -82,7 +82,7 @@ SensorBasePtr SensorLaser2D::create(const std::string& _unique_name, const Eigen ...@@ -82,7 +82,7 @@ SensorBasePtr SensorLaser2D::create(const std::string& _unique_name, const Eigen
SensorBasePtr SensorLaser2D::createAutoConf(const std::string& _unique_name, const ParamsServer& _server) SensorBasePtr SensorLaser2D::createAutoConf(const std::string& _unique_name, const ParamsServer& _server)
{ {
// decode extrinsics vector // decode extrinsics vector
Eigen::VectorXs _extrinsics_po = _server.getParam<Eigen::VectorXs>(_unique_name + "/extrinsic/pos", "[0,0,0]"); Eigen::VectorXs _extrinsics_po = _server.getParam<Eigen::VectorXs>(_unique_name + "/extrinsic/pos");
assert(_extrinsics_po.size() == 3 && "Bad extrinsics vector length. Should be 3 for 2D."); assert(_extrinsics_po.size() == 3 && "Bad extrinsics vector length. Should be 3 for 2D.");
StateBlockPtr pos_ptr = std::make_shared<StateBlock>(_extrinsics_po.head(2), true); StateBlockPtr pos_ptr = std::make_shared<StateBlock>(_extrinsics_po.head(2), true);
StateBlockPtr ori_ptr = std::make_shared<StateBlock>(_extrinsics_po.tail(1), true); StateBlockPtr ori_ptr = std::make_shared<StateBlock>(_extrinsics_po.tail(1), true);
......
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