Skip to content

AMRNAV-4974 Dynamically set max point for collision monitor#32

Merged
HovorunB merged 2 commits intohumblefrom
AMRNAV-4974_dynamically_set_max_point_for_collision_monitor
Jun 23, 2023
Merged

AMRNAV-4974 Dynamically set max point for collision monitor#32
HovorunB merged 2 commits intohumblefrom
AMRNAV-4974_dynamically_set_max_point_for_collision_monitor

Conversation

@HovorunB
Copy link

@HovorunB HovorunB commented Jun 22, 2023

@HovorunB HovorunB self-assigned this Jun 22, 2023
@HovorunB HovorunB merged commit de2cc96 into humble Jun 23, 2023
nav2_util::declare_parameter_if_not_declared(
node, polygon_name_ + ".max_points", rclcpp::ParameterValue(3));
max_points_ = node->get_parameter(polygon_name_ + ".max_points").as_int();
node->get_parameter(polygon_name_ + ".max_points", max_points_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, is this necessary?

Polygon::dynamicParametersCallback(
std::vector<rclcpp::Parameter> parameters)
{
// std::lock_guard<Costmap2D::mutex_t> guard(*getMutex());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

nav2_util::declare_parameter_if_not_declared(
node, polygon_name_ + ".max_points", rclcpp::ParameterValue(3));
max_points_ = node->get_parameter(polygon_name_ + ".max_points").as_int();
node->get_parameter(polygon_name_ + ".max_points", max_points_);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this param is called min_points from Iron on, so we'll need to be careful when upgrading to Iron

@HovorunB HovorunB mentioned this pull request Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants