Skip to content

Dynamic Subscription (BONUS: Allocators): rcl#1057

Merged
methylDragon merged 4 commits intorollingfrom
runtime_interface_reflection_allocators
Apr 11, 2023
Merged

Dynamic Subscription (BONUS: Allocators): rcl#1057
methylDragon merged 4 commits intorollingfrom
runtime_interface_reflection_allocators

Conversation

@methylDragon
Copy link
Copy Markdown
Contributor

Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon methylDragon force-pushed the runtime_interface_reflection_allocators branch from bf196e1 to 3d654b1 Compare April 10, 2023 05:33
rosidl_message_type_support_t * ts)
{
RCUTILS_CHECK_ARGUMENT_FOR_NULL(ts, RCUTILS_RET_INVALID_ARGUMENT);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(allocator, RCUTILS_RET_INVALID_ARGUMENT);
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
@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 <methylDragon@gmail.com>

* Refactor serialization support to use allocators and refs

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Use rmw_serialization_support_init

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Check if allocator is initialized

Signed-off-by: methylDragon <methylDragon@gmail.com>

---------

Signed-off-by: methylDragon <methylDragon@gmail.com>
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