Get Body/Object Rotation/Orientation

anybody can help how to get body or objection orientation, the docs only saying:

// collect local rotation for each keypoint
for (auto &kp : obj.local_orientation_per_joint)
   // kp is the local keypoint rotation represented by a quaternion         -> how to do this btw
   // user code

thanks in advance


You can have access to the detection’s orientation with the global_root_orientation field ( and the position with
the position field ( of the ObjectData data struct.

Benjamin Vallon

Stereolabs Support