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

Support for asynchronous execution #8

Open
cmower opened this issue Jul 31, 2023 · 2 comments
Open

Support for asynchronous execution #8

cmower opened this issue Jul 31, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@cmower
Copy link
Member

cmower commented Jul 31, 2023

Currently, the library only allows for synchronous execution, i.e.

  1. KUKA controller sends a message to the LBR client
  2. Depending on the session state the monitor, onStateChange, waitForCommand, or command methods are called
  3. A response message is encoded and sent back to the controller.

It would be great to implement a way so that you can run a loop on the python side at what ever frequency you like, and have another thread execute in parallel that does the communication with the KUKA controller at the frequency specified on the pad (or in the Java).

@cmower cmower added the enhancement New feature or request label Jul 31, 2023
@cmower cmower mentioned this issue Aug 3, 2023
3 tasks
@cmower
Copy link
Member Author

cmower commented Aug 19, 2023

We can probably merge the async support in #9 (we can add the additional examples as todos later - there is one there that works and demonstrates how to implement an async app, so good enough for now) - @mhubii, before we should double check that the async example and updates work, were you able to test the latest changes on the robot?

Then we can work on merging #10 asap so pyFRI is properly incorporated with the lbr-stack.

@mhubii
Copy link
Member

mhubii commented Sep 3, 2023

Sorry just saw this, will have a look at it this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants