Ros2: nav2_map_server can not load map?
Operating System: Ubuntu 18.04
ROS2 Dashing
Steps to reproduce issue
As we follow https://github.com/ros-planning/navigation2/tree/master/nav2_map_server 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.
Asked by ZakariaChek on 2019-06-17 23:35:42 UTC
Answers
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
Asked by ZakariaChek on 2019-06-23 19:45:01 UTC
Comments