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
In `PR #4715 <https://github.com/ros-navigation/navigation2/pull/4715>`_ multirobot bringup and the use of namespaces were overhauled to be compatible out of the box with ROS namespaces and remove custom logic, specifically:
117
+
118
+
* The ``use_namespace`` parameter has been removed from ``nav2_bringup`` launch files. The ``namespace`` parameter will now always be used and default to ``/`` for "global namespace".
119
+
* There is now a single rviz config file for both normal and namespaced robots. Topics have been changed to a relative path (i.e. ``/map`` -> ``map``) and the rviz ``namespace`` will be added automatically.
120
+
* There is now a single ``nav2_params.yaml`` config file for both single and multirobot bringup. All the topics have been changed to relative (i.e. ``/scan`` -> ``scan``).
121
+
122
+
Note that some plugins / nodes might have their own local namespace. This is the case for ``CostmapLayer`` which will be in a ``/ns/[layer_name]`` namespace. For these, a new function ``joinWithParentNamespace`` has been added to make sure joining relative paths results in ``/ns/topic_name`` rather than ``/ns/[layer_name]/topic_name``.
123
+
124
+
If your use case doesn't require multiple robots, keeping absolute paths in your ``nav2_params.yaml`` config file and rviz config file will preserve existing behavior.
125
+
126
+
For example, if you specify ``topic: scan`` in the ``voxel_layer`` of a ``local_costmap`` and you launch your bringup with a ``tb4`` namespace:
127
+
128
+
* User chosen namespace is ``tb4``.
129
+
* User chosen topic is ``scan``.
130
+
* Topic will be remapped to ``/tb4/scan`` without ``local_costmap``.
131
+
* Use global topic ``/scan`` if you do not wish the node namespace to apply
132
+
133
+
Removed global map_topic from Costmap node
134
+
******************************************
135
+
136
+
In `PR #4715 <https://github.com/ros-navigation/navigation2/pull/4715>`_ the global ``map_topic`` parameter has been removed from the ``Costmap2DROS`` node. This parameterwas only used in the ``StaticLayer`` and should be defined as a parameter local to the ``StaticLayer`` instead, for example:
137
+
138
+
.. code-block:: yaml
139
+
140
+
global_costmap:
141
+
global_costmap:
142
+
ros__parameters:
143
+
[...]
144
+
# Not supported anymore
145
+
map_topic: my_map
146
+
static_layer:
147
+
plugin: "nav2_costmap_2d::StaticLayer"
148
+
map_subscribe_transient_local: True
149
+
# Do this instead
150
+
map_topic: my_map
151
+
152
+
Simplified Costmap2DROS constructors
153
+
************************************
154
+
155
+
The following constructors for ``Costmap2DROS`` have been removed:
The ``local_namespace`` parameter has been removed and is now automatically set to the node's name (which is what the second removed constructor did).
177
+
Parameters ``parent_namespace`` / ``use_sim_time`` both provide default values to maintain the ability of creating a ``Costmap2DROS`` object by just specifying a name.
Copy file name to clipboardExpand all lines: tuning/index.rst
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,8 +162,7 @@ Within ``nav2_bringup``, there is a main entryfile ``tb3_simulation_launch.py``.
162
162
- ``use_robot_state_pub`` : Whether or not to start the robot state publisher to publish the robot's URDF transformations to TF2. Defaults to ``true`` to publish the robot's TF2 transformations.
163
163
- ``use_rviz`` : Whether or not to launch rviz for visualization. Defaults to ``true`` to show rviz.
164
164
- ``headless`` : Whether or not to launch the Gazebo front-end alongside the background Gazebo simulation. Defaults to ``true`` to display the Gazebo window.
165
-
- ``namespace`` : The namespace to launch robots into, if need be.
166
-
- ``use_namespace`` : Whether or not to launch robots into this namespace. Default ``false`` and uses global namespace for single robot.
165
+
- ``namespace`` : The namespace to launch robots into.
167
166
- ``robot_name`` : The name of the robot to launch.
168
167
- ``robot_sdf`` : The filepath to the robot's gazebo configuration file containing the Gazebo plugins and setup to simulate the robot system.
169
168
- ``x_pose``, ``y_pose``, ``z_pose``, ``roll``, ``pitch``, ``yaw`` : Parameters to set the initial position of the robot in the simulation.
0 commit comments