Skip to content

Commit ca50707

Browse files
Tony NajjarMarc-Morcos
authored andcommitted
nav2_collision_monitor: collision detector (ros-navigation#3500)
1 parent 29d9ee3 commit ca50707

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nav2_collision_monitor/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ The following models of safety behaviors are employed by Collision Monitor:
2929

3030
* **Stop model**: Define a zone and a point threshold. If more that `N` obstacle points appear inside this area, stop the robot until the obstacles will disappear.
3131
* **Slowdown model**: Define a zone around the robot and slow the maximum speed for a `%S` percent, if more than `N` points will appear inside the area.
32-
* **Limit model**: Define a zone around the robot and clamp the maximum speed below a fixed value, if more than `N` points will appear inside the area.
3332
* **Approach model**: Using the current robot speed, estimate the time to collision to sensor data. If the time is less than `M` seconds (0.5, 2, 5, etc...), the robot will slow such that it is now at least `M` seconds to collision. The effect here would be to keep the robot always `M` seconds from any collision.
3433

3534
The zones around the robot can take the following shapes:

nav2_collision_monitor/src/collision_monitor_node.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ bool CollisionMonitor::configurePolygons(
280280
try {
281281
auto node = shared_from_this();
282282

283+
// Leave it to be not initialized: to intentionally cause an error if it will not set
283284
nav2_util::declare_parameter_if_not_declared(
284-
node, "polygons", rclcpp::ParameterValue(std::vector<std::string>()));
285+
node, "polygons", rclcpp::PARAMETER_STRING_ARRAY);
285286
std::vector<std::string> polygon_names = get_parameter("polygons").as_string_array();
286287
for (std::string polygon_name : polygon_names) {
287288
// Leave it not initialized: the will cause an error if it will not set

0 commit comments

Comments
 (0)