embodichain.lab.sim.atomic_skills.primitives

Contents

embodichain.lab.sim.atomic_skills.primitives#

Built-in atomic skill primitive implementations.

Classes:

AssembleGoal

Place a held assemble object onto a base object at a relative pose.

AxisAlign

Grasp an object and align its local axis to a world axis.

AxisAlignGoal

Object whose local axis should be aligned after an antipodal grasp.

AxisAlignOptions

Per-invocation grasp-and-axis-alignment behavior.

ContactGraspGoal

Contact-only pickup at an observed TCP pose in the planning frame.

ContactPickUpGoal

Approach, establish contact grasp and lift using an observed path source.

ContactPlaceGoal

Place a contact-held subject without projecting a rigid object/tool relation.

CoordinatedPickGoal

Object-centric target for picking and moving one object with two hands.

CoordinatedPickment

Pick and move a single object pinched by two hands.

CoordinatedPickmentOptions

Per-invocation coordinated pickup behavior.

CoordinatedPlacement

Coordinate two held objects: support object below, placing object above.

CoordinatedPlacementGoal

Object-centric target for dual-arm coordinated placement.

CoordinatedPlacementOptions

Per-invocation coordinated placement behavior.

DemoSkillGoal

Pinned asset identity and logical scene roles, without hardware names.

EndEffectorPoseGoal

End-effector pose goal with optional batched intermediate waypoints.

ExecuteDemoSkill

Execute one demonstration contract as one planning/recovery boundary.

GraspGoal

Pickup target with an affordance-selected or supplied grasp pose.

HandOver

Pick an object with the nearer arm and transfer it to the other arm.

HandOverGoal

Object to pick and hand over, plus its final object pose.

HandOverOptions

Per-invocation pick-up, handover, and placement behavior.

HeldObjectPoseGoal

Desired pose for the object held by this action's control part.

JointPositionGoal

Explicit or named joint-space goal for a bound robot resource.

MoveEndEffector

Plan a free-space move for a bound manipulator.

MoveEndEffectorOptions

Per-invocation behavior for MoveEndEffector.

MoveHeldObject

Move the held object through exact target poses with a closed hand.

MoveHeldObjectOptions

Per-invocation held-object transport behavior.

MoveJoints

Plan joint motion from the observed state to one or more waypoints.

MoveJointsOptions

Per-invocation behavior for MoveJoints.

ObservedJointTrajectory

One timed joint motion resolved at declared observation boundaries.

ObservedJointTrajectorySource

Episode-owned source of live full-robot commands for MoveJoints.

OpenDoor

Approach, grasp, rotate a door about its hinge, release, and retract.

OpenDoorGoal

Door handle and desired absolute opening state.

OpenDoorOptions

Per-invocation approach, interpolation, release, and retract behavior.

PickUp

Approach a grasp pose, close the gripper, lift.

PickUpOptions

Per-invocation pickup behavior.

Place

Lower the held object to a place pose, open the gripper, retract.

PlaceGoal

End-effector release-pose target used by Place.

PlaceOptions

Per-invocation placement behavior.

Pour

Rotate and return an exclusively held object about its internal axis.

PourGoal

Pour toward an opening, or rotate in place when no target is supplied.

PourOptions

Per-invocation pouring behavior.

PourTarget

Geometry of a receiving opening and the held object's mouth.

Press

Open-loop motion primitive that approaches, presses, and retracts.

PressGoal

Target object described by a press affordance.

PressOptions

Per-invocation pressing behavior.

PressPlanningRecovery

Failure-only B1 Press planning rules with the fixed source attempt budget.

PushObject

Close the end effector, contact a rigid object, and push it in-plane.

PushObjectGoal

Push one rigid object toward a target pose on the target support plane.

PushObjectOptions

Per-invocation planar pushing behavior.

PushObjectToolCalibration

End-effector calibration selected by a bound motion control part.

Slide

Open-loop approach, grasp, and axis-constrained sliding motion.

SlideGoal

Translating articulation link described by a slide affordance.

SlideJointTarget

Absolute prismatic coordinate, in metres, with a calibrated axis sign.

SlideOptions

Per-invocation sliding behavior for a translating articulation link.

Twist

Open-loop approach, grasp, twist, release, and retract motion.

TwistGoal

Target object described by a twist affordance.

TwistOptions

Per-invocation twisting behavior.

Data:

BUILTIN_SKILL_TYPES

Built-in action implementations instantiated once per action engine.

Functions:

validate_press_extra_distance(value)

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 is base_pose @ assemble_to_base_pose. The held-object transform (object_to_eef) is read from PlanningContext for the place control part, which a prior PickUp populates.

Methods:

__init__(affordance, base_pose)

Attributes:

affordance

Assembly affordance anchoring the assemble object to the base object.

base_pose

Late-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:

GoalType

alias of AxisAlignGoal

OptionsType

alias of AxisAlignOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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.AxisAlignGoal[source]

Object whose local axis should be aligned after an antipodal grasp.

Methods:

__init__(semantics[, grasp_xpos])

Attributes:

grasp_xpos

Optional 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_m

World translation from the lifted object centre, (3,) or (B,3).

alignment_twist_rad

Rotation about the aligned world target axis after the shortest arc.

target_axis

Desired 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_pose

Optional initial object pose.

object_target_pose

Target 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:

GoalType

alias of CoordinatedPickGoal

OptionsType

alias of CoordinatedPickmentOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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.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_direction

World-frame direction used to sample and approach both grasps, shape (3,).

grasp_seed

Deterministic seed isolated around coordinated grasp sampling.

hand_interp_steps

Number of waypoints used for the simultaneous hand-close segment.

hold_steps

Number of waypoints to hold the final object target pose.

left_to_right_arm_direction

World-frame direction from the left arm base to the right arm base, shape (3,).

lift_height

World-Z lift distance before moving to the object target pose.

middle_empty_ratio

Fraction of the object's left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends.

object_motion_keyframes

Number of object-pose keyframes solved by IK before joint-space interpolation.

paired_object_to_eef

Installation-calibrated left/right TCP transforms in the rigid object's frame.

pre_grasp_distance

World distance to retreat from each grasp pose along negative TCP z.

release

Whether both hands open after reaching the shared object target pose.

release_steps

Number of waypoints used for the simultaneous hand-open segment.

retreat_distance

World-Z retreat distance after a coordinated release.

retreat_steps

Number 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:

GoalType

alias of CoordinatedPlacementGoal

OptionsType

alias of CoordinatedPlacementOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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.CoordinatedPlacementGoal[source]

Object-centric target for dual-arm coordinated placement.

Methods:

__init__(placing_object_target_pose, ...[, ...])

Attributes:

placing_height_offset

World-Z offset above the placing object target pose.

placing_object_target_pose

Target pose for the object released by the placing arm.

release

Whether the placing hand releases.

support_height_offset

World-Z offset above the support object target pose.

support_object_target_pose

Target 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. None uses 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_steps

Number of waypoints for the placing-hand release interpolation.

hold_steps

Number of waypoints to hold alignment before releasing.

lift_height

World-Z lift distance for the placing arm after release.

placing_height_offset

Default World-Z offset above the placing object target pose.

release

Whether to open the placing hand at the aligned placement pose.

retreat_steps

Number of waypoints used for the placing-arm lift retreat.

support_height_offset

Default 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:

xpos

Homogeneous 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:

GoalType

alias of DemoSkillGoal

OptionsType

alias of SkillOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

Stable 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_xpos

Optional end-effector grasp pose.

object_pose

Optional 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, PickUp uses the configured fixed object-relative grasp when available, otherwise it selects one from the target affordance. An explicit tensor or late-bound SceneEntityPose skips 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, PickUp resolves the object’s pose from the scene snapshot identified by ObjectSemantics.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 SceneEntityPose can 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_axis nearest 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:

GoalType

alias of HandOverGoal

OptionsType

alias of HandOverOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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.HandOverGoal[source]

Object to pick and hand over, plus its final object pose.

Methods:

__init__(semantics, target_pose)

Attributes:

target_pose

Final 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_selection

How the transfer participant is selected.

grasp_retract_distance

Back off sampled grasp TCPs along their approach axis, in metres.

hand_interp_steps

Waypoints used by every gripper open/close interpolation.

hold_steps

Closed-hand waypoints used to settle a receiving grasp.

lift_height

World-Z distance used to lift the object after the first grasp.

pre_grasp_distance

Distance from each grasp pose to its approach pose, in metres.

receive_pick_object_part

Object end selected by the receiving gripper for an existing hold.

release_at_target

Whether the receiving hand places and releases after the transfer.

retreat_distance

Distance retraced opposite the source TCP approach before lifting.

retreat_steps

Waypoints 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 explicit source and destination resource 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_id

Optional exact held-object identity and retained-attachment effect.

object_target_pose

Object target pose or ordered waypoints.

world_yaw_free

Permit 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:

target

Joint 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:

GoalType

alias of EndEffectorPoseGoal

OptionsType

alias of MoveEndEffectorOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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.MoveEndEffectorOptions[source]

Per-invocation behavior for MoveEndEffector.

Methods:

__init__([preserve_cartesian_samples])

Attributes:

preserve_cartesian_samples

Execute 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:

GoalType

alias of HeldObjectPoseGoal

OptionsType

alias of MoveHeldObjectOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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.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:

GoalType

alias of JointPositionGoal

OptionsType

alias of MoveJointsOptions

Attributes:

agent_visible

Whether an Action Agent should expose this skill by default.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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:
Return type:

PlanContinuationResult

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_samples

Keep authored joint samples at host cadence, rejecting overspeed rows.

preserve_velocity_samples

Retain 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:

TimedTrajectory

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:

GoalType

alias of OpenDoorGoal

OptionsType

alias of OpenDoorOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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.OpenDoorGoal[source]

Door handle and desired absolute opening state.

Methods:

__init__(semantics, target_pose, open_fraction)

Attributes:

open_fraction

Desired hinge position normalized from its closed to open legal endpoint.

target_pose

Handle-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_distance

Pre-grasp distance opposite the automatically inferred approach axis.

door_waypoint_count

Number of Cartesian keyframes along the handle's circular arc.

hand_interp_steps

Number of waypoints used for each close/open hand segment.

joint_position_tolerance

Tolerance for legal-limit and already-open comparisons in radians.

retract_distance

Post-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:

GoalType

Concrete goal dataclass or dataclasses accepted by this skill.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

Stable registry identifier for this skill.

Classes:

OptionsType

alias of PickUpOptions

Methods:

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:

PlanContinuationResult

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_angle

Optional maximum TCP z-axis deviation from the approach direction.

approach_along_grasp_axis

Use the realized calibrated TCP +Z for native pre-grasp translation.

approach_direction

World approach direction, shared (3,) or per-environment (B,3).

cartesian_lift

Preserve a straight world-Z lift with IK interpolation and native limits.

downstream_object_target_poses

Future object poses that must be reachable with the selected grasp.

fixed_object_to_eef

Optional object-frame to end-effector SE(3) grasp calibration.

grasp_commit_fraction

Approach fraction after which contact motion no longer invalidates grasp.

grasp_frame_to_eef

Canonical grasp-frame to robot end-effector SE(3) calibration.

grasp_settle_steps

Fully closed hold frames before lifting the end-effector.

grasp_variant

Symmetric TCP-roll variant to select after feasibility screening.

hand_interp_steps

Number of waypoints for the gripper-close interpolation segment.

initial_lift_height

Initial world-Z clearance (m) from the current TCP pose before approach.

lift_height

Height (m) to lift the end-effector after closing the gripper.

obj_upright_direction

Optional object local direction used to choose the upright grasp rotation.

pick_object_part

Name of the object part to pick up (used for grasp pose generation).

pre_grasp_distance

Distance to offset back from the grasp pose along the approach direction.

rotate_upright

Optional 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 and fixed_object_to_eef bypass 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 PlaceGoal may 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 from PlanningContext.

An AssembleGoal replaces the explicit EEF pose with an assembly affordance: the place pose is derived from the base object’s snapshot pose and assemble_to_base_pose, converted to an EEF pose through the held object’s object_to_eef (read from PlanningContext).

Attributes:

GoalType

Concrete goal dataclass or dataclasses accepted by this skill.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

Stable registry identifier for this skill.

Classes:

OptionsType

alias of PlaceOptions

Methods:

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:

PlanContinuationResult

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_symmetry

Optional TCP-frame symmetry allowed by the placement semantics.

xpos

Target 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_height

Height (m) above the first place pose during approach.

cartesian_approach

Follow the approach with sampled Cartesian poses under joint motion limits.

cartesian_waypoint_count

Number of fixed-orientation Cartesian keyframes per translation segment.

hand_interp_steps

Number of waypoints for the gripper-open interpolation segment.

lift_height

Height (m) to retract the end-effector after opening the gripper.

max_approach_retract_z

Optional maximum world-frame TCP z for approach and retract poses (m).

preserve_current_object_orientation

Keep the held object's observed world orientation at the place target.

release_settle_duration

Minimum physical seconds to hold open in a newly planned native Place.

release_settle_steps

Fully 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:

GoalType

alias of PourGoal

OptionsType

alias of PourOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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 with target. 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_distance

Extra lateral clearance outside the receiving opening before tilt.

clearance

Source bounding-box clearance above the receiver plane, in metres.

dwell_duration

Minimum time to remain at the poured orientation, in seconds.

max_mouth_height

Maximum mouth height considered for a targeted pour, in metres.

max_rotation_step

Maximum angular spacing of mouth-compensated Cartesian keyframes.

mouth_height

Preferred mouth height above the receiver opening plane, in metres.

rotate_angle

Signed rotation about the held object's local internal axis, in radians.

rotation_duration

Minimum 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:

GoalType

alias of PressGoal

OptionsType

alias of PressOptions

PlanningRecoveryType

alias of PressPlanningRecovery

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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_pose

Target 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_distance

Distance from the press position opposite the press direction.

contact_roll_alternatives

Allowed extra contact-frame rolls in radians; point and press axis stay fixed.

hand_interp_steps

Number of waypoints used to close the hand.

press_distance

Distance traveled into the target along its press axis.

press_position

Optional 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:

GoalType

alias of PushObjectGoal

OptionsType

alias of PushObjectOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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.PushObjectGoal[source]

Push one rigid object toward a target pose on the target support plane.

Methods:

__init__(semantics, target_pose)

Attributes:

target_pose

Desired 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_height

Distance above the contact pose used for the free-space approach.

completion_tolerance

Planar target distance at which the action succeeds without moving.

contact_distance

Initial planar clearance behind the object along the push direction.

contact_frame_to_eef

Contact-frame to robot end-effector SE(3) calibration.

hand_interp_steps

Number of waypoints used to close the end effector before approach.

object_contact_offset

Object-local point used as the center of the planar contact frame.

push_overshoot

Additional end-effector travel beyond the object's target displacement.

retract_height

Distance above the pushed pose used for the final retraction.

support_frame_planar_contact_offset

Optional target-support-frame override for the contact's planar offset.

tool_calibrations

Per-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. None uses PushObjectOptions’ default.

Methods:

__init__(control_part, contact_frame_to_eef)

Attributes:

contact_distance

Optional tool-specific planar clearance behind the object.

contact_frame_to_eef

Contact-frame to robot end-effector SE(3) calibration.

control_part

Exact 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:

GoalType

alias of SlideGoal

OptionsType

alias of SlideOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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_target

Optional absolute joint intent; otherwise preserve fixed-distance Options.

target_pose

Link 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_axis

Approach along grasp Z instead of the rail axis; rail motion is unchanged.

approach_distance

Pre-grasp distance opposite the approach/push axis.

direction

Whether to pull the part open or push it closed.

hand_interp_steps

Number of waypoints used for each close/open hand segment.

preshape_fraction

Fraction from the bound open to grasp command during approach and reach.

push_approach_offset

World XYZ offset (m) from the pre-grasp pose for an extra push waypoint.

release_retreat_distance

Distance opposite grasp Z while opening; zero holds the arm still.

translation_distance

Distance 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:

GoalType

alias of TwistGoal

OptionsType

alias of TwistOptions

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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_pose

Target 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_steps

Number of waypoints used for each close/open hand segment.

pre_grasp_distance

Distance from the grasp pose along its negative z-axis.

twist_angle

Requested twist rotation in radians.

twist_waypoint_count

Number 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 PressOptions defaults 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

MoveEndEffector

Plan a free-space move for a bound manipulator.

MoveEndEffectorOptions

Per-invocation behavior for MoveEndEffector.

MoveJoints

Plan joint motion from the observed state to one or more waypoints.

MoveJointsOptions

Per-invocation behavior for MoveJoints.

PickUp

Approach a grasp pose, close the gripper, lift.

PickUpOptions

Per-invocation pickup behavior.

AxisAlign

Grasp an object and align its local axis to a world axis.

AxisAlignOptions

Per-invocation grasp-and-axis-alignment behavior.

MoveHeldObject

Move the held object through exact target poses with a closed hand.

MoveHeldObjectOptions

Per-invocation held-object transport behavior.

Pour

Rotate and return an exclusively held object about its internal axis.

PourOptions

Per-invocation pouring behavior.

PushObject

Close the end effector, contact a rigid object, and push it in-plane.

PushObjectOptions

Per-invocation planar pushing behavior.

PushObjectToolCalibration

End-effector calibration selected by a bound motion control part.

Place

Lower the held object to a place pose, open the gripper, retract.

PlaceOptions

Per-invocation placement behavior.

Press

Open-loop motion primitive that approaches, presses, and retracts.

PressOptions

Per-invocation pressing behavior.

Slide

Open-loop approach, grasp, and axis-constrained sliding motion.

SlideOptions

Per-invocation sliding behavior for a translating articulation link.

OpenDoor

Approach, grasp, rotate a door about its hinge, release, and retract.

OpenDoorOptions

Per-invocation approach, interpolation, release, and retract behavior.

Twist

Open-loop approach, grasp, twist, release, and retract motion.

TwistOptions

Per-invocation twisting behavior.

CoordinatedPickment

Pick and move a single object pinched by two hands.

CoordinatedPickmentOptions

Per-invocation coordinated pickup behavior.

CoordinatedPlacement

Coordinate two held objects: support object below, placing object above.

CoordinatedPlacementOptions

Per-invocation coordinated placement behavior.

HandOver

Pick an object with the nearer arm and transfer it to the other arm.

HandOverGoal

Object to pick and hand over, plus its final object pose.

HandOverOptions

Per-invocation pick-up, handover, and placement behavior.

Built-in Goal Contracts

EndEffectorPoseGoal

End-effector pose goal with optional batched intermediate waypoints.

JointPositionGoal

Explicit or named joint-space goal for a bound robot resource.

GraspGoal

Pickup target with an affordance-selected or supplied grasp pose.

AxisAlignGoal

Object whose local axis should be aligned after an antipodal grasp.

HeldObjectPoseGoal

Desired pose for the object held by this action's control part.

PourGoal

Pour toward an opening, or rotate in place when no target is supplied.

PushObjectGoal

Push one rigid object toward a target pose on the target support plane.

PlaceGoal

End-effector release-pose target used by Place.

AssembleGoal

Place a held assemble object onto a base object at a relative pose.

PressGoal

Target object described by a press affordance.

SlideGoal

Translating articulation link described by a slide affordance.

OpenDoorGoal

Door handle and desired absolute opening state.

TwistGoal

Target object described by a twist affordance.

CoordinatedPickGoal

Object-centric target for picking and moving one object with two hands.

CoordinatedPlacementGoal

Object-centric target for dual-arm coordinated placement.

HandOverGoal

Object to pick and hand over, plus its final object pose.

MoveEndEffector#

MoveEndEffector atomic skill implementation.

Classes:

EndEffectorPoseGoal

End-effector pose goal with optional batched intermediate waypoints.

MoveEndEffector

Plan a free-space move for a bound manipulator.

MoveEndEffectorOptions

Per-invocation behavior for MoveEndEffector.

class embodichain.lab.sim.atomic_skills.primitives.move_end_effector.EndEffectorPoseGoal[source]#

Bases: object

End-effector pose goal with optional batched intermediate waypoints.

Attributes:

xpos

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).

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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: SkillOptions

Per-invocation behavior for MoveEndEffector.

Attributes:

preserve_cartesian_samples

Execute the supplied Cartesian samples on the control grid.

preserve_cartesian_samples: bool#

Execute the supplied Cartesian samples on the control grid.

MoveJoints#

MoveJoints atomic skill implementation.

Classes:

JointPositionGoal

Explicit or named joint-space goal for a bound robot resource.

MoveJoints

Plan joint motion from the observed state to one or more waypoints.

MoveJointsOptions

Per-invocation behavior for MoveJoints.

ObservedJointTrajectory

One timed joint motion resolved at declared observation boundaries.

ObservedJointTrajectorySource

Episode-owned source of live full-robot commands for MoveJoints.

class embodichain.lab.sim.atomic_skills.primitives.move_joints.JointPositionGoal[source]#

Bases: object

Explicit or named joint-space goal for a bound robot resource.

Attributes:

target

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.

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:

Attributes:

agent_visible

Whether an Action Agent should expose this skill by default.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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:
Return type:

PlanContinuationResult

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: SkillOptions

Per-invocation behavior for MoveJoints.

Attributes:

preserve_samples

Keep authored joint samples at host cadence, rejecting overspeed rows.

preserve_velocity_samples

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.

class embodichain.lab.sim.atomic_skills.primitives.move_joints.ObservedJointTrajectory[source]#

Bases: object

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.

class embodichain.lab.sim.atomic_skills.primitives.move_joints.ObservedJointTrajectorySource[source]#

Bases: Protocol

Episode-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:

TimedTrajectory

Returns:

One full-robot command per requested control step and row.

PickUp#

PickUp atomic skill implementation.

Classes:

ContactGraspGoal

Contact-only pickup at an observed TCP pose in the planning frame.

ContactPickUpGoal

Approach, establish contact grasp and lift using an observed path source.

GraspGoal

Pickup target with an affordance-selected or supplied grasp pose.

PickUp

Approach a grasp pose, close the gripper, lift.

PickUpOptions

Per-invocation pickup behavior.

class embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactGraspGoal[source]#

Bases: object

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.

class embodichain.lab.sim.atomic_skills.primitives.pick_up.ContactPickUpGoal[source]#

Bases: object

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.

class embodichain.lab.sim.atomic_skills.primitives.pick_up.GraspGoal[source]#

Bases: ObjectSkillGoal

Pickup target with an affordance-selected or supplied grasp pose.

Attributes:

grasp_xpos

Optional end-effector grasp pose.

object_pose

Optional explicit object pose used for grasp planning.

grasp_xpos: Tensor | SceneEntityPose | None#

Optional end-effector grasp pose.

When omitted, PickUp uses the configured fixed object-relative grasp when available, otherwise it selects one from the target affordance. An explicit tensor or late-bound SceneEntityPose skips 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, PickUp resolves the object’s pose from the scene snapshot identified by ObjectSemantics.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 SceneEntityPose can 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.pick_up.PickUp[source]#

Bases: AtomicSkill[GraspGoal | ContactGraspGoal | ContactPickUpGoal, PickUpOptions]

Approach a grasp pose, close the gripper, lift.

Attributes:

GoalType

Concrete goal dataclass or dataclasses accepted by this skill.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

Stable registry identifier for this skill.

Classes:

Methods:

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:

PlanContinuationResult

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: SkillOptions

Per-invocation pickup behavior.

Attributes:

approach_alignment_max_angle

Optional maximum TCP z-axis deviation from the approach direction.

approach_along_grasp_axis

Use the realized calibrated TCP +Z for native pre-grasp translation.

approach_direction

World approach direction, shared (3,) or per-environment (B,3).

cartesian_lift

Preserve a straight world-Z lift with IK interpolation and native limits.

downstream_object_target_poses

Future object poses that must be reachable with the selected grasp.

fixed_object_to_eef

Optional object-frame to end-effector SE(3) grasp calibration.

grasp_commit_fraction

Approach fraction after which contact motion no longer invalidates grasp.

grasp_frame_to_eef

Canonical grasp-frame to robot end-effector SE(3) calibration.

grasp_settle_steps

Fully closed hold frames before lifting the end-effector.

grasp_variant

Symmetric TCP-roll variant to select after feasibility screening.

hand_interp_steps

Number of waypoints for the gripper-close interpolation segment.

initial_lift_height

Initial world-Z clearance (m) from the current TCP pose before approach.

lift_height

Height (m) to lift the end-effector after closing the gripper.

obj_upright_direction

Optional object local direction used to choose the upright grasp rotation.

pick_object_part

Name of the object part to pick up (used for grasp pose generation).

pre_grasp_distance

Distance to offset back from the grasp pose along the approach direction.

rotate_upright

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 and fixed_object_to_eef bypass 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.

AxisAlign#

AxisAlign atomic skill implementation.

Classes:

AxisAlign

Grasp an object and align its local axis to a world axis.

AxisAlignGoal

Object whose local axis should be aligned after an antipodal grasp.

AxisAlignOptions

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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: ObjectSkillGoal

Object whose local axis should be aligned after an antipodal grasp.

Attributes:

grasp_xpos

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.

class embodichain.lab.sim.atomic_skills.primitives.axis_align.AxisAlignOptions[source]#

Bases: PickUpOptions

Per-invocation grasp-and-axis-alignment behavior.

Attributes:

alignment_offset_m

World translation from the lifted object centre, (3,) or (B,3).

alignment_twist_rad

Rotation about the aligned world target axis after the shortest arc.

target_axis

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).

MoveHeldObject#

MoveHeldObject atomic skill implementation.

Classes:

HeldObjectPoseGoal

Desired pose for the object held by this action's control part.

MoveHeldObject

Move the held object through exact target poses with a closed hand.

MoveHeldObjectOptions

Per-invocation held-object transport behavior.

class embodichain.lab.sim.atomic_skills.primitives.move_held_object.HeldObjectPoseGoal[source]#

Bases: object

Desired pose for the object held by this action’s control part.

Attributes:

object_id

Optional exact held-object identity and retained-attachment effect.

object_target_pose

Object target pose or ordered waypoints.

world_yaw_free

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.

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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: SkillOptions

Per-invocation held-object transport behavior.

Pour#

Pour atomic skill implementation.

Classes:

Pour

Rotate and return an exclusively held object about its internal axis.

PourGoal

Pour toward an opening, or rotate in place when no target is supplied.

PourOptions

Per-invocation pouring behavior.

PourTarget

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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.pour.PourGoal[source]#

Bases: object

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 with target. Omission uses the held pose at the actual start joints.

class embodichain.lab.sim.atomic_skills.primitives.pour.PourOptions[source]#

Bases: SkillOptions

Per-invocation pouring behavior.

Attributes:

approach_distance

Extra lateral clearance outside the receiving opening before tilt.

clearance

Source bounding-box clearance above the receiver plane, in metres.

dwell_duration

Minimum time to remain at the poured orientation, in seconds.

max_mouth_height

Maximum mouth height considered for a targeted pour, in metres.

max_rotation_step

Maximum angular spacing of mouth-compensated Cartesian keyframes.

mouth_height

Preferred mouth height above the receiver opening plane, in metres.

rotate_angle

Signed rotation about the held object's local internal axis, in radians.

rotation_duration

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.

class embodichain.lab.sim.atomic_skills.primitives.pour.PourTarget[source]#

Bases: object

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.

PushObject#

Planar rigid-object pushing atomic skill.

Classes:

PushObject

Close the end effector, contact a rigid object, and push it in-plane.

PushObjectGoal

Push one rigid object toward a target pose on the target support plane.

PushObjectOptions

Per-invocation planar pushing behavior.

PushObjectToolCalibration

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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: ObjectSkillGoal

Push one rigid object toward a target pose on the target support plane.

Attributes:

target_pose

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: SkillOptions

Per-invocation planar pushing behavior.

Attributes:

approach_height

Distance above the contact pose used for the free-space approach.

completion_tolerance

Planar target distance at which the action succeeds without moving.

contact_distance

Initial planar clearance behind the object along the push direction.

contact_frame_to_eef

Contact-frame to robot end-effector SE(3) calibration.

hand_interp_steps

Number of waypoints used to close the end effector before approach.

object_contact_offset

Object-local point used as the center of the planar contact frame.

push_overshoot

Additional end-effector travel beyond the object's target displacement.

retract_height

Distance above the pushed pose used for the final retraction.

support_frame_planar_contact_offset

Optional target-support-frame override for the contact's planar offset.

tool_calibrations

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.

class embodichain.lab.sim.atomic_skills.primitives.push_object.PushObjectToolCalibration[source]#

Bases: object

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. None uses PushObjectOptions’ default.

Attributes:

contact_distance

Optional tool-specific planar clearance behind the object.

contact_frame_to_eef

Contact-frame to robot end-effector SE(3) calibration.

control_part

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:

AssembleGoal

Place a held assemble object onto a base object at a relative pose.

ContactPlaceGoal

Place a contact-held subject without projecting a rigid object/tool relation.

Place

Lower the held object to a place pose, open the gripper, retract.

PlaceGoal

End-effector release-pose target used by Place.

PlaceOptions

Per-invocation placement behavior.

class embodichain.lab.sim.atomic_skills.primitives.place.AssembleGoal[source]#

Bases: object

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 is base_pose @ assemble_to_base_pose. The held-object transform (object_to_eef) is read from PlanningContext for the place control part, which a prior PickUp populates.

Attributes:

affordance

Assembly affordance anchoring the assemble object to the base object.

base_pose

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.

class embodichain.lab.sim.atomic_skills.primitives.place.ContactPlaceGoal[source]#

Bases: object

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.

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 PlaceGoal may 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 from PlanningContext.

An AssembleGoal replaces the explicit EEF pose with an assembly affordance: the place pose is derived from the base object’s snapshot pose and assemble_to_base_pose, converted to an EEF pose through the held object’s object_to_eef (read from PlanningContext).

Attributes:

GoalType

Concrete goal dataclass or dataclasses accepted by this skill.

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

Stable registry identifier for this skill.

Classes:

Methods:

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:

PlanContinuationResult

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: object

End-effector release-pose target used by Place.

Attributes:

tcp_symmetry

Optional TCP-frame symmetry allowed by the placement semantics.

xpos

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).

class embodichain.lab.sim.atomic_skills.primitives.place.PlaceOptions[source]#

Bases: SkillOptions

Per-invocation placement behavior.

Attributes:

approach_lift_height

Height (m) above the first place pose during approach.

cartesian_approach

Follow the approach with sampled Cartesian poses under joint motion limits.

cartesian_waypoint_count

Number of fixed-orientation Cartesian keyframes per translation segment.

hand_interp_steps

Number of waypoints for the gripper-open interpolation segment.

lift_height

Height (m) to retract the end-effector after opening the gripper.

max_approach_retract_z

Optional maximum world-frame TCP z for approach and retract poses (m).

preserve_current_object_orientation

Keep the held object's observed world orientation at the place target.

release_settle_duration

Minimum physical seconds to hold open in a newly planned native Place.

release_settle_steps

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.

Press#

Press atomic skill implementation.

Classes:

Press

Open-loop motion primitive that approaches, presses, and retracts.

PressGoal

Target object described by a press affordance.

PressOptions

Per-invocation pressing behavior.

PressPlanningRecovery

Failure-only B1 Press planning rules with the fixed source attempt budget.

Functions:

validate_press_extra_distance(value)

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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.press.PressGoal[source]#

Bases: ObjectSkillGoal

Target object described by a press affordance.

Attributes:

target_pose

Target pose snapshot or late-bound stable scene-entity reference.

target_pose: Tensor | SceneEntityPose#

Target pose snapshot or late-bound stable scene-entity reference.

class embodichain.lab.sim.atomic_skills.primitives.press.PressOptions[source]#

Bases: SkillOptions

Per-invocation pressing behavior.

Attributes:

approach_distance

Distance from the press position opposite the press direction.

contact_roll_alternatives

Allowed extra contact-frame rolls in radians; point and press axis stay fixed.

hand_interp_steps

Number of waypoints used to close the hand.

press_distance

Distance traveled into the target along its press axis.

press_position

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.

class embodichain.lab.sim.atomic_skills.primitives.press.PressPlanningRecovery[source]#

Bases: PlanningRecovery

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.

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 PressOptions defaults or certify physical travel. The caller still owns the authored stroke and measured acceptance.

Slide#

Slide atomic skill implementation.

Classes:

Slide

Open-loop approach, grasp, and axis-constrained sliding motion.

SlideGoal

Translating articulation link described by a slide affordance.

SlideJointTarget

Absolute prismatic coordinate, in metres, with a calibrated axis sign.

SlideOptions

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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.slide.SlideGoal[source]#

Bases: ObjectSkillGoal

Translating articulation link described by a slide affordance.

Attributes:

joint_target

Optional absolute joint intent; otherwise preserve fixed-distance Options.

target_pose

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.

class embodichain.lab.sim.atomic_skills.primitives.slide.SlideJointTarget[source]#

Bases: object

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.

class embodichain.lab.sim.atomic_skills.primitives.slide.SlideOptions[source]#

Bases: SkillOptions

Per-invocation sliding behavior for a translating articulation link.

Attributes:

approach_along_grasp_axis

Approach along grasp Z instead of the rail axis; rail motion is unchanged.

approach_distance

Pre-grasp distance opposite the approach/push axis.

direction

Whether to pull the part open or push it closed.

hand_interp_steps

Number of waypoints used for each close/open hand segment.

preshape_fraction

Fraction from the bound open to grasp command during approach and reach.

push_approach_offset

World XYZ offset (m) from the pre-grasp pose for an extra push waypoint.

release_retreat_distance

Distance opposite grasp Z while opening; zero holds the arm still.

translation_distance

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.

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:

OpenDoor

Approach, grasp, rotate a door about its hinge, release, and retract.

OpenDoorGoal

Door handle and desired absolute opening state.

OpenDoorOptions

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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: ObjectSkillGoal

Door handle and desired absolute opening state.

Attributes:

open_fraction

Desired hinge position normalized from its closed to open legal endpoint.

target_pose

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.

class embodichain.lab.sim.atomic_skills.primitives.open_door.OpenDoorOptions[source]#

Bases: SkillOptions

Per-invocation approach, interpolation, release, and retract behavior.

Attributes:

approach_distance

Pre-grasp distance opposite the automatically inferred approach axis.

door_waypoint_count

Number of Cartesian keyframes along the handle's circular arc.

hand_interp_steps

Number of waypoints used for each close/open hand segment.

joint_position_tolerance

Tolerance for legal-limit and already-open comparisons in radians.

retract_distance

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.

Twist#

Twist atomic skill implementation.

Classes:

Twist

Open-loop approach, grasp, twist, release, and retract motion.

TwistGoal

Target object described by a twist affordance.

TwistOptions

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

Stable 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.twist.TwistGoal[source]#

Bases: ObjectSkillGoal

Target object described by a twist affordance.

Attributes:

target_pose

Target pose snapshot or late-bound stable scene-entity reference.

target_pose: Tensor | SceneEntityPose#

Target pose snapshot or late-bound stable scene-entity reference.

class embodichain.lab.sim.atomic_skills.primitives.twist.TwistOptions[source]#

Bases: SkillOptions

Per-invocation twisting behavior.

Attributes:

hand_interp_steps

Number of waypoints used for each close/open hand segment.

pre_grasp_distance

Distance from the grasp pose along its negative z-axis.

twist_angle

Requested twist rotation in radians.

twist_waypoint_count

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.

CoordinatedPickment#

CoordinatedPickment atomic skill implementation.

Classes:

CoordinatedPickGoal

Object-centric target for picking and moving one object with two hands.

CoordinatedPickment

Pick and move a single object pinched by two hands.

CoordinatedPickmentOptions

Per-invocation coordinated pickup behavior.

class embodichain.lab.sim.atomic_skills.primitives.coordinated_pickment.CoordinatedPickGoal[source]#

Bases: ObjectSkillGoal

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.

Attributes:

object_initial_pose

Optional initial object pose.

object_target_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).

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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: SkillOptions

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.

Attributes:

approach_direction

World-frame direction used to sample and approach both grasps, shape (3,).

grasp_seed

Deterministic seed isolated around coordinated grasp sampling.

hand_interp_steps

Number of waypoints used for the simultaneous hand-close segment.

hold_steps

Number of waypoints to hold the final object target pose.

left_to_right_arm_direction

World-frame direction from the left arm base to the right arm base, shape (3,).

lift_height

World-Z lift distance before moving to the object target pose.

middle_empty_ratio

Fraction of the object's left-to-right extent left grasp-free in the middle so the two grippers pinch opposite ends.

object_motion_keyframes

Number of object-pose keyframes solved by IK before joint-space interpolation.

paired_object_to_eef

Installation-calibrated left/right TCP transforms in the rigid object's frame.

pre_grasp_distance

World distance to retreat from each grasp pose along negative TCP z.

release

Whether both hands open after reaching the shared object target pose.

release_steps

Number of waypoints used for the simultaneous hand-open segment.

retreat_distance

World-Z retreat distance after a coordinated release.

retreat_steps

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.

CoordinatedPlacement#

CoordinatedPlacement atomic skill implementation.

Classes:

CoordinatedPlacement

Coordinate two held objects: support object below, placing object above.

CoordinatedPlacementGoal

Object-centric target for dual-arm coordinated placement.

CoordinatedPlacementOptions

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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

skill_id

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: object

Object-centric target for dual-arm coordinated placement.

Attributes:

placing_height_offset

World-Z offset above the placing object target pose.

placing_object_target_pose

Target pose for the object released by the placing arm.

release

Whether the placing hand releases.

support_height_offset

World-Z offset above the support object target pose.

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. None uses 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.coordinated_placement.CoordinatedPlacementOptions[source]#

Bases: SkillOptions

Per-invocation coordinated placement behavior.

Attributes:

hand_interp_steps

Number of waypoints for the placing-hand release interpolation.

hold_steps

Number of waypoints to hold alignment before releasing.

lift_height

World-Z lift distance for the placing arm after release.

placing_height_offset

Default World-Z offset above the placing object target pose.

release

Whether to open the placing hand at the aligned placement pose.

retreat_steps

Number of waypoints used for the placing-arm lift retreat.

support_height_offset

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.

HandOver#

Pick-up-and-handover atomic skill implementation.

Classes:

HandOver

Pick an object with the nearer arm and transfer it to the other arm.

HandOverGoal

Object to pick and hand over, plus its final object pose.

HandOverOptions

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_axis nearest 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:

Attributes:

binding_contract

Explicit robot-independent requirements for semantic discovery.

open_loop

Whether the skill intentionally declares no verified physical effect.

skill_id

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: ObjectSkillGoal

Object to pick and hand over, plus its final object pose.

Attributes:

target_pose

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: SkillOptions

Per-invocation pick-up, handover, and placement behavior.

Attributes:

arm_selection

How the transfer participant is selected.

grasp_retract_distance

Back off sampled grasp TCPs along their approach axis, in metres.

hand_interp_steps

Waypoints used by every gripper open/close interpolation.

hold_steps

Closed-hand waypoints used to settle a receiving grasp.

lift_height

World-Z distance used to lift the object after the first grasp.

pre_grasp_distance

Distance from each grasp pose to its approach pose, in metres.

receive_pick_object_part

Object end selected by the receiving gripper for an existing hold.

release_at_target

Whether the receiving hand places and releases after the transfer.

retreat_distance

Distance retraced opposite the source TCP approach before lifting.

retreat_steps

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 explicit source and destination resource 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.