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

Can we call a hidden service ?

asked 2021-07-02 05:01:19 -0500

TeaTea gravatar image

Hello everyone, I saw that ROS2 use some hidden services. These services can be displayed with the command

ros2 service --include-hidden-services list -t

When I tried to call one of these services with his type, cli returns me this message : The passed service type is invalid with the type given by the previous command

So, I was wondering if it is possible to call one of theses services ?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-07-31 12:11:45 -0500

josho.wallace@gmail.com gravatar image

Hello!

Sorry for the late reply. So, I tried the same thing and it looks like you can't call the service cancel service directly. I am not quite sure of the reasoning behind this but to you can simply cancel the send goal by Ctrl +C the initial request. So exposing that service to be called doesn't really gain the user much.

However,

to get the same functionality in code you simply need to call the function below.

https://github.com/ros2/rclcpp/blob/r....

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-07-02 05:01:19 -0500

Seen: 290 times

Last updated: Jul 31 '22