Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2012-08-06 05:48:45 -0600

sam gravatar image

How to solve 'roslaunch file contains multiple nodes named [/r_arm_controller/joint_trajectory_generator].' ?

I followed PR2 Plugs Itself In.

I run:

  ira@ira-K42JP:~$ export ROBOT=sim
  ira@ira-K42JP:~$ roslaunch pr2_plugs_gazebo_demo pr2_plugs_demo.launch
  ... logging to /home/ira/.ros/log/4bd9fc80-dfdb-11e1-b17e-485d60bf89ef/roslaunch-ira-K42JP-9908.log
  Checking log directory for disk usage. This may take awhile.
  Press Ctrl-C to interrupt
  Done checking log file disk usage. Usage is <1GB.

  roslaunch file contains multiple nodes named [/r_arm_controller/joint_trajectory_generator].
  Please check all <node> 'name' attributes to make sure they are unique.
  Also check that $(anon id) use different ids.
  ira@ira-K42JP:~$

How to solve it?

Thank you~

How to solve 'roslaunch file contains multiple nodes named [/r_arm_controller/joint_trajectory_generator].' ?

I followed PR2 Plugs Itself In.

I run:

  ira@ira-K42JP:~$ export ROBOT=sim
  ira@ira-K42JP:~$ roslaunch pr2_plugs_gazebo_demo pr2_plugs_demo.launch
  ... logging to /home/ira/.ros/log/4bd9fc80-dfdb-11e1-b17e-485d60bf89ef/roslaunch-ira-K42JP-9908.log
  Checking log directory for disk usage. This may take awhile.
  Press Ctrl-C to interrupt
  Done checking log file disk usage. Usage is <1GB.

  roslaunch file contains multiple nodes named [/r_arm_controller/joint_trajectory_generator].
  Please check all <node> 'name' attributes to make sure they are unique.
  Also check that $(anon id) use different ids.
  ira@ira-K42JP:~$

How to solve it?

Thank you~


pr2_plugs_demo.launch:

  <launch>

     <!-- Set params for sim -->
    <param name="detect_wall_norm/sim" value="True" type="bool"/>
    <param name="detect_outlet/sim" value="True" type="bool"/>

    <param name="r_gripper_controller/gripper_action_node/stall_velocity_threshold" value="0.01" type="double"/>

    <!-- Start PR and load the plug and outlet in the world -->
    <include file="$(find pr2_plugs_gazebo_demo)/launch/pr2_plug_outlet.launch"/>

    <!-- Start the plugs app -->
    <include file="$(find pr2_plugs_actions)/launch/plug_actions.launch"/>

    <!-- ik action -->
    <node pkg="pr2_arm_move_ik" type="arm_ik" name="r_arm_ik" output="screen">
      <param name="joint_trajectory_action" value="r_arm_controller/joint_trajectory_generator" />
      <param name="arm" value="r" />
      <param name="free_angle" value="2" />
      <param name="search_discretization" value="0.01" />
      <param name="ik_timeout" value="5.0" />
    </node>

    <!-- Trajectory generator -->
    <node pkg="joint_trajectory_generator" type="joint_trajectory_generator" output="screen" 
          name="joint_trajectory_generator" ns="r_arm_controller" >
      <param name="max_acc" value="2.0" />
      <param name="max_vel" value="2.5" />
    </node>
    <node pkg="joint_trajectory_generator" type="joint_trajectory_generator" output="screen" 
          name="joint_trajectory_generator" ns="l_arm_controller" >
      <param name="max_acc" value="2.0" />
      <param name="max_vel" value="2.5" />
    </node>

    <!-- tuckarm action -->
    <node pkg="pr2_tuck_arms_action" type="tuck_arms.py" name="tuck_arms_action" output="screen">
      <param name="r_joint_trajectory_action" value="r_arm_controller/joint_trajectory_generator" />
      <param name="l_joint_trajectory_action" value="l_arm_controller/joint_trajectory_generator" />
      <param name="move_duration" value="0.0" />
    </node>

    <!-- navstack -->
    <include file="$(find pr2_2dnav)/pr2_2dnav.launch" />

    <!-- plugs web adaptor -->
    <node pkg="pr2_plugs_actions" type="recharge_web_adaptor.py" name="recharge_web_adaptor" />
  </launch>