File tree Expand file tree Collapse file tree
rmw_microxrcedds_c/src/rmw_microros Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ rmw_ret_t rmw_uros_set_context_entity_creation_session_timeout(
6060 RMW_CHECK_ARGUMENT_FOR_NULL (context , RMW_RET_INVALID_ARGUMENT );
6161 rmw_uxrce_session_t * custom_session = (rmw_uxrce_session_t * )context -> impl ;
6262
63+ rmw_context_impl_t * context_impl = (rmw_context_impl_t * ) context -> impl ;
64+ custom_session -> creation_stream = session_timeout <= 0 ?
65+ & context_impl -> best_effort_output : & context_impl -> reliable_output ;
66+
6367 custom_session -> creation_timeout = session_timeout ;
6468 return RMW_RET_OK ;
6569}
@@ -71,6 +75,10 @@ rmw_ret_t rmw_uros_set_context_entity_destroy_session_timeout(
7175 RMW_CHECK_ARGUMENT_FOR_NULL (context , RMW_RET_INVALID_ARGUMENT );
7276 rmw_uxrce_session_t * custom_session = (rmw_uxrce_session_t * )context -> impl ;
7377
78+ rmw_context_impl_t * context_impl = (rmw_context_impl_t * ) context -> impl ;
79+ custom_session -> destroy_stream = session_timeout <= 0 ?
80+ & context_impl -> best_effort_output : & context_impl -> reliable_output ;
81+
7482 custom_session -> destroy_timeout = session_timeout ;
7583 return RMW_RET_OK ;
7684}
You can’t perform that action at this time.
0 commit comments