Exercise 2.4 - Unable to launch map_server node using specified code

Hi,

I am trying to execute the code:

rosrun map_server map_server my_map.yaml

but then i get this error:

[ERROR] [1640580945.903622164]: Map_server could not open my_map.yml.

What am I doing wrong? my_map.yaml was generated in previous step as per the instructions using:

rosrun map_server map_saver -f my_map

I also have made sure all processes were shut off using Ctrl+C. I tried moving the file to the catkin/src/ location also and it did not work.

Any help you can provide is appreciated. Thank you!

Hello @sug.prabhakaran ,

I see that in the error you copied here the node is looking for a file named my_map.yml, but the file created will be named my_map.yaml. Could this be the error? If not, make sure that you run the command from the same location where you have your map file.