Function rcl_subscription_get_default_options

Function Documentation

rcl_subscription_options_t rcl_subscription_get_default_options(void)

Return the default subscription options in a rcl_subscription_options_t.

The defaults are:

  • qos = rmw_qos_profile_default

  • allocator = rcl_get_default_allocator()

  • rmw_subscription_options = rmw_get_default_subscription_options();

  • disable_loaned_message = true, false only if ROS_DISABLE_LOANED_MESSAGES=0

Returns:

A structure containing the default options for a subscription.