Time required: 5 minutes
Version: SAP 2.3
Difficulty: Beginner
- OS: Windows, Linux, or macOS
- Rust: 1.70 or later (Install)
- Mem: 4GB RAM
- Disk: 1GB free space
- OS: Ubuntu 22.04 LTS
- Rust: Latest stable
- Mem: 8GB+ RAM
- CPU: Multi-core processor
git clone https://github.com/yourusername/SpaceAI.git
cd SpaceAI/rust# Release build (required for performance)
cargo build --release
# Expected time: 1-2 minutesImportant: Release build is mandatory. Debug builds are too slow for demos.
cargo run --release --bin warehouse_demo=== SAP Warehouse Demo ===
Robots: 5, Tasks: 20, Duration: 60s
[Simulation Start]
[00010] VTS: Robot #2 → Task #0 (distance: 3.2m)
[00010] VTS: Robot #1 → Task #1 (distance: 4.2m)
[00015] Auction: Robot #3 wins VTS_12 (bid: 15.2)
...
[00220] ✅ Task #0 completed by Robot #2
[00235] ✅ Task #1 completed by Robot #1
...
[Simulation Complete]
==================================================
📊 Final Metrics
==================================================
Tasks Completed: 20/20
Throughput: 0.815 tasks/sec
Cross-Zone Handoffs: 27
Collisions Detected: 3
Collision Rate: 15.0%
Execution Time: 24.5s
==================================================
- 5 robots collaborated to complete 20 tasks
- Used VTS (Voxel Time Slot) allocation for collision-free coordination
- Vickrey Auction resolved resource contention
- Cross-Zone Handoffs enabled efficient task distribution
| Metric | Value | Description |
|---|---|---|
| Tasks Completed | 20/20 | 100% success rate |
| Throughput | 0.815 tasks/sec | Average task completion rate |
| Handoffs | 27 | Tasks transferred between zones |
| Collisions | 3 (15%) | Collision detection events |
| Execution Time | 24.5s | Total simulation time |
✅ All tasks completed: System successfully coordinated 5 robots
✅ High throughput: Efficient resource allocation
✅ Cross-zone handoffs: Demonstrated multi-zone coordination
Edit rust/examples/warehouse_demo.rs:
// Change robot count
let num_robots = 10; // Default: 5
// Change task count
let num_tasks = 50; // Default: 20
// Change duration
let duration_secs = 120; // Default: 60cargo build --release --bin warehouse_demo
cargo run --release --bin warehouse_democd rust
cargo test --all --releaseExpected: 226 tests passing (100%)
# Test physics engine
cargo test -p sap-physics --release
# Test auction system
cargo test -p sap-economy --release# Install criterion (if not already)
cargo install cargo-criterioncargo bench --allBenchmark results saved to: target/criterion/reports/index.html
Open in browser to see detailed performance charts.
| Benchmark | Target | Actual |
|---|---|---|
| Auction (100 bids) | <1ms | 8.8μs |
| Simulation (500 robots) | <10ms | 3.24ms |
| Zone update | <100μs | 4.5μs |
See: docs/integration/ROS2_Bridge.md
Quick start:
# Install ROS2 humble (if not already)
# Clone sap-ros2-bridge package
# ros2 run sap_bridge sap_bridge_nodeSee: docs/integration/VDA5050_Mapping.md
Quick start:
# Configure MQTT broker
# Run VDA5050 adapter
# cargo run --bin vda5050_adapter- Full Specification:
SAP_2.3_Specification.md - Project Status:
Project_Status_Report.md - Domain Profiles:
profiles/DomainProfiles.md
# Format code
cargo fmt --all
# Lint code
cargo clippy --all
# Build documentation
cargo doc --no-deps --openFor production deployment guides:
- Hardware requirements → See
SAP_2.3_Specification.md§12 - Network configuration → See
SAP_2.3_Specification.md§11 - Security setup → See
SAP_2.3_Specification.md§10
Problem: cargo build fails
Solution:
# Update Rust toolchain
rustup update
# Clean and rebuild
cargo clean
cargo build --releaseProblem: warehouse_demo crashes
Solution:
# Check Rust version
rustc --version # Should be 1.70+
# Run with debug output
RUST_LOG=debug cargo run --release --bin warehouse_demoProblem: Demo is slow
Solution:
- Use release build:
--releaseflag is required - Check CPU: Multi-core processor recommended
- Close other applications: Free up system resources
- GitHub Issues: Report bugs
- Discussions: Ask questions
- Documentation: Browse
docs/folder
- Contributors: See CONTRIBUTING.md
- License: MIT License
Congratulations! You've successfully:
- ✅ Installed SAP
- ✅ Run the warehouse demo
- ✅ Understood key concepts (VTS, Auction, Handoffs)
- ✅ Explored performance benchmarks
Next: Dive deeper into the Full Specification or try integrating with ROS2!
Quick Start Guide | SAP 2.3 | Last updated: 2025-12-10