Ask Your Question
1

Run a ros service callback "parallel"

asked 2011-04-27 04:27:58 -0600

Niklas gravatar image

updated 2014-01-28 17:09:35 -0600

ngrennan gravatar image

Hello everyone,

in our Project we have a GUI that upon button click calls a ros service that does somenthing. While the callback routine is executed the GUI freezes of course because it waits for the callback to return.

What would be the most elegant way to avoid that behavior? (The Service Response is unimportant to the GUI)

Kind Regards Niklas

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-04-27 14:02:12 -0600

Eric Perko gravatar image

I see two options:

  1. Use a topic instead of a service. Topics are exactly designed for "I don't need a response"
  2. If you must use a service, you could likely spin up another thread to execute the service call in so that it doesn't block you GUI thread.
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

Stats

Asked: 2011-04-27 04:27:58 -0600

Seen: 674 times

Last updated: Apr 27 '11