Operator Reference

pose_to_quatT_pose_to_quatPoseToQuatPoseToQuatpose_to_quat (Operator)

pose_to_quatT_pose_to_quatPoseToQuatPoseToQuatpose_to_quat — Convert the rotational part of a 3D pose to a quaternion.

Signature

pose_to_quat( : : Pose : Quaternion)

Herror T_pose_to_quat(const Htuple Pose, Htuple* Quaternion)

void PoseToQuat(const HTuple& Pose, HTuple* Quaternion)

static HQuaternionArray HQuaternion::PoseToQuat(const HPoseArray& Pose)

void HQuaternion::PoseToQuat(const HPose& Pose)

static void HOperatorSet.PoseToQuat(HTuple pose, out HTuple quaternion)

static HQuaternion[] HQuaternion.PoseToQuat(HPose[] pose)

void HQuaternion.PoseToQuat(HPose pose)

def pose_to_quat(pose: Sequence[Union[float, int]]) -> Sequence[float]

Description

The operator pose_to_quatpose_to_quatPoseToQuatPoseToQuatpose_to_quat converts the rotation of the input 3D pose PosePosePoseposepose into its corresponding quaternion QuaternionQuaternionQuaternionquaternionquaternion. Note that the translation of PosePosePoseposepose is ignored. Multiple poses can be passed in PosePosePoseposepose, in which case a quaternion is returned for each of them.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

PosePosePoseposepose (input_control)  pose(-array) HPose, HTupleSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

3D Pose.

QuaternionQuaternionQuaternionquaternionquaternion (output_control)  quaternion(-array) HQuaternion, HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Rotation quaternion.

Possible Predecessors

create_posecreate_poseCreatePoseCreatePosecreate_pose, read_poseread_poseReadPoseReadPoseread_pose

Possible Successors

quat_composequat_composeQuatComposeQuatComposequat_compose, quat_rotate_point_3dquat_rotate_point_3dQuatRotatePoint3dQuatRotatePoint3dquat_rotate_point_3d, quat_interpolatequat_interpolateQuatInterpolateQuatInterpolatequat_interpolate

Alternatives

axis_angle_to_quataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuataxis_angle_to_quat

See also

quat_to_posequat_to_poseQuatToPoseQuatToPosequat_to_pose, quat_to_hom_mat3dquat_to_hom_mat3dQuatToHomMat3dQuatToHomMat3dquat_to_hom_mat3d, quat_composequat_composeQuatComposeQuatComposequat_compose, quat_rotate_point_3dquat_rotate_point_3dQuatRotatePoint3dQuatRotatePoint3dquat_rotate_point_3d, pose_to_dual_quatpose_to_dual_quatPoseToDualQuatPoseToDualQuatpose_to_dual_quat

Module

Foundation