Software
dynamixel_hardware_interface
By ROBOTIS, South Korea (checked on github.com/ROBOTIS-GIT (opens in a new tab)), from github.com/ROBOTIS-GIT/dynamixel_hardware_interface (opens in a new tab)
- Robot arms and industry
- Driver or SDK
- Apache-2.0
A ROS 2 package providing a ros2_control hardware interface for driving Dynamixel servo motors, plus the dynamixel_interfaces package with its custom messages.
Facts
- GitHub stars
- 45read on 28 Nov 2026
- Last update
- 18 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
- Hardware it needs, as the project states it
- Dynamixel servos, a USB2 Dynamixel or U2D2 adapter, and a proper power supply for the Dynamixel motors.
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- Apache-2.0 (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit d9e755b (opens in a new tab), on 21 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Plugs Dynamixel motors into the ros2_control framework as a hardware interface.
- Configured through ros2_control XML: serial port name, baud rate and communication error timeout.
- Joints expose position command interfaces and position, velocity and effort state interfaces.
- GPIO tags define each motor by name and ID, with command and state interfaces and parameters such as PID gains and drive mode.
- Uses control table model files such as xm430_w350.model to map motor settings to memory addresses.
- Provides services to get and set motor data, reboot motors and enable or disable torque, and a topic publishing the motor state.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- Apache-2.0. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 18 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/ROBOTIS-GIT/dynamixel_hardware_interface (opens in a new tab)
- The version Robotheca readd9e755b (opens in a new tab)
- Latest release1.5.3 (2 Nov 2026)
Robotheca read the repository at two versions: the summary at 6bb5f93 and the facts and the README at d9e755b (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by ROBOTIS, at commit d9e755b, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Dynamixel Hardware Interface User Guide
1. Introduction
ROS 2 package providing a hardware interface for controlling Dynamixel (opens in a new tab) motors via the ros2_control framework (opens in a new tab). This repository includes the dynamixel_hardware_interface plugin for seamless integration with ROS 2 control, along with the dynamixel_interfaces (opens in a new tab) package containing custom message definitions used by the interface
2. Prerequisites
This package currently supports ROS 2 Humble, Jazzy, Rolling. Ensure that ROS 2 is properly installed.
-
Hardware Requirements:
- Dynamixel servos
- USB2 Dynamixel or U2D2 adapter
- Proper power supply for Dynamixel motors
3. Installation
-
Clone the repository into your ROS workspace:
cd ~/${WORKSPACE}/src git clone -b ${ROS_DISTRO} https://github.com/ROBOTIS-GIT/DynamixelSDK.git git clone -b ${ROS_DISTRO} https://github.com/ROBOTIS-GIT/dynamixel_hardware_interface.git git clone -b ${ROS_DISTRO} https://github.com/ROBOTIS-GIT/dynamixel_interfaces.git -
Build the package:
cd ~/${WORKSPACE} colcon build -
Source your workspace:
source ~/${WORKSPACE}/install/setup.bash
4. Currently Used Packages
This project integrates with the following ROS 2 packages to provide extended functionality:
- open_manipulator (opens in a new tab) A ROS-based open-source software package designed for the OpenManipulator-X and OMY. It provides essential features like motion planning, kinematics, and control utilities for seamless integration with ROS 2 environments.
5. Configuration
To effectively use the Dynamixel Hardware Interface in a ROS 2 control system, you need to configure specific parameters in your ros2_control hardware description file. Below is a concise explanation of the key parameters, illustrated with examples from the OpenManipulator-X ROS 2 control.xacro file.
- Port Settings: Define serial port and baud rate for communication.
- Hardware Setup: Configure joints and transmissions.
- Joints: Control and monitor robot joints.
- GPIO: Define and control Dynamixel motors.
1. Port and Communication Settings
These parameters define how the interface communicates with the Dynamixel motors:
-
port_name: Serial port for communication. -
baud_rate: Communication baud rate. -
error_timeout_ms: Timeout for communication errors (in milliseconds).
2. Hardware Configuration
These parameters define the hardware setup:
-
number_of_joints: Total number of joints. -
number_of_transmissions: Number of transmissions. -
Transmission Matrices: Define joint-to-transmission mappings.
3. Joint Configuration
Joints define the control and state interfaces for robot movement:
Key Attributes
name: Unique joint name. Example:${prefix}joint1
Sub-Elements
-
<command_interface>: Sends commands to joints.<command_interface name="position"> -
<state_interface>: Monitors joint state data.<state_interface name="position"/> <state_interface name="velocity"/> <state_interface name="effort"/>
4. GPIO Configuration
The GPIO tag is used to define the configuration of Dynamixel motors in a robotics system. It serves as a declarative structure to set up motor-specific parameters, command interfaces, and state monitoring capabilities. This allows seamless integration of Dynamixel hardware with software frameworks.
Key Attributes
name: A unique identifier for the motor configuration (e.g.,dxl1).ID: The unique ID assigned to the motor in the Dynamixel network (e.g.,11).
Sub-Elements
-
<param>: Specifies motor-specific settings. These parameters correspond to the properties of the Dynamixel motor, such as its type, control mode, or PID gain values.<param name="type">dxl</param> -
<command_interface>: Defines the control commands that can be sent to the motor. For example, setting the desired goal position.<command_interface name="Goal Position"/> -
<state_interface>: Specifies the state feedback interfaces to monitor real-time motor data, such as position, velocity, and current.<state_interface name="Present Position"/> <state_interface name="Present Velocity"/> <state_interface name="Present Current"/>
Example GPIO Configuration
Below is an example of a fully defined GPIO configuration for a Dynamixel motor. This example demonstrates how to configure a motor with ID 11, define command interfaces, monitor state data, and set additional parameters such as PID gains and drive mode.
<gpio name="dxl1">
<param name="type">dxl</param>
<param name="ID">11</param>
<command_interface name="Goal Position"/>
<state_interface name="Present Position"/>
<state_interface name="Present Velocity"/>
<state_interface name="Present Current"/>
<param name="Position P Gain">800</param> <!-- Proportional gain for position control -->
<param name="Position I Gain">100</param> <!-- Integral gain for position control -->
<param name="Position D Gain">100</param> <!-- Derivative gain for position control -->
<param name="Drive Mode">0</param> <!-- 0: Clockwise, 1: Counterclockwise -->
</gpio>
Dynamixel Control Table Reference
The Dynamixel hardware interface uses control tables, defined in model-specific files such as xm430_w350.model, to configure and interact with the motor's internal settings. These control tables map hardware parameters to specific memory addresses and data types, enabling fine-grained control and monitoring.
Example from xm430_w350.model:
[Control Table]
Address Size Data Name
0 2 Model Number
2 4 Model Information
6 1 Firmware Version
7 1 ID
...
Usage
- The control table specifies the internal memory layout of the Dynamixel motor.
- For instance, you can set the motor ID at address
7, or configure firmware-specific options at address6.
These settings can be defined within the GPIO configuration or dynamically updated through commands based on the control table schema.
This professional explanation highlights the flexibility and precision of the Dynamixel hardware interface, empowering developers to fully utilize their motor's capabilities within a structured framework. For further details, refer to the official Dynamixel e-Manual (opens in a new tab).
6. Usage
Ensure the parameters are configured correctly in your ros2_control YAML file or XML launch file.
-
Example Parameter Configuration
<ros2_control> <param name="dynamixel_state_pub_msg_name">dynamixel_hardware_interface/dxl_state</param> <param name="get_dynamixel_data_srv_name">dynamixel_hardware_interface/get_dxl_data</param> <param name="set_dynamixel_data_srv_name">dynamixel_hardware_interface/set_dxl_data</param> <param name="reboot_dxl_srv_name">dynamixel_hardware_interface/reboot_dxl</param> <param name="set_dxl_torque_srv_name">dynamixel_hardware_interface/set_dxl_torque</param> </ros2_control>
Topic and Service Descriptions
1. dynamixel_state_pub_msg_name
-
Description: Defines the topic name for publishing the Dynamixel state.
-
Default Value:
dynamixel_hardware_interface/dxl_state
2. get_dynamixel_data_srv_name
-
Description: Specifies the service name for retrieving Dynamixel data.
-
Default Value:
dynamixel_hardware_interface/get_dxl_data
3. set_dynamixel_data_srv_name
-
Description: Specifies the service name for setting Dynamixel data.
-
Default Value:
dynamixel_hardware_interface/set_dxl_data
4. reboot_dxl_srv_name
-
Description: Specifies the service name for rebooting Dynamixel motors.
-
Default Value:
dynamixel_hardware_interface/reboot_dxl
5. set_dxl_torque_srv_name
-
Description: Specifies the service name for enabling or disabling torque on Dynamixel motors.
-
Default Value:
dynamixel_hardware_interface/set_dxl_torque
7. Contributing
We welcome contributions! Please follow the guidelines in CONTRIBUTING.md (opens in a new tab) to submit issues or pull requests.
8. License
This project is licensed under the Apache License 2.0. See the LICENSE (opens in a new tab) file for details.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.