Skip to content

Commit

Permalink
Update rcl_lifecycle/src/com_interface.c
Browse files Browse the repository at this point in the history
Co-authored-by: Tomoya Fujita <[email protected]>
Signed-off-by: Kuwada Junya <[email protected]>
  • Loading branch information
kjjpc and fujitatomoya authored Jul 22, 2024
1 parent 614c989 commit a470a6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rcl_lifecycle/src/com_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ 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;
// transition event topic needs to be latched for the subscription joins later.
publisher_options.qos.durability = RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL;
publisher_options.qos.depth = 1;
rcl_ret_t ret = rcl_publisher_init(
Expand Down

0 comments on commit a470a6f

Please sign in to comment.