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

Might be a small bug in moving the arm tutorial, how to correct such issues?

asked 2012-08-04 13:44:31 -0500

updated 2014-01-28 17:13:14 -0500

ngrennan gravatar image

I am using electric on Ubuntu 11.10

While going through the tutorial at :

I was unable to run it using the python client, But directly using the command line as explained worked nicely. I got

$python scripts/
Traceback (most recent call last):
  File "scripts/", line 69, in <module>
    success = call_execute_cartesian_ik_trajectory("/base_link", positions, orientations)
  File "scripts/", line 19, in call_execute_cartesian_ik_trajectory
    header = roslib.msg.Header()
AttributeError: 'module' object has no attribute 'msg'

This seemed like a straight forward issue and must be faced by other people as well, but I couldn't find the answer to exact error. Luckily when I googled with 'roslib.msg.Header()' and in google search page saw

#4784 (actionlib uses roslib.msg.Header instead of rospy.Header .............

I simply changed the

header = roslib.msg.Header()


header = rospy.Header();

and it worked!!!!

My question is : Is it specific to electric? Or only I am facing this? Or is it a valid bug? On my machine at /opt/ros/electric/ros/core/roslib/src/roslib/ there is no file but and when I changed msg to msgs I got error on Header().

However if this is a valid bug (though small one then) how could it be corrected on the tutorial?

edit retag flag offensive close merge delete


The same correction worked on Fuerte with Ubuntu 12.04. I think it is pretty safe to edit the tutorial.

agoto gravatar image agoto  ( 2012-09-18 14:12:59 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-08-05 04:50:39 -0500

joq gravatar image

That tutorial looks out of date. Until someone notices, problems like that tend to be overlooked.

Since is a wiki, you can edit it yourself.

edit flag offensive delete link more

Question Tools


Asked: 2012-08-04 13:44:31 -0500

Seen: 496 times

Last updated: Aug 05 '12