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

'Pose2D' object has not attribute 'x'

asked 2022-12-12 21:37:48 -0500

mirakim gravatar image

Hello,

I'm running a simple code written in ROS, and the same error message keeps showing in terminal:

The following exception was never retrieved: 'Pose2D' object has no attribute 'x'

I googled this error message, and there are errors like 'list' object has no attribute 'x', which is absolutely true.

The question is, is it possible for an object from specific class not having the attribute from the same class, as in this case?

Thanks in advance :)

edit retag flag offensive close merge delete

Comments

If you are talking about this type of message http://docs.ros.org/en/noetic/api/geo... it actually has a x field. So maybe check if you are importing/using it in the correct way. Also provide some code so it's easier to help

AlessioParmeggiani gravatar image AlessioParmeggiani  ( 2022-12-13 03:27:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-12-13 02:21:15 -0500

ljaniec gravatar image

Can you add your code as a snippet (the 101010 icon in the edit of the question)?

I think it can be a simple mistake of referencing x incorrectly but we cannot know without the code.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-12-12 21:37:48 -0500

Seen: 104 times

Last updated: Dec 13 '22