ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Ros2: nav2_map_server can not load map?

asked 2019-06-17 23:35:42 -0500

ZakariaChek gravatar image

updated 2019-06-18 01:40:54 -0500

gvdhoorn gravatar image

Operating System: Ubuntu 18.04

ROS2 Dashing

Steps to reproduce issue

As we follow to load map by ros2 navigation, the map not uplaod when we run

$ ros2 run nav2_map_server map_server __params:=map_server_params.yaml

We now show topics in

$ ros2 topic list 
$ ros2 node list

Expected behavior

Can display map in RVIZ2

Actual behavior

Unable to display map in RVIZ2.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-06-23 19:45:01 -0500

ZakariaChek gravatar image

updated 2022-09-07 07:37:52 -0500

ljaniec gravatar image

If someone faced that issue, I suggest this solution:

map_server is now a lifecycle node and needs to be transitioned to the active state.

There are several ways you can trigger that state transition. The easiest ways from the command line are:

ros2 run nav2_util lifecycle_bringup map_server

edit flag offensive delete link more

Question Tools



Asked: 2019-06-17 23:35:42 -0500

Seen: 2,050 times

Last updated: Sep 07 '22