make rosout publisher transient local with a depth of 1000 (#582)

Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
This commit is contained in:
Dirk Thomas 2020-02-28 13:38:49 -08:00 committed by GitHub
parent 4dbf20d447
commit 74a1e7f228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,6 +173,8 @@ rcl_ret_t rcl_logging_rosout_init_publisher_for_node(
const rosidl_message_type_support_t * type_support = const rosidl_message_type_support_t * type_support =
rosidl_typesupport_c__get_message_type_support_handle__rcl_interfaces__msg__Log(); rosidl_typesupport_c__get_message_type_support_handle__rcl_interfaces__msg__Log();
rcl_publisher_options_t options = rcl_publisher_get_default_options(); rcl_publisher_options_t options = rcl_publisher_get_default_options();
options.qos.depth = 1000;
options.qos.durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
new_entry.publisher = rcl_get_zero_initialized_publisher(); new_entry.publisher = rcl_get_zero_initialized_publisher();
status = status =
rcl_publisher_init(&new_entry.publisher, node, type_support, ROSOUT_TOPIC_NAME, &options); rcl_publisher_init(&new_entry.publisher, node, type_support, ROSOUT_TOPIC_NAME, &options);