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.
initialize()
Section titled “initialize()”TerminationCondition.initialize(robot: RobotProtocol, device: str, num_envs: int) -> NoneOne-time setup: cache the robot handle and size buffers for num_envs on device.
check()
Section titled “check()”TerminationCondition.check() -> TensorLikeReturn a boolean batch, shape (num_envs,) — True ends that environment’s episode.
Declared as:
@runtime_checkableclass TerminationConditionProtocol(Protocol)