Ask Your Question

How can I listen to service-topics?

asked 2015-07-29 02:21:27 -0600

NEngelhard gravatar image


When debugging actions, I often do a rostopic echo on the goal and result topic. However, I haven't found similar topics for services. How can I listen to this communication?

edit retag flag offensive close merge delete


Have you tried rosservice command?

Javier V. Gómez gravatar imageJavier V. Gómez ( 2015-07-29 03:22:28 -0600 )edit

With rosservice you can not get into the communication, you can just call a existing service

rosservice options -> call  find  list  type  uri
cyborg-x1 gravatar imagecyborg-x1 ( 2015-07-29 03:24:21 -0600 )edit

I rarley use rosservice, that is why I wasn't sure :)

Javier V. Gómez gravatar imageJavier V. Gómez ( 2015-07-29 03:45:49 -0600 )edit

Me too, actually when you have something wrong, everything can hang :D

cyborg-x1 gravatar imagecyborg-x1 ( 2015-07-29 03:50:43 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2015-07-29 03:22:08 -0600

updated 2015-07-29 03:22:51 -0600

Services are not topics. I guess there is no way to look into it, there is only one service with the same name allowed. Because services are blocking calls, like function calls. So to listen to a service, you must provide it, but I guess there is no way to "listen" to it if you are not the call receiver.

edit flag offensive delete link more


ok, thanks. I guess I just have to use actions.

NEngelhard gravatar imageNEngelhard ( 2015-07-29 04:29:47 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2015-07-29 02:21:27 -0600

Seen: 1,147 times

Last updated: Jul 29 '15