Skip to content

Commit f0d1c09

Browse files
pablogs9Your Name
authored andcommitted
Updates
1 parent 85cc7f5 commit f0d1c09

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

rmw_microxrcedds_c/src/rmw_init.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,20 +295,17 @@ rmw_init(const rmw_init_options_t * options, rmw_context_t * context)
295295
uxr_set_request_callback(&context_impl->session, on_request, NULL);
296296
uxr_set_reply_callback(&context_impl->session, on_reply, NULL);
297297

298-
#ifndef UCLIENT_BROKERLESS_ENABLE
299298
context_impl->reliable_input = uxr_create_input_reliable_stream(
300299
&context_impl->session, context_impl->input_reliable_stream_buffer,
301-
context_impl->transport.comm.mtu * RMW_UXRCE_STREAM_HISTORY, RMW_UXRCE_STREAM_HISTORY);
302-
context_impl->reliable_output =
303-
uxr_create_output_reliable_stream(
300+
RMW_UXRCE_MAX_BUFFER_SIZE, RMW_UXRCE_STREAM_HISTORY);
301+
context_impl->reliable_output = uxr_create_output_reliable_stream(
304302
&context_impl->session, context_impl->output_reliable_stream_buffer,
305-
context_impl->transport.comm.mtu * RMW_UXRCE_STREAM_HISTORY, RMW_UXRCE_STREAM_HISTORY);
306-
#endif
303+
RMW_UXRCE_MAX_BUFFER_SIZE, RMW_UXRCE_STREAM_HISTORY);
307304

308305
context_impl->best_effort_input = uxr_create_input_best_effort_stream(&context_impl->session);
309306
context_impl->best_effort_output = uxr_create_output_best_effort_stream(
310307
&context_impl->session,
311-
context_impl->output_best_effort_stream_buffer, context_impl->transport.comm.mtu);
308+
context_impl->output_best_effort_stream_buffer, RMW_UXRCE_MAX_TRANSPORT_MTU);
312309

313310
#ifndef UCLIENT_BROKERLESS_ENABLE
314311
context_impl->entity_creation_output = &context_impl->reliable_output;

rmw_microxrcedds_c/src/rmw_publish.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ rmw_publish(
5353
topic_length))
5454
{
5555
written = functions->cdr_serialize(ros_message, &mb);
56-
printf("WRITTEN %d\n",written);
56+
5757
if (written && UXR_BEST_EFFORT_STREAM == custom_publisher->stream_id.type) {
5858
uxr_flash_output_streams(&custom_publisher->owner_node->context->session);
5959
} else {

rmw_microxrcedds_c/src/rmw_publisher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ rmw_create_publisher(
100100

101101
custom_publisher->stream_id =
102102
(qos_policies->reliability == RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT) || (custom_node->context->entity_creation_output->type == UXR_BEST_EFFORT_STREAM) ?
103-
custom_node->context->best_effort_input :
104-
custom_node->context->reliable_input;
103+
custom_node->context->best_effort_output :
104+
custom_node->context->reliable_output;
105105

106106
const rosidl_message_type_support_t * type_support_xrce = NULL;
107107
#ifdef ROSIDL_TYPESUPPORT_MICROXRCEDDS_C__IDENTIFIER_VALUE

0 commit comments

Comments
 (0)