concepts.dm.crowhat.impl.pybullet.pybullet_sim_interfaces.PyBulletSimulationControllerInterface#
- class PyBulletSimulationControllerInterface[source]#
Bases:
CrowSimulationControllerInterface
Methods
Get the state of the simulation interface.
register_controller
(name, function)register_state_getter
(state_getter)reset
()restore_context
([verbose])restore_state
(state_identifier, **kwargs)save_state
(**kwargs)step
(action, **kwargs)step_internal
(name, *args, **kwargs)step_with_saved_state
(action, **kwargs)Step with saved state.
step_without_error
(action, **kwargs)Attributes
- __init__(bullet_client)[source]#
- Parameters:
bullet_client (BulletClient)
- __new__(**kwargs)#
- increment_action_counter()#
- register_state_getter(state_getter)[source]#
- Parameters:
state_getter (Callable[[PyBulletSimulationControllerInterface], CrowState])
- reset_action_counter()#
- step(action, **kwargs)#
- Parameters:
action (CrowControllerApplier)
- Return type:
None
- step_with_saved_state(action, **kwargs)#
Step with saved state. If the execution fails, return False and the state identifier.
- Parameters:
action (CrowControllerApplier) – the action to take.
- Returns:
whether the execution is successful. int: the state identifier.
- Return type:
- step_without_error(action, **kwargs)#
- Parameters:
action (CrowControllerApplier)
- Return type:
- property bullet_client#
- property executor: CrowExecutor | None#
- property saved_states#