Documentation Index
Fetch the complete documentation index at: https://motorbridge.seeedstudio.com/llms.txt
Use this file to discover all available pages before exploring further.
Source:
docs/en/extending.mdExtending motorbridge
Vendor Onboarding Flow
Add a New Vendor (example: RobStride)
Goal: keepmotor_core unchanged; add a new vendor crate.
- Create crate (for example
motor_vendor_robstride). - Implement vendor layers:
protocol.rsregisters.rsmotor.rs(implementmotor_core::MotorDevice)controller.rs(facade overCoreController)
- Expose vendor access from ABI if needed (for example
motor_controller_add_robstride_motor). - Add crate to workspace members.
Add Models Under Existing Vendor (Damiao)
- Open
motor_vendors/damiao/src/motor.rs. - Extend model catalog entries (
model,pmax,vmax,tmax). - Keep model strings consistent with user input.
Protocol Compatibility Rule
Do not assume same-vendor models are always protocol-identical. Validate at least:- frame structure and arbitration IDs
- register mapping and data type
- control mode mapping
- limit ranges and scaling
- status/error semantics
Suggested Hardware Regression
enable -> ensure_mode(MIT) -> zero command- trajectory follow test (position/velocity/torque)
- register read/write validation (
rid=10and critical R/W registers) - clear-error and recovery path
- 10-30 min stability run