_simulation_handler

Module Contents

Classes

SimulationHandler

Base class for handling a simulation, which includes, for example, controlling robots.

class SimulationHandler

Bases: abc.ABC

Inheritance diagram of simulation.scene._simulation_handler.SimulationHandler

Base class for handling a simulation, which includes, for example, controlling robots.

abstract handle(state: simulation.scene._simulation_state.SimulationState, control: simulation.scene._control_interface.ControlInterface, dt: float) None

Handle a simulation frame.

Parameters:
  • state – The current state of the simulation.

  • control – Interface for setting control targets.

  • dt – The time since the last call to this function.