Function rcl_publisher_get_default_options

Function Documentation

rcl_publisher_options_t rcl_publisher_get_default_options(void)

Return the default publisher options in a rcl_publisher_options_t.

The defaults are:

  • qos = rmw_qos_profile_default

  • allocator = rcl_get_default_allocator()

  • rmw_publisher_options = rmw_get_default_publisher_options()

  • disable_loaned_message = false, true only if ROS_DISABLE_LOANED_MESSAGES=1

Returns:

A structure with the default publisher options.