osr-rover-code icon indicating copy to clipboard operation
osr-rover-code copied to clipboard

Use C++ roboclaw library or switch to async python

Open Achllle opened this issue 1 year ago • 2 comments

A lot of time is spent waiting for communication with the roboclaws. Using an async python library to communicate with them or using threading in either language would alleviate this.

Achllle avatar Oct 09 '23 00:10 Achllle

Sorry maybe I don't fully understand here, how would async or threading improve this? You always only have the ability to communicate to a single device at a time, so you couldn't multi thread that. Can you explain a little more?

ericjunkins avatar Oct 09 '23 02:10 ericjunkins

Async or threading would simply mean that while the code is waiting for a response from the various IO devices, it can go and do other stuff such as respond to a callback or calculate odometry/state information.

Achllle avatar Oct 09 '23 03:10 Achllle