Simulation¶
shinro.simulation
RobotSim¶
Generic robot simulation factory. Reads a TOML config and creates the engine, plants, and wiring automatically.
Usage
sim = RobotSim("robot_config.toml") sim.arm.step(twist) sim.base.step(velocity) sim.step() state = sim.get_state()
Source code in src/shinro/simulation/robotsim.py
step
¶
Advance the world one tick, then let each plant reconcile.
All physics runs through the engine; plants that self-integrate their
own dynamics (e.g. an analytical wheeled base) implement
Plant.post_engine_step to write their state back into the engine —
nothing in this factory is specific to any robot.