Skip to content

simulo.TerminationCondition

One condition that can end an episode.

A task’s termination set ORs all conditions together each step. Structural mirror of simulo.core.terminations.TerminationCondition.

TerminationCondition.initialize(robot: RobotProtocol, device: str, num_envs: int) -> None

One-time setup: cache the robot handle and size buffers for num_envs on device.

TerminationCondition.check() -> TensorLike

Return a boolean batch, shape (num_envs,)True ends that environment’s episode.


Declared as:

@runtime_checkable
class TerminationConditionProtocol(Protocol)