KOS Sim

kos-sim is a simulation backend for the K-Scale Operating System (KOS), using the same gRPC interface. This lets you try out your KOS programs before deploying them onto a real robot. Once you're ready, you can run your code on the robot just by changing the client IP address.

Installation

pip install kos-sim

Getting Started

First, start the kos-sim backend:

kos-sim kbot-v1

Then, in a separate terminal, run one of the repository examples, such as:

python -m examples.kbot

You should see the simulated K-Bot move in response to the client commands.


Kscale Assets

To fetch your mjcf from a local kscale assets repo instead of the kscape api, set the KSCALE_ASSETS_PATH environment variable to point to that repo

export KSCALE_ASSETS_PATH=/path/to/kscale-assets