You can use this helper instead of the Dynamixel-SDK to speed up your work.
Project description
Easy Dynamixel Helper
This helper is a wrapper for the Dynamixel-SDK. With this, configure and drive your motor more quickly. You do not need to know how the SDK works. In other words, this helper makes it easy to modify the control table.
pip install dynamixel_helper --user
Table of Contents
- Features
- Simple Example
- Getting Started
- Tutorials
- Release Notes
- Current Coverage
- Contributing
- Maintainers
- Licenses
💎 Features
- Baud rate auto-matching
- Protocol auto-matching
- Port auto-matching (Easy connections in multi-USB)
- Motor configurations in JSON format
- Support for Python 3 and 2
- Make your code simple and clean
- Easy to use even for beginners.
🐣 Simple Example
The following code is an example of turning on the motor torque.
from dynamixel_helper import DxlHelper
helper = DxlHelper("preset/{my_robot}.json")
motor = helper.get_motor(0) # id: 0
motor.set_torque(True)
🚀 Getting Started
Prerequisites
-
pip (package manager)
# Python 2 sudo apt install python-pip python -m pip install -U pip # Python 3 sudo apt install python3-pip python3 -m pip install -U pip
-
Dynamixel SDK
CAUTION💥: Please install the
pip
before installing theDynamixel SDK
. Otherwise, when you install thisDynamixel Helper
, you will get an dependency error ofDynamixel SDK
.You need to install the official Dynamixel SDK before using this helper.
Click here: Dynamixel SDK Installation
-
Clone the official SDK repository into your custom folder, for example, I created
~/lib
.git clone https://github.com/ROBOTIS-GIT/DynamixelSDK.git
-
Go into the folder
/DynamixelSDK/python
of your cloned SDK.cd ${your_download_path}/DynamixelSDK/python
-
Run
setup.py
with--user
option to install the library. Administrator privileges, a.k.a.sudo
, are not recommended. More information here.python setup.py install --user
-
Installation
Simply type pip
command below to install this helper.
pip install dynamixel_helper --user
🌱 Tutorials
🚩 Release Notes
🔭 Current Coverage
Model List
- Tested models
- Non-tested models (Only the control tables are included.)
Control Table
Different models have slightly different control tables. Please check the documentation for each model. Just click the model name above to go to the document.
- EEPROM section
- drive mode (w)
- operating mode (w)
- RAM section
- torque (r/w)
- goal velocity (w)
- goal position (w)
- present velocity (r)
- present position (r)
💌 Contributing
- We will welcome whatever your contribution is!
- If you are planning to send a new
Pull request
, please send them into thedevelop
Branch.😍
Style Guide
This style guide is only a recommendation, never more important than your interest and contributions.
-
Our default Python style is PEP 8.
-
If you use VSCode as your code editor, please refer to the following settings. This setting is a part of our
setting.json
.{ "editor.tabSize": 4, "[json]": { "editor.tabSize": 2 }, "python.linting.pylintEnabled": false, "python.linting.pep8Enabled": true, "python.linting.enabled": true }
🔧 Maintainers
📜 Licenses
The contents of this repository are subject to the MIT License by default, except as noted below.
- Dynamixel SDK is under the Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dynamixel_helper-1.0.1.tar.gz
.
File metadata
- Download URL: dynamixel_helper-1.0.1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a299464237492dfe8705b1418002e02d2b9225bd9a65f37a8873db2241872b05 |
|
MD5 | b44fd084ce15629749c0ef32e34b51c8 |
|
BLAKE2b-256 | 40fada013afce460e85422e48cbc9c7952e907eb294a9b48c19e73bb3620ac80 |
File details
Details for the file dynamixel_helper-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: dynamixel_helper-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e0c639557004589193f61a6d86dbabb2a0fcbb92bf142a27d9a3e6e8df7765 |
|
MD5 | 3de1be29237b0211d90a011442f43763 |
|
BLAKE2b-256 | 64d0340a86cfac6e16d58eaa6ea264bab13017dec238a21b0d0ee587159b2d7a |