Bad YAML File Created with Map Saver

Hi All,

I am following the course ROS2 Navigation, on section 2 which was creating map. I had an error stated “Failed processing YAML file /home/user/ros2_ws/install/project_mapping/share/project_mapping/maps/turtlebot_area.yaml at position (-1:-1) for reason: bad file”

The error occur when I was launching the nav2_lifecycle_mapper to show the generated map.

Does anyone has the same experience with me? How did you guys overcome it?

Thank you.

Hello @AlfoChri ,

Can you paste here the contents of the YAML file?

Sure, here is the generated YAML file via map saver cli:

image: turtlebot_area.pgm
mode: trinary
resolution: 0.05
origin: [-4.53, -2.06, 0]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.25

The file looks correct @AlfoChri . That’s really strange… my only suggestion would be to try to generate the map once again. If you are still getting the same error after that, let me know and I will check directly into your file to see what’s going on.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.