@@ -67,7 +67,7 @@ rmw_create_publisher(
6767 (void )publisher_options ;
6868
6969 EPROS_PRINT_TRACE ()
70- rmw_publisher_t * rmw_publisher = NULL ;
70+ rmw_publisher_t * rmw_publisher = NULL ;
7171 if (!node )
7272 {
7373 RMW_SET_ERROR_MSG ("node handle is null" );
@@ -119,8 +119,8 @@ rmw_create_publisher(
119119
120120 custom_publisher -> stream_id =
121121 (qos_policies -> reliability == RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT ) ?
122- custom_node -> context -> best_effort_input :
123- custom_node -> context -> reliable_input ;
122+ custom_node -> context -> best_effort_output :
123+ custom_node -> context -> reliable_output ;
124124
125125 custom_publisher -> cs_cb_size = NULL ;
126126 custom_publisher -> cs_cb_serialization = NULL ;
@@ -185,13 +185,13 @@ rmw_create_publisher(
185185 }
186186 publisher_req = uxr_buffer_create_publisher_xml (
187187 & custom_publisher -> owner_node -> context -> session ,
188- custom_node -> context -> reliable_output ,
188+ * custom_node -> context -> creation_destroy_stream ,
189189 custom_publisher -> publisher_id ,
190190 custom_node -> participant_id , rmw_uxrce_xml_buffer , UXR_REPLACE );
191191 #elif defined(RMW_UXRCE_TRANSPORT_USE_REFS )
192192 publisher_req = uxr_buffer_create_publisher_xml (
193193 & custom_publisher -> owner_node -> context -> session ,
194- custom_node -> context -> reliable_output ,
194+ * custom_node -> context -> creation_destroy_stream ,
195195 custom_publisher -> publisher_id ,
196196 custom_node -> participant_id , "" , UXR_REPLACE );
197197 #endif
@@ -220,7 +220,7 @@ rmw_create_publisher(
220220
221221 datawriter_req = uxr_buffer_create_datawriter_xml (
222222 & custom_publisher -> owner_node -> context -> session ,
223- custom_node -> context -> reliable_output ,
223+ * custom_node -> context -> creation_destroy_stream ,
224224 custom_publisher -> datawriter_id ,
225225 custom_publisher -> publisher_id , rmw_uxrce_xml_buffer , UXR_REPLACE );
226226 #elif defined(RMW_UXRCE_TRANSPORT_USE_REFS )
@@ -232,7 +232,7 @@ rmw_create_publisher(
232232
233233 datawriter_req = uxr_buffer_create_datawriter_ref (
234234 & custom_publisher -> owner_node -> context -> session ,
235- custom_node -> context -> reliable_output ,
235+ * custom_node -> context -> creation_destroy_stream ,
236236 custom_publisher -> datawriter_id ,
237237 custom_publisher -> publisher_id , rmw_uxrce_profile_name , UXR_REPLACE );
238238 #endif
0 commit comments