Skip to content

Commit 632a8eb

Browse files
added position goal checker (#689)
* added position goal checker Signed-off-by: PrabhavSaxena <prabhavsaxena2003@gmail.com> * removed yaw tolerance Signed-off-by: PrabhavSaxena <prabhavsaxena2003@gmail.com> * added position goal checker to migration Signed-off-by: PrabhavSaxena <prabhavsaxena2003@gmail.com> * Update migration/Jazzy.rst Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> * Update migration/Jazzy.rst Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> --------- Signed-off-by: PrabhavSaxena <prabhavsaxena2003@gmail.com> Signed-off-by: Steve Macenski <stevenmacenski@gmail.com> Co-authored-by: Steve Macenski <stevenmacenski@gmail.com>
1 parent 2c60cc6 commit 632a8eb

4 files changed

Lines changed: 45 additions & 0 deletions

File tree

configuration/packages/configuring-controller-server.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ Provided Plugins
251251
nav2_controller-plugins/pose_progress_checker.rst
252252
nav2_controller-plugins/simple_goal_checker.rst
253253
nav2_controller-plugins/stopped_goal_checker.rst
254+
nav2_controller-plugins/position_goal_checker.rst
254255

255256
Default Plugins
256257
***************
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. _configuring_nav2_controller_position_goal_checker_plugin:
2+
3+
PositionGoalChecker
4+
=================
5+
6+
Checks whether the robot has reached the goal pose.
7+
8+
Parameters
9+
**********
10+
11+
``<nav2_controller plugin>``: nav2_controller plugin name defined in the **goal_checker_plugin_id** parameter in :ref:`configuring_controller_server`.
12+
13+
:``<nav2_controller plugin>``.xy_goal_tolerance:
14+
15+
====== =======
16+
Type Default
17+
------ -------
18+
double 0.25
19+
====== =======
20+
21+
Description
22+
Tolerance to meet goal completion criteria (m).
23+
24+
:``<nav2_controller plugin>``.stateful:
25+
26+
==== =======
27+
Type Default
28+
---- -------
29+
bool true
30+
==== =======
31+
32+
Description
33+
Whether to check for XY position tolerance after rotating to goal orientation in case of minor localization changes.

migration/Jazzy.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,8 @@ Docking backwards as plugin parameter
472472
In `PR #5079 <https://github.com/ros-navigation/navigation2/pull/5079>`_, the ``dock_backwards`` boolean parameter has been moved from the docking server to the dock plugin as the string parameter ``dock_direction``. This allows the user to have multiple dock plugins with different directions in the same docking server. Default value is ``forward`` but may also be set as ``backward``.
473473

474474
See :ref:`configuring_docking_server` for more information.
475+
476+
New Position Goal Checker
477+
*************************
478+
479+
In `PR #5162 <https://github.com/ros-navigation/navigation2/pull/5162>`_, a new goal checker plugin called ``PositionGoalChecker`` has been added to Nav2. This plugin provides an alternative to the existing goal checkers by focusing only on the position component of the robot pose, ignoring orientation. This is used by the RPP controller to create stateful behavior to rotate to heading once meeting the goal tolerance.

plugins/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,15 @@ Goal Checkers
311311
| | | , rotational distance of goal, |
312312
| | | and velocity threshold. |
313313
+---------------------------------+------------------------+----------------------------------+
314+
| `PositionGoalChecker`_ | Prabhav Saxena | A plugin check whether robot |
315+
| | | is within translational distance |
316+
| | | of goal, without requiring |
317+
| | | rotational convergence. |
318+
+---------------------------------+------------------------+----------------------------------+
314319

315320
.. _SimpleGoalChecker: https://github.com/ros-navigation/navigation2/blob/main/nav2_controller/plugins/simple_goal_checker.cpp
316321
.. _StoppedGoalChecker: https://github.com/ros-navigation/navigation2/blob/main/nav2_controller/plugins/stopped_goal_checker.cpp
322+
.. _PositionGoalChecker: https://github.com/ros-navigation/navigation2/blob/main/nav2_controller/plugins/position_goal_checker.cpp
317323

318324
Progress Checkers
319325
=================

0 commit comments

Comments
 (0)