pose_compose T_pose_compose PoseCompose PoseCompose pose_compose (Operator)
Name
pose_compose T_pose_compose PoseCompose PoseCompose pose_compose — Combine 3D poses given in two tuples.
Signature
def pose_compose (pose_left : Sequence[Union[float, int]], pose_right : Sequence[Union[float, int]]) -> Sequence[Union[float, int]]
Description
pose_compose pose_compose PoseCompose PoseCompose PoseCompose pose_compose combines the poses in the tuples, PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left and
PoseRight PoseRight PoseRight PoseRight poseRight pose_right . If both tuples contain the same number of poses, the
corresponding elements of both tuples are composed. Otherwise, either tuple
PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left or PoseRight PoseRight PoseRight PoseRight poseRight pose_right must contain only one pose.
In this case, the composition is performed for each pose of the longer tuple
with the single pose of the other tuple. For each composition, the poses are
interpreted as transformations of coordinate systems. The poses in tuple
PoseCompose PoseCompose PoseCompose PoseCompose poseCompose pose_compose are therefore the result of applying the corresponding
poses in PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left and PoseRight PoseRight PoseRight PoseRight poseRight pose_right in sequence.
First, the respective poses in PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left and PoseRight PoseRight PoseRight PoseRight poseRight pose_right
are transformed into the corresponding homogeneous transformation matrices
and
.
is then multiplied with
. The resulting matrix
is converted
into a pose and returned at the corresponding index in tuple
PoseCompose PoseCompose PoseCompose PoseCompose poseCompose pose_compose .
If the respective poses in PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left and PoseRight PoseRight PoseRight PoseRight poseRight pose_right have
different types, the default pose type 0 ('Rp+T', 'gba', 'point') is
returned. Otherwise, the returned poses have the same types as the poses
used for their composition.
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
PoseLeft PoseLeft PoseLeft PoseLeft poseLeft pose_left (input_control) pose(-array) → HPose , HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Tuple containing the left poses.
PoseRight PoseRight PoseRight PoseRight poseRight pose_right (input_control) pose(-array) → HPose , HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Tuple containing the right poses.
PoseCompose PoseCompose PoseCompose PoseCompose poseCompose pose_compose (output_control) pose(-array) → HPose , HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Tuple containing the returned poses.
Result
pose_compose pose_compose PoseCompose PoseCompose PoseCompose pose_compose returns 2 (H_MSG_TRUE ) if all parameters are valid.
If necessary, an exception is raised.
Possible Predecessors
read_pose read_pose ReadPose ReadPose ReadPose read_pose ,
hom_mat3d_to_pose hom_mat3d_to_pose HomMat3dToPose HomMat3dToPose HomMat3dToPose hom_mat3d_to_pose ,
create_pose create_pose CreatePose CreatePose CreatePose create_pose ,
convert_pose_type convert_pose_type ConvertPoseType ConvertPoseType ConvertPoseType convert_pose_type ,
pose_invert pose_invert PoseInvert PoseInvert PoseInvert pose_invert
Possible Successors
convert_pose_type convert_pose_type ConvertPoseType ConvertPoseType ConvertPoseType convert_pose_type
Alternatives
hom_mat3d_compose hom_mat3d_compose HomMat3dCompose HomMat3dCompose HomMat3dCompose hom_mat3d_compose ,
dual_quat_compose dual_quat_compose DualQuatCompose DualQuatCompose DualQuatCompose dual_quat_compose
See also
pose_to_hom_mat3d pose_to_hom_mat3d PoseToHomMat3d PoseToHomMat3d PoseToHomMat3d pose_to_hom_mat3d ,
hom_mat3d_to_pose hom_mat3d_to_pose HomMat3dToPose HomMat3dToPose HomMat3dToPose hom_mat3d_to_pose ,
hom_mat3d_compose hom_mat3d_compose HomMat3dCompose HomMat3dCompose HomMat3dCompose hom_mat3d_compose
Module
Foundation