-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
@@ -348,6 +362,10 @@ to_cdr_stream( | |||
fprintf(stderr, "failed to call @(spec.base_type.type)_Plugin_serialize_to_cdr_buffer()\n"); | |||
return false; | |||
} | |||
|
|||
|
|||
printf("EXPECTED LENGTH INTO TO_CDR_STREAM : %u\n", expected_length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems vestigial.
@@ -322,6 +322,20 @@ else: | |||
return true; | |||
} | |||
|
|||
static bool get_serialized_length(unsigned int * expected_length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know the other functions are structured this way, but I think we should start to move towards the ability to set and report error states. So instead of returning a bool
, I think it would be better to return an rmw_ret_t
and instead of printing to stderr
with fprintf
, I'd like to see us using the error state with RMW_SET_ERROR_MSG
.
We don't need to refactor all of the generated code here to be the same, but in this instance I'd slightly prefer a trend toward better error reporting over consistency with the rest of the existing file.
Signed-off-by: Gonzalo de Pedro <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
Signed-off-by: Gonzalo de Pedro <[email protected]>
a6e307c
to
84c4fb1
Compare
I think we should close this @gonzodepedro. Thoughts? |
In progress work to support rmw_preallocate.
Connects to ros2/rmw_connext#345
Signed-off-by: Gonzalo de Pedro [email protected]