Skip to content
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.7.0][PYTHON][USB2Dynamixel2][XM430-W350-R]reduce USB latency time #288

Closed
bishopAL opened this issue Feb 25, 2019 · 2 comments
Closed

Comments

@bishopAL
Copy link

Hi! I have some problems on USB latency time. I have modified latency_time to 1ms in Ubuntu. What I need to do is to get the present position and present velocity, then set the torque, all of these operations costs 6ms (with PacketHandler.readTxRx and PacketHandler.writeTxRx function). It's fast enough for 1 motor, but I have 12 motors to drive. It will cost 72ms for a period. That's disaster! So how can I reduce this latency time? Will ROS be helpful?

@Reuben-Brewer
Copy link

I think you have to set the latency timer both in the Dynamixel SDK and in the OS. For the SDK, edit the file: \DynamixelSDK-3.7.0\python\src\dynamixel_sdk\port_handler.py

There's a line "LATENCY_TIMER = 16", which I changed to 1 and then re-installed the module.

@bishopAL
Copy link
Author

bishopAL commented Mar 5, 2019

Thanks! I have tried it and it's working.

@bishopAL bishopAL closed this as completed Mar 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants