LowCmd_ on rt/lowcmd. Both LowCmd_ and LowState_ contain 20 motor slots. Legs use D2 order, with hip, thigh, and calf within each leg.
Use the D2 header
0xFE, 0xEF, level flag 0xFF, and SDK CRC. Keep unused slots neutral. The pinned D2 sentinels are PosStopF = 2.146e9f and VelStopF = 16000.0f. D2W wheel slots require kp = 0. Read rt/kinatric/robot_description before building targets and use the deployed robot’s limits and calibrated gains.
- Call
ReleaseMode()from the SDK participant that will publish the low-level stream. PollCheckMode()untilnameis empty. - Start the valid
LowCmd_stream from a single writer. Confirmcontroller=external, the matchingauthorization.participant, and a populatedauthorization.low_writerincontrol_state. - To return control, keep the stream running during
SelectMode("normal")and verifyCheckMode()reportsname="normal". Stop publishing when the handover succeeds.
d2_client.py hold example is a 12-leg-axis hold. It uses a fresh CRC-checked LowState_ sample for position targets, accepts caller-supplied --kp, --kd, and --seconds, and publishes about every 5 ms. For D2W, use the robot description and a wheel-aware publisher when commanding the wheel axes.
Motor command receipts
rt/kinatric/lowcmd_receipt carries kinatric::LowCmdReceiptV1. Join it with rt/kinatric/external_lowcmd_origin (kinatric::ExternalLowCmdOriginV1) on owner, session_id, and tick to trace an external command selected by the HAL. Origin data includes the participant, writer, grant epoch, and relay source timestamp. Use matching Kinatric generated types on the client and board.
requested_mask, accepted_mask, and the applied array use D2 slot order. Inspect the corresponding accepted_mask bit before reading applied[i]. Use joint feedback to verify the resulting motion. HAL timestamps such as completed_ns use the board’s monotonic clock, while the origin’s relay_source_ns is a board DDS timestamp.