with:
- a physical robot implementation
- a simulation implementation
- a resimulation demoing the deterministic replay
- a log export
$ cd examples/cu_rp_balancebot
$ cargo run --release See the UI help for the navigation.
(you need at least a log in logs for example from a simulation run).
$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot_resim --releaseIt will recreate the logs from only the inputs of the previous run in logs/balancebot_resim*.copper.
You will need to cross compile for Arm:
cargo build --target armv7-unknown-linux-musleabihf --release --no-default-featuresBe sure you save your log string index:
cp -rv ../../target/armv7-unknown-linux-musleabihf/release/cu29_log_index . # or anywhere you wantDeploy on the target:
scp ../../target/armv7-unknown-linux-musleabihf/release/balancebot copperconfig.ron copper7:copper/ # change to match your target$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot-logreader --releasejust balancebot-dump-text-logs— extract human-readable logs fromlogs/balance.copperinto../../target/debug/cu29_log_index/strings.bin.just balancebot-fsck— integrity check oflogs/balance.copper.just balancebot-set-pwm-permissions— fix PWM sysfs permissions on the target (requires appropriate privileges).