Ask Your Question
0

I am getting an error: while running launch file

asked 2018-10-22 23:24:32 -0500

gab gravatar image

updated 2018-10-23 02:18:27 -0500

l4ncelot gravatar image

Error message:

roslaunch file contains multiple nodes named [/map_server]. Please check all <node> 'name' attributes to make sure they are unique. Also check that $(anon id) use different ids. The traceback for the exception was written to the log file

Launch file:

<launch>
    <include file ="$(find turtlebot_bringup)/launch/minimal.launch" />
    <arg name="map_file" default="/home/gab/catkin_ws/src/gabS/Desktop.yaml" />
    <node name="map_server" pkg="map_server" type="map_server" args="$(arg map_file)" />
    <include file="$(find turtlebot_navigation)/launch/amcl_demo.launch" />
    <include file="$(find turtlebot_rviz_launchers)/launch/view_navigation.launch" />
</launch>
edit retag flag offensive close merge delete

Comments

There's probably another node tag with the name map_server in the launch files you include here. In ROS every node must have unique name tag attribute (as the error message describes). You probably wanted to use only one of the map_server node, therefore delete the remaining ones.

l4ncelot gravatar imagel4ncelot ( 2018-10-23 02:21:42 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-23 02:28:15 -0500

Delb gravatar image

As @l4ncelot said you have another map_server node with the same name launched in amcl_demo.launch so just get rid of your node in your launch file (since you only need one map_server ) and put the map_file argument in the amcl node :

<launch>
    <include file ="$(find turtlebot_bringup)/launch/minimal.launch" />
    <arg name="map_file" default="/home/gab/catkin_ws/src/gabS/Desktop.yaml" />

    <include file="$(find turtlebot_navigation)/launch/amcl_demo.launch">
         <arg name="map_file" value="$(arg map_file)"/>
    </include>
    <include file="$(find turtlebot_rviz_launchers)/launch/view_navigation.launch" />
</launch>
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-22 23:24:32 -0500

Seen: 201 times

Last updated: Oct 23 '18