JeanElsner / panda-py

Python bindings for real-time control of Franka Emika robots.
https://jeanelsner.github.io/panda-py/
Apache License 2.0
77 stars 14 forks source link

Reading RobotState asynchronously #33

Open AnnabellaMacaluso opened 2 months ago

AnnabellaMacaluso commented 2 months ago

Hi, I have a separate process that needs to read RobotState continuously at specified frequency. In my main thread I'm also trying to execute robot move to pose commands. However, these two commands seem to conflict with each other and I get UDP timeout issues. What's the proper way to asynchronously read RobotState from a separate process?

Main Process: while True:

run some move_to_pose command

Process 1: robot = libfranka.Robot(hostname).read(test.call)