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

What is the QoS policy used for ROS2 /rosout?

asked 2021-02-05 13:37:07 -0500

joe@volvo gravatar image

Hi,

I'm using a native DDS application to publish ROS message to /rosout topic. I'm wondering what QoS policy that is used for /rosout. As I understand I would have to match the QoS setting between my native DDS publisher to the one configured for /rosout.

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-02-05 14:44:23 -0500

jacobperron gravatar image

updated 2021-02-05 14:44:55 -0500

The QoS for the rosout topic is configurable per node, though in most cases you can probably expect users to be using the default, defined here:

https://github.com/ros2/rcl/blob/7a25...

RMW_QOS_POLICY_HISTORY_KEEP_LAST,
1000,  // History depth
RMW_QOS_POLICY_RELIABILITY_RELIABLE,
RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL,
RMW_QOS_DEADLINE_DEFAULT,
{10, 0},  // Lifespan
RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT,
RMW_QOS_LIVELINESS_LEASE_DURATION_DEFAULT

You can also introspect the QoS settings for each publisher and subscription to the topic at runtime with ros2 topic info --verbose /rosout. Expect to see output like this:

Type: rcl_interfaces/msg/Log

Publisher count: 2

Node name: _ros2cli_daemon_16
Node namespace: /
Topic type: rcl_interfaces/msg/Log
Endpoint type: PUBLISHER
GID: 7a.57.10.01.35.c5.a7.5c.9f.bc.fa.d3.00.00.06.03.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  Durability: TRANSIENT_LOCAL
  Lifespan: 10000000000 nanoseconds
  Deadline: 9223372036854775807 nanoseconds
  Liveliness: AUTOMATIC
  Liveliness lease duration: 9223372036854775807 nanoseconds

Node name: _ros2cli_5495
Node namespace: /
Topic type: rcl_interfaces/msg/Log
Endpoint type: PUBLISHER
GID: f0.a8.10.01.7d.2f.7f.0e.d6.03.27.4a.00.00.06.03.00.00.00.00.00.00.00.00
QoS profile:
  Reliability: RELIABLE
  Durability: TRANSIENT_LOCAL
  Lifespan: 10000000000 nanoseconds
  Deadline: 9223372036854775807 nanoseconds
  Liveliness: AUTOMATIC
  Liveliness lease duration: 9223372036854775807 nanoseconds

Subscription count: 0
edit flag offensive delete link more

Comments

--verbose needs to be advertised better. Especially with the focus on QoS and compatibility questions lately.

gvdhoorn gravatar image gvdhoorn  ( 2021-02-06 04:45:13 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-02-05 13:37:07 -0500

Seen: 348 times

Last updated: Feb 05 '21