ERROR: cannot launch node Exercise 2.5


After I try to run launch file I got this error

ERROR: cannot launch node of type [map_server/map_server]: Cannot locate node of type [map_server] in package [map_server]. Make sure file exists in package path and permission is set to executable (chmod +x)

I don’t know how to fix it. I try chmod +x my_map.yaml and chmod +x my_map.pgm .It’s doesn’t help. please help

It looks like it is not finding the path to the “map_server” package. Do the following:

  • roscd
  • source.basch, and try again

ps: if you do roscd map_server, you should be able to go to this package

2 Likes

thank for reply me . I try echo $ROS_PACKAGE_PATH >>
/home/user/catkin_ws/src:/home/simulations/public_sim_ws/src:/opt/ros/noetic/share and source ~/catkin_ws/devel/setup.sh Path map file is correct. but I still have same error

I remove workspace and Creating a workspace agian. I dont get error everyting look fine now. I follow this solution >> How to reset catkin_ws (ROS catkin workspace) and start afresh

2 Likes