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

Nav2: saved map not loading

asked 2021-10-05 02:26:26 -0500

nedo99 gravatar image

updated 2021-10-05 02:29:24 -0500

Hi,

I am trying to load the map saved using ros2 run nav2_map_server map_saver_cli -f ~/map. The robot was moved by manually setting the goals and exploring the area and once the room was mapped, the map is saved. I was using navigation_launch.py launch file while mapping.

To start and try to load the map I used the bringup_launch.py with the map parameter set to saved map file.

I get the log that the map is loaded but there is nothing in Rviz. None of the maps is updated.

I see only in the log: [amcl-10] Warning: Invalid frame ID "base_footprint" passed to canTransform argument target_frame - frame does not exist [amcl-10] at line 133 in /tmp/binarydeb/ros-foxy-tf2-0.13.10/src/buffer_core.cpp

What I am missing here?

Regards, Nedim

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-05 04:07:17 -0500

nedo99 gravatar image

Update: base_footprint frame got resolved. We were using base_link and this got solved, but now the issue is that when we have a SLAM algorithm publishing to /map topic then saved global cost map is not used. If I disable SLAM then the global cost map is loaded fine, but initial pose is not set right. Even if I do 2d pose estimate is not able to update it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-10-05 02:26:26 -0500

Seen: 690 times

Last updated: Oct 05 '21