pycram.datastructures.enums#
Module holding all enums of PyCRAM.
Attributes#
Alias for MJCFGeomType. As the body type is the same as the geom type. |
Classes#
Generic enumeration. |
|
Enum for the different types of container manipulation. |
|
Enum for the different methods to find a body in a region. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Generic enumeration. |
|
Enum for Execution Process Module types. |
|
Enum for Arms. |
|
Enum for readable descriptions of a tasks' status. |
|
Enum for readable joint types. |
|
Enum for translating the axis name to a vector along that axis. |
|
Enum for Grasp orientations. |
|
Enum for Object types to easier identify different objects |
|
Enum for visual shapes of objects |
|
Enum for the different states of the torso. |
|
Enum for the different modes of the world. |
|
Enum for the different motions of the gripper. |
|
Enum for the different types of grippers. |
|
Enum for image switch view on hsrb display. |
|
Enum for techniques for detection tasks. |
|
Enum for the state of the detection task. |
|
Enum for the different logger levels. |
|
Enum for the joint names of the virtual mobile base. |
|
Enum for the different geom types in a MuJoCo XML file. |
|
Enum for the different joint types in a MuJoCo XML file. |
|
Enum for the different movement types of the robot. |
|
Enum for the different movement types of the robot. |
|
Enum for the different APIs of the Multiverse. |
|
Generic enumeration. |
|
Enum for the different properties of a body the Multiverse. |
|
Generic enumeration. |
|
Enum for the Position names of the different joint types in the Multiverse. |
|
Enum for the Command names of the different joint types in the Multiverse. |
|
Declare existing filter methods. |
Module Contents#
- class pycram.datastructures.enums.AdjacentBodyMethod#
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- ClosestPoints#
The ClosestPoints method is used to find the closest points in other bodies to the body.
- RayCasting#
- The RayCasting method is used to find the points in other bodies that are intersected by rays cast
from the body bounding box to 6 directions (up, down, left, right, front, back).
- class pycram.datastructures.enums.ContainerManipulationType#
Bases:
enum.EnumEnum for the different types of container manipulation.
- Opening#
The Opening type is used to open a container.
- Closing#
The Closing type is used to close a container.
- class pycram.datastructures.enums.FindBodyInRegionMethod#
Bases:
enum.EnumEnum for the different methods to find a body in a region.
- FingerToCentroid#
- The FingerToCentroid method is used to find the body in a region by casting a ray from each finger to the
centroid of the region.
- Centroid#
The Centroid method is used to find the body in a region by calculating the centroid of the region and casting two rays from opposite sides of the region to the centroid.
- MultiRay#
The MultiRay method is used to find the body in a region by casting multiple rays covering the region.
- class pycram.datastructures.enums.Frame#
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- Map = 'map'#
- class pycram.datastructures.enums.StaticJointState#
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- Park = 'park'#
- class pycram.datastructures.enums.DescriptionType#
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- URDF = 'urdf'#
- MJCF = 'mjcf'#
- get_file_extension()#
- class pycram.datastructures.enums.ExecutionType#
Bases:
enum.EnumEnum for Execution Process Module types.
- REAL#
- SIMULATED#
- SEMI_REAL#
- class pycram.datastructures.enums.Arms#
Bases:
int,enum.EnumEnum for Arms.
- LEFT = 0#
- RIGHT = 1#
- BOTH = 2#
- __str__()#
Return str(self).
- __repr__()#
Return repr(self).
- class pycram.datastructures.enums.TaskStatus#
Bases:
int,enum.EnumEnum for readable descriptions of a tasks’ status.
- CREATED = 0#
- RUNNING = 1#
- SUCCEEDED = 2#
- FAILED = 3#
- INTERRUPTED = 4#
- SLEEPING = 5#
- class pycram.datastructures.enums.JointType#
Bases:
enum.EnumEnum for readable joint types.
- REVOLUTE = 0#
- PRISMATIC = 1#
- SPHERICAL = 2#
- PLANAR = 3#
- FIXED = 4#
- UNKNOWN = 5#
- CONTINUOUS = 6#
- FLOATING = 7#
- class pycram.datastructures.enums.AxisIdentifier#
Bases:
enum.EnumEnum for translating the axis name to a vector along that axis.
- X = (1, 0, 0)#
- Y = (0, 1, 0)#
- Z = (0, 0, 1)#
- classmethod from_tuple(axis_tuple)#
- class pycram.datastructures.enums.Grasp#
Bases:
enum.EnumEnum for Grasp orientations.
- FRONT#
- BACK#
- RIGHT#
- LEFT#
- TOP#
- BOTTOM#
- classmethod from_axis_direction(axis: AxisIdentifier, direction: int)#
Get the Grasp face from an axis-index tuple
- class pycram.datastructures.enums.ObjectType#
Bases:
int,enum.EnumEnum for Object types to easier identify different objects
- METALMUG#
- PRINGLES#
- MILK#
- SPOON#
- BOWL#
- BREAKFAST_CEREAL#
- JEROEN_CUP#
- ROBOT#
- GRIPPER#
- ENVIRONMENT#
- GENERIC_OBJECT#
- HUMAN#
- IMAGINED_SURFACE#
- class pycram.datastructures.enums.Shape#
Bases:
enum.EnumEnum for visual shapes of objects
- SPHERE = 2#
- BOX = 3#
- CYLINDER = 4#
- MESH = 5#
- PLANE = 6#
- CAPSULE = 7#
- class pycram.datastructures.enums.TorsoState#
Bases:
enum.IntEnumEnum for the different states of the torso.
- HIGH#
- MID#
- LOW#
- class pycram.datastructures.enums.WorldMode#
Bases:
enum.EnumEnum for the different modes of the world.
- GUI = 'GUI'#
- DIRECT = 'DIRECT'#
- class pycram.datastructures.enums.GripperState#
Bases:
enum.EnumEnum for the different motions of the gripper.
- OPEN#
- CLOSE#
- __str__()#
- __repr__()#
- class pycram.datastructures.enums.GripperType#
Bases:
enum.EnumEnum for the different types of grippers.
- PARALLEL#
- SUCTION#
- FINGER#
- HYDRAULIC#
- PNEUMATIC#
- CUSTOM#
- class pycram.datastructures.enums.ImageEnum#
Bases:
enum.EnumEnum for image switch view on hsrb display.
- HI = 0#
- TALK = 1#
- DISH = 2#
- DONE = 3#
- DROP = 4#
- HANDOVER = 5#
- ORDER = 6#
- PICKING = 7#
- PLACING = 8#
- REPEAT = 9#
- SEARCH = 10#
- WAVING = 11#
- FOLLOWING = 12#
- DRIVINGBACK = 13#
- PUSHBUTTONS = 14#
- FOLLOWSTOP = 15#
- JREPEAT = 16#
- SOFA = 17#
- INSPECT = 18#
- CHAIR = 37#
- class pycram.datastructures.enums.DetectionTechnique#
Bases:
int,enum.EnumEnum for techniques for detection tasks.
- ALL = 0#
- HUMAN = 1#
- TYPES = 2#
- REGION = 3#
- HUMAN_ATTRIBUTES = 4#
- HUMAN_WAVING = 5#
- class pycram.datastructures.enums.DetectionState#
Bases:
int,enum.EnumEnum for the state of the detection task.
- START = 0#
- STOP = 1#
- PAUSE = 2#
- class pycram.datastructures.enums.LoggerLevel#
Bases:
enum.EnumEnum for the different logger levels.
- DEBUG = 'debug'#
- INFO = 'info'#
- WARN = 'warn'#
- ERROR = 'error'#
- FATAL = 'fatal'#
- class pycram.datastructures.enums.VirtualMobileBaseJointName#
Bases:
enum.EnumEnum for the joint names of the virtual mobile base.
- LINEAR_X = 'odom_vel_lin_x_joint'#
- LINEAR_Y = 'odom_vel_lin_y_joint'#
- ANGULAR_Z = 'odom_vel_ang_z_joint'#
- class pycram.datastructures.enums.MJCFGeomType#
Bases:
enum.EnumEnum for the different geom types in a MuJoCo XML file.
- BOX = 'box'#
- CYLINDER = 'cylinder'#
- CAPSULE = 'capsule'#
- SPHERE = 'sphere'#
- PLANE = 'plane'#
- MESH = 'mesh'#
- ELLIPSOID = 'ellipsoid'#
- HFIELD = 'hfield'#
- SDF = 'sdf'#
- pycram.datastructures.enums.MJCFBodyType#
Alias for MJCFGeomType. As the body type is the same as the geom type.
- class pycram.datastructures.enums.MJCFJointType#
Bases:
enum.EnumEnum for the different joint types in a MuJoCo XML file.
- FREE = 'free'#
- BALL = 'ball'#
- SLIDE = 'slide'#
- HINGE = 'hinge'#
- FIXED = 'fixed'#
- class pycram.datastructures.enums.MovementType#
Bases:
enum.EnumEnum for the different movement types of the robot.
- STRAIGHT_TRANSLATION#
- STRAIGHT_CARTESIAN#
- TRANSLATION#
- CARTESIAN#
- class pycram.datastructures.enums.WaypointsMovementType#
Bases:
enum.EnumEnum for the different movement types of the robot.
- ENFORCE_ORIENTATION_STRICT#
- ENFORCE_ORIENTATION_FINAL_POINT#
- class pycram.datastructures.enums.MultiverseAPIName#
Bases:
enum.EnumEnum for the different APIs of the Multiverse.
- GET_CONTACT_POINTS = 'get_contact_points'#
- GET_CONTACT_BODIES = 'get_contact_bodies'#
- GET_CONTACT_BODIES_AND_POINTS = 'get_contact_bodies_and_points'#
- GET_CONSTRAINT_EFFORT = 'get_constraint_effort'#
- GET_BOUNDING_BOX = 'get_bounding_box'#
- ATTACH = 'attach'#
- DETACH = 'detach'#
- GET_RAYS = 'get_rays'#
- EXIST = 'exist'#
- PAUSE = 'pause'#
- UNPAUSE = 'unpause'#
- SAVE = 'save'#
- LOAD = 'load'#
- class pycram.datastructures.enums.MultiverseProperty#
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- __str__()#
- class pycram.datastructures.enums.MultiverseBodyProperty#
Bases:
MultiversePropertyEnum for the different properties of a body the Multiverse.
- POSITION = 'position'#
- ORIENTATION = 'quaternion'#
- RELATIVE_VELOCITY = 'relative_velocity'#
- class pycram.datastructures.enums.MultiverseJointProperty#
Bases:
MultiversePropertyGeneric enumeration.
Derive from this class to define new enumerations.
- class pycram.datastructures.enums.MultiverseJointPosition#
Bases:
MultiverseJointPropertyEnum for the Position names of the different joint types in the Multiverse.
- REVOLUTE_JOINT_POSITION = 'joint_rvalue'#
- PRISMATIC_JOINT_POSITION = 'joint_tvalue'#
- classmethod from_pycram_joint_type(joint_type: JointType) MultiverseJointPosition#
- class pycram.datastructures.enums.MultiverseJointCMD#
Bases:
MultiverseJointPropertyEnum for the Command names of the different joint types in the Multiverse.
- REVOLUTE_JOINT_CMD = 'cmd_joint_rvalue'#
- PRISMATIC_JOINT_CMD = 'cmd_joint_tvalue'#
- classmethod from_pycram_joint_type(joint_type: JointType) MultiverseJointCMD#