kos-sim is a pure-simulation backend for the K-Scale Operating System (KOS), using the same gRPC interface.
pip install kos-simFirst, start the kos-sim backend:
kos-sim kbot-v1Then, in a separate terminal, run the example client:
python -m examples.kbotYou should see the simulated K-Bot move in response to the client commands.
If you find that your robot is jittering on the ground, try increasing iterations and ls_iterations in your mjcf options.
<option iterations="6" ls_iterations="6">
</option>Also, to clip actuator ctrl values, be sure to send a configure_actuator KOS command with max_torque set.
await kos.actuator.configure_actuator(
actuator_id=actuator.actuator_id,
max_torque=actuator.max_torque,
)