GripPositionType
¶
An enum describing the different types of grip positions.
GRIP
means directly at the mount ready to grip while PREPARE_TOP
and PREPARE_SIDE
define position types
located a little further away from the cube where it is safe to maneuver.
get_type(face_to_mount, cube_is_gripped)
staticmethod
¶
Returns a reasonable prepare position based on the given parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
face_to_mount |
GripperFace |
the face which should be mounted |
required |
cube_is_gripped |
bool |
flag, indicating whether the cube is currently gripped |
required |
Returns:
Type | Description |
---|---|
GripPositionType |
the suiting prepare position type |
Source code in core/grip_target_generation/GripPosition.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
GripPosition
¶
A class representing a specific position relative to the mount.
Attributes:
Name | Type | Description |
---|---|---|
target_factory |
GripTargetFactory |
the factory which created this position |
grip_position_type |
GripPositionType |
the type of this position |
relative_grip_coordinate_system |
spatial.CoordinateSystem |
the coordinate system describing this position in respect to the targets parent (usually the mount) |
target |
robolink.Item |
the created target associated with this position |
target_name |
str |
the name of the target (used for debugging and pickling) |