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

Allow publishing borrowed messages with intra-process enabled #2108

Merged

Conversation

MiguelCompany
Copy link
Contributor

This PR avoids a runtime_error exception when trying to publish a LoanedMessage on a publisher that has intra-process enabled.

The changes make can_loan_messages() return false in that case, which in turn makes borrow_loaned_message() allocate a standard message.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
Copy link
Collaborator

@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.

@MiguelCompany the fix looks good to me, but i think we need to address rpr job failures cz of this change.

@fujitatomoya
Copy link
Collaborator

@MiguelCompany after Rpr failures are addressed, i will start the CI.

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany
Copy link
Contributor Author

@fujitatomoya I updated the tests accordingly to the changes.

@fujitatomoya
Copy link
Collaborator

CI:

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

@MiguelCompany
Copy link
Contributor Author

@fujitatomoya Do you think this can be merged?

I also think it can be backported into Humble

@fujitatomoya fujitatomoya merged commit 3062dec into ros2:rolling Feb 24, 2023
@fujitatomoya
Copy link
Collaborator

@Mergifyio backport humble

@mergify
Copy link

mergify bot commented Feb 24, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Feb 24, 2023
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
(cherry picked from commit 3062dec)
alsora pushed a commit to irobot-ros/rclcpp that referenced this pull request Apr 28, 2023
)

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
alsora pushed a commit to irobot-ros/rclcpp that referenced this pull request Apr 29, 2023
)

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
alsora pushed a commit to irobot-ros/rclcpp that referenced this pull request Apr 29, 2023
)

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
alsora pushed a commit to irobot-ros/rclcpp that referenced this pull request Apr 29, 2023
)

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
alsora pushed a commit to irobot-ros/rclcpp that referenced this pull request May 3, 2023
)

Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
@MiguelCompany MiguelCompany deleted the feature/intraprocess-loaned-messages branch July 19, 2023 14:10
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

3 participants