embodichain.lab.sim.atomic_skills.primitives#
Built-in atomic skill primitive implementations.
Classes:
|
Place a held assemble object onto a base object at a relative pose. |
|
Grasp an object and align its local axis to a world axis. |
|
Object whose local axis should be aligned after an antipodal grasp. |
|
Per-invocation grasp-and-axis-alignment behavior. |
|
Contact-only pickup at an observed TCP pose in the planning frame. |
|
Approach, establish contact grasp and lift using an observed path source. |
|
Place a contact-held subject without projecting a rigid object/tool relation. |
|
Object-centric target for picking and moving one object with two hands. |
|
Pick and move a single object pinched by two hands. |
|
Per-invocation coordinated pickup behavior. |
|
Coordinate two held objects: support object below, placing object above. |
|
Object-centric target for dual-arm coordinated placement. |
|
Per-invocation coordinated placement behavior. |
|
Pinned asset identity and logical scene roles, without hardware names. |
|
End-effector pose goal with optional batched intermediate waypoints. |
|
Execute one demonstration contract as one planning/recovery boundary. |
|
Pickup target with an affordance-selected or supplied grasp pose. |
|
Pick an object with the nearer arm and transfer it to the other arm. |
|
Object to pick and hand over, plus its final object pose. |
|
Per-invocation pick-up, handover, and placement behavior. |
|
Desired pose for the object held by this action's control part. |
|
Explicit or named joint-space goal for a bound robot resource. |
|
Plan a free-space move for a bound manipulator. |
|
Per-invocation behavior for |
|
Move the held object through exact target poses with a closed hand. |
|
Per-invocation held-object transport behavior. |
|
Plan joint motion from the observed state to one or more waypoints. |
|
Per-invocation behavior for |
|
One timed joint motion resolved at declared observation boundaries. |
|
Episode-owned source of live full-robot commands for MoveJoints. |
|
Approach, grasp, rotate a door about its hinge, release, and retract. |
|
Door handle and desired absolute opening state. |
|
Per-invocation approach, interpolation, release, and retract behavior. |
|
Approach a grasp pose, close the gripper, lift. |
|
Per-invocation pickup behavior. |
|
Lower the held object to a place pose, open the gripper, retract. |
|
End-effector release-pose target used by |
|
Per-invocation placement behavior. |
|
Rotate and return an exclusively held object about its internal axis. |
|
Pour toward an opening, or rotate in place when no target is supplied. |
|
Per-invocation pouring behavior. |
|
Geometry of a receiving opening and the held object's mouth. |
|
Open-loop motion primitive that approaches, presses, and retracts. |
|
Target object described by a press affordance. |
|
Per-invocation pressing behavior. |
|
Failure-only B1 Press planning rules with the fixed source attempt budget. |
|
Close the end effector, contact a rigid object, and push it in-plane. |
|
Push one rigid object toward a target pose on the target support plane. |
|
Per-invocation planar pushing behavior. |
|
End-effector calibration selected by a bound motion control part. |
|
Open-loop approach, grasp, and axis-constrained sliding motion. |
|
Translating articulation link described by a slide affordance. |
|
Absolute prismatic coordinate, in metres, with a calibrated axis sign. |
|
Per-invocation sliding behavior for a translating articulation link. |
|
Open-loop approach, grasp, twist, release, and retract motion. |
|
Target object described by a twist affordance. |
|
Per-invocation twisting behavior. |
Data:
|
Built-in action implementations instantiated once per action engine. |
Functions:
|
Validate an optional declaration-owned addition to an authored press stroke. |
- class embodichain.lab.sim.atomic_skills.primitives.AssembleGoal[source]
Place a held assemble object onto a base object at a relative pose.
The base object pose is a late-bound
SceneEntityPose. The assemble object’s target pose isbase_pose @ assemble_to_base_pose. The held-object transform (object_to_eef) is read fromPlanningContextfor the place control part, which a priorPickUppopulates.Methods:
__init__(affordance, base_pose)Attributes:
affordanceAssembly affordance anchoring the assemble object to the base object.
base_poseLate-bound base-object pose used for snapshot-consistent planning.
- __init__(affordance, base_pose)
-
affordance:
AssembleAffordance Assembly affordance anchoring the assemble object to the base object.
-
base_pose:
SceneEntityPose Late-bound base-object pose used for snapshot-consistent planning.
- class embodichain.lab.sim.atomic_skills.primitives.AxisAlign[source]
Grasp an object and align its local axis to a world axis.
Classes:
GoalTypealias of
AxisAlignGoalOptionsTypealias of
AxisAlignOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
AxisAlignGoal
- OptionsType
alias of
AxisAlignOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'axis_align'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.AxisAlignGoal[source]
Object whose local axis should be aligned after an antipodal grasp.
Methods:
__init__(semantics[, grasp_xpos])Attributes:
grasp_xposOptional explicit end-effector grasp pose; omitted poses are sampled.
- __init__(semantics, grasp_xpos=None)
-
grasp_xpos:
Tensor|SceneEntityPose|None Optional explicit end-effector grasp pose; omitted poses are sampled.
- class embodichain.lab.sim.atomic_skills.primitives.AxisAlignOptions[source]
Per-invocation grasp-and-axis-alignment behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
alignment_offset_mWorld translation from the lifted object centre,
(3,)or(B,3).alignment_twist_radRotation about the aligned world target axis after the shortest arc.
target_axisDesired world-frame axis, shape
(3,)or(B, 3).- __init__(hand_interp_steps=5, grasp_settle_steps=0, pick_object_part='center', lift_height=0.1, pre_grasp_distance=0.15, grasp_commit_fraction=1.0, approach_direction=tensor([0., 0., -1.]), approach_alignment_max_angle=None, downstream_object_target_poses=(), obj_upright_direction=None, rotate_upright=None, grasp_frame_to_eef=tensor([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), fixed_object_to_eef=None, grasp_variant='closest', approach_along_grasp_axis=False, cartesian_lift=False, target_axis=tensor([0., 0., 1.]), alignment_offset_m=tensor([0., 0., 0.]), alignment_twist_rad=0.0, *, initial_lift_height=0.0)
-
alignment_offset_m:
Tensor World translation from the lifted object centre,
(3,)or(B,3).This freezes a position realisation without changing the directed axis. Zero retains the original fixed-centre behavior.
-
alignment_twist_rad:
float|Tensor Rotation about the aligned world target axis after the shortest arc.
A scalar applies to every row; a tensor may be scalar or shaped
(B,). This chooses the otherwise free object heading without changing its directed axis goal. Zero preserves the shortest-arc realisation.
-
target_axis:
Tensor Desired world-frame axis, shape
(3,)or(B, 3).
- embodichain.lab.sim.atomic_skills.primitives.BUILTIN_SKILL_TYPES: tuple[type[AtomicSkill], ...] = (<class 'embodichain.lab.sim.atomic_skills.primitives.execute_demo_skill.ExecuteDemoSkill'>, <class 'embodichain.lab.sim.atomic_skills.primitives.move_end_effector.MoveEndEffector'>, <class 'embodichain.lab.sim.atomic_skills.primitives.move_joints.MoveJoints'>, <class 'embodichain.lab.sim.atomic_skills.primitives.pick_up.PickUp'>, <class 'embodichain.lab.sim.atomic_skills.primitives.axis_align.AxisAlign'>, <class 'embodichain.lab.sim.atomic_skills.primitives.move_held_object.MoveHeldObject'>, <class 'embodichain.lab.sim.atomic_skills.primitives.place.Place'>, <class 'embodichain.lab.sim.atomic_skills.primitives.pour.Pour'>, <class 'embodichain.lab.sim.atomic_skills.primitives.push_object.PushObject'>, <class 'embodichain.lab.sim.atomic_skills.primitives.press.Press'>, <class 'embodichain.lab.sim.atomic_skills.primitives.slide.Slide'>, <class 'embodichain.lab.sim.atomic_skills.primitives.open_door.OpenDoor'>, <class 'embodichain.lab.sim.atomic_skills.primitives.twist.Twist'>, <class 'embodichain.lab.sim.atomic_skills.primitives.coordinated_pickment.CoordinatedPickment'>, <class 'embodichain.lab.sim.atomic_skills.primitives.coordinated_placement.CoordinatedPlacement'>, <class 'embodichain.lab.sim.atomic_skills.primitives.hand_over.HandOver'>)
Built-in action implementations instantiated once per action engine.
- class embodichain.lab.sim.atomic_skills.primitives.ContactGraspGoal[source]
Contact-only pickup at an observed TCP pose in the planning frame.
- Parameters:
grasp_xpos (
Tensor|SceneEntityPose) – Explicit or late-bound grasp pose. The host supplies physical evidence that the target remains pinched during lift. The goal does not project a fixed object-to-tool relationship.
Methods:
__init__(grasp_xpos)- __init__(grasp_xpos)
- class embodichain.lab.sim.atomic_skills.primitives.ContactPickUpGoal[source]
Approach, establish contact grasp and lift using an observed path source.
- Parameters:
source (
str) – Engine-local source identifier; its episode host retains ownership.phases (
tuple[ContactPhase,...]) – Bounded path containing exactly one grasp and its required evidence.
The source supplies physical acceptance; completion projects no rigid relation.
Methods:
__init__(source, phases)- __init__(source, phases)
- class embodichain.lab.sim.atomic_skills.primitives.ContactPlaceGoal[source]
Place a contact-held subject without projecting a rigid object/tool relation.
- Parameters:
source (
str) – Engine-local source that observes the existing physical grasp.phases (
tuple[ContactPhase,...]) – Bounded transport, release and retreat path, with no new grasp.
Methods:
__init__(source, phases)- __init__(source, phases)
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPickGoal[source]
Object-centric target for picking and moving one object with two hands.
The left/right grasp poses are not supplied by the caller; they are sampled by the parallel-jaw grasp-pose service at planning time using the dual-arm direction and approach direction declared on
CoordinatedPickmentOptions.Methods:
__init__(semantics, object_target_pose[, ...])Attributes:
object_initial_poseOptional initial object pose.
object_target_poseTarget pose for the shared object, shape
(4, 4)or(num_envs, 4, 4).- __init__(semantics, object_target_pose, object_initial_pose=None)
-
object_initial_pose:
Tensor|SceneEntityPose|None Optional initial object pose.
When omitted, the pose is grounded through the semantic object’s stable scene identity.
-
object_target_pose:
Tensor|SceneEntityPose Target pose for the shared object, shape
(4, 4)or(num_envs, 4, 4).
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPickment[source]
Pick and move a single object pinched by two hands.
Classes:
GoalTypealias of
CoordinatedPickGoalOptionsTypealias of
CoordinatedPickmentOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
- GoalType
alias of
CoordinatedPickGoal
- OptionsType
alias of
CoordinatedPickmentOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='left', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'kinematics.inverse', 'kinematics.batch_inverse'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='right', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'kinematics.inverse', 'kinematics.batch_inverse'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('left', 'right')),))
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'coordinated_pickment'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPickmentOptions[source]
Per-invocation coordinated pickup behavior.
Left/right grasps are sampled from target-local affordance geometry by the engine’s parallel-jaw grasp-pose service. The dual-arm direction splits the object into left/right grasp regions and the approach direction filters the sampled antipodal pairs.
Methods:
__init__([object_motion_keyframes, ...])Attributes:
approach_directionWorld-frame direction used to sample and approach both grasps, shape
(3,).grasp_seedDeterministic seed isolated around coordinated grasp sampling.
hand_interp_stepsNumber of waypoints used for the simultaneous hand-close segment.
hold_stepsNumber of waypoints to hold the final object target pose.
left_to_right_arm_directionWorld-frame direction from the left arm base to the right arm base, shape
(3,).lift_heightWorld-Z lift distance before moving to the object target pose.
middle_empty_ratioFraction of the object's left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends.
object_motion_keyframesNumber of object-pose keyframes solved by IK before joint-space interpolation.
paired_object_to_eefInstallation-calibrated left/right TCP transforms in the rigid object's frame.
pre_grasp_distanceWorld distance to retreat from each grasp pose along negative TCP z.
releaseWhether both hands open after reaching the shared object target pose.
release_stepsNumber of waypoints used for the simultaneous hand-open segment.
retreat_distanceWorld-Z retreat distance after a coordinated release.
retreat_stepsNumber of waypoints used for the simultaneous post-release retreat.
- __init__(object_motion_keyframes=6, pre_grasp_distance=0.1, lift_height=0.08, hand_interp_steps=10, hold_steps=4, release=False, release_steps=10, retreat_distance=0.08, retreat_steps=12, approach_direction=tensor([0., 0., -1.]), left_to_right_arm_direction=tensor([1., 0., 0.]), middle_empty_ratio=0.4, grasp_seed=17393, paired_object_to_eef=None)
-
approach_direction:
Tensor World-frame direction used to sample and approach both grasps, shape
(3,).
-
grasp_seed:
int Deterministic seed isolated around coordinated grasp sampling.
-
hand_interp_steps:
int Number of waypoints used for the simultaneous hand-close segment.
-
hold_steps:
int Number of waypoints to hold the final object target pose.
-
left_to_right_arm_direction:
Tensor World-frame direction from the left arm base to the right arm base, shape
(3,). It partitions the object into left/right grasp regions and should be a finite, non-zero vector; it is normalized at planning time.
-
lift_height:
float World-Z lift distance before moving to the object target pose.
-
middle_empty_ratio:
float Fraction of the object’s left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends. Must be in
[0, 1).
-
object_motion_keyframes:
int Number of object-pose keyframes solved by IK before joint-space interpolation.
-
paired_object_to_eef:
Tensor|None Installation-calibrated left/right TCP transforms in the rigid object’s frame.
-
pre_grasp_distance:
float World distance to retreat from each grasp pose along negative TCP z.
-
release:
bool Whether both hands open after reaching the shared object target pose.
-
release_steps:
int Number of waypoints used for the simultaneous hand-open segment.
-
retreat_distance:
float World-Z retreat distance after a coordinated release.
-
retreat_steps:
int Number of waypoints used for the simultaneous post-release retreat.
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPlacement[source]
Coordinate two held objects: support object below, placing object above.
Classes:
GoalTypealias of
CoordinatedPlacementGoalOptionsTypealias of
CoordinatedPlacementOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
- GoalType
alias of
CoordinatedPlacementGoal
- OptionsType
alias of
CoordinatedPlacementOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='placing', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='support', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('placing', 'support')),))
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'coordinated_placement'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPlacementGoal[source]
Object-centric target for dual-arm coordinated placement.
Methods:
__init__(placing_object_target_pose, ...[, ...])Attributes:
placing_height_offsetWorld-Z offset above the placing object target pose.
placing_object_target_poseTarget pose for the object released by the placing arm.
releaseWhether the placing hand releases.
support_height_offsetWorld-Z offset above the support object target pose.
support_object_target_poseTarget pose for the object held by the support arm.
- __init__(placing_object_target_pose, support_object_target_pose, placing_height_offset=None, support_height_offset=None, release=None)
-
placing_height_offset:
float|None World-Z offset above the placing object target pose.
-
placing_object_target_pose:
Tensor|SceneEntityPose Target pose for the object released by the placing arm.
-
release:
bool|None Whether the placing hand releases.
Noneuses invocation options.
-
support_height_offset:
float|None World-Z offset above the support object target pose.
-
support_object_target_pose:
Tensor|SceneEntityPose Target pose for the object held by the support arm.
- class embodichain.lab.sim.atomic_skills.primitives.CoordinatedPlacementOptions[source]
Per-invocation coordinated placement behavior.
Methods:
__init__([release, placing_height_offset, ...])Attributes:
hand_interp_stepsNumber of waypoints for the placing-hand release interpolation.
hold_stepsNumber of waypoints to hold alignment before releasing.
lift_heightWorld-Z lift distance for the placing arm after release.
placing_height_offsetDefault World-Z offset above the placing object target pose.
releaseWhether to open the placing hand at the aligned placement pose.
retreat_stepsNumber of waypoints used for the placing-arm lift retreat.
support_height_offsetDefault World-Z offset above the support object target pose.
- __init__(release=True, placing_height_offset=0.0, support_height_offset=0.0, lift_height=0.08, hand_interp_steps=10, hold_steps=4, retreat_steps=16)
-
hand_interp_steps:
int Number of waypoints for the placing-hand release interpolation.
-
hold_steps:
int Number of waypoints to hold alignment before releasing.
-
lift_height:
float World-Z lift distance for the placing arm after release.
-
placing_height_offset:
float Default World-Z offset above the placing object target pose.
-
release:
bool Whether to open the placing hand at the aligned placement pose.
-
retreat_steps:
int Number of waypoints used for the placing-arm lift retreat.
-
support_height_offset:
float Default World-Z offset above the support object target pose.
- class embodichain.lab.sim.atomic_skills.primitives.DemoSkillGoal[source]
Pinned asset identity and logical scene roles, without hardware names.
Methods:
__init__(asset_sha256, role_bindings[, ...])- __init__(asset_sha256, role_bindings, role_uids=<factory>, terminal_semantics=None)
- class embodichain.lab.sim.atomic_skills.primitives.EndEffectorPoseGoal[source]
End-effector pose goal with optional batched intermediate waypoints.
Methods:
__init__(xpos)Attributes:
xposHomogeneous pose with shape
(4,4),(B,4,4)or(B,N,4,4).- __init__(xpos)
-
xpos:
Tensor|SceneEntityPose Homogeneous pose with shape
(4,4),(B,4,4)or(B,N,4,4).
- class embodichain.lab.sim.atomic_skills.primitives.ExecuteDemoSkill[source]
Execute one demonstration contract as one planning/recovery boundary.
Classes:
GoalTypealias of
DemoSkillGoalOptionsTypealias of
SkillOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
- GoalType
alias of
DemoSkillGoal
- OptionsType
alias of
SkillOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.joint_position'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'execute_demo_skill'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.GraspGoal[source]
Pickup target with an affordance-selected or supplied grasp pose.
Methods:
__init__(semantics[, grasp_xpos, object_pose])Attributes:
grasp_xposOptional end-effector grasp pose.
object_poseOptional explicit object pose used for grasp planning.
- __init__(semantics, grasp_xpos=None, object_pose=None)
-
grasp_xpos:
Tensor|SceneEntityPose|None Optional end-effector grasp pose.
When omitted,
PickUpuses the configured fixed object-relative grasp when available, otherwise it selects one from the target affordance. An explicit tensor or late-boundSceneEntityPoseskips grasp sampling. Late-bound poses also declare the scene dependency used by closed-loop execution recovery.
-
object_pose:
Tensor|SceneEntityPose|None Optional explicit object pose used for grasp planning.
When omitted,
PickUpresolves the object’s pose from the scene snapshot identified byObjectSemantics.entity_id. Supplying a tensor is useful for vectorized benchmark runs: use one(4, 4)pose for every environment or a(num_envs, 4, 4)tensor with one pose per environment. No extra candidate dimension is introduced here; the environment batch itself represents the independent pose trials.A
SceneEntityPosecan also be supplied when the pose should be resolved from another scene entity. The explicit pose is only a planning input; it does not mutate the simulator object.
- class embodichain.lab.sim.atomic_skills.primitives.HandOver[source]
Pick an object with the nearer arm and transfer it to the other arm.
For each environment, the action chooses the arm whose root link is closer to the observed object pose. It samples at most 1000 mesh-surface points and applies SVD in the current object pose to find
obj_longest_axis. When that axis is closer to world Z than to the horizontal plane, both grasp the pickup approaches diagonally downward. Otherwise pickup is world-Z downward. The receiver approaches diagonally from its own TCP side when horizontal separation is available, keeping its wrist outside the source hand’s vertical envelope.For a free object, the first arm grasps the projected end of
obj_longest_axisnearest its current TCP. For an existing hold, that source grasp is inherited from the preceding action and the receiving arm uses the configured center, top, or bottom region at the predicted middle object pose. A center request is filtered to the object’s middle third; top and bottom requests let Semantic Call look-ahead reserve the opposite source end.After each grasp waypoint, subsequent EEF waypoints preserve that grasp rotation and change translation only. The released source TCP first retraces its grasp approach; transfer-only execution additionally lifts it. With
release_at_target=True, the receiving arm additionally moves horizontally at handover height, lowers to the final target pose, and releases and withdraws the open receiver before settling. Transfer-only mode stops with the receiving arm recorded as the verified holder for a later Semantic Call.Classes:
GoalTypealias of
HandOverGoalOptionsTypealias of
HandOverOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
HandOverGoal
- OptionsType
alias of
HandOverOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='source', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='destination', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('source', 'destination')),))
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'hand_over'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.HandOverGoal[source]
Object to pick and hand over, plus its final object pose.
Methods:
__init__(semantics, target_pose)Attributes:
target_poseFinal object pose after the receiving arm lowers and releases it.
- __init__(semantics, target_pose)
- target_pose: PoseGoalValue
Final object pose after the receiving arm lowers and releases it.
- class embodichain.lab.sim.atomic_skills.primitives.HandOverOptions[source]
Per-invocation pick-up, handover, and placement behavior.
Methods:
__init__([pre_grasp_distance, lift_height, ...])Attributes:
arm_selectionHow the transfer participant is selected.
grasp_retract_distanceBack off sampled grasp TCPs along their approach axis, in metres.
hand_interp_stepsWaypoints used by every gripper open/close interpolation.
hold_stepsClosed-hand waypoints used to settle a receiving grasp.
lift_heightWorld-Z distance used to lift the object after the first grasp.
pre_grasp_distanceDistance from each grasp pose to its approach pose, in metres.
receive_pick_object_partObject end selected by the receiving gripper for an existing hold.
release_at_targetWhether the receiving hand places and releases after the transfer.
retreat_distanceDistance retraced opposite the source TCP approach before lifting.
retreat_stepsWaypoints used while the source hand retreats after release.
- __init__(pre_grasp_distance=0.1, lift_height=0.1, hand_interp_steps=10, hold_steps=4, retreat_steps=20, retreat_distance=0.1, receive_pick_object_part='bottom', release_at_target=True, arm_selection='nearest', *, grasp_retract_distance=0.0)
-
arm_selection:
Literal['nearest','bound'] How the transfer participant is selected.
"nearest"preserves the low-level Atomic Skill default for direct callers. Semantic Task Program bindings should select"bound"so the explicitsourceanddestinationresource slots are authoritative.
-
grasp_retract_distance:
float Back off sampled grasp TCPs along their approach axis, in metres.
-
hand_interp_steps:
int Waypoints used by every gripper open/close interpolation.
-
hold_steps:
int Closed-hand waypoints used to settle a receiving grasp.
-
lift_height:
float World-Z distance used to lift the object after the first grasp.
-
pre_grasp_distance:
float Distance from each grasp pose to its approach pose, in metres.
-
receive_pick_object_part:
Literal['center','top','bottom'] Object end selected by the receiving gripper for an existing hold.
-
release_at_target:
bool Whether the receiving hand places and releases after the transfer.
When false, execution ends after the source hand opens and the receiving resource remains the verified holder. This supports a semantic handover followed by a later Place call without moving that workflow into Task Engine.
-
retreat_distance:
float Distance retraced opposite the source TCP approach before lifting.
-
retreat_steps:
int Waypoints used while the source hand retreats after release.
- class embodichain.lab.sim.atomic_skills.primitives.HeldObjectPoseGoal[source]
Desired pose for the object held by this action’s control part.
Methods:
__init__(object_target_pose[, ...])Attributes:
object_idOptional exact held-object identity and retained-attachment effect.
object_target_poseObject target pose or ordered waypoints.
world_yaw_freePermit world-Z yaw changes at the final waypoint, retaining its position.
- __init__(object_target_pose, world_yaw_free=False, *, object_id=None)
-
object_id:
str|None Optional exact held-object identity and retained-attachment effect.
Named goals reject another held object before planning and request terminal effect verification without changing its verified attachment transform. Omission retains the existing effectless transport contract.
-
object_target_pose:
Tensor|SceneEntityPose Object target pose or ordered waypoints.
Accepts
(4, 4),(num_envs, 4, 4)or(num_envs, n_waypoint, 4, 4); every waypoint retains the held grasp.
-
world_yaw_free:
bool Permit world-Z yaw changes at the final waypoint, retaining its position.
Intermediate waypoints remain exact. Planning tries the nominal heading first, then seven 45-degree heading alternatives; each complete path must pass the motion generator’s normal checks. This is not an exhaustive search.
- class embodichain.lab.sim.atomic_skills.primitives.JointPositionGoal[source]
Explicit or named joint-space goal for a bound robot resource.
Methods:
__init__(target)Attributes:
targetJoint waypoints, a named command, or a timed full-robot trajectory.
- __init__(target)
-
target:
Tensor|str|TimedTrajectory|ObservedJointTrajectory Joint waypoints, a named command, or a timed full-robot trajectory.
Authored and observed timed motion require dynamic collision planning to be disabled. An observed motion resolves later samples after earlier commands have executed.
- class embodichain.lab.sim.atomic_skills.primitives.MoveEndEffector[source]
Plan a free-space move for a bound manipulator.
Classes:
GoalTypealias of
EndEffectorPoseGoalOptionsTypealias of
MoveEndEffectorOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
- GoalType
alias of
EndEffectorPoseGoal
- OptionsType
alias of
MoveEndEffectorOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})),), constraints=()),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'move_end_effector'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.MoveEndEffectorOptions[source]
Per-invocation behavior for
MoveEndEffector.Methods:
__init__([preserve_cartesian_samples])Attributes:
preserve_cartesian_samplesExecute the supplied Cartesian samples on the control grid.
- __init__(preserve_cartesian_samples=False)
-
preserve_cartesian_samples:
bool Execute the supplied Cartesian samples on the control grid.
- class embodichain.lab.sim.atomic_skills.primitives.MoveHeldObject[source]
Move the held object through exact target poses with a closed hand.
Requested orientations are exact unless final world yaw is explicitly free. Callers that need a transport orientation must encode it in
HeldObjectPoseGoal; this action never substitutes an implicit end-effector orientation.Classes:
GoalTypealias of
HeldObjectPoseGoalOptionsTypealias of
MoveHeldObjectOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
- GoalType
alias of
HeldObjectPoseGoal
- OptionsType
alias of
MoveHeldObjectOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'move_held_object'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.MoveHeldObjectOptions[source]
Per-invocation held-object transport behavior.
Methods:
__init__()- __init__()
- class embodichain.lab.sim.atomic_skills.primitives.MoveJoints[source]
Plan joint motion from the observed state to one or more waypoints.
Classes:
GoalTypealias of
JointPositionGoalOptionsTypealias of
MoveJointsOptionsAttributes:
agent_visibleWhether an Action Agent should expose this skill by default.
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
Methods:
continue_plan(request, context, plan, ...)Resolve another observed range within the existing MoveJoints invocation.
- GoalType
alias of
JointPositionGoal
- OptionsType
alias of
MoveJointsOptions
- agent_visible: ClassVar[bool] = True
Whether an Action Agent should expose this skill by default.
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.joint_position'}), required_commands=mappingproxy({})),), constraints=()),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]
Resolve another observed range within the existing MoveJoints invocation.
- Parameters:
request (
ResolvedSkillRequest[JointPositionGoal,MoveJointsOptions]) – The unchanged grounded invocation.context (
PlanningContext) – Observations from the last acknowledged control step.plan (
SkillPlan) – Completed chunk and its command cursor.active_mask (
Tensor) – Rows that executed the completed chunk.
- Return type:
- Returns:
Accepted rows and their next timed plan, if more commands remain.
- skill_id: ClassVar[str] = 'move_joints'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.MoveJointsOptions[source]
Per-invocation behavior for
MoveJoints.Methods:
__init__([preserve_samples, ...])Attributes:
preserve_samplesKeep authored joint samples at host cadence, rejecting overspeed rows.
preserve_velocity_samplesRetain explicit arrival velocities, including the ends of consecutive timed phases.
- __init__(preserve_samples=False, preserve_velocity_samples=False)
-
preserve_samples:
bool Keep authored joint samples at host cadence, rejecting overspeed rows.
-
preserve_velocity_samples:
bool Retain explicit arrival velocities, including the ends of consecutive timed phases.
- class embodichain.lab.sim.atomic_skills.primitives.ObservedJointTrajectory[source]
One timed joint motion resolved at declared observation boundaries.
- Parameters:
source_id (
str) – Engine-local identifier owned by the episode’s command source.phase (
str) – Source-local name for this motion.chunk_lengths (
tuple[int,...]) – One positive command count per chunk, in execution order.
Methods:
__init__(source_id, phase, chunk_lengths)- __init__(source_id, phase, chunk_lengths)
- class embodichain.lab.sim.atomic_skills.primitives.ObservedJointTrajectorySource[source]
Episode-owned source of live full-robot commands for MoveJoints.
Methods:
__init__(*args, **kwargs)resolve(phase, start, stop, context, active_mask)Resolve timed commands without dispatching or advancing the simulation.
- __init__(*args, **kwargs)
- resolve(phase, start, stop, context, active_mask)[source]
Resolve timed commands without dispatching or advancing the simulation.
- Parameters:
phase (
str) – Source-local motion name from the goal.start (
int) – First command index, zero-based within the phase.stop (
int) – Exclusive end command index.context (
PlanningContext) – Fresh observations, or an isolated nominal preview context.active_mask (
Tensor) – Rows eligible to execute the chunk.
- Return type:
- Returns:
One full-robot command per requested control step and row.
- class embodichain.lab.sim.atomic_skills.primitives.OpenDoor[source]
Approach, grasp, rotate a door about its hinge, release, and retract.
Classes:
GoalTypealias of
OpenDoorGoalOptionsTypealias of
OpenDoorOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
OpenDoorGoal
- OptionsType
alias of
OpenDoorOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'open_door'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.OpenDoorGoal[source]
Door handle and desired absolute opening state.
Methods:
__init__(semantics, target_pose, open_fraction)Attributes:
open_fractionDesired hinge position normalized from its closed to open legal endpoint.
target_poseHandle-link pose snapshot or late-bound scene-entity reference.
- __init__(semantics, target_pose, open_fraction)
-
open_fraction:
float|Tensor Desired hinge position normalized from its closed to open legal endpoint.
-
target_pose:
Tensor|SceneEntityPose Handle-link pose snapshot or late-bound scene-entity reference.
- class embodichain.lab.sim.atomic_skills.primitives.OpenDoorOptions[source]
Per-invocation approach, interpolation, release, and retract behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
approach_distancePre-grasp distance opposite the automatically inferred approach axis.
door_waypoint_countNumber of Cartesian keyframes along the handle's circular arc.
hand_interp_stepsNumber of waypoints used for each close/open hand segment.
joint_position_toleranceTolerance for legal-limit and already-open comparisons in radians.
retract_distancePost-release retreat distance opposite the rotated approach axis.
- __init__(hand_interp_steps=5, door_waypoint_count=20, approach_distance=0.1, retract_distance=0.1, joint_position_tolerance=0.0001)
-
approach_distance:
float Pre-grasp distance opposite the automatically inferred approach axis.
-
door_waypoint_count:
int Number of Cartesian keyframes along the handle’s circular arc.
-
hand_interp_steps:
int Number of waypoints used for each close/open hand segment.
-
joint_position_tolerance:
float Tolerance for legal-limit and already-open comparisons in radians.
-
retract_distance:
float Post-release retreat distance opposite the rotated approach axis.
- class embodichain.lab.sim.atomic_skills.primitives.PickUp[source]
Approach a grasp pose, close the gripper, lift.
Attributes:
GoalTypeConcrete goal dataclass or dataclasses accepted by this skill.
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
Classes:
OptionsTypealias of
PickUpOptionsMethods:
continue_plan(request, context, plan, ...)Plan a later chunk without beginning another logical skill.
on_plan_installed(request, context, plan)Publish bookkeeping only after an execution plan was accepted.
- GoalType: ClassVar[tuple[type, ...]] = (<class 'embodichain.lab.sim.atomic_skills.primitives.pick_up.GraspGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactGraspGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.contact.ContactPickUpGoal'>)
Concrete goal dataclass or dataclasses accepted by this skill.
- OptionsType
alias of
PickUpOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.batch_inverse', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]
Plan a later chunk without beginning another logical skill.
- Parameters:
request (
ResolvedSkillRequest) – The unchanged resolved invocation.context (
PlanningContext) – Fresh observations with authoritative row identity and timing.plan (
SkillPlan) – Completed chunk and its owned continuation cursor.active_mask (
Tensor) – Eligible rows that executed the completed chunk.
- Return type:
- Returns:
Physical row acceptance and an optional later plan.
- on_plan_installed(request, context, plan)[source]
Publish bookkeeping only after an execution plan was accepted.
- Parameters:
request (
ResolvedSkillRequest) – The installed plan’s resolved invocation.context (
PlanningContext) – Observations used for this plan.plan (
SkillPlan) – Validated plan after destination and lifecycle acceptance.
- Return type:
None
- skill_id: ClassVar[str] = 'pick_up'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.PickUpOptions[source]
Per-invocation pickup behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
approach_alignment_max_angleOptional maximum TCP z-axis deviation from the approach direction.
approach_along_grasp_axisUse the realized calibrated TCP +Z for native pre-grasp translation.
approach_directionWorld approach direction, shared
(3,)or per-environment(B,3).cartesian_liftPreserve a straight world-Z lift with IK interpolation and native limits.
downstream_object_target_posesFuture object poses that must be reachable with the selected grasp.
fixed_object_to_eefOptional object-frame to end-effector SE(3) grasp calibration.
grasp_commit_fractionApproach fraction after which contact motion no longer invalidates grasp.
grasp_frame_to_eefCanonical grasp-frame to robot end-effector SE(3) calibration.
grasp_settle_stepsFully closed hold frames before lifting the end-effector.
grasp_variantSymmetric TCP-roll variant to select after feasibility screening.
hand_interp_stepsNumber of waypoints for the gripper-close interpolation segment.
initial_lift_heightInitial world-Z clearance (m) from the current TCP pose before approach.
lift_heightHeight (m) to lift the end-effector after closing the gripper.
obj_upright_directionOptional object local direction used to choose the upright grasp rotation.
pick_object_partName of the object part to pick up (used for grasp pose generation).
pre_grasp_distanceDistance to offset back from the grasp pose along the approach direction.
rotate_uprightOptional rotation (radians) about the grasp x-axis to apply after grasp selection.
- __init__(hand_interp_steps=5, grasp_settle_steps=0, pick_object_part='center', lift_height=0.1, pre_grasp_distance=0.15, grasp_commit_fraction=1.0, approach_direction=tensor([0., 0., -1.]), approach_alignment_max_angle=None, downstream_object_target_poses=(), obj_upright_direction=None, rotate_upright=None, grasp_frame_to_eef=tensor([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), fixed_object_to_eef=None, grasp_variant='closest', approach_along_grasp_axis=False, cartesian_lift=False, *, initial_lift_height=0.0)
-
approach_alignment_max_angle:
float|None Optional maximum TCP z-axis deviation from the approach direction.
-
approach_along_grasp_axis:
bool Use the realized calibrated TCP +Z for native pre-grasp translation.
Requires
fixed_object_to_eef. The approach then follows the object’s observed rotation instead of a shared world vector.
-
approach_direction:
Tensor World approach direction, shared
(3,)or per-environment(B,3).
-
cartesian_lift:
bool Preserve a straight world-Z lift with IK interpolation and native limits.
Mutually exclusive with explicit
MotionPolicy.phase_paths.
-
downstream_object_target_poses:
tuple[Tensor|SceneEntityPose,...] Future object poses that must be reachable with the selected grasp.
-
fixed_object_to_eef:
Tensor|None Optional object-frame to end-effector SE(3) grasp calibration.
When no explicit goal grasp is supplied, this transform bypasses affordance sampling and the sampled-grasp orientation/calibration adjustments.
-
grasp_commit_fraction:
float Approach fraction after which contact motion no longer invalidates grasp.
-
grasp_frame_to_eef:
Tensor Canonical grasp-frame to robot end-effector SE(3) calibration.
-
grasp_settle_steps:
int Fully closed hold frames before lifting the end-effector.
-
grasp_variant:
str Symmetric TCP-roll variant to select after feasibility screening.
The default
"closest"preserves selection of the feasible original or mirrored grasp with the smallest rotation error from the current TCP."original"and"mirrored"force one side and report an infeasible pickup when that side cannot pass the kinematic checks. Explicit goal grasps andfixed_object_to_eefbypass this sampled-grasp selection.
-
hand_interp_steps:
int Number of waypoints for the gripper-close interpolation segment.
-
initial_lift_height:
float Initial world-Z clearance (m) from the current TCP pose before approach.
-
lift_height:
float Height (m) to lift the end-effector after closing the gripper.
-
obj_upright_direction:
Tensor|None Optional object local direction used to choose the upright grasp rotation.
-
pick_object_part:
str Name of the object part to pick up (used for grasp pose generation). Currently support [center | top | bottom].
-
pre_grasp_distance:
float Distance to offset back from the grasp pose along the approach direction.
-
rotate_upright:
float|None Optional rotation (radians) about the grasp x-axis to apply after grasp selection.
- class embodichain.lab.sim.atomic_skills.primitives.Place[source]
Lower the held object to a place pose, open the gripper, retract.
The
PlaceGoalmay carry either a single waypoint(num_envs, 4, 4)(or a broadcastable(4, 4)) or a multi-waypoint trajectory(num_envs, n_waypoint, 4, 4). In the multi-waypoint case the approach segment visits every waypoint in order; approaching from above the first waypoint, descending through each waypoint, then opening the gripper at the final waypoint and retracting to above the last waypoint. Starting joint positions are inherited fromPlanningContext.An
AssembleGoalreplaces the explicit EEF pose with an assembly affordance: the place pose is derived from the base object’s snapshot pose andassemble_to_base_pose, converted to an EEF pose through the held object’sobject_to_eef(read fromPlanningContext).Attributes:
GoalTypeConcrete goal dataclass or dataclasses accepted by this skill.
binding_contractExplicit robot-independent requirements for semantic discovery.
skill_idStable registry identifier for this skill.
Classes:
OptionsTypealias of
PlaceOptionsMethods:
continue_plan(request, context, plan, ...)Plan a later chunk without beginning another logical skill.
on_plan_installed(request, context, plan)Publish bookkeeping only after an execution plan was accepted.
- GoalType: ClassVar[type | tuple[type, ...]] = (<class 'embodichain.lab.sim.atomic_skills.primitives.place.PlaceGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.place.AssembleGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.contact.ContactPlaceGoal'>)
Concrete goal dataclass or dataclasses accepted by this skill.
- OptionsType
alias of
PlaceOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]
Plan a later chunk without beginning another logical skill.
- Parameters:
request (
ResolvedSkillRequest) – The unchanged resolved invocation.context (
PlanningContext) – Fresh observations with authoritative row identity and timing.plan (
SkillPlan) – Completed chunk and its owned continuation cursor.active_mask (
Tensor) – Eligible rows that executed the completed chunk.
- Return type:
- Returns:
Physical row acceptance and an optional later plan.
- on_plan_installed(request, context, plan)[source]
Publish bookkeeping only after an execution plan was accepted.
- Parameters:
request (
ResolvedSkillRequest) – The installed plan’s resolved invocation.context (
PlanningContext) – Observations used for this plan.plan (
SkillPlan) – Validated plan after destination and lifecycle acceptance.
- Return type:
None
- skill_id: ClassVar[str] = 'place'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.PlaceGoal[source]
End-effector release-pose target used by
Place.Methods:
__init__(xpos[, tcp_symmetry])Attributes:
tcp_symmetryOptional TCP-frame symmetry allowed by the placement semantics.
xposTarget end-effector release pose.
- __init__(xpos, tcp_symmetry='none')
-
tcp_symmetry:
Literal['none','z_roll_180'] Optional TCP-frame symmetry allowed by the placement semantics.
"none"preserves the pose exactly."z_roll_180"lets placement choose between the pose and its TCP z-roll 180 equivalent, which flips TCP x/y while preserving TCP z and translation.
-
xpos:
Tensor|SceneEntityPose Target end-effector release pose.
Accepts
(4, 4),(num_envs, 4, 4), or(num_envs, n_waypoint, 4, 4).
- class embodichain.lab.sim.atomic_skills.primitives.PlaceOptions[source]
Per-invocation placement behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
approach_lift_heightHeight (m) above the first place pose during approach.
cartesian_approachFollow the approach with sampled Cartesian poses under joint motion limits.
cartesian_waypoint_countNumber of fixed-orientation Cartesian keyframes per translation segment.
hand_interp_stepsNumber of waypoints for the gripper-open interpolation segment.
lift_heightHeight (m) to retract the end-effector after opening the gripper.
max_approach_retract_zOptional maximum world-frame TCP z for approach and retract poses (m).
preserve_current_object_orientationKeep the held object's observed world orientation at the place target.
release_settle_durationMinimum physical seconds to hold open in a newly planned native Place.
release_settle_stepsFully open hold frames before retracting the end-effector.
- __init__(hand_interp_steps=5, release_settle_steps=0, lift_height=0.1, max_approach_retract_z=None, cartesian_waypoint_count=1, preserve_current_object_orientation=False, *, release_settle_duration=0.0, approach_lift_height=None, cartesian_approach=False)
-
approach_lift_height:
float|None Height (m) above the first place pose during approach. Defaults to lift_height.
-
cartesian_approach:
bool Follow the approach with sampled Cartesian poses under joint motion limits.
Mutually exclusive with explicit
MotionPolicy.phase_paths.
-
cartesian_waypoint_count:
int Number of fixed-orientation Cartesian keyframes per translation segment.
-
hand_interp_steps:
int Number of waypoints for the gripper-open interpolation segment.
-
lift_height:
float Height (m) to retract the end-effector after opening the gripper.
-
max_approach_retract_z:
float|None Optional maximum world-frame TCP z for approach and retract poses (m).
-
preserve_current_object_orientation:
bool Keep the held object’s observed world orientation at the place target.
-
release_settle_duration:
float Minimum physical seconds to hold open in a newly planned native Place.
Rounded upward to control intervals and combined with release_settle_steps using the larger hold. This is actuation time, not an acceptance tolerance. External nominal sources retain their authored release timing unchanged.
-
release_settle_steps:
int Fully open hold frames before retracting the end-effector.
- class embodichain.lab.sim.atomic_skills.primitives.Pour[source]
Rotate and return an exclusively held object about its internal axis.
Classes:
GoalTypealias of
PourGoalOptionsTypealias of
PourOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
PourGoal
- OptionsType
alias of
PourOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'pour'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.PourGoal[source]
Pour toward an opening, or rotate in place when no target is supplied.
- Parameters:
target (
PourTarget|None) – Receiving and source-mouth geometry. Omitting it retains the original signed rotation about the source’s internal axis.reference_object_pose (
Tensor|SceneEntityPose|None) – Optional authored upright object pose for local-axis tilt and return, exclusive withtarget. Omission uses the held pose at the actual start joints.
Methods:
__init__([target, reference_object_pose])- __init__(target=None, *, reference_object_pose=None)
- class embodichain.lab.sim.atomic_skills.primitives.PourOptions[source]
Per-invocation pouring behavior.
Methods:
__init__([rotate_angle, dwell_duration, ...])Attributes:
approach_distanceExtra lateral clearance outside the receiving opening before tilt.
clearanceSource bounding-box clearance above the receiver plane, in metres.
dwell_durationMinimum time to remain at the poured orientation, in seconds.
max_mouth_heightMaximum mouth height considered for a targeted pour, in metres.
max_rotation_stepMaximum angular spacing of mouth-compensated Cartesian keyframes.
mouth_heightPreferred mouth height above the receiver opening plane, in metres.
rotate_angleSigned rotation about the held object's local internal axis, in radians.
rotation_durationMinimum time allocated to each outward and return rotation, in seconds.
- __init__(rotate_angle=0.7853981633974483, dwell_duration=0.5, rotation_duration=None, mouth_height=0.08, max_mouth_height=0.25, clearance=0.025, approach_distance=0.04, max_rotation_step=0.08726646259971647)
-
approach_distance:
float Extra lateral clearance outside the receiving opening before tilt.
-
clearance:
float Source bounding-box clearance above the receiver plane, in metres.
-
dwell_duration:
float Minimum time to remain at the poured orientation, in seconds.
-
max_mouth_height:
float Maximum mouth height considered for a targeted pour, in metres.
-
max_rotation_step:
float Maximum angular spacing of mouth-compensated Cartesian keyframes.
-
mouth_height:
float Preferred mouth height above the receiver opening plane, in metres.
-
rotate_angle:
float Signed rotation about the held object’s local internal axis, in radians.
-
rotation_duration:
float|None Minimum time allocated to each outward and return rotation, in seconds.
- class embodichain.lab.sim.atomic_skills.primitives.PourTarget[source]
Geometry of a receiving opening and the held object’s mouth.
- Parameters:
receiver_pose (
Tensor|SceneEntityPose) – World opening pose, optionally a live scene reference. Its +Z is the outward opening normal.source_mouth_pose (
Tensor) – Mouth frame relative to the held object. Its +Z points out of the mouth when the source is upright.receiver_radius (
float) – Usable circular opening radius, in metres.mouth_radius (
float) – Conservative source mouth radius, in metres.
Methods:
__init__(receiver_pose, source_mouth_pose, ...)- __init__(receiver_pose, source_mouth_pose, receiver_radius, mouth_radius)
- class embodichain.lab.sim.atomic_skills.primitives.Press[source]
Open-loop motion primitive that approaches, presses, and retracts.
Classes:
GoalTypealias of
PressGoalOptionsTypealias of
PressOptionsPlanningRecoveryTypealias of
PressPlanningRecoveryAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
PressGoal
- OptionsType
alias of
PressOptions
- PlanningRecoveryType
alias of
PressPlanningRecovery
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'press'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.PressGoal[source]
Target object described by a press affordance.
Methods:
__init__(semantics, target_pose)Attributes:
target_poseTarget pose snapshot or late-bound stable scene-entity reference.
- __init__(semantics, target_pose)
-
target_pose:
Tensor|SceneEntityPose Target pose snapshot or late-bound stable scene-entity reference.
- class embodichain.lab.sim.atomic_skills.primitives.PressOptions[source]
Per-invocation pressing behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
approach_distanceDistance from the press position opposite the press direction.
contact_roll_alternativesAllowed extra contact-frame rolls in radians; point and press axis stay fixed.
hand_interp_stepsNumber of waypoints used to close the hand.
press_distanceDistance traveled into the target along its press axis.
press_positionOptional local-frame position overriding the affordance press position.
- __init__(hand_interp_steps=5, approach_distance=0.1, press_distance=0.05, press_position=None, contact_roll_alternatives=())
-
approach_distance:
float Distance from the press position opposite the press direction.
-
contact_roll_alternatives:
tuple[float,...] Allowed extra contact-frame rolls in radians; point and press axis stay fixed.
Planning these alternatives requires an explicit PressPlanningRecovery. The source-compatible declaration supplies only
(pi / 2,).
-
hand_interp_steps:
int Number of waypoints used to close the hand.
-
press_distance:
float Distance traveled into the target along its press axis.
-
press_position:
tuple[float,float,float] |None Optional local-frame position overriding the affordance press position.
- class embodichain.lab.sim.atomic_skills.primitives.PressPlanningRecovery[source]
Failure-only B1 Press planning rules with the fixed source attempt budget.
The two complete plans include the nominal plan and at most one declared contact-roll alternative. Failed Cartesian phases may use the shared bounded IK continuation on unchanged targets and time. Inner IK search limits remain owned by the motion service. Separate dense-grid engine attempts each get a fresh local scope; this declaration does not change their RNG boundary.
Methods:
__init__()- __init__()
- class embodichain.lab.sim.atomic_skills.primitives.PushObject[source]
Close the end effector, contact a rigid object, and push it in-plane.
Classes:
GoalTypealias of
PushObjectGoalOptionsTypealias of
PushObjectOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
PushObjectGoal
- OptionsType
alias of
PushObjectOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'push_object'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.PushObjectGoal[source]
Push one rigid object toward a target pose on the target support plane.
Methods:
__init__(semantics, target_pose)Attributes:
target_poseDesired object pose or a late-bound scene-entity target reference.
- __init__(semantics, target_pose)
- target_pose: PoseGoalValue
Desired object pose or a late-bound scene-entity target reference.
- class embodichain.lab.sim.atomic_skills.primitives.PushObjectOptions[source]
Per-invocation planar pushing behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
approach_heightDistance above the contact pose used for the free-space approach.
completion_tolerancePlanar target distance at which the action succeeds without moving.
contact_distanceInitial planar clearance behind the object along the push direction.
contact_frame_to_eefContact-frame to robot end-effector SE(3) calibration.
hand_interp_stepsNumber of waypoints used to close the end effector before approach.
object_contact_offsetObject-local point used as the center of the planar contact frame.
push_overshootAdditional end-effector travel beyond the object's target displacement.
retract_heightDistance above the pushed pose used for the final retraction.
support_frame_planar_contact_offsetOptional target-support-frame override for the contact's planar offset.
tool_calibrationsPer-control-part tool-frame overrides for asymmetric robot arms.
- __init__(hand_interp_steps=5, approach_height=0.1, retract_height=0.1, contact_distance=0.03, push_overshoot=0.0, completion_tolerance=0.0, object_contact_offset=tensor([0., 0., 0.]), support_frame_planar_contact_offset=None, contact_frame_to_eef=tensor([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.], [0., 0., 0., 1.]]), tool_calibrations=())
-
approach_height:
float Distance above the contact pose used for the free-space approach.
-
completion_tolerance:
float Planar target distance at which the action succeeds without moving.
-
contact_distance:
float Initial planar clearance behind the object along the push direction.
-
contact_frame_to_eef:
Tensor Contact-frame to robot end-effector SE(3) calibration.
-
hand_interp_steps:
int Number of waypoints used to close the end effector before approach.
-
object_contact_offset:
Tensor Object-local point used as the center of the planar contact frame.
-
push_overshoot:
float Additional end-effector travel beyond the object’s target displacement.
-
retract_height:
float Distance above the pushed pose used for the final retraction.
-
support_frame_planar_contact_offset:
Tensor|None Optional target-support-frame override for the contact’s planar offset.
-
tool_calibrations:
tuple[PushObjectToolCalibration,...] Per-control-part tool-frame overrides for asymmetric robot arms.
- class embodichain.lab.sim.atomic_skills.primitives.PushObjectToolCalibration[source]
End-effector calibration selected by a bound motion control part.
- Parameters:
control_part (
str) – Exact motion control-part identifier that selects this calibration.contact_frame_to_eef (
Tensor) – Contact-frame to robot end-effector SE(3) calibration.contact_distance (
float|None) – Optional tool-specific planar clearance behind the object.NoneusesPushObjectOptions’ default.
Methods:
__init__(control_part, contact_frame_to_eef)Attributes:
contact_distanceOptional tool-specific planar clearance behind the object.
contact_frame_to_eefContact-frame to robot end-effector SE(3) calibration.
control_partExact motion control-part identifier that selects this calibration.
- __init__(control_part, contact_frame_to_eef, contact_distance=None)
-
contact_distance:
float|None Optional tool-specific planar clearance behind the object.
-
contact_frame_to_eef:
Tensor Contact-frame to robot end-effector SE(3) calibration.
-
control_part:
str Exact motion control-part identifier that selects this calibration.
- class embodichain.lab.sim.atomic_skills.primitives.Slide[source]
Open-loop approach, grasp, and axis-constrained sliding motion.
Classes:
GoalTypealias of
SlideGoalOptionsTypealias of
SlideOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
SlideGoal
- OptionsType
alias of
SlideOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'slide'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.SlideGoal[source]
Translating articulation link described by a slide affordance.
Methods:
__init__(semantics, target_pose, *[, ...])Attributes:
joint_targetOptional absolute joint intent; otherwise preserve fixed-distance Options.
target_poseLink pose snapshot or late-bound stable scene-entity reference.
- __init__(semantics, target_pose, *, joint_target=None)
-
joint_target:
SlideJointTarget|None Optional absolute joint intent; otherwise preserve fixed-distance Options.
Joint-target mode resolves fresh row-local distances and the pull/push direction during planning. Active rows must share one direction; already satisfied rows hold their observed pose. This does not verify physical effect.
-
target_pose:
Tensor|SceneEntityPose Link pose snapshot or late-bound stable scene-entity reference.
- class embodichain.lab.sim.atomic_skills.primitives.SlideJointTarget[source]
Absolute prismatic coordinate, in metres, with a calibrated axis sign.
- Parameters:
articulation_id (
str) – Canonical articulation identity in the scene snapshot.joint_name (
str) – Exact observed prismatic joint name.position (
float) – Requested absolute joint position in metres.axis_sign (
int) – Maps increasing joint position to the affordance axis (+1/-1).tolerance (
float) – Position tolerance for an already-satisfied planning row.
Methods:
__init__(articulation_id, joint_name, position)- __init__(articulation_id, joint_name, position, tolerance=0.0001, *, axis_sign)
- class embodichain.lab.sim.atomic_skills.primitives.SlideOptions[source]
Per-invocation sliding behavior for a translating articulation link.
Methods:
__init__([direction, hand_interp_steps, ...])Attributes:
approach_along_grasp_axisApproach along grasp Z instead of the rail axis; rail motion is unchanged.
approach_distancePre-grasp distance opposite the approach/push axis.
directionWhether to pull the part open or push it closed.
hand_interp_stepsNumber of waypoints used for each close/open hand segment.
preshape_fractionFraction from the bound open to grasp command during approach and reach.
push_approach_offsetWorld XYZ offset (m) from the pre-grasp pose for an extra push waypoint.
release_retreat_distanceDistance opposite grasp Z while opening; zero holds the arm still.
translation_distanceDistance traveled along the pull or push direction.
- __init__(direction='pull', hand_interp_steps=5, approach_distance=0.1, translation_distance=0.15, preshape_fraction=0.0, approach_along_grasp_axis=False, release_retreat_distance=0.0, push_approach_offset=None)
-
approach_along_grasp_axis:
bool Approach along grasp Z instead of the rail axis; rail motion is unchanged.
-
approach_distance:
float Pre-grasp distance opposite the approach/push axis.
-
direction:
Literal['pull','push'] Whether to pull the part open or push it closed.
-
hand_interp_steps:
int Number of waypoints used for each close/open hand segment.
-
preshape_fraction:
float Fraction from the bound open to grasp command during approach and reach.
-
push_approach_offset:
tuple[float,float,float] |None World XYZ offset (m) from the pre-grasp pose for an extra push waypoint.
-
release_retreat_distance:
float Distance opposite grasp Z while opening; zero holds the arm still.
-
translation_distance:
float Distance traveled along the pull or push direction.
- class embodichain.lab.sim.atomic_skills.primitives.Twist[source]
Open-loop approach, grasp, twist, release, and retract motion.
Classes:
GoalTypealias of
TwistGoalOptionsTypealias of
TwistOptionsAttributes:
binding_contractExplicit robot-independent requirements for semantic discovery.
open_loopWhether the skill intentionally declares no verified physical effect.
skill_idStable registry identifier for this skill.
- GoalType
alias of
TwistGoal
- OptionsType
alias of
TwistOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'twist'
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.TwistGoal[source]
Target object described by a twist affordance.
Methods:
__init__(semantics, target_pose)Attributes:
target_poseTarget pose snapshot or late-bound stable scene-entity reference.
- __init__(semantics, target_pose)
-
target_pose:
Tensor|SceneEntityPose Target pose snapshot or late-bound stable scene-entity reference.
- class embodichain.lab.sim.atomic_skills.primitives.TwistOptions[source]
Per-invocation twisting behavior.
Methods:
__init__([hand_interp_steps, ...])Attributes:
hand_interp_stepsNumber of waypoints used for each close/open hand segment.
pre_grasp_distanceDistance from the grasp pose along its negative z-axis.
twist_angleRequested twist rotation in radians.
twist_waypoint_countNumber of Cartesian keyframes along the target's circular twist arc.
- __init__(hand_interp_steps=5, twist_waypoint_count=8, pre_grasp_distance=0.1, twist_angle=0.7853981633974483)
-
hand_interp_steps:
int Number of waypoints used for each close/open hand segment.
-
pre_grasp_distance:
float Distance from the grasp pose along its negative z-axis.
-
twist_angle:
float Requested twist rotation in radians.
-
twist_waypoint_count:
int Number of Cartesian keyframes along the target’s circular twist arc.
- embodichain.lab.sim.atomic_skills.primitives.validate_press_extra_distance(value)[source]
Validate an optional declaration-owned addition to an authored press stroke.
- Parameters:
value (
float|None) – Additional travel in metres, or None to retain the declaration’s existing selection. Exact Python integers/floats in[0, 0.010]are accepted; booleans and non-finite values are rejected.- Raises:
ValueError – The value is outside the supported declaration contract.
- Return type:
None
This does not change
PressOptionsdefaults or certify physical travel. The caller still owns the authored stroke and measured acceptance.
Overview#
Concrete implementations of the built-in atomic-action primitives. Each
primitive is an AtomicSkill that
accepts a ResolvedSkillRequest and a
PlanningContext. Planning returns a
side-effect-free SkillPlan with a
full-robot timed trajectory and uncommitted expected effects.
Built-in Primitive Actions
MoveEndEffectorPlan a free-space move for a bound manipulator.
MoveEndEffectorOptionsPer-invocation behavior for
MoveEndEffector.
MoveJointsPlan joint motion from the observed state to one or more waypoints.
MoveJointsOptionsPer-invocation behavior for
MoveJoints.
PickUpApproach a grasp pose, close the gripper, lift.
PickUpOptionsPer-invocation pickup behavior.
AxisAlignGrasp an object and align its local axis to a world axis.
AxisAlignOptionsPer-invocation grasp-and-axis-alignment behavior.
MoveHeldObjectMove the held object through exact target poses with a closed hand.
MoveHeldObjectOptionsPer-invocation held-object transport behavior.
PourRotate and return an exclusively held object about its internal axis.
PourOptionsPer-invocation pouring behavior.
PushObjectClose the end effector, contact a rigid object, and push it in-plane.
PushObjectOptionsPer-invocation planar pushing behavior.
PushObjectToolCalibrationEnd-effector calibration selected by a bound motion control part.
PlaceLower the held object to a place pose, open the gripper, retract.
PlaceOptionsPer-invocation placement behavior.
PressOpen-loop motion primitive that approaches, presses, and retracts.
PressOptionsPer-invocation pressing behavior.
SlideOpen-loop approach, grasp, and axis-constrained sliding motion.
SlideOptionsPer-invocation sliding behavior for a translating articulation link.
OpenDoorApproach, grasp, rotate a door about its hinge, release, and retract.
OpenDoorOptionsPer-invocation approach, interpolation, release, and retract behavior.
TwistOpen-loop approach, grasp, twist, release, and retract motion.
TwistOptionsPer-invocation twisting behavior.
CoordinatedPickmentPick and move a single object pinched by two hands.
CoordinatedPickmentOptionsPer-invocation coordinated pickup behavior.
CoordinatedPlacementCoordinate two held objects: support object below, placing object above.
CoordinatedPlacementOptionsPer-invocation coordinated placement behavior.
HandOverPick an object with the nearer arm and transfer it to the other arm.
HandOverGoalObject to pick and hand over, plus its final object pose.
HandOverOptionsPer-invocation pick-up, handover, and placement behavior.
Built-in Goal Contracts
EndEffectorPoseGoalEnd-effector pose goal with optional batched intermediate waypoints.
JointPositionGoalExplicit or named joint-space goal for a bound robot resource.
GraspGoalPickup target with an affordance-selected or supplied grasp pose.
AxisAlignGoalObject whose local axis should be aligned after an antipodal grasp.
HeldObjectPoseGoalDesired pose for the object held by this action's control part.
PourGoalPour toward an opening, or rotate in place when no target is supplied.
PushObjectGoalPush one rigid object toward a target pose on the target support plane.
PlaceGoalEnd-effector release-pose target used by
Place.
AssembleGoalPlace a held assemble object onto a base object at a relative pose.
PressGoalTarget object described by a press affordance.
SlideGoalTranslating articulation link described by a slide affordance.
OpenDoorGoalDoor handle and desired absolute opening state.
TwistGoalTarget object described by a twist affordance.
CoordinatedPickGoalObject-centric target for picking and moving one object with two hands.
CoordinatedPlacementGoalObject-centric target for dual-arm coordinated placement.
HandOverGoalObject to pick and hand over, plus its final object pose.
MoveEndEffector#
MoveEndEffector atomic skill implementation.
Classes:
End-effector pose goal with optional batched intermediate waypoints. |
|
Plan a free-space move for a bound manipulator. |
|
Per-invocation behavior for |
- class embodichain.lab.sim.atomic_skills.primitives.move_end_effector.EndEffectorPoseGoal[source]#
Bases:
objectEnd-effector pose goal with optional batched intermediate waypoints.
Attributes:
Homogeneous pose with shape
(4,4),(B,4,4)or(B,N,4,4).-
xpos:
Tensor|SceneEntityPose# Homogeneous pose with shape
(4,4),(B,4,4)or(B,N,4,4).
-
xpos:
- class embodichain.lab.sim.atomic_skills.primitives.move_end_effector.MoveEndEffector[source]#
Bases:
AtomicSkill[EndEffectorPoseGoal,MoveEndEffectorOptions]Plan a free-space move for a bound manipulator.
Classes:
alias of
EndEffectorPoseGoalalias of
MoveEndEffectorOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
- GoalType#
alias of
EndEffectorPoseGoal
- OptionsType#
alias of
MoveEndEffectorOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})),), constraints=()),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'move_end_effector'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.move_end_effector.MoveEndEffectorOptions[source]#
Bases:
SkillOptionsPer-invocation behavior for
MoveEndEffector.Attributes:
Execute the supplied Cartesian samples on the control grid.
-
preserve_cartesian_samples:
bool# Execute the supplied Cartesian samples on the control grid.
-
preserve_cartesian_samples:
MoveJoints#
MoveJoints atomic skill implementation.
Classes:
Explicit or named joint-space goal for a bound robot resource. |
|
Plan joint motion from the observed state to one or more waypoints. |
|
Per-invocation behavior for |
|
One timed joint motion resolved at declared observation boundaries. |
|
Episode-owned source of live full-robot commands for MoveJoints. |
- class embodichain.lab.sim.atomic_skills.primitives.move_joints.JointPositionGoal[source]#
Bases:
objectExplicit or named joint-space goal for a bound robot resource.
Attributes:
Joint waypoints, a named command, or a timed full-robot trajectory.
-
target:
Tensor|str|TimedTrajectory|ObservedJointTrajectory# Joint waypoints, a named command, or a timed full-robot trajectory.
Authored and observed timed motion require dynamic collision planning to be disabled. An observed motion resolves later samples after earlier commands have executed.
-
target:
- class embodichain.lab.sim.atomic_skills.primitives.move_joints.MoveJoints[source]#
Bases:
AtomicSkill[JointPositionGoal,MoveJointsOptions]Plan joint motion from the observed state to one or more waypoints.
Classes:
alias of
JointPositionGoalalias of
MoveJointsOptionsAttributes:
Whether an Action Agent should expose this skill by default.
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
Methods:
continue_plan(request, context, plan, ...)Resolve another observed range within the existing MoveJoints invocation.
- GoalType#
alias of
JointPositionGoal
- OptionsType#
alias of
MoveJointsOptions
- agent_visible: ClassVar[bool] = True#
Whether an Action Agent should expose this skill by default.
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.joint_position'}), required_commands=mappingproxy({})),), constraints=()),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]#
Resolve another observed range within the existing MoveJoints invocation.
- Parameters:
request (
ResolvedSkillRequest[JointPositionGoal,MoveJointsOptions]) – The unchanged grounded invocation.context (
PlanningContext) – Observations from the last acknowledged control step.plan (
SkillPlan) – Completed chunk and its command cursor.active_mask (
Tensor) – Rows that executed the completed chunk.
- Return type:
- Returns:
Accepted rows and their next timed plan, if more commands remain.
- skill_id: ClassVar[str] = 'move_joints'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.move_joints.MoveJointsOptions[source]#
Bases:
SkillOptionsPer-invocation behavior for
MoveJoints.Attributes:
Keep authored joint samples at host cadence, rejecting overspeed rows.
Retain explicit arrival velocities, including the ends of consecutive timed phases.
-
preserve_samples:
bool# Keep authored joint samples at host cadence, rejecting overspeed rows.
-
preserve_velocity_samples:
bool# Retain explicit arrival velocities, including the ends of consecutive timed phases.
-
preserve_samples:
- class embodichain.lab.sim.atomic_skills.primitives.move_joints.ObservedJointTrajectory[source]#
Bases:
objectOne timed joint motion resolved at declared observation boundaries.
- Parameters:
source_id (
str) – Engine-local identifier owned by the episode’s command source.phase (
str) – Source-local name for this motion.chunk_lengths (
tuple[int,...]) – One positive command count per chunk, in execution order.
- class embodichain.lab.sim.atomic_skills.primitives.move_joints.ObservedJointTrajectorySource[source]#
Bases:
ProtocolEpisode-owned source of live full-robot commands for MoveJoints.
Methods:
resolve(phase, start, stop, context, active_mask)Resolve timed commands without dispatching or advancing the simulation.
- resolve(phase, start, stop, context, active_mask)[source]#
Resolve timed commands without dispatching or advancing the simulation.
- Parameters:
phase (
str) – Source-local motion name from the goal.start (
int) – First command index, zero-based within the phase.stop (
int) – Exclusive end command index.context (
PlanningContext) – Fresh observations, or an isolated nominal preview context.active_mask (
Tensor) – Rows eligible to execute the chunk.
- Return type:
- Returns:
One full-robot command per requested control step and row.
PickUp#
PickUp atomic skill implementation.
Classes:
Contact-only pickup at an observed TCP pose in the planning frame. |
|
Approach, establish contact grasp and lift using an observed path source. |
|
Pickup target with an affordance-selected or supplied grasp pose. |
|
Approach a grasp pose, close the gripper, lift. |
|
Per-invocation pickup behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactGraspGoal[source]#
Bases:
objectContact-only pickup at an observed TCP pose in the planning frame.
- Parameters:
grasp_xpos (
Tensor|SceneEntityPose) – Explicit or late-bound grasp pose. The host supplies physical evidence that the target remains pinched during lift. The goal does not project a fixed object-to-tool relationship.
- class embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactPickUpGoal[source]#
Bases:
objectApproach, establish contact grasp and lift using an observed path source.
- Parameters:
source (
str) – Engine-local source identifier; its episode host retains ownership.phases (
tuple[ContactPhase,...]) – Bounded path containing exactly one grasp and its required evidence.
The source supplies physical acceptance; completion projects no rigid relation.
- class embodichain.lab.sim.atomic_skills.primitives.pick_up.GraspGoal[source]#
Bases:
ObjectSkillGoalPickup target with an affordance-selected or supplied grasp pose.
Attributes:
Optional end-effector grasp pose.
Optional explicit object pose used for grasp planning.
-
grasp_xpos:
Tensor|SceneEntityPose|None# Optional end-effector grasp pose.
When omitted,
PickUpuses the configured fixed object-relative grasp when available, otherwise it selects one from the target affordance. An explicit tensor or late-boundSceneEntityPoseskips grasp sampling. Late-bound poses also declare the scene dependency used by closed-loop execution recovery.
-
object_pose:
Tensor|SceneEntityPose|None# Optional explicit object pose used for grasp planning.
When omitted,
PickUpresolves the object’s pose from the scene snapshot identified byObjectSemantics.entity_id. Supplying a tensor is useful for vectorized benchmark runs: use one(4, 4)pose for every environment or a(num_envs, 4, 4)tensor with one pose per environment. No extra candidate dimension is introduced here; the environment batch itself represents the independent pose trials.A
SceneEntityPosecan also be supplied when the pose should be resolved from another scene entity. The explicit pose is only a planning input; it does not mutate the simulator object.
-
grasp_xpos:
- class embodichain.lab.sim.atomic_skills.primitives.pick_up.PickUp[source]#
Bases:
AtomicSkill[GraspGoal|ContactGraspGoal|ContactPickUpGoal,PickUpOptions]Approach a grasp pose, close the gripper, lift.
Attributes:
Concrete goal dataclass or dataclasses accepted by this skill.
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
Classes:
alias of
PickUpOptionsMethods:
continue_plan(request, context, plan, ...)Plan a later chunk without beginning another logical skill.
on_plan_installed(request, context, plan)Publish bookkeeping only after an execution plan was accepted.
- GoalType: ClassVar[tuple[type, ...]] = (<class 'embodichain.lab.sim.atomic_skills.primitives.pick_up.GraspGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactGraspGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.contact.ContactPickUpGoal'>)#
Concrete goal dataclass or dataclasses accepted by this skill.
- OptionsType#
alias of
PickUpOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.batch_inverse', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]#
Plan a later chunk without beginning another logical skill.
- Parameters:
request (
ResolvedSkillRequest) – The unchanged resolved invocation.context (
PlanningContext) – Fresh observations with authoritative row identity and timing.plan (
SkillPlan) – Completed chunk and its owned continuation cursor.active_mask (
Tensor) – Eligible rows that executed the completed chunk.
- Return type:
- Returns:
Physical row acceptance and an optional later plan.
- on_plan_installed(request, context, plan)[source]#
Publish bookkeeping only after an execution plan was accepted.
- Parameters:
request (
ResolvedSkillRequest) – The installed plan’s resolved invocation.context (
PlanningContext) – Observations used for this plan.plan (
SkillPlan) – Validated plan after destination and lifecycle acceptance.
- Return type:
None
- skill_id: ClassVar[str] = 'pick_up'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.pick_up.PickUpOptions[source]#
Bases:
SkillOptionsPer-invocation pickup behavior.
Attributes:
Optional maximum TCP z-axis deviation from the approach direction.
Use the realized calibrated TCP +Z for native pre-grasp translation.
World approach direction, shared
(3,)or per-environment(B,3).Preserve a straight world-Z lift with IK interpolation and native limits.
Future object poses that must be reachable with the selected grasp.
Optional object-frame to end-effector SE(3) grasp calibration.
Approach fraction after which contact motion no longer invalidates grasp.
Canonical grasp-frame to robot end-effector SE(3) calibration.
Fully closed hold frames before lifting the end-effector.
Symmetric TCP-roll variant to select after feasibility screening.
Number of waypoints for the gripper-close interpolation segment.
Initial world-Z clearance (m) from the current TCP pose before approach.
Height (m) to lift the end-effector after closing the gripper.
Optional object local direction used to choose the upright grasp rotation.
Name of the object part to pick up (used for grasp pose generation).
Distance to offset back from the grasp pose along the approach direction.
Optional rotation (radians) about the grasp x-axis to apply after grasp selection.
-
approach_alignment_max_angle:
float|None# Optional maximum TCP z-axis deviation from the approach direction.
-
approach_along_grasp_axis:
bool# Use the realized calibrated TCP +Z for native pre-grasp translation.
Requires
fixed_object_to_eef. The approach then follows the object’s observed rotation instead of a shared world vector.
-
approach_direction:
Tensor# World approach direction, shared
(3,)or per-environment(B,3).
-
cartesian_lift:
bool# Preserve a straight world-Z lift with IK interpolation and native limits.
Mutually exclusive with explicit
MotionPolicy.phase_paths.
-
downstream_object_target_poses:
tuple[Tensor|SceneEntityPose,...]# Future object poses that must be reachable with the selected grasp.
-
fixed_object_to_eef:
Tensor|None# Optional object-frame to end-effector SE(3) grasp calibration.
When no explicit goal grasp is supplied, this transform bypasses affordance sampling and the sampled-grasp orientation/calibration adjustments.
-
grasp_commit_fraction:
float# Approach fraction after which contact motion no longer invalidates grasp.
-
grasp_frame_to_eef:
Tensor# Canonical grasp-frame to robot end-effector SE(3) calibration.
-
grasp_settle_steps:
int# Fully closed hold frames before lifting the end-effector.
-
grasp_variant:
str# Symmetric TCP-roll variant to select after feasibility screening.
The default
"closest"preserves selection of the feasible original or mirrored grasp with the smallest rotation error from the current TCP."original"and"mirrored"force one side and report an infeasible pickup when that side cannot pass the kinematic checks. Explicit goal grasps andfixed_object_to_eefbypass this sampled-grasp selection.
-
hand_interp_steps:
int# Number of waypoints for the gripper-close interpolation segment.
-
initial_lift_height:
float# Initial world-Z clearance (m) from the current TCP pose before approach.
-
lift_height:
float# Height (m) to lift the end-effector after closing the gripper.
-
obj_upright_direction:
Tensor|None# Optional object local direction used to choose the upright grasp rotation.
-
pick_object_part:
str# Name of the object part to pick up (used for grasp pose generation). Currently support [center | top | bottom].
-
pre_grasp_distance:
float# Distance to offset back from the grasp pose along the approach direction.
-
rotate_upright:
float|None# Optional rotation (radians) about the grasp x-axis to apply after grasp selection.
-
approach_alignment_max_angle:
AxisAlign#
AxisAlign atomic skill implementation.
Classes:
Grasp an object and align its local axis to a world axis. |
|
Object whose local axis should be aligned after an antipodal grasp. |
|
Per-invocation grasp-and-axis-alignment behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.axis_align.AxisAlign[source]#
Bases:
AtomicSkill[AxisAlignGoal,AxisAlignOptions]Grasp an object and align its local axis to a world axis.
Classes:
alias of
AxisAlignGoalalias of
AxisAlignOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- GoalType#
alias of
AxisAlignGoal
- OptionsType#
alias of
AxisAlignOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'axis_align'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.axis_align.AxisAlignGoal[source]#
Bases:
ObjectSkillGoalObject whose local axis should be aligned after an antipodal grasp.
Attributes:
Optional explicit end-effector grasp pose; omitted poses are sampled.
-
grasp_xpos:
Tensor|SceneEntityPose|None# Optional explicit end-effector grasp pose; omitted poses are sampled.
-
grasp_xpos:
- class embodichain.lab.sim.atomic_skills.primitives.axis_align.AxisAlignOptions[source]#
Bases:
PickUpOptionsPer-invocation grasp-and-axis-alignment behavior.
Attributes:
World translation from the lifted object centre,
(3,)or(B,3).Rotation about the aligned world target axis after the shortest arc.
Desired world-frame axis, shape
(3,)or(B, 3).-
alignment_offset_m:
Tensor# World translation from the lifted object centre,
(3,)or(B,3).This freezes a position realisation without changing the directed axis. Zero retains the original fixed-centre behavior.
-
alignment_twist_rad:
float|Tensor# Rotation about the aligned world target axis after the shortest arc.
A scalar applies to every row; a tensor may be scalar or shaped
(B,). This chooses the otherwise free object heading without changing its directed axis goal. Zero preserves the shortest-arc realisation.
-
target_axis:
Tensor# Desired world-frame axis, shape
(3,)or(B, 3).
-
alignment_offset_m:
MoveHeldObject#
MoveHeldObject atomic skill implementation.
Classes:
Desired pose for the object held by this action's control part. |
|
Move the held object through exact target poses with a closed hand. |
|
Per-invocation held-object transport behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.move_held_object.HeldObjectPoseGoal[source]#
Bases:
objectDesired pose for the object held by this action’s control part.
Attributes:
Optional exact held-object identity and retained-attachment effect.
Object target pose or ordered waypoints.
Permit world-Z yaw changes at the final waypoint, retaining its position.
-
object_id:
str|None# Optional exact held-object identity and retained-attachment effect.
Named goals reject another held object before planning and request terminal effect verification without changing its verified attachment transform. Omission retains the existing effectless transport contract.
-
object_target_pose:
Tensor|SceneEntityPose# Object target pose or ordered waypoints.
Accepts
(4, 4),(num_envs, 4, 4)or(num_envs, n_waypoint, 4, 4); every waypoint retains the held grasp.
-
world_yaw_free:
bool# Permit world-Z yaw changes at the final waypoint, retaining its position.
Intermediate waypoints remain exact. Planning tries the nominal heading first, then seven 45-degree heading alternatives; each complete path must pass the motion generator’s normal checks. This is not an exhaustive search.
-
object_id:
- class embodichain.lab.sim.atomic_skills.primitives.move_held_object.MoveHeldObject[source]#
Bases:
AtomicSkill[HeldObjectPoseGoal,MoveHeldObjectOptions]Move the held object through exact target poses with a closed hand.
Requested orientations are exact unless final world yaw is explicitly free. Callers that need a transport orientation must encode it in
HeldObjectPoseGoal; this action never substitutes an implicit end-effector orientation.Classes:
alias of
HeldObjectPoseGoalalias of
MoveHeldObjectOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
- GoalType#
alias of
HeldObjectPoseGoal
- OptionsType#
alias of
MoveHeldObjectOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'move_held_object'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.move_held_object.MoveHeldObjectOptions[source]#
Bases:
SkillOptionsPer-invocation held-object transport behavior.
Pour#
Pour atomic skill implementation.
Classes:
Rotate and return an exclusively held object about its internal axis. |
|
Pour toward an opening, or rotate in place when no target is supplied. |
|
Per-invocation pouring behavior. |
|
Geometry of a receiving opening and the held object's mouth. |
- class embodichain.lab.sim.atomic_skills.primitives.pour.Pour[source]#
Bases:
AtomicSkill[PourGoal,PourOptions]Rotate and return an exclusively held object about its internal axis.
Classes:
alias of
PourGoalalias of
PourOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- OptionsType#
alias of
PourOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'pour'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.pour.PourGoal[source]#
Bases:
objectPour toward an opening, or rotate in place when no target is supplied.
- Parameters:
target (
PourTarget|None) – Receiving and source-mouth geometry. Omitting it retains the original signed rotation about the source’s internal axis.reference_object_pose (
Tensor|SceneEntityPose|None) – Optional authored upright object pose for local-axis tilt and return, exclusive withtarget. Omission uses the held pose at the actual start joints.
- class embodichain.lab.sim.atomic_skills.primitives.pour.PourOptions[source]#
Bases:
SkillOptionsPer-invocation pouring behavior.
Attributes:
Extra lateral clearance outside the receiving opening before tilt.
Source bounding-box clearance above the receiver plane, in metres.
Minimum time to remain at the poured orientation, in seconds.
Maximum mouth height considered for a targeted pour, in metres.
Maximum angular spacing of mouth-compensated Cartesian keyframes.
Preferred mouth height above the receiver opening plane, in metres.
Signed rotation about the held object's local internal axis, in radians.
Minimum time allocated to each outward and return rotation, in seconds.
-
approach_distance:
float# Extra lateral clearance outside the receiving opening before tilt.
-
clearance:
float# Source bounding-box clearance above the receiver plane, in metres.
-
dwell_duration:
float# Minimum time to remain at the poured orientation, in seconds.
-
max_mouth_height:
float# Maximum mouth height considered for a targeted pour, in metres.
-
max_rotation_step:
float# Maximum angular spacing of mouth-compensated Cartesian keyframes.
-
mouth_height:
float# Preferred mouth height above the receiver opening plane, in metres.
-
rotate_angle:
float# Signed rotation about the held object’s local internal axis, in radians.
-
rotation_duration:
float|None# Minimum time allocated to each outward and return rotation, in seconds.
-
approach_distance:
- class embodichain.lab.sim.atomic_skills.primitives.pour.PourTarget[source]#
Bases:
objectGeometry of a receiving opening and the held object’s mouth.
- Parameters:
receiver_pose (
Tensor|SceneEntityPose) – World opening pose, optionally a live scene reference. Its +Z is the outward opening normal.source_mouth_pose (
Tensor) – Mouth frame relative to the held object. Its +Z points out of the mouth when the source is upright.receiver_radius (
float) – Usable circular opening radius, in metres.mouth_radius (
float) – Conservative source mouth radius, in metres.
PushObject#
Planar rigid-object pushing atomic skill.
Classes:
Close the end effector, contact a rigid object, and push it in-plane. |
|
Push one rigid object toward a target pose on the target support plane. |
|
Per-invocation planar pushing behavior. |
|
End-effector calibration selected by a bound motion control part. |
- class embodichain.lab.sim.atomic_skills.primitives.push_object.PushObject[source]#
Bases:
AtomicSkill[PushObjectGoal,PushObjectOptions]Close the end effector, contact a rigid object, and push it in-plane.
Classes:
alias of
PushObjectGoalalias of
PushObjectOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- GoalType#
alias of
PushObjectGoal
- OptionsType#
alias of
PushObjectOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'push_object'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.push_object.PushObjectGoal[source]#
Bases:
ObjectSkillGoalPush one rigid object toward a target pose on the target support plane.
Attributes:
Desired object pose or a late-bound scene-entity target reference.
- target_pose: PoseGoalValue#
Desired object pose or a late-bound scene-entity target reference.
- class embodichain.lab.sim.atomic_skills.primitives.push_object.PushObjectOptions[source]#
Bases:
SkillOptionsPer-invocation planar pushing behavior.
Attributes:
Distance above the contact pose used for the free-space approach.
Planar target distance at which the action succeeds without moving.
Initial planar clearance behind the object along the push direction.
Contact-frame to robot end-effector SE(3) calibration.
Number of waypoints used to close the end effector before approach.
Object-local point used as the center of the planar contact frame.
Additional end-effector travel beyond the object's target displacement.
Distance above the pushed pose used for the final retraction.
Optional target-support-frame override for the contact's planar offset.
Per-control-part tool-frame overrides for asymmetric robot arms.
-
approach_height:
float# Distance above the contact pose used for the free-space approach.
-
completion_tolerance:
float# Planar target distance at which the action succeeds without moving.
-
contact_distance:
float# Initial planar clearance behind the object along the push direction.
-
contact_frame_to_eef:
Tensor# Contact-frame to robot end-effector SE(3) calibration.
-
hand_interp_steps:
int# Number of waypoints used to close the end effector before approach.
-
object_contact_offset:
Tensor# Object-local point used as the center of the planar contact frame.
-
push_overshoot:
float# Additional end-effector travel beyond the object’s target displacement.
-
retract_height:
float# Distance above the pushed pose used for the final retraction.
-
support_frame_planar_contact_offset:
Tensor|None# Optional target-support-frame override for the contact’s planar offset.
-
tool_calibrations:
tuple[PushObjectToolCalibration,...]# Per-control-part tool-frame overrides for asymmetric robot arms.
-
approach_height:
- class embodichain.lab.sim.atomic_skills.primitives.push_object.PushObjectToolCalibration[source]#
Bases:
objectEnd-effector calibration selected by a bound motion control part.
- Parameters:
control_part (
str) – Exact motion control-part identifier that selects this calibration.contact_frame_to_eef (
Tensor) – Contact-frame to robot end-effector SE(3) calibration.contact_distance (
float|None) – Optional tool-specific planar clearance behind the object.NoneusesPushObjectOptions’ default.
Attributes:
Optional tool-specific planar clearance behind the object.
Contact-frame to robot end-effector SE(3) calibration.
Exact motion control-part identifier that selects this calibration.
-
contact_distance:
float|None# Optional tool-specific planar clearance behind the object.
-
contact_frame_to_eef:
Tensor# Contact-frame to robot end-effector SE(3) calibration.
-
control_part:
str# Exact motion control-part identifier that selects this calibration.
Place#
Place atomic skill implementation.
Classes:
Place a held assemble object onto a base object at a relative pose. |
|
Place a contact-held subject without projecting a rigid object/tool relation. |
|
Lower the held object to a place pose, open the gripper, retract. |
|
End-effector release-pose target used by |
|
Per-invocation placement behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.place.AssembleGoal[source]#
Bases:
objectPlace a held assemble object onto a base object at a relative pose.
The base object pose is a late-bound
SceneEntityPose. The assemble object’s target pose isbase_pose @ assemble_to_base_pose. The held-object transform (object_to_eef) is read fromPlanningContextfor the place control part, which a priorPickUppopulates.Attributes:
Assembly affordance anchoring the assemble object to the base object.
Late-bound base-object pose used for snapshot-consistent planning.
-
affordance:
AssembleAffordance# Assembly affordance anchoring the assemble object to the base object.
-
base_pose:
SceneEntityPose# Late-bound base-object pose used for snapshot-consistent planning.
-
affordance:
- class embodichain.lab.sim.atomic_skills.primitives.place.ContactPlaceGoal[source]#
Bases:
objectPlace a contact-held subject without projecting a rigid object/tool relation.
- Parameters:
source (
str) – Engine-local source that observes the existing physical grasp.phases (
tuple[ContactPhase,...]) – Bounded transport, release and retreat path, with no new grasp.
- class embodichain.lab.sim.atomic_skills.primitives.place.Place[source]#
Bases:
AtomicSkill[PlaceGoal|AssembleGoal|ContactPlaceGoal,PlaceOptions]Lower the held object to a place pose, open the gripper, retract.
The
PlaceGoalmay carry either a single waypoint(num_envs, 4, 4)(or a broadcastable(4, 4)) or a multi-waypoint trajectory(num_envs, n_waypoint, 4, 4). In the multi-waypoint case the approach segment visits every waypoint in order; approaching from above the first waypoint, descending through each waypoint, then opening the gripper at the final waypoint and retracting to above the last waypoint. Starting joint positions are inherited fromPlanningContext.An
AssembleGoalreplaces the explicit EEF pose with an assembly affordance: the place pose is derived from the base object’s snapshot pose andassemble_to_base_pose, converted to an EEF pose through the held object’sobject_to_eef(read fromPlanningContext).Attributes:
Concrete goal dataclass or dataclasses accepted by this skill.
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
Classes:
alias of
PlaceOptionsMethods:
continue_plan(request, context, plan, ...)Plan a later chunk without beginning another logical skill.
on_plan_installed(request, context, plan)Publish bookkeeping only after an execution plan was accepted.
- GoalType: ClassVar[type | tuple[type, ...]] = (<class 'embodichain.lab.sim.atomic_skills.primitives.place.PlaceGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.place.AssembleGoal'>, <class 'embodichain.lab.sim.atomic_skills.primitives.contact.ContactPlaceGoal'>)#
Concrete goal dataclass or dataclasses accepted by this skill.
- OptionsType#
alias of
PlaceOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- continue_plan(request, context, plan, active_mask)[source]#
Plan a later chunk without beginning another logical skill.
- Parameters:
request (
ResolvedSkillRequest) – The unchanged resolved invocation.context (
PlanningContext) – Fresh observations with authoritative row identity and timing.plan (
SkillPlan) – Completed chunk and its owned continuation cursor.active_mask (
Tensor) – Eligible rows that executed the completed chunk.
- Return type:
- Returns:
Physical row acceptance and an optional later plan.
- on_plan_installed(request, context, plan)[source]#
Publish bookkeeping only after an execution plan was accepted.
- Parameters:
request (
ResolvedSkillRequest) – The installed plan’s resolved invocation.context (
PlanningContext) – Observations used for this plan.plan (
SkillPlan) – Validated plan after destination and lifecycle acceptance.
- Return type:
None
- skill_id: ClassVar[str] = 'place'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.place.PlaceGoal[source]#
Bases:
objectEnd-effector release-pose target used by
Place.Attributes:
Optional TCP-frame symmetry allowed by the placement semantics.
Target end-effector release pose.
-
tcp_symmetry:
Literal['none','z_roll_180']# Optional TCP-frame symmetry allowed by the placement semantics.
"none"preserves the pose exactly."z_roll_180"lets placement choose between the pose and its TCP z-roll 180 equivalent, which flips TCP x/y while preserving TCP z and translation.
-
xpos:
Tensor|SceneEntityPose# Target end-effector release pose.
Accepts
(4, 4),(num_envs, 4, 4), or(num_envs, n_waypoint, 4, 4).
-
tcp_symmetry:
- class embodichain.lab.sim.atomic_skills.primitives.place.PlaceOptions[source]#
Bases:
SkillOptionsPer-invocation placement behavior.
Attributes:
Height (m) above the first place pose during approach.
Follow the approach with sampled Cartesian poses under joint motion limits.
Number of fixed-orientation Cartesian keyframes per translation segment.
Number of waypoints for the gripper-open interpolation segment.
Height (m) to retract the end-effector after opening the gripper.
Optional maximum world-frame TCP z for approach and retract poses (m).
Keep the held object's observed world orientation at the place target.
Minimum physical seconds to hold open in a newly planned native Place.
Fully open hold frames before retracting the end-effector.
-
approach_lift_height:
float|None# Height (m) above the first place pose during approach. Defaults to lift_height.
-
cartesian_approach:
bool# Follow the approach with sampled Cartesian poses under joint motion limits.
Mutually exclusive with explicit
MotionPolicy.phase_paths.
-
cartesian_waypoint_count:
int# Number of fixed-orientation Cartesian keyframes per translation segment.
-
hand_interp_steps:
int# Number of waypoints for the gripper-open interpolation segment.
-
lift_height:
float# Height (m) to retract the end-effector after opening the gripper.
-
max_approach_retract_z:
float|None# Optional maximum world-frame TCP z for approach and retract poses (m).
-
preserve_current_object_orientation:
bool# Keep the held object’s observed world orientation at the place target.
-
release_settle_duration:
float# Minimum physical seconds to hold open in a newly planned native Place.
Rounded upward to control intervals and combined with release_settle_steps using the larger hold. This is actuation time, not an acceptance tolerance. External nominal sources retain their authored release timing unchanged.
-
release_settle_steps:
int# Fully open hold frames before retracting the end-effector.
-
approach_lift_height:
Press#
Press atomic skill implementation.
Classes:
Open-loop motion primitive that approaches, presses, and retracts. |
|
Target object described by a press affordance. |
|
Per-invocation pressing behavior. |
|
Failure-only B1 Press planning rules with the fixed source attempt budget. |
Functions:
Validate an optional declaration-owned addition to an authored press stroke. |
- class embodichain.lab.sim.atomic_skills.primitives.press.Press[source]#
Bases:
AtomicSkill[PressGoal,PressOptions]Open-loop motion primitive that approaches, presses, and retracts.
Classes:
alias of
PressGoalalias of
PressOptionsalias of
PressPlanningRecoveryAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- OptionsType#
alias of
PressOptions
- PlanningRecoveryType#
alias of
PressPlanningRecovery
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'press'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.press.PressGoal[source]#
Bases:
ObjectSkillGoalTarget object described by a press affordance.
Attributes:
Target pose snapshot or late-bound stable scene-entity reference.
-
target_pose:
Tensor|SceneEntityPose# Target pose snapshot or late-bound stable scene-entity reference.
-
target_pose:
- class embodichain.lab.sim.atomic_skills.primitives.press.PressOptions[source]#
Bases:
SkillOptionsPer-invocation pressing behavior.
Attributes:
Distance from the press position opposite the press direction.
Allowed extra contact-frame rolls in radians; point and press axis stay fixed.
Number of waypoints used to close the hand.
Distance traveled into the target along its press axis.
Optional local-frame position overriding the affordance press position.
-
approach_distance:
float# Distance from the press position opposite the press direction.
-
contact_roll_alternatives:
tuple[float,...]# Allowed extra contact-frame rolls in radians; point and press axis stay fixed.
Planning these alternatives requires an explicit PressPlanningRecovery. The source-compatible declaration supplies only
(pi / 2,).
-
hand_interp_steps:
int# Number of waypoints used to close the hand.
-
press_distance:
float# Distance traveled into the target along its press axis.
-
press_position:
tuple[float,float,float] |None# Optional local-frame position overriding the affordance press position.
-
approach_distance:
- class embodichain.lab.sim.atomic_skills.primitives.press.PressPlanningRecovery[source]#
Bases:
PlanningRecoveryFailure-only B1 Press planning rules with the fixed source attempt budget.
The two complete plans include the nominal plan and at most one declared contact-roll alternative. Failed Cartesian phases may use the shared bounded IK continuation on unchanged targets and time. Inner IK search limits remain owned by the motion service. Separate dense-grid engine attempts each get a fresh local scope; this declaration does not change their RNG boundary.
- embodichain.lab.sim.atomic_skills.primitives.press.validate_press_extra_distance(value)[source]#
Validate an optional declaration-owned addition to an authored press stroke.
- Parameters:
value (
float|None) – Additional travel in metres, or None to retain the declaration’s existing selection. Exact Python integers/floats in[0, 0.010]are accepted; booleans and non-finite values are rejected.- Raises:
ValueError – The value is outside the supported declaration contract.
- Return type:
None
This does not change
PressOptionsdefaults or certify physical travel. The caller still owns the authored stroke and measured acceptance.
Slide#
Slide atomic skill implementation.
Classes:
Open-loop approach, grasp, and axis-constrained sliding motion. |
|
Translating articulation link described by a slide affordance. |
|
Absolute prismatic coordinate, in metres, with a calibrated axis sign. |
|
Per-invocation sliding behavior for a translating articulation link. |
- class embodichain.lab.sim.atomic_skills.primitives.slide.Slide[source]#
Bases:
AtomicSkill[SlideGoal,SlideOptions]Open-loop approach, grasp, and axis-constrained sliding motion.
Classes:
alias of
SlideGoalalias of
SlideOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- OptionsType#
alias of
SlideOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'slide'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.slide.SlideGoal[source]#
Bases:
ObjectSkillGoalTranslating articulation link described by a slide affordance.
Attributes:
Optional absolute joint intent; otherwise preserve fixed-distance Options.
Link pose snapshot or late-bound stable scene-entity reference.
-
joint_target:
SlideJointTarget|None# Optional absolute joint intent; otherwise preserve fixed-distance Options.
Joint-target mode resolves fresh row-local distances and the pull/push direction during planning. Active rows must share one direction; already satisfied rows hold their observed pose. This does not verify physical effect.
-
target_pose:
Tensor|SceneEntityPose# Link pose snapshot or late-bound stable scene-entity reference.
-
joint_target:
- class embodichain.lab.sim.atomic_skills.primitives.slide.SlideJointTarget[source]#
Bases:
objectAbsolute prismatic coordinate, in metres, with a calibrated axis sign.
- Parameters:
articulation_id (
str) – Canonical articulation identity in the scene snapshot.joint_name (
str) – Exact observed prismatic joint name.position (
float) – Requested absolute joint position in metres.axis_sign (
int) – Maps increasing joint position to the affordance axis (+1/-1).tolerance (
float) – Position tolerance for an already-satisfied planning row.
- class embodichain.lab.sim.atomic_skills.primitives.slide.SlideOptions[source]#
Bases:
SkillOptionsPer-invocation sliding behavior for a translating articulation link.
Attributes:
Approach along grasp Z instead of the rail axis; rail motion is unchanged.
Pre-grasp distance opposite the approach/push axis.
Whether to pull the part open or push it closed.
Number of waypoints used for each close/open hand segment.
Fraction from the bound open to grasp command during approach and reach.
World XYZ offset (m) from the pre-grasp pose for an extra push waypoint.
Distance opposite grasp Z while opening; zero holds the arm still.
Distance traveled along the pull or push direction.
-
approach_along_grasp_axis:
bool# Approach along grasp Z instead of the rail axis; rail motion is unchanged.
-
approach_distance:
float# Pre-grasp distance opposite the approach/push axis.
-
direction:
Literal['pull','push']# Whether to pull the part open or push it closed.
-
hand_interp_steps:
int# Number of waypoints used for each close/open hand segment.
-
preshape_fraction:
float# Fraction from the bound open to grasp command during approach and reach.
-
push_approach_offset:
tuple[float,float,float] |None# World XYZ offset (m) from the pre-grasp pose for an extra push waypoint.
-
release_retreat_distance:
float# Distance opposite grasp Z while opening; zero holds the arm still.
-
translation_distance:
float# Distance traveled along the pull or push direction.
-
approach_along_grasp_axis:
OpenDoor#
OpenDoor atomic skill implementation.
The examples/sim/atomic_skill/open_door.py example loads
Microwave/microwave.urdf and resolves the handle_link target through
door_handle_fixed_joint to door_hinge. Its invocation requests
MotionPolicy.sample_count=300, hand_interp_steps=30, and
door_waypoint_count=50 as tutorial-specific sampling overrides. The
tutorial host performs 240 final-pose updates after replay, with two physics
steps per update.
Classes:
Approach, grasp, rotate a door about its hinge, release, and retract. |
|
Door handle and desired absolute opening state. |
|
Per-invocation approach, interpolation, release, and retract behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.open_door.OpenDoor[source]#
Bases:
AtomicSkill[OpenDoorGoal,OpenDoorOptions]Approach, grasp, rotate a door about its hinge, release, and retract.
Classes:
alias of
OpenDoorGoalalias of
OpenDoorOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- GoalType#
alias of
OpenDoorGoal
- OptionsType#
alias of
OpenDoorOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'open_door'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.open_door.OpenDoorGoal[source]#
Bases:
ObjectSkillGoalDoor handle and desired absolute opening state.
Attributes:
Desired hinge position normalized from its closed to open legal endpoint.
Handle-link pose snapshot or late-bound scene-entity reference.
-
open_fraction:
float|Tensor# Desired hinge position normalized from its closed to open legal endpoint.
-
target_pose:
Tensor|SceneEntityPose# Handle-link pose snapshot or late-bound scene-entity reference.
-
open_fraction:
- class embodichain.lab.sim.atomic_skills.primitives.open_door.OpenDoorOptions[source]#
Bases:
SkillOptionsPer-invocation approach, interpolation, release, and retract behavior.
Attributes:
Pre-grasp distance opposite the automatically inferred approach axis.
Number of Cartesian keyframes along the handle's circular arc.
Number of waypoints used for each close/open hand segment.
Tolerance for legal-limit and already-open comparisons in radians.
Post-release retreat distance opposite the rotated approach axis.
-
approach_distance:
float# Pre-grasp distance opposite the automatically inferred approach axis.
-
door_waypoint_count:
int# Number of Cartesian keyframes along the handle’s circular arc.
-
hand_interp_steps:
int# Number of waypoints used for each close/open hand segment.
-
joint_position_tolerance:
float# Tolerance for legal-limit and already-open comparisons in radians.
-
retract_distance:
float# Post-release retreat distance opposite the rotated approach axis.
-
approach_distance:
Twist#
Twist atomic skill implementation.
Classes:
Open-loop approach, grasp, twist, release, and retract motion. |
|
Target object described by a twist affordance. |
|
Per-invocation twisting behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.twist.Twist[source]#
Bases:
AtomicSkill[TwistGoal,TwistOptions]Open-loop approach, grasp, twist, release, and retract motion.
Classes:
alias of
TwistGoalalias of
TwistOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- OptionsType#
alias of
TwistOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='primary', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)),), constraints=())#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'twist'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.twist.TwistGoal[source]#
Bases:
ObjectSkillGoalTarget object described by a twist affordance.
Attributes:
Target pose snapshot or late-bound stable scene-entity reference.
-
target_pose:
Tensor|SceneEntityPose# Target pose snapshot or late-bound stable scene-entity reference.
-
target_pose:
- class embodichain.lab.sim.atomic_skills.primitives.twist.TwistOptions[source]#
Bases:
SkillOptionsPer-invocation twisting behavior.
Attributes:
Number of waypoints used for each close/open hand segment.
Distance from the grasp pose along its negative z-axis.
Requested twist rotation in radians.
Number of Cartesian keyframes along the target's circular twist arc.
-
hand_interp_steps:
int# Number of waypoints used for each close/open hand segment.
-
pre_grasp_distance:
float# Distance from the grasp pose along its negative z-axis.
-
twist_angle:
float# Requested twist rotation in radians.
-
twist_waypoint_count:
int# Number of Cartesian keyframes along the target’s circular twist arc.
-
hand_interp_steps:
CoordinatedPickment#
CoordinatedPickment atomic skill implementation.
Classes:
Object-centric target for picking and moving one object with two hands. |
|
Pick and move a single object pinched by two hands. |
|
Per-invocation coordinated pickup behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_pickment.CoordinatedPickGoal[source]#
Bases:
ObjectSkillGoalObject-centric target for picking and moving one object with two hands.
The left/right grasp poses are not supplied by the caller; they are sampled by the parallel-jaw grasp-pose service at planning time using the dual-arm direction and approach direction declared on
CoordinatedPickmentOptions.Attributes:
Optional initial object pose.
Target pose for the shared object, shape
(4, 4)or(num_envs, 4, 4).-
object_initial_pose:
Tensor|SceneEntityPose|None# Optional initial object pose.
When omitted, the pose is grounded through the semantic object’s stable scene identity.
-
object_target_pose:
Tensor|SceneEntityPose# Target pose for the shared object, shape
(4, 4)or(num_envs, 4, 4).
-
object_initial_pose:
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_pickment.CoordinatedPickment[source]#
Bases:
AtomicSkill[CoordinatedPickGoal,CoordinatedPickmentOptions]Pick and move a single object pinched by two hands.
Classes:
alias of
CoordinatedPickGoalalias of
CoordinatedPickmentOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
- GoalType#
alias of
CoordinatedPickGoal
- OptionsType#
alias of
CoordinatedPickmentOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='left', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'kinematics.inverse', 'kinematics.batch_inverse'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='right', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'kinematics.inverse', 'kinematics.batch_inverse'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('left', 'right')),))#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'coordinated_pickment'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_pickment.CoordinatedPickmentOptions[source]#
Bases:
SkillOptionsPer-invocation coordinated pickup behavior.
Left/right grasps are sampled from target-local affordance geometry by the engine’s parallel-jaw grasp-pose service. The dual-arm direction splits the object into left/right grasp regions and the approach direction filters the sampled antipodal pairs.
Attributes:
World-frame direction used to sample and approach both grasps, shape
(3,).Deterministic seed isolated around coordinated grasp sampling.
Number of waypoints used for the simultaneous hand-close segment.
Number of waypoints to hold the final object target pose.
World-frame direction from the left arm base to the right arm base, shape
(3,).World-Z lift distance before moving to the object target pose.
Fraction of the object's left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends.
Number of object-pose keyframes solved by IK before joint-space interpolation.
Installation-calibrated left/right TCP transforms in the rigid object's frame.
World distance to retreat from each grasp pose along negative TCP z.
Whether both hands open after reaching the shared object target pose.
Number of waypoints used for the simultaneous hand-open segment.
World-Z retreat distance after a coordinated release.
Number of waypoints used for the simultaneous post-release retreat.
-
approach_direction:
Tensor# World-frame direction used to sample and approach both grasps, shape
(3,).
-
grasp_seed:
int# Deterministic seed isolated around coordinated grasp sampling.
-
hand_interp_steps:
int# Number of waypoints used for the simultaneous hand-close segment.
-
hold_steps:
int# Number of waypoints to hold the final object target pose.
-
left_to_right_arm_direction:
Tensor# World-frame direction from the left arm base to the right arm base, shape
(3,). It partitions the object into left/right grasp regions and should be a finite, non-zero vector; it is normalized at planning time.
-
lift_height:
float# World-Z lift distance before moving to the object target pose.
-
middle_empty_ratio:
float# Fraction of the object’s left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends. Must be in
[0, 1).
-
object_motion_keyframes:
int# Number of object-pose keyframes solved by IK before joint-space interpolation.
-
paired_object_to_eef:
Tensor|None# Installation-calibrated left/right TCP transforms in the rigid object’s frame.
-
pre_grasp_distance:
float# World distance to retreat from each grasp pose along negative TCP z.
-
release:
bool# Whether both hands open after reaching the shared object target pose.
-
release_steps:
int# Number of waypoints used for the simultaneous hand-open segment.
-
retreat_distance:
float# World-Z retreat distance after a coordinated release.
-
retreat_steps:
int# Number of waypoints used for the simultaneous post-release retreat.
-
approach_direction:
CoordinatedPlacement#
CoordinatedPlacement atomic skill implementation.
Classes:
Coordinate two held objects: support object below, placing object above. |
|
Object-centric target for dual-arm coordinated placement. |
|
Per-invocation coordinated placement behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_placement.CoordinatedPlacement[source]#
Bases:
AtomicSkill[CoordinatedPlacementGoal,CoordinatedPlacementOptions]Coordinate two held objects: support object below, placing object above.
Classes:
alias of
CoordinatedPlacementGoalalias of
CoordinatedPlacementOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Stable registry identifier for this skill.
- GoalType#
alias of
CoordinatedPlacementGoal
- OptionsType#
alias of
CoordinatedPlacementOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='placing', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='support', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('placing', 'support')),))#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- skill_id: ClassVar[str] = 'coordinated_placement'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_placement.CoordinatedPlacementGoal[source]#
Bases:
objectObject-centric target for dual-arm coordinated placement.
Attributes:
World-Z offset above the placing object target pose.
Target pose for the object released by the placing arm.
Whether the placing hand releases.
World-Z offset above the support object target pose.
Target pose for the object held by the support arm.
-
placing_height_offset:
float|None# World-Z offset above the placing object target pose.
-
placing_object_target_pose:
Tensor|SceneEntityPose# Target pose for the object released by the placing arm.
-
release:
bool|None# Whether the placing hand releases.
Noneuses invocation options.
-
support_height_offset:
float|None# World-Z offset above the support object target pose.
-
support_object_target_pose:
Tensor|SceneEntityPose# Target pose for the object held by the support arm.
-
placing_height_offset:
- class embodichain.lab.sim.atomic_skills.primitives.coordinated_placement.CoordinatedPlacementOptions[source]#
Bases:
SkillOptionsPer-invocation coordinated placement behavior.
Attributes:
Number of waypoints for the placing-hand release interpolation.
Number of waypoints to hold alignment before releasing.
World-Z lift distance for the placing arm after release.
Default World-Z offset above the placing object target pose.
Whether to open the placing hand at the aligned placement pose.
Number of waypoints used for the placing-arm lift retreat.
Default World-Z offset above the support object target pose.
-
hand_interp_steps:
int# Number of waypoints for the placing-hand release interpolation.
-
hold_steps:
int# Number of waypoints to hold alignment before releasing.
-
lift_height:
float# World-Z lift distance for the placing arm after release.
-
placing_height_offset:
float# Default World-Z offset above the placing object target pose.
-
release:
bool# Whether to open the placing hand at the aligned placement pose.
-
retreat_steps:
int# Number of waypoints used for the placing-arm lift retreat.
-
support_height_offset:
float# Default World-Z offset above the support object target pose.
-
hand_interp_steps:
HandOver#
Pick-up-and-handover atomic skill implementation.
Classes:
Pick an object with the nearer arm and transfer it to the other arm. |
|
Object to pick and hand over, plus its final object pose. |
|
Per-invocation pick-up, handover, and placement behavior. |
- class embodichain.lab.sim.atomic_skills.primitives.hand_over.HandOver[source]#
Bases:
AtomicSkill[HandOverGoal,HandOverOptions]Pick an object with the nearer arm and transfer it to the other arm.
For each environment, the action chooses the arm whose root link is closer to the observed object pose. It samples at most 1000 mesh-surface points and applies SVD in the current object pose to find
obj_longest_axis. When that axis is closer to world Z than to the horizontal plane, both grasp the pickup approaches diagonally downward. Otherwise pickup is world-Z downward. The receiver approaches diagonally from its own TCP side when horizontal separation is available, keeping its wrist outside the source hand’s vertical envelope.For a free object, the first arm grasps the projected end of
obj_longest_axisnearest its current TCP. For an existing hold, that source grasp is inherited from the preceding action and the receiving arm uses the configured center, top, or bottom region at the predicted middle object pose. A center request is filtered to the object’s middle third; top and bottom requests let Semantic Call look-ahead reserve the opposite source end.After each grasp waypoint, subsequent EEF waypoints preserve that grasp rotation and change translation only. The released source TCP first retraces its grasp approach; transfer-only execution additionally lifts it. With
release_at_target=True, the receiving arm additionally moves horizontally at handover height, lowers to the final target pose, and releases and withdraws the open receiver before settling. Transfer-only mode stops with the receiving arm recorded as the verified holder for a later Semantic Call.Classes:
alias of
HandOverGoalalias of
HandOverOptionsAttributes:
Explicit robot-independent requirements for semantic discovery.
Whether the skill intentionally declares no verified physical effect.
Stable registry identifier for this skill.
- GoalType#
alias of
HandOverGoal
- OptionsType#
alias of
HandOverOptions
- binding_contract: ClassVar[SkillBindingContract] = SkillBindingContract(slots=(SkillResourceSlot(slot_id='source', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),)), SkillResourceSlot(slot_id='destination', endpoints=(SkillEndpointRequirement(endpoint_id='motion', capabilities=frozenset({'motion.cartesian_pose', 'kinematics.forward'}), required_commands=mappingproxy({})), SkillEndpointRequirement(endpoint_id='grasp', capabilities=frozenset({'interaction.grasp'}), required_commands=mappingproxy({'open': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>, 'grasp': <class 'embodichain.lab.sim.atomic_skills.control.JointPositionCommand'>}))), constraints=(DisjointSlotEndpoints(endpoint_ids=('motion', 'grasp')),))), constraints=(DisjointResourceSlots(slots=('source', 'destination')),))#
Explicit robot-independent requirements for semantic discovery.
Concrete action classes must declare this attribute in their own class body to opt into the semantic catalog. Inheriting another action’s contract does not silently expose a new skill identifier.
- open_loop: ClassVar[bool] = True#
Whether the skill intentionally declares no verified physical effect.
- skill_id: ClassVar[str] = 'hand_over'#
Stable registry identifier for this skill.
- class embodichain.lab.sim.atomic_skills.primitives.hand_over.HandOverGoal[source]#
Bases:
ObjectSkillGoalObject to pick and hand over, plus its final object pose.
Attributes:
Final object pose after the receiving arm lowers and releases it.
- target_pose: PoseGoalValue#
Final object pose after the receiving arm lowers and releases it.
- class embodichain.lab.sim.atomic_skills.primitives.hand_over.HandOverOptions[source]#
Bases:
SkillOptionsPer-invocation pick-up, handover, and placement behavior.
Attributes:
How the transfer participant is selected.
Back off sampled grasp TCPs along their approach axis, in metres.
Waypoints used by every gripper open/close interpolation.
Closed-hand waypoints used to settle a receiving grasp.
World-Z distance used to lift the object after the first grasp.
Distance from each grasp pose to its approach pose, in metres.
Object end selected by the receiving gripper for an existing hold.
Whether the receiving hand places and releases after the transfer.
Distance retraced opposite the source TCP approach before lifting.
Waypoints used while the source hand retreats after release.
-
arm_selection:
Literal['nearest','bound']# How the transfer participant is selected.
"nearest"preserves the low-level Atomic Skill default for direct callers. Semantic Task Program bindings should select"bound"so the explicitsourceanddestinationresource slots are authoritative.
-
grasp_retract_distance:
float# Back off sampled grasp TCPs along their approach axis, in metres.
-
hand_interp_steps:
int# Waypoints used by every gripper open/close interpolation.
-
hold_steps:
int# Closed-hand waypoints used to settle a receiving grasp.
-
lift_height:
float# World-Z distance used to lift the object after the first grasp.
-
pre_grasp_distance:
float# Distance from each grasp pose to its approach pose, in metres.
-
receive_pick_object_part:
Literal['center','top','bottom']# Object end selected by the receiving gripper for an existing hold.
-
release_at_target:
bool# Whether the receiving hand places and releases after the transfer.
When false, execution ends after the source hand opens and the receiving resource remains the verified holder. This supports a semantic handover followed by a later Place call without moving that workflow into Task Engine.
-
retreat_distance:
float# Distance retraced opposite the source TCP approach before lifting.
-
retreat_steps:
int# Waypoints used while the source hand retreats after release.
-
arm_selection: