diff --git a/launch/nav2.launch.py b/launch/nav2.launch.py index b56d3b4..be8c83b 100644 --- a/launch/nav2.launch.py +++ b/launch/nav2.launch.py @@ -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),