Ask Your Question

Roslaunch error: Bad argument __name:=

asked 2012-11-14 22:45:43 -0600

Jep gravatar image

Hi there,

I have a ros node that runs without problem when it's called by rosrun, but dies without reason when called by a roslaunch:

    CalibrateInt (tracking/calibrateInt)


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[CalibrateInt-1]: started with pid [27132]
  Bad argument __name:=CalibrateInt

[CalibrateInt-1] process has died [pid 27132, exit code 255, cmd /home/guillem/ros_workspace/Armed-turtlebot/tracking/bin/calibrateInt __name:=CalibrateInt __log:=/home/guillem/.ros/log/7c0acfb0-2f0e-11e2-948f-446d5719810b/CalibrateInt-1.log].
log file: /home/guillem/.ros/log/7c0acfb0-2f0e-11e2-948f-446d5719810b/CalibrateInt-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete


     <node pkg="tracking" type="calibrateInt" name="CalibrateInt"/>
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-11-14 22:52:49 -0600

Lorenz gravatar image

I guess your node is using command line parameters but it is not ignoring additional, ros specific parameters.

While rosrun really just calls a binary and only passes the parameters you explicitly specify, roslaunch always adds the parameter __name to set the node name and maybe a few more. Topic remappings are also implemented using command line parameters. Make sure your node also accepts ros specific parameters or avoid command line parameters at all. Using the parameter server is a much better choice in most cases.

edit flag offensive delete link more



Which is why usually all arguments are passed to ROS when Initializing the roscpp Node

felix k gravatar image felix k  ( 2012-11-15 01:24:57 -0600 )edit

Thanks! you were right. I'm using ROS parameters now instead.

Jep gravatar image Jep  ( 2012-11-16 01:37:39 -0600 )edit

Great. But please read Do not create answers for discussion, updates or comments. Instead, please either use the comment functionality or edit your original post.

Lorenz gravatar image Lorenz  ( 2012-11-16 01:39:16 -0600 )edit

Your Answer

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

Add Answer

Question Tools



Asked: 2012-11-14 22:45:43 -0600

Seen: 1,304 times

Last updated: Nov 16 '12