ros2 service list

asked 2021-10-21 00:35:02 -0500

Rongcai gravatar image

I have a question that why I can't see the service I have developed with below command line: ros2 service list

Appreciate any explaination from anyone.

Thanks Rongcai

edit retag flag offensive close merge delete

Comments

Did you build your package?

Colcon build

Ranjit Kathiriya gravatar image Ranjit Kathiriya  ( 2021-10-21 01:53:51 -0500 )edit

Thanks Ranjit a lot. I can show the service(ros2 service list) now only when the service is started.

However I'd like to ask how does the command line(ros2 service list) detect all the running services?

thanks Rongcai

Rongcai gravatar image Rongcai  ( 2021-10-23 07:30:29 -0500 )edit

This is handled by the underlying DDS. See this post: https://answers.ros.org/question/3273...

clyde gravatar image clyde  ( 2021-10-23 11:00:45 -0500 )edit

If your question has been answered, please add the answer below & mark it "accepted." That way others will know that this is solved. Thanks!

clyde gravatar image clyde  ( 2021-10-23 11:02:09 -0500 )edit