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

"pr2_tuck_arms_action" for pr2

asked 2012-11-07 11:53:54 -0500

Jui Wang gravatar image

updated 2014-11-22 17:05:30 -0500

ngrennan gravatar image

After I run my pr2, I use this command to let his arm close up.

  rosrun pr2_tuckarm -r t -l t

But if I make a launch file like this

  <node pkg="pr2_tuck_arms_action" type="" name="tuck_arms" output="screen"/>

It couldn't work at all! Why?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-11-07 13:29:50 -0500

David Lu gravatar image

The equivalent launch file for that command would be

   <node name="tuck_arms" pkg="pr2_tuckarm" type="" args="-r t -l t"/>
edit flag offensive delete link more


Since that these two are not the same, what's the function of "<node pkg="pr2_tuck_arms_action" type="" name="tuck_arms" output="screen"/>"? What should I see if I execute these launch file?

Jui Wang gravatar image Jui Wang  ( 2012-11-10 20:13:13 -0500 )edit

answered 2012-11-18 21:00:48 -0500

To answer the question in the comment, I need to write an answer.

   <node name="tuck_arms" pkg="pr2_tuckarm" type="" args="-r t -l t"/>

This launch file executed a node instead of a launch file, since the beginning is "node name..."

1.node name = "tuck_arms" means you'll see a node named "tuck_arms" in rxgraph.

2.type="" means this launch file will execute this python file.

3.pkg="pr2_tuckarm" means the executable file you are going to execute is in this package.

As for "What should you see if you execute these launch file?", the effect should be same as running

rosrun pr2_tuckarm -r t -l t

And for the output message, mine is

rosfuerte@rosfuerte-K53SM:~/project/ros/code_training$ roslaunch ./tuck_arm.launch 
... logging to /home/rosfuerte/.ros/log/5cf83a42-3227-11e2-b51f-c860003a5122/roslaunch-rosfuerte-K53SM-15395.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.

started roslaunch server http://rosfuerte-K53SM:47533/


 * /rosdistro
 * /rosversion

    tuck_arms (pr2_tuckarm/


core service [/rosout] found
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[tuck_arms-1]: started with pid [15415]
[WARN] [WallTime: 1353315583.144633] [15.934000] You've passed in true for auto_start to the python action server, you should always pass in false to avoid race conditions.
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-11-07 11:53:54 -0500

Seen: 307 times

Last updated: Nov 18 '12