rigid_trans_object_model_3d T_rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d (Operator)
Name
rigid_trans_object_model_3d T_rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d
— Apply a rigid 3D transformation to 3D object models.
Signature
def rigid_trans_object_model_3d (object_model_3d : MaybeSequence[HHandle], pose : Sequence[Union[float, int]]) -> Sequence[HHandle]
def rigid_trans_object_model_3d_s (object_model_3d : MaybeSequence[HHandle], pose : Sequence[Union[float, int]]) -> HHandle
Description
rigid_trans_object_model_3d rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d
applies rigid 3D transformations, i.e.,
rotations and translations, to 3D
object models and returns the handles of the transformed 3D object
models. The transformations are described by the poses given in
Pose Pose Pose Pose pose pose
, which are in the form
, where
mcsi denotes the coordinate system of the input object model and
cst the coordinate system of the transformed model, e.g., the
coordinate system of the scene (see Transformations / Poses and
“Solution Guide III-C - 3D Vision”
).
A pose can be created using the operators
create_pose create_pose CreatePose CreatePose CreatePose create_pose
, pose_invert pose_invert PoseInvert PoseInvert PoseInvert pose_invert
, etc., or it can be
the result of get_object_model_3d_params get_object_model_3d_params GetObjectModel3dParams GetObjectModel3dParams GetObjectModel3dParams get_object_model_3d_params
.
rigid_trans_object_model_3d rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d
transforms one or more 3D object
models with the same pose if only one transformation matrix
is passed in Pose Pose Pose Pose pose pose
(N:1).
If a single 3D object model is passed in ObjectModel3D ObjectModel3D ObjectModel3D ObjectModel3D objectModel3D object_model_3d
, it is
transformed with all passed poses (1:N).
If the number of poses corresponds to the number of 3D
object models, every 3D object model is transformed individually with
the respective pose (N:N). In those cases, N can be zero, i.e., no pose
or no 3D object model can be passed to the operator. In this case, an empty
tuple is returned in ObjectModel3DRigidTrans ObjectModel3DRigidTrans ObjectModel3DRigidTrans ObjectModel3DRigidTrans objectModel3DRigidTrans object_model_3drigid_trans
. This can be used to,
for example, transform the results of find_surface_model find_surface_model FindSurfaceModel FindSurfaceModel FindSurfaceModel find_surface_model
without
checking first if at least one match was returned.
Attention
rigid_trans_object_model_3d rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d
transforms the attributes of type
3D points, 3D point normals, and the prepared shape model for shape-based
3D matching, as well as 3D primitives. All other attributes are copied
without modification.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
Automatically parallelized on internal data level.
Parameters
ObjectModel3D ObjectModel3D ObjectModel3D ObjectModel3D objectModel3D object_model_3d
(input_control) object_model_3d(-array) →
HObjectModel3D , HTuple MaybeSequence[HHandle] HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Handles of the 3D object models.
Pose Pose Pose Pose pose pose
(input_control) pose(-array) →
HPose , HTuple Sequence[Union[float, int]] HTuple Htuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Poses.
ObjectModel3DRigidTrans ObjectModel3DRigidTrans ObjectModel3DRigidTrans ObjectModel3DRigidTrans objectModel3DRigidTrans object_model_3drigid_trans
(output_control) object_model_3d(-array) →
HObjectModel3D , HTuple Sequence[HHandle] HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Handles of the transformed 3D object models.
Result
rigid_trans_object_model_3d rigid_trans_object_model_3d RigidTransObjectModel3d RigidTransObjectModel3d RigidTransObjectModel3d rigid_trans_object_model_3d
returns 2 (
H_MSG_TRUE )
if all parameters
are correct. If necessary, an exception is raised.
Possible Predecessors
read_object_model_3d read_object_model_3d ReadObjectModel3d ReadObjectModel3d ReadObjectModel3d read_object_model_3d
,
xyz_to_object_model_3d xyz_to_object_model_3d XyzToObjectModel3d XyzToObjectModel3d XyzToObjectModel3d xyz_to_object_model_3d
,
fit_primitives_object_model_3d fit_primitives_object_model_3d FitPrimitivesObjectModel3d FitPrimitivesObjectModel3d FitPrimitivesObjectModel3d fit_primitives_object_model_3d
Possible Successors
project_object_model_3d project_object_model_3d ProjectObjectModel3d ProjectObjectModel3d ProjectObjectModel3d project_object_model_3d
,
object_model_3d_to_xyz object_model_3d_to_xyz ObjectModel3dToXyz ObjectModel3dToXyz ObjectModel3dToXyz object_model_3d_to_xyz
,
get_object_model_3d_params get_object_model_3d_params GetObjectModel3dParams GetObjectModel3dParams GetObjectModel3dParams get_object_model_3d_params
See also
affine_trans_point_3d affine_trans_point_3d AffineTransPoint3d AffineTransPoint3d AffineTransPoint3d affine_trans_point_3d
,
affine_trans_object_model_3d affine_trans_object_model_3d AffineTransObjectModel3d AffineTransObjectModel3d AffineTransObjectModel3d affine_trans_object_model_3d
Module
3D Metrology