ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

service call without blocking other callbacks

asked 2021-06-03 01:46:07 -0500

gab27 gravatar image

updated 2021-06-03 07:59:12 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-06-04 16:17:42 -0500

JackB gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-06-03 01:46:07 -0500

Seen: 147 times

Last updated: Jun 04 '21