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 2019-06-23 19:46:01 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 902 times

Last updated: Jun 23 '19