sequenceplanner/r2r

action server topic not listed with `ros2 topic list`

ckaran opened this issue · 2 comments

ckaran commented

I'm writing an action server based off of this [example code(https://github.com/sequenceplanner/r2r/blob/master/r2r/examples/action_server.rs). When I run my action server and then run ros2 topic list, nothing is listed. When I run ros2 topic list --include-hidden-topics, then I get the following output:

/my_topic/_action/feedback
/my_topic/_action/status

I don't see the topic for submitting goals in the first place. Am I doing something wrong?

Also, why are the topics hidden? Is it possible to make them unhidden by default?

m-dahl commented

Hello.

This is the way it is supposed to work in ros. You interact with actions with the ros2 action commands.
e.g. ros2 action list, etc. There you will see your action. Internally, an action is made up of several services and publishers. These are hidden by default as you are not expected to use them directly. Fyi you can see the internal set goal service similarly: ros2 service list --include-hidden.

I hope this helps.

ckaran commented

@m-dahl Wow, that was a fast response! Thank you!

OK, so it was definitely an error on my part. I apologize about bothering you with the question, I'm not nearly as familiar with ROS as I would like to be.

Also, thank you for making r2r! It's nice to be able to use Rust instead of C++ or Python for all my work.