Skip to content

Allow publishing borrowed messages with intra-process enabled#2108

Merged
fujitatomoya merged 3 commits intoros2:rollingfrom
eProsima:feature/intraprocess-loaned-messages
Feb 24, 2023
Merged

Allow publishing borrowed messages with intra-process enabled#2108
fujitatomoya merged 3 commits intoros2:rollingfrom
eProsima:feature/intraprocess-loaned-messages

Conversation

@MiguelCompany
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

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

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

@fujitatomoya I updated the tests accordingly to the changes.

@fujitatomoya
Copy link
Copy Markdown
Collaborator

CI:

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

@MiguelCompany
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

@Mergifyio backport humble

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Feb 24, 2023

backport humble

✅ Backports have been created

Details

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.

3 participants