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

launch file error: cannot launch node of type [map_server/map_server]

asked 2014-02-05 02:30:38 -0600

maysamsh gravatar image

updated 2020-02-14 17:30:05 -0600

jayess gravatar image

I created a launch file that contains:

<launch>
  <param name="/use_sim_time" value="true"/>
  <node pkg="map_server" type="map_server" name="map_server_node" args="/home/maysam/fuerte_workspace/sandbox/mit/map.yaml"/>
</launch>

But the output is:

ERROR: cannot launch node of type [map_server/map_server]: can't locate node [map_server] in package [map_server]

I can run the node manually and successfully:

rosrun map_server map_server /home/maysam/fuerte_workspace/sandbox/mit/map.yaml
edit retag flag offensive close merge delete

Comments

what command you are using to run launch file ?

bvbdort gravatar image bvbdort  ( 2014-02-05 22:04:57 -0600 )edit

roslaunch myfile.launch

maysamsh gravatar image maysamsh  ( 2014-02-05 23:52:09 -0600 )edit

hello, I have exactly the same problem with you. Did you solve this problem? Could you tell me how?

dido_yf gravatar image dido_yf  ( 2014-12-18 04:35:39 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-02-06 00:16:21 -0600

bvbdort gravatar image
edit flag offensive delete link more
0

answered 2018-03-30 21:22:23 -0600

happysf128 gravatar image

Try the command: roscd map_server to check which folder that your map_server node is using. If it is not the folder you are after, just delete that folder. I have two projects, and when I launch one of them, it used the map server from another project, then I got this issue.

edit flag offensive delete link more
0

answered 2020-02-14 16:23:14 -0600

Nap gravatar image

updated 2020-02-14 17:31:03 -0600

jayess gravatar image

Under melodic on Ubuntu, you would

sudo apt-get install ros-melodic-map-server
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-05 02:30:38 -0600

Seen: 12,307 times

Last updated: Feb 14 '20