mujoco_simulator
Physics simulator using the MuJoCo.
Subpackages
Package Contents
Classes
Simulator using MuJoCo. |
- class LocalSimulator(headless: bool = False, start_paused: bool = False, num_simulators: int = 1, cast_shadows: bool = False, fast_sim: bool = False, manual_control: bool = False, viewer_type: mujoco_simulator.viewers.ViewerType | str = ViewerType.CUSTOM)
Bases:
revolve2.simulation.simulator.Simulator
Simulator using MuJoCo.
- simulate_batch(batch: revolve2.simulation.simulator.Batch) list[list[revolve2.simulation.scene.SimulationState]]
Simulate the provided batch by simulating each contained scene.
- Parameters:
batch – The batch to run.
- Returns:
List of simulation states in ascending order of time.
- Raises:
Exception – If manual control is selected, but headless is enabled.