PoseOperationSettings< POSE_OPERATION_TYPE::ALIGN_Z >
Pose operation: turn the TCP z-axis onto direction, keeping the rotation about it.
The new x-axis is the old one projected onto the plane normal to direction, so the heading the detection gave survives – also for a detection flipped by 180 degrees, where the smallest rotation has no defined axis. If the old x-axis lies along direction, the y-axis is projected instead. The position is kept. The TCP +z-axis of a grip usually points into the part, so "tool straight down" is [0, 0, -1] in ROBOT.
Member Functions
virtual POSE_OPERATION_TYPE type() const override-
JSON Type: string +Requirement: Must be POSE_OPERATION_TYPE::ALIGN_Z. Type of the pose operation.
Member Variables
referenceFrame-
GRIP_FRAME, default:\{GRIP_FRAME::ROBOT\}JSON Type: (optional) string +Requirement: Must be ROBOT, CAMERA or OBJECT. Frame direction is given in. Defaults to ROBOT.
direction-
Eigen::Vector3f, default:\{Eigen::Vector3f::Zero()\}JSON Type: array +Requirement: Must have three elements. Norm must not be zero. Direction the TCP +z-axis is turned onto. Need not be normalised.
Enumerations
| Value | Description |
|---|---|
|
Place the grip in x and y relative to the detected object box. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::OBJECT_RELATIVE_POSITION> |
|
Add rotated copies of every grip, for a rotationally symmetric object. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::SYMMETRY_ROTATION> |
|
Keep only grips whose TCP z-axis is close to a reference direction. Never changes a grip. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::FILTER_Z_AXIS> |
|
Rotate every grip about its TCP origin. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::ROTATE> |
|
Move every grip. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::TRANSLATE> |
|
Turn the TCP z-axis onto a direction, keeping the rotation about it. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::ALIGN_Z> |
|
Replace the TCP orientation, keeping the position. >>> See PoseOperationSettings<POSE_OPERATION_TYPE::SET_ORIENTATION> |
| Value | Description |
|---|---|
|
The robot base frame. |
|
The frame of the camera the object was detected in. |
|
The frame of the detected object. |
|
The TCP frame of the grip being changed. |