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

Add overrides

parent 43a4e3e8
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ struct ParamsSensorDiffDrive : public ParamsSensorBase ...@@ -37,7 +37,7 @@ struct ParamsSensorDiffDrive : public ParamsSensorBase
prior_cov_diag = _server.getParam<Eigen::Vector3d>(prefix + _unique_name + "/prior_cov_diag"); prior_cov_diag = _server.getParam<Eigen::Vector3d>(prefix + _unique_name + "/prior_cov_diag");
ticks_cov_factor = _server.getParam<double>(prefix + _unique_name + "/ticks_cov_factor"); ticks_cov_factor = _server.getParam<double>(prefix + _unique_name + "/ticks_cov_factor");
} }
std::string print() const std::string print() const override
{ {
return ParamsSensorBase::print() + "\n" return ParamsSensorBase::print() + "\n"
+ "radius_left: " + std::to_string(radius_left) + "\n" + "radius_left: " + std::to_string(radius_left) + "\n"
......
...@@ -19,7 +19,7 @@ struct ParamsTreeManagerSlidingWindow : public ParamsTreeManagerBase ...@@ -19,7 +19,7 @@ struct ParamsTreeManagerSlidingWindow : public ParamsTreeManagerBase
fix_first_frame = _server.getParam<bool> (prefix + "/fix_first_frame"); fix_first_frame = _server.getParam<bool> (prefix + "/fix_first_frame");
viral_remove_empty_parent = _server.getParam<bool> (prefix + "/viral_remove_empty_parent"); viral_remove_empty_parent = _server.getParam<bool> (prefix + "/viral_remove_empty_parent");
} }
std::string print() const std::string print() const override
{ {
return ParamsTreeManagerBase::print() + "\n" return ParamsTreeManagerBase::print() + "\n"
+ "n_frames: " + std::to_string(n_frames) + "\n" + "n_frames: " + std::to_string(n_frames) + "\n"
......
...@@ -19,7 +19,7 @@ struct ParamsTreeManagerSlidingWindowDualRate : public ParamsTreeManagerSlidingW ...@@ -19,7 +19,7 @@ struct ParamsTreeManagerSlidingWindowDualRate : public ParamsTreeManagerSlidingW
assert(n_frames_recent <= n_frames); assert(n_frames_recent <= n_frames);
rate_old_frames = _server.getParam<unsigned int>(prefix + "/rate_old_frames"); rate_old_frames = _server.getParam<unsigned int>(prefix + "/rate_old_frames");
} }
std::string print() const std::string print() const override
{ {
return ParamsTreeManagerBase::print() + "\n" return ParamsTreeManagerBase::print() + "\n"
+ "n_frames_recent: " + std::to_string(n_frames_recent) + "\n" + "n_frames_recent: " + std::to_string(n_frames_recent) + "\n"
......
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