Difficulty writing a launch file for launching map_server node in Exercise 2.5

I have tried the following launch code in the launch file but I am receiving the error “ERROR: cannot launch node of type [provide_map/map_server]: can’t locate node [map_server] in package [provide_map]”

<launch>
    <node pkg="provide_map" type="map_server" name="map_server"  output="screen" args="/home/user/catkin_ws/src/my_map.yaml"> 
    </node>
</launch>

What have I done wrong?

The “map_server” node is in package named “map_server”, so you have to change the value of pkg to pkg=“map_server”.

2 Likes

Thank you that has fixed it!

1 Like