Do not understand error message regarding twist - move robot message error (AssertionError: The ‘linear’ field must be a sub message of type ‘Vector3’)

assert
AssertionError: The ‘linear’ field must be a sub message of type ‘Vector3’
[ros2run]: Process exited with failure 1
class Test_


I am trying to get the robot to move after the If statement, the format looks like that in exercise 31, but i get this error that implies format problems

I found the error - it was right in front of me self.cmd.linear.x = 0.5
I forgot the .x

2 Likes

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