MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / rot_ref_to_global

Function rot_ref_to_global

roach/utils/transforms.py:44–50  ·  view source on GitHub ↗
(target_rot_in_ref, ref_rot_in_global)

Source from the content-addressed store, hash-verified

42 return target_rot_in_ref
43
44def rot_ref_to_global(target_rot_in_ref, ref_rot_in_global):
45 target_roll_in_global = cast_angle(target_rot_in_ref.roll + ref_rot_in_global.roll)
46 target_pitch_in_global = cast_angle(target_rot_in_ref.pitch + ref_rot_in_global.pitch)
47 target_yaw_in_global = cast_angle(target_rot_in_ref.yaw + ref_rot_in_global.yaw)
48
49 target_rot_in_global = carla.Rotation(roll=target_roll_in_global, pitch=target_pitch_in_global, yaw=target_yaw_in_global)
50 return target_rot_in_global
51
52
53def carla_rot_to_mat(carla_rotation):

Callers

nothing calls this directly

Calls 1

cast_angleFunction · 0.85

Tested by

no test coverage detected