Skip to content
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

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

methylDragon
Copy link
Contributor

@methylDragon methylDragon force-pushed the runtime_interface_reflection_allocators branch from bf196e1 to 3d654b1 Compare April 10, 2023 05:33
{
RCUTILS_CHECK_ARGUMENT_FOR_NULL(ts, RCUTILS_RET_INVALID_ARGUMENT);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(allocator, RCUTILS_RET_INVALID_ARGUMENT);
Copy link
Collaborator

@emersonknapp emersonknapp Apr 10, 2023

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

Copy link
Contributor Author

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

Copy link
Contributor

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

@methylDragon methylDragon merged commit 290d7d8 into rolling Apr 11, 2023
@delete-merged-branch delete-merged-branch bot deleted the runtime_interface_reflection_allocators branch April 11, 2023 06:02
danthony06 pushed a commit to danthony06/rcl that referenced this pull request Jun 14, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants