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

Backport rmw callbacks implementation to Humble [ros2-73] #157

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

trubio-rti
Copy link
Collaborator

@trubio-rti trubio-rti commented Aug 5, 2024

This fixes #155. I've also sneakily backported the fix to allow Humble to build with Connext 7.3.0.

ci_linux: Build Status
ci_linux_rhel: Build Status
ci_windows: Build Status

* Add support for listener callbacks.

* Fix wrong debug assertion when converting DDS_Duration values

* Clarify interactions between count_unread_samples() and take_next()

* Notify on changed matched status

Signed-off-by: Christopher Wecht <[email protected]>
Signed-off-by: Andrea Sorbini <[email protected]>
Signed-off-by: Taxo Rubio <[email protected]>
Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

In general, this looks good to me when CI is green.

For running the CI, you'll need to do some slightly different things. In particular, you should use https://ci.ros2.org/job/ci_launcher/, which will output a snippet for you to paste into this PR. You will also need to make sure to run it with the correct arguments; in this case, it will have to be a ros2.repos file from Humble (with this PR in place for rmw_connextdds), you'll need to select "humble" as the ROS_DISTRO, you'll need to set the UBUNTU_DISTRO to jammy, and you'll need to set the RHEL_DISTRO to 8.

@trubio-rti
Copy link
Collaborator Author

Thank you for the guide @clalancette! These jobs should be correct now. Note that I've removed RHEL as it doesn't build our rmw.

Linux Build Status
Windows Build Status

@trubio-rti
Copy link
Collaborator Author

This fix should be enough I think. I don't think the Qt failures on Windows are related to this project. Could you confirm it, please?

Linux Build Status
Windows Build Status

@clalancette
Copy link
Contributor

This fix should be enough I think. I don't think the Qt failures on Windows are related to this project. Could you confirm it, please?

Yeah, those Qt failures are separate.

Comment on lines +394 to +401
std::mutex new_event_mutex_;
rmw_event_callback_t new_event_cb_[RMW_EVENT_INVALID] = {};
const void * user_data_[RMW_EVENT_INVALID] = {};
uint64_t unread_events_count_[RMW_EVENT_INVALID] = {0};

bool triggered_inconsistent_topic{false};

struct DDS_InconsistentTopicStatus status_inconsistent_topic;
Copy link
Collaborator

Choose a reason for hiding this comment

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

There changes obviously break the ABI compatibility, are we allowed to do that in this particular time?

Copy link
Contributor

Choose a reason for hiding this comment

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

There changes obviously break the ABI compatibility, are we allowed to do that in this particular time?

It's true that this breaks ABI. In this case, I approved it anyway because the ABI is between rmw_connextdds_common and rmw_connextdds; it seems doubtful someone is relying on that. Also, for some other RMWs we have broken ABI in this way before if it was "internal" to the RMW.

But it is a conversation worth having; should we allow this kind of ABI breakage in stable distributions?

Copy link
Collaborator

Choose a reason for hiding this comment

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

i think that is okay in this case to break the ABI, i do not expect there could be someone relying on rmw implementation APIs...

But it is a conversation worth having; should we allow this kind of ABI breakage in stable distributions?

IMO, i think rmw implementation can break the internal ABI in stable distributions. as long as RMW interface is compatible, there should be no problem? agree that this is worth to bring up for the discussion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would you be ok with this change then? I prefer to be sure than to revert.

As I see it, this would only break compatibility from programs that directly call the Connext RMW API, which would be defeating the purpose of the RMW in the first place. The ABI of the rmw_connextdds and rmw packages is still stable, so it shouldn't be an issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you be ok with this change then? I prefer to be sure than to revert.

Let's hold off until next week; we'll have a discussion in the ROS PMC meeting about it.

@MichaelOrlov
Copy link

@mjcarroll Friendly ping in this issue. We decided to merge it.

@trubio-rti trubio-rti merged commit 831e8b9 into humble Aug 20, 2024
1 check passed
@clalancette clalancette deleted the feature/ros2-73 branch August 27, 2024 12:44
@Blast545
Copy link

Blast545 commented Sep 16, 2024

👨‍🌾 Thanks for pushing this one @trubio-rti, can this also be backported to Iron? EDIT: Can you help us on this one @fgallegosalido?

@Blast545
Copy link

friendly ping @trubio-rti @fgallegosalido

@fgallegosalido
Copy link
Collaborator

Hi @Blast545. As Iron's EoL is close (shy of a month), we think it's not worthy investing resources into it. Is it really necessary to backport this issue to Iron?

@claraberendsen
Copy link

@fgallegosalido I brought this subject up on the ROS PMC meeting and the decision was to not make the forward port on this for Iron. I will close the related issue since it has been solved for Humble. Thanks for the work here !

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.

8 participants