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

Implement inconsistent topic. #431

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

clalancette
Copy link
Contributor

@clalancette clalancette commented Dec 20, 2022

Note that this is not hooked up inside of CycloneDDS, so this will never fire currently.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org

Part of ros2/ros2#1361

Depends on ros2/rmw#339

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

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

LGTM!
It would be nice if we merge this after we have a rmw_implementation PR with tests and CI passing.

@ivanpauno
Copy link
Member

LGTM!
It would be nice if we merge this after we have a rmw_implementation PR with tests and CI passing.

or maybe the tests could live in rcl

Copy link
Collaborator

@eboasson eboasson left a comment

Choose a reason for hiding this comment

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

The change looks good to me, but there is the issue that I am not so sure Cyclone will raise "inconsistent topic" based on reader/writer discovery. It should (and will) do it based on topic discovery.

The reason I am not sure is because I do think there's a good argument that a reader/writer pair that fails to match on type name (possibly also assignability, but there other QoS settings also come into play) implies that an "inconsistent topic" notification would have been raised if topic discovery had been enabled, and that it therefore makes sense to raise it at that point if topic discovery is disabled.

I'm approving this as a Cyclone's not raising "inconsistent topic" today even when topic discovery is enabled is simply a bug, and because I believe this code will work fine when that bug is fixed.

Note that this is not hooked up inside of CycloneDDS, so this
will never fire currently.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
@clalancette clalancette force-pushed the clalancette/inconsistent-topic-event branch from 984065a to 6b04608 Compare February 24, 2023 21:07
@clalancette clalancette merged commit 76572eb into rolling Mar 13, 2023
@delete-merged-branch delete-merged-branch bot deleted the clalancette/inconsistent-topic-event branch March 13, 2023 13:31
Splinter1984 added a commit to Splinter1984/rmw_cyclonedds that referenced this pull request Mar 20, 2023
Implement inconsistent topic. (ros2#431)
@Crola1702
Copy link

Crola1702 commented Mar 21, 2023

It seems this PR somehow makes launch_testing_ros fail.

I ran 6 builds, building launch_testing_ros with and without this PR:

Building rclcpp and launch_testing_ros:

  • Without this PR: Build Status
  • With this PR: Build Status

One more time:

  • Without this PR: Build Status
  • With this PR: Build Status

Building launch_testing_ros only:

  • Without this PR: Build Status
  • With this PR: Build Status

I used the following ros2.repos files:

FYI:

Crola1702 added a commit that referenced this pull request Mar 21, 2023
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

5 participants