piglet
piglet is a Rust library designed to control IP-based Hamilton robots.
Compatibility
While piglet has been primarily tested with a Nimbus HD (2021), it is easily extendable to the
ML Prep and other variants of the Nimbus platform. STAR and Vantage robots are significantly
different and fall outside the current scope of this project.
Current state
- Test extensively and flesh out the missing pieces
- Add support for other Nimbuses
- Add support for ML Prep
- Add support for discovering robots on the network
- Learn Rust
Example usage
use RobotClient;
use ;
use env;
use Arc;
async
Generating robot APIs
Hamilton robots offer an introspection API that allows for dynamic discovery of all available calls.
The piglet_codegen tool leverages this to generate type-safe Rust code for any robot it's pointed
at.
For example, the piglet_generated/src/nimbus_hd_1_0 folder was generated by pointing the generator
at our Nimbus's IP address.
To generate API bindings:
- Build
piglet_codegen: - Run the generator: Point it to your robot's IP address and specify a module name
As an example, the piglet_generated/src/nimbus_hd_1_0 folder in this repository was generated
from our Nimbus HD by running piglet_codegen 172.31.255.3:2000 nimbus_hd_1_0