How unitreerobotics/dfx_inspire_service works
DFX Inspire Hand service bridges Unitree DDS motor commands and state messages to the hand’s serial protocol. H1 and G1 launch paths configure different serial arrangements, then periodically apply 12 joint commands and read 12 joint states. The graph covers the sampled runtime and README-documented example capability; example internals were not sampled, so its link is documented rather than source-verified.
Main entry points: inspire_h1.cpp Periodic hand runner · Subscription.h Command subscription · inspire_g1.cpp G1 service · Publisher.h State publisher
Components 11
Service entrypoints
- H1 service
inspire_h1.cpp - G1 service
inspire_g1.cpp - Runtime parameters
include/param.h - Periodic hand runner
inspire_h1.cpp
DDS messaging
- Command subscription
include/dds/Subscription.h - State publisher
include/dds/Publisher.h
Hand hardware
- Hand protocol control
include/inspire.h - Serial transport
include/SerialPort.h - Inspire hands
Other components
- DDS client
- Hand example client
example/hand_example.cpp
Connections 13
- DDS client → Command subscription: sends commands
README.md - Command subscription → Periodic hand runner: provides commands
inspire_h1.cpp - H1 service → Runtime parameters: reads options
inspire_h1.cpp - G1 service → Runtime parameters: reads options
inspire_g1.cpp - H1 service → Periodic hand runner: starts
inspire_h1.cpp - G1 service → Periodic hand runner: starts
inspire_g1.cpp - Periodic hand runner → Command subscription: checks freshness
inspire_h1.cpp - Periodic hand runner → Hand protocol control: sets and reads
inspire_h1.cpp - Hand protocol control → Serial transport: sends and receives
include/inspire.h - Serial transport → Inspire hands: serial frames
- Periodic hand runner → State publisher: publishes states
inspire_h1.cpp - State publisher → DDS client: sends state topic
README.md - Hand example client → DDS client: DDS client example
README.md