Unable to understand error message and make robot turn

I am unable to understand the error message. I # the code lines that make the robot move parallel to wall at start, but cannot make it do the 90 degree turn. If someone could help would appreciate it

Hi @ROxX ,

In your odom_callback function, in the third line:
self.orientation_q = self.msg.pose.pose.orientation has issues.
msg is not a class variable of your class test_odom_skill.

Therefore you get the following error:
AttributeError: 'test_odom_skill' has no attribute 'msg'.

Solution: Remove the self. and make the line as following:
self.orientation_q = msg.pose.pose.orientation.

That should fix this issue.

The error reported is quite straight forward!


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.