Ask Your Question
0

How does ROS2 select the default QoS profile ?

asked 2018-07-25 06:37:44 -0500

aks gravatar image

I have a ROS2 based python code, which mentions nothing about the QoS Settings. I assume that it must be taking some default profile.

How can I view this default profile ? I mean where is the source of this profile ? Is it xml based ? Can I also edit it ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-07-25 07:37:54 -0500

dhood gravatar image

The defaults are defined here in rmw, and are described here. The default profiles are wrapped accordingly in rclpy (example), or you can customise the QoS settings like this. Some RMW implementations support xml file configuration in which case the rmw_qos_profile_system_default profile can be used to pass through to that configuration.

edit flag offensive delete link more

Comments

Thanks for the quick explanation @dhood. One question : If nothing at all is mentioned in the code(about QoS settings), e.g. talker.py, does it always use the default QoS or does it mean that it doesnt use any QoS in this case ?

aks gravatar imageaks ( 2018-07-25 07:48:42 -0500 )edit

without it being specified, pub/sub will use the profile rmw_qos_profile_default, services will use rmw_qos_profile_services_default, etc.

dhood gravatar imagedhood ( 2018-07-25 15:59:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-07-25 06:37:44 -0500

Seen: 301 times

Last updated: Jul 25 '18