Robotics StackExchange | Archived questions

service call without blocking other callbacks

Hi

I would like to call a service a which moves a joint to a specific position and returns true if it has finished. The problem is I need other callback functions, one b which receives the current joint position. By executing the service call a, callback b is blocked and therefore I cannot verify that the joint is at the desired location. Does someone have an idea how to solve this problem?

Thanks

Asked by gab27 on 2021-06-03 01:46:07 UTC

Comments

Answers

Check out "Multi Thread Spinning" @ Callbacks and Spinning. This should all you to have multiple services/callbacks run at the same time without the service holding everything up.

Asked by JackB on 2021-06-04 16:17:42 UTC

Comments