CRTK interface using different frames #32
-
Hi. I'm trying to use the CRTK interface to control steer the PSM towards the needle pose. However, im a bit confused by how the frames have been setup, namely that some topics publish with frame_id: World, and some use frame_id=baselink. Ie. /CRTK/psm2/measured_cp uses "baselink" frame, where as Now, to convert the transforms given in baselink to world should be trivial, but i cant seem to find the correct baselink transform. Ie. /ambf/env/psm2/baselink/State reports the base link to be at (-1, 1.346, 1,349) but using transform to convert /CRTK/psm2/measured_cp to World coordinates doesn't seem to give me the right results. Therefore, can you provide some more insights on how the frame structure is set up in the simulator, and maybe how to convert between the different frames? Thanks in advance :) //Michael |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I stumbled on this document, and calling get_T_w_b() on the PSM class works. However, it would be nice to have this available directly as a rostopic thorugh the CRTK interface :) |
Beta Was this translation helpful? Give feedback.
-
Hi Michael, |
Beta Was this translation helpful? Give feedback.
Hi Michael,
From this commit onwards,
T_b_w
for the PSMs should now accessible via the topics/CRTK/psm1/T_b_w
and/CRTK/psm2/T_b_w
.