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

Revision history [back]

I don't see anything obviously wrong but then I don't use Python frequently. If I may hazard a guess though I would say the problem lies with the line 18:

ellipse.pose.orientation = (0,0,0,1)

The error states that some tuple does not have an x attribute as required and I don't see any other tuples in your code. Try changing that to the following:

ellipse.pose.orientation.x = 0;
ellipse.pose.orientation.y = 0;
ellipse.pose.orientation.z = 0;
ellipse.pose.orientation.w = 1;