Ask Your Question
0

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 https://github.com/ros-planning/navig... 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 
/clock
/map_server/transition_event 
/parameter_events
/rosout
/tf
$ ros2 node list
/map_server

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
0

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

2 followers

Stats

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

Seen: 67 times

Last updated: Jun 23