Skip to content

Conversation

mini-1235
Copy link
Contributor

@mini-1235 mini-1235 commented Sep 8, 2025


Basic Info

Info Please fill out this column
Ticket(s) this addresses closes #5509
Primary OS tested on Ubuntu
Robotic platform tested on
Does this PR contain AI generated software? No
Was this PR description generated by AI software? Out of respect for maintainers, AI for human-to-human communications are banned

Description of contribution in a few bullet points

  • Add zenoh to ci matrix
  • Fix tests to pass with zenoh

Description of documentation updates required from your changes

Description of how this change was tested


Future work that may be required in bullet points

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists
  • Should this be backported to current distributions? If so, tag with backport-*.

@mini-1235
Copy link
Contributor Author

Two of the tests are still failing, this PR is not ready for review

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

Please leave the default as is before merging, but I understand it’s useful to test in CI for now.

Also, why did the docking test need to be updated? Did you find root cause or is that a workaround for zenoh to work? If a workaround, that might indicate a problem in the RMW if there’s not a logical error in the test.

@mini-1235
Copy link
Contributor Author

mini-1235 commented Sep 11, 2025

Please leave the default as is before merging, but I understand it’s useful to test in CI for now.

Will do after all tests pass

Also, why did the docking test need to be updated? Did you find root cause or is that a workaround for zenoh to work? If a workaround, that might indicate a problem in the RMW if there’s not a logical error in the test.

I will explain the changes I made to the test here:

  • test_distance_controller: originally reporting Input t_sec is too large or too small for tf2::Duration, the cause is due to missing declare_parameter for transform tolerance

  • test_astar: thread panicked, related to https://github.com/ros2/rmw_zenoh?tab=readme-ov-file#crash-when-program-terminates

  • test_controller: flaky, it fails when the subscriber does not receive the latest costmap message published here

collision_tester->publishCostmap();

I can actually reproduce this as well in cyclonedds when running 1000 times repeatedly

We can actually decrease initial_transform_timeout / increase queries_default_timeout and overwrite the default zenoh config, but I am not sure if these are the best solutions

@SteveMacenski
Copy link
Member

Ok sounds good to me. I might prefer spinning for those 10ms rather than having a background spin & 10ms sleeps, but I generally don’t nitpick over tests. Are you working on the last failure in CI? The rest LGTM

@mini-1235
Copy link
Contributor Author

Are you working on the last failure in CI?

Yes, it looks like that we need to overwrite the zenoh config at least for the CI ros2/rmw_zenoh#783 (comment), what do you think about that?

@SteveMacenski
Copy link
Member

It seems to me like something that should be addressed in the RMW / Zenoh layers. If this is a quirk of ROS 2, then either that should change, RMW Zenoh should adjust, or the default configurations should handle it.

@mini-1235
Copy link
Contributor Author

It seems to me like something that should be addressed in the RMW / Zenoh layers. If this is a quirk of ROS 2, then either that should change, RMW Zenoh should adjust, or the default configurations should handle it.

I share the same opinion. Admittedly, I am not a zenoh expert, so I think I might need to leave this PR open until we can find a solution together with the zenoh maintainers

@SteveMacenski
Copy link
Member

OK - did you open a ticket on this with the RMW? Might be good and then link this PR

@mini-1235
Copy link
Contributor Author

OK - did you open a ticket on this with the RMW? Might be good and then link this PR

Good idea, I have open a new issue in the rmw repo

Copy link
Contributor

mergify bot commented Sep 18, 2025

This pull request is in conflict. Could you fix it @mini-1235?

Signed-off-by: mini-1235 <[email protected]>
Signed-off-by: mini-1235 <[email protected]>
Signed-off-by: mini-1235 <[email protected]>
@mini-1235 mini-1235 force-pushed the feat/zenoh branch 3 times, most recently from f60a807 to 723ac34 Compare September 27, 2025 07:49
@mini-1235
Copy link
Contributor Author

@SteveMacenski, I have just rebased this, now waiting for next rmw zenoh's release to pass all tests

@SteveMacenski
Copy link
Member

OK! Ping me when we can take a look again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add rmw zenoh cpp to CI
2 participants