how to add linear(x,y) twist with linear(x), angular(z) one

asked 2022-01-25 16:42:26 -0500

luchko gravatar image

Hello,

  • I receive the target_speed of an object moving in front of my robot. This speed is described with linear_xand linear_y fields.

  • My differential robot may be moving at the time I receive the target_speed, but I only now the current speed of my robot in the form linear_x, angular_z

  • I have access to the target_distance if nedded

=> How to compute the target_speedin the world fixed frame ?

EG : if my target does not move but my robot is rotating clockwise, I now compute a positive linear_y, which is true in the robot frame, but not in the odom frame.

NB: I read a lot about this, tried some things without clearly understanding the maths behind... I also tried to attach a frame to my target so I can use lookup_twistor something like that... but with no luck until now.

Thanks to all of you

edit retag flag offensive close merge delete

Comments

1

The ultimate aim is to convert the robots linear.x and angular.z into linear.x and linear.y in the global frame right?

aarsh_t gravatar image aarsh_t  ( 2022-01-26 00:10:09 -0500 )edit

Yep, that would allow me to "substract" robot speed to target speed. Thanks for your answer

luchko gravatar image luchko  ( 2022-01-26 13:56:26 -0500 )edit