[map_server in Noetic]Map_server could not open testmap.yaml error has occured!!
I wrote my question because I have looked at past ROSAnswers and could not find a solution.
Also, I have recently started learning ROS and would appreciate any pointers as to what I may be doing wrong.
[I want to do]
I want to use map_server to create a global cost map and reflect it in Rviz.
And finally, we would like to have a real robot running within the global cost map we have created.
[I did]
I gitclone navigation from the following site to Ubuntu 20.04.
https://github.com/ros-planning/navigation
I am trying to get the "testmap.yaml" in "home/catkin_ws/src/navigation/map_server/test" to work.
So I ran the following code and got the following error.
$rosrun map_server map_server testmap.yaml
[ERROR] [1666166341.180193818]: Map_server could not open testmap.yaml.
I also thought maybe the address was not set up correctly so I ran the following code and got the following message.
$rosrun map_server test testmap.yaml
[rosrun] Couldn't find executable named test below /home/usr/catkin_ws/src/navigation/map_server
[rosrun] Found the following, but they're either not files,
[rosrun] or not executable:
[rosrun] /home/usr/catkin_ws/src/navigation/map_server/test
The testmap.yaml is as follows. I have not changed anything since gitclone because I wanted to test run it.
image: testmap.png
resolution: 0.1
origin: [2.0, 3.0, 1.0]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.196
I expect the following message to appear.
[INFO][3698178.3892394] Laoding map from image "testmap.png"
[INFO][3698178.3892498] Read a XXX X XXX map @ 0.050m/cell
Please let me know if you have any solutions to these problems. Also, what do I have to do for the message I expect to get?
Thank you.