14 releases (7 breaking)
| 0.10.0 | Oct 19, 2025 |
|---|---|
| 0.9.0 | Aug 1, 2025 |
| 0.8.2 | Jun 30, 2025 |
| 0.7.0 | Mar 13, 2025 |
| 0.4.1 | Nov 15, 2024 |
#435 in Robotics
148 downloads per month
3.5MB
3.5K
SLoC
BalanceBot: this is a full Copper demo robot
with:
- a physical robot implementation
- a simulation implementation
- a resimulation demoing the deterministic replay
- a log export
To run the simulation
$ cd examples/cu_rp_balancebot
$ cargo run --release
See the UI help for the navigation.
To debug the game engine side you can add a perf overlay with:
cargo run --release --features perf-ui
To run the resimulation
(you need at least a log in logs for example from a simulation run).
$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot_resim --release
It will recreate the logs from only the inputs of the previous run in logs/balancebot_resim*.copper.
To run on the real robot
You will need to cross compile for Arm:
cargo build --target armv7-unknown-linux-musleabihf --release --no-default-features
Be sure you save your log string index:
cp -rv ../../target/armv7-unknown-linux-musleabihf/release/cu29_log_index . # or anywhere you want
Deploy on the target:
scp ../../target/armv7-unknown-linux-musleabihf/release/balancebot copperconfig.ron copper7:copper/ # change to match your target
To export logs
$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot-logreader --release
Dependencies
~32–91MB
~1.5M SLoC