-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.6.0][Python][USB2DYNAMIXEL][MX-64AR] Issue: read_write.py doesn't work due to "out of range" error #197
Comments
Hi :) Before you run example, you are supposed to set control table item in line from 52 to 54 For example, After replace others, you can run your Dynamixels. Thanks |
Hello! That worked! Thank you so much! Another not-so-related question: Please let me know how I can set the new baud rate successfully. |
Hi :) No, before you run python code, you are supposed to install setup.py Moreover, Thanks |
Hello! That clears things up, thank you for your help! |
Great. If you have any problem or inquiry about SDK, please feel free to open any issue. Thanks :) |
Hi, I have currently a similar problem, I don't know what to put in some item of the control table. |
You may use the min / max position value of your DYNAMIXEL. If you are getting the out of range error, please check if the data you are transmitting is within the valid range defined in the control table. Thanks! |
Hi @alinena The MX-28AT with Protocol 1.0 firmware uses different control table then the Protocol 20. Thanks! # Control table address
ADDR_MX_TORQUE_ENABLE = 24 # Control table address is different in Dynamixel model
ADDR_MX_GOAL_POSITION = 30
ADDR_MX_PRESENT_POSITION = 36 |
Thank you, I find the problem to print the position. The position was wrong and big because, I was considering that the position length was 4 and in reallity for the MX-28AT it is 2 bytes. |
I'm using
DynamixelSDK ver. 3.6.0
I'm using
Python
LanguageI'm using
USB2Dynamixel2
serial converterI'm using
mx-64 AR
and I'm having an
issue
like whatHello!
I am running Dynamixel 3.6.0 in Python on my Linux laptop. The MX-64 motor is protocol 1, baud rate not changed (57142 according to Roboplus), motor is completely new from the box.
I am having trouble running the read_write.py under python/tests/protocol1_0:
Issue #1 (solved)
The sdk import (line 50) was not defined, which will run into an import error, by adding this line in line 49:
This issue can be solved.
Issue #2 (MAIN)
After the path is defined, the script will run but the command prompt will show this:
(the present position value is sometimes at 000 as well)
To clarify, nothing else on the script is changed except the line stated in Issue #1.
I have ran this multiple times and tried with different motors. I had another person run it (independent of my instructions), and we both ran into this issue.
Please let me know how I can fix this so that the sample script can run smoothly with library 3.6.0.
Thank you!
The text was updated successfully, but these errors were encountered: