MD Node#
The MD ROS2 Node provides operational control and telemetry for MAB Robotics MD drive controllers.
It is intended as a runtime interface and does not perform device configuration.
For configuration, use CANdleTool.
MD Node Services#
The following services provide runtime control over MD drive controllers.
Service Name |
Description |
Service Type |
|---|---|---|
|
Registers MD drives in the system |
|
|
Enables selected registered drives |
|
|
Disables selected registered drives |
|
|
Changes the operating mode |
|
|
Performs a zeroing operation |
Set Mode Service Details#
The /md/set_mode service accepts requests of type candle_ros2/SetMode, field mode is a string that can take one of the following values:
An unrecognized mode sets the drive to IDLE and returns false in the success field for that drive.
Add MDs Service Details#
Drives that are already registered are skipped by /md/add_mds and reported with false in the success field.
MD Node Topics#
Subscribed Topics#
Topic Name |
Description |
Message Type |
|---|---|---|
|
General motion command input |
|
|
Position PID controller commands |
|
|
Velocity PID controller commands |
|
|
Impedance PD controller commands |
Published Topics#
Topic Name |
Description |
Message Type |
|---|---|---|
|
Joint state feedback for all MD drives |
|
Control Loop#
The node runs a single control loop at 200 Hz that handles all bus communication with registered drives. In each cycle it:
Sends the latest pending
/md/motion_commandtargets (position, velocity, torque) to each drive. If several commands arrive between cycles, only the most recent one is sent.Reads position, velocity and torque from each drive and publishes them on
/md/joint_states. Drives that fail to respond are omitted from that cycle’s message.