how to add linear(x,y) twist with linear(x), angular(z) one
Hello,
I receive the
target_speed
of an object moving in front of my robot. This speed is described withlinear_x
andlinear_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 formlinear_x
,angular_z
I have access to the
target_distance
if nedded
=> How to compute the target_speed
in 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_twist
or something like that... but with no luck until now.
Thanks to all of you
Asked by luchko on 2022-01-25 17:42:26 UTC
Comments
The ultimate aim is to convert the robots
linear.x
andangular.z
intolinear.x
andlinear.y
in the global frame right?Asked by aarsh_t on 2022-01-26 01:10:09 UTC
Yep, that would allow me to "substract" robot speed to target speed. Thanks for your answer
Asked by luchko on 2022-01-26 14:56:26 UTC