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

user defined allocator should be used for rosout publisher. #1044

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

fujitatomoya
Copy link
Collaborator

address #1040

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
@jrutgeer
Copy link

jrutgeer commented Mar 9, 2023

@fujitatomoya
I am not sure what is the best option:

  • The patch you propose uses the allocator from the nodeoptions,
  • However, you could also use __rosout_allocator, which is the allocator passed to rcl_logging_rosout_init:

rcl_ret_t rcl_logging_rosout_init(const rcl_allocator_t * allocator)

__rosout_allocator = *allocator;

I assume it makes sense to use the allocator from the nodeoptions, since there could be realtime and non-realtime nodes in one process?

Copy link
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i thought that too, probably __rosout_allocator is meant to be used to operate related objects but not endpoints. I think allocator from NodeOption makes sense to manage publisher endpoint. (I think that user would expect.)

we can keep this open to get more feedback!

@fujitatomoya
Copy link
Collaborator Author

@clalancette minor fix, what do you think? i would like to hear your comment on this before CI.

@fujitatomoya
Copy link
Collaborator Author

@iuhilnehc-ynos what do you think about this?

Copy link
Collaborator

@iuhilnehc-ynos iuhilnehc-ynos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fujitatomoya
Copy link
Collaborator Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@fujitatomoya
Copy link
Collaborator Author

This should be backport to humble.

@clalancette clalancette merged commit 485c89c into rolling Mar 15, 2023
@delete-merged-branch delete-merged-branch bot deleted the fujitatomoya/bugfix-20230308-user-allocator branch March 15, 2023 15:23
@fujitatomoya
Copy link
Collaborator Author

@Mergifyio backport humble

@mergify
Copy link

mergify bot commented Mar 15, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Mar 15, 2023
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 485c89c)
fujitatomoya added a commit that referenced this pull request Mar 16, 2023
…1045)

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit 485c89c)

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
danthony06 pushed a commit to danthony06/rcl that referenced this pull request Jun 14, 2023
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.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.

None yet

4 participants