Skip to content

Map not loaded when using namespaces #3618

@FiIipe

Description

@FiIipe

I noticed that the map is not loaded on RVIZ when the navigation stack is launched with namespaces.

Bug report

Required Info:

  • Operating System: Ubuntu 22.04
  • ROS2 Version: Rolling
  • Version or commit hash: Rolling
  • DDS implementation: CycloneDDS

Steps to reproduce issue

source /opt/ros/rolling/setup.bash export TURTLEBOT3_MODEL=waffle export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/opt/ros/rolling/share/turtlebot3_gazebo/models ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False use_namespace:=True namespace:=robot_lindo 

Expected behavior

RVIZ shall show the map

Actual behavior

RVIZ does not show the map

Additional information

On rviz_launch.py it's necessary to add ('/map', 'map'),

remappings=[('/map', 'map'), ('/tf', 'tf'), ('/tf_static', 'tf_static'), ('/goal_pose', 'goal_pose'), ('/clicked_point', 'clicked_point'), ('/initialpose', 'initialpose')]) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions