-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-enable costmap tests (footprint and inflation tests) #805
Re-enable costmap tests (footprint and inflation tests) #805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but could you fix the for_each
that was introduced into the code earlier.
nav2_costmap_2d/src/layer.cpp
Outdated
@@ -84,8 +84,8 @@ void | |||
Layer::undeclareAllParameters() | |||
{ | |||
std::for_each(begin(local_params_), end(local_params_), [this](const std::string & param_name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::for_each makes no sense here. This should just be a simple for loop.
std::for_each(begin(local_params_), end(local_params_), [this](const std::string & param_name) { | |
for(auto & param_name : local_params_) { | |
node_->undeclare_parameter(getFullName(param_name)); | |
} |
PS: don't just commit the suggestion. I was only able to get the suggestion mechanism to replace the first line, but you need to replace the whole for loop
* re-enabling obstacle, inflation, and footprint tests * remove static tests, redesign footprint_tests without Costmap2DROS * passing linters and uncrustify * replace for_each with for loop
* re-enabling obstacle, inflation, and footprint tests * remove static tests, redesign footprint_tests without Costmap2DROS * passing linters and uncrustify * replace for_each with for loop
Basic Info
Description of contribution in a few bullet points
Future work that may be required in bullet points
costmap_tester.cpp
test is still disabled since there was a dependency on rosbag. I believe rosbag is now supported in ros2, so we can look into re-enabling this test