ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How can I listen to service-topics?

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

NEngelhard gravatar image

Hey!

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

Comments

Have you tried rosservice command?

Javier V. Gómez gravatar image Javier V. Gómez  ( 2015-07-29 03:22:28 -0500 )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 image cyborg-x1  ( 2015-07-29 03:24:21 -0500 )edit

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

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

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

cyborg-x1 gravatar image cyborg-x1  ( 2015-07-29 03:50:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

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

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

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

Comments

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

NEngelhard gravatar image NEngelhard  ( 2015-07-29 04:29:47 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 4,819 times

Last updated: Jul 29 '15