You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the plugin names for bt_navigator to use double colons (ros-navigation#539)
* Refactor the plugin names for bt_navigator to use double colons
* Refactor the plugin names for planner_server to use double colons
Signed-off-by: Alan Xue <[email protected]>
* Refactor the plugin names for behavior_server to use double colons
Signed-off-by: Alan Xue <[email protected]>
* Refactor the section of plugin tutorials to use double colons
Signed-off-by: Alan Xue <[email protected]>
* Update the migration guide from Iron to Jazzy to include the standardization of plugin naming using double colons (::).
Signed-off-by: Alan Xue <[email protected]>
* Add comment on '/' to '::' syntax change in example YAML files
* List of Plugins Affected by Naming Standardization
---------
Signed-off-by: Alan Xue <[email protected]>
Copy file name to clipboardExpand all lines: migration/Iron.rst
+11
Original file line number
Diff line number
Diff line change
@@ -304,3 +304,14 @@ New graceful cancellation API for Controllers
304
304
*********************************************
305
305
306
306
`PR #4136 <https://github.com/ros-planning/navigation2/pull/4136>`_ introduces a new graceful cancellation API for controllers. Previously when a goal was canceled, the controller would stop the robot immediately. This API allows the controller to stop the robot in a more graceful way. The new API is implemented in the ``RegulatedPurePursuitController`` by adding a new parameter ``cancel_deceleration``. So when the goal is canceled, a constant deceleration will be used while continuing to track the path to stop the robot instead of stopping immediately. This API can be should be added to all controllers that have acceleration limits.
307
+
308
+
Standardization of Plugin Naming with Double Colons (::)
`PR #4220`_ standardizes plugin naming across the Navigation2 package to use double colons (::), replacing the previous mixed use of slashes (/) and double colons. Affected plugins include:
<description>This is an example plugin which produces straight path.</description>
167
167
</class>
168
168
</library>
@@ -200,7 +200,7 @@ To enable the plugin, we need to modify the ``nav2_params.yaml`` file as below t
200
200
plugins: ["GridBased"]
201
201
use_sim_time: True
202
202
GridBased:
203
-
plugin: "nav2_navfn_planner/NavfnPlanner" # For Foxy and later
203
+
plugin: "nav2_navfn_planner::NavfnPlanner" # For Foxy and later. In Iron and older versions, "/" was used instead of "::"
204
204
tolerance: 2.0
205
205
use_astar: false
206
206
allow_unknown: true
@@ -214,10 +214,10 @@ with
214
214
plugins: ["GridBased"]
215
215
use_sim_time: True
216
216
GridBased:
217
-
plugin: "nav2_straightline_planner/StraightLine"
217
+
plugin: "nav2_straightline_planner::StraightLine"
218
218
interpolation_resolution: 0.1
219
219
220
-
In the above snippet, you can observe the mapping of our ``nav2_straightline_planner/StraightLine`` planner to its id ``GridBased``. To pass plugin-specific parameters, we have used ``<plugin_id>.<plugin_specific_parameter>``.
220
+
In the above snippet, you can observe the mapping of our ``nav2_straightline_planner::StraightLine`` planner to its id ``GridBased``. To pass plugin-specific parameters, we have used ``<plugin_id>.<plugin_specific_parameter>``.
Copy file name to clipboardExpand all lines: setup_guides/algorithm/select_algorithm.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ Example Configuration
66
66
ros__parameters:
67
67
planner_plugins: ['GridBased']
68
68
GridBased:
69
-
plugin: 'nav2_navfn_planner/NavfnPlanner'
69
+
plugin: 'nav2_navfn_planner::NavfnPlanner'# In Iron and older versions, "/" was used instead of "::"
70
70
71
71
An example configuration of the planner server is shown above. The ``planner_plugins`` parameter accepts a list of mapped planner plugin names. For each plugin namespace defined in ``planner_plugins`` (``GridBased`` in our example), we specify the type of plugin to be loaded in the ``plugin`` parameter. Additional configurations must then be specified in this namespace based on the algorithm to be used. Please see the `Configuration Guide <https://navigation.ros.org/configuration/index.html>`_ for more details.
0 commit comments