-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Subscription (BONUS: Allocators): rcl #1057
Dynamic Subscription (BONUS: Allocators): rcl #1057
Conversation
Signed-off-by: methylDragon <[email protected]>
Signed-off-by: methylDragon <[email protected]>
bf196e1
to
3d654b1
Compare
{ | ||
RCUTILS_CHECK_ARGUMENT_FOR_NULL(ts, RCUTILS_RET_INVALID_ARGUMENT); | ||
RCUTILS_CHECK_ARGUMENT_FOR_NULL(allocator, RCUTILS_RET_INVALID_ARGUMENT); |
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.
You maybe should also check
if (!rcutils_allocator_is_valid(&allocator)) {
You can have a non-null allocator that isn't initialized yet and can't be used
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 might defer this so we don't invalidate the windows debug CI run :x
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.
You are going to have to re-run it anyway, since you changed all of the function signatures for rmw_init_serialization_support
Signed-off-by: methylDragon <[email protected]>
Signed-off-by: methylDragon <[email protected]>
* Refactor dynamic message type support init Signed-off-by: methylDragon <[email protected]> * Refactor serialization support to use allocators and refs Signed-off-by: methylDragon <[email protected]> * Use rmw_serialization_support_init Signed-off-by: methylDragon <[email protected]> * Check if allocator is initialized Signed-off-by: methylDragon <[email protected]> --------- Signed-off-by: methylDragon <[email protected]>
See: ros2/ros2#1405