URScriptPrimitive#
- class torchrl.envs.transforms.URScriptPrimitive(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Integer ids for URScript-style robot primitives.
The ids are specific to UR-style arm control with a binary gripper command; they extend the generic
MacroPrimitivevocabulary (WAIT/MOVE) with joint, Cartesian and gripper moves.Examples
>>> from torchrl.envs import URScriptPrimitive >>> str(URScriptPrimitive.OPEN_GRIPPER) 'open_gripper'