Skip to content

Commit

Permalink
Make scan topic remapping use global topic path
Browse files Browse the repository at this point in the history
  • Loading branch information
hilary-luo committed Sep 13, 2023
1 parent e41078a commit 4b19fa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions launch/nav2.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ def launch_setup(context, *args, **kwargs):

nav2 = GroupAction([
PushRosNamespace(namespace),
SetRemap(namespace + '/global_costmap/sensors/lidar2d_0/scan', namespace + '/sensors/lidar2d_0/scan'),
SetRemap(namespace + '/local_costmap/sensors/lidar2d_0/scan', namespace + '/sensors/lidar2d_0/scan'),
SetRemap('/' + namespace + '/global_costmap/sensors/lidar2d_0/scan',
'/' + namespace + '/sensors/lidar2d_0/scan'),
SetRemap('/' + namespace + '/local_costmap/sensors/lidar2d_0/scan',
'/' + namespace + '/sensors/lidar2d_0/scan'),

IncludeLaunchDescription(
PythonLaunchDescriptionSource(launch_nav2),
Expand Down

0 comments on commit 4b19fa3

Please sign in to comment.