21 releases (8 breaking)

0.9.1 Jul 31, 2024
0.8.0 Apr 15, 2024
0.7.2 Mar 24, 2024
0.7.0 Dec 17, 2023
0.1.2 Jun 18, 2020

#34 in Robotics

Download history 2/week @ 2024-08-23 2/week @ 2024-08-30 12/week @ 2024-09-13 167/week @ 2024-09-20 110/week @ 2024-09-27 18/week @ 2024-10-04 43/week @ 2024-10-11 6/week @ 2024-10-18 4/week @ 2024-10-25 78/week @ 2024-11-01 77/week @ 2024-11-08 56/week @ 2024-11-15 83/week @ 2024-11-22 74/week @ 2024-11-29 84/week @ 2024-12-06

314 downloads per month
Used in dynamixel2-cli

BSD-2-Clause

98KB
2K SLoC

dynamixel2 docs tests

An implementation of the Dynamixel Protocol 2.0.

This library aims to provide a easy to use but low level implementation of the Dynamixel Protocol 2.0. That means it allows you to execute arbitrary commands with arbitrary parameters.

The library does not aim to provide an easy interface to the higher level functions of a servo motor, such as moving it to a specific angle or at a specific speed. Instead, you will have to write the appropriate values to the correct registers yourself.

The main interface is the Bus struct, which represents the serial communication bus. The Bus struct exposes functions for all supported instructions such as Bus::ping, Bus::read, Bus::write and much more. Additionally, you can also transmit raw commands using Bus::write_instruction and Bus::read_status_response, or Bus::transfer_single.

The library currently implements all instructions except for the Control Table Backup, Fast Sync Read and Fast Sync Write instructions.

Optional features

You can enable the log feature to have the library use log::trace!() to log all sent instructions and received replies.

Dependencies

~120–355KB