The IsaacGym method get_camera_transform will provide the orientation relative to the attached rigid body for attached cameras (added via attach_camera), not the local environment frame. Therefore, GymCamera.get_transform will return the same, although the expectation I think is it returning relative to the local environment frame. The position from get_camera_transform appears to work as expected.
get_camera_transform (and therefore GymCamera.get_transform) appears to work as expected for cameras added via add_standalone_camera. This issue is just noting the problem for attached cameras.
Workaround for attached cameras:
the camera view matrix appears to be correct, but that will be with respect to the global Isaac frame (not the local environment frame) <-- this I think would be fastest
Update GymCamera to somehow know which rigid body the camera is attached do and apply the correct transform
The IsaacGym method
get_camera_transform
will provide the orientation relative to the attached rigid body for attached cameras (added viaattach_camera
), not the local environment frame. Therefore,GymCamera.get_transform
will return the same, although the expectation I think is it returning relative to the local environment frame. The position fromget_camera_transform
appears to work as expected.get_camera_transform
(and thereforeGymCamera.get_transform
) appears to work as expected for cameras added viaadd_standalone_camera
. This issue is just noting the problem for attached cameras.Workaround for attached cameras:
This is tested on
1.0rc2
.