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

[ROS2] How to query Quality of Service (QoS) Parameters from Command line

asked 2021-02-02 11:56:11 -0600

Kevin DeMarco gravatar image

Is there a way to query the quality of service (QoS) parameters for ROS2 topics from the command line? Without the ability to query the QoS from the command line, users have to read the source code that created publishers or subscribers. This isn't a good option in the long run. I've run into mismatched QoS parameters when using NAV2, RVIZ2 and robot_state_publisher because they use custom QoS parameters; thus, messages are not received without any ability to debug the problem. I've read about new users' frustrations with ROS2 on GitHub issues because the QoS parameters are opaque.

I understand exposing the QoS parameters through the rclpy and rclcpp APIs is probably tedious, not fun, and maybe no one is paying for it. Is there a workaround (besides reading source code)?

There was one question about this feature years ago, but it has been ignored: https://answers.ros.org/question/3049...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-02 12:21:10 -0600

gvdhoorn gravatar image

updated 2021-02-02 12:21:19 -0600

Isn't this output by ros2 topic info --verbose?

From the usage text:

  --verbose, -v  Prints detailed information like the node name, node namespace, topic type, GUID and QoS Profile of the publishers and subscribers to this topic
edit flag offensive delete link more

Comments

Thanks, that's what I was looking for! I am going to see if I can add this to the ROS2 tutorial documentation.

Kevin DeMarco gravatar image Kevin DeMarco  ( 2021-02-02 12:33:57 -0600 )edit

Is it not available for ros2 dashing? For the it says --verbose argument not recognized

rugved gravatar image rugved  ( 2021-07-12 21:15:59 -0600 )edit

No, I don't believe it is.

The OP also asked about Foxy.

gvdhoorn gravatar image gvdhoorn  ( 2021-07-13 02:37:36 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2021-02-02 11:56:11 -0600

Seen: 1,201 times

Last updated: Feb 02 '21