Skip to content

Commit

Permalink
Make transition event topic reliable to avoid topic lost
Browse files Browse the repository at this point in the history
  • Loading branch information
kjjpc committed Jul 19, 2024
1 parent 0723613 commit c26adc8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rcl_lifecycle/src/com_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ rcl_lifecycle_com_interface_publisher_init(

// initialize publisher
rcl_publisher_options_t publisher_options = rcl_publisher_get_default_options();
publisher_options.qos.reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
publisher_options.qos.durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
publisher_options.qos.depth = 1;
rcl_ret_t ret = rcl_publisher_init(
&com_interface->pub_transition_event, node_handle,
ts_pub_notify, pub_transition_event_topic, &publisher_options);
Expand Down

0 comments on commit c26adc8

Please sign in to comment.