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

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
3

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

3 followers

Stats

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

Seen: 2,335 times

Last updated: Sep 07 '22