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

[Foxy] Use global namespace for parameter events subscription topic (#1257) #1261

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

jacobperron
Copy link
Member

@jacobperron jacobperron commented Aug 5, 2020

Backport #1257 to Foxy.

This changes default behavior and could consequently break application code that is relying on the assumption that the parameter events subscription uses a relative namespace (but the publisher is using a global namespace), therefore I'm hesitant about backporting. On the other hand, without the patch it can lead to buggy behavior when trying to use parameter events for the first time in Foxy.

Dashing and Eloquent don't have the same problem since both the publisher and subscription are using relative namespaces.

@ros2/team I'm looking for opinions on whether this fix should be backported or not.

Similar to #929, but for the subscription.

This fixes an issue listening to parameter events from a remote node when the local node has a different namespace.
Originally reported here: https://answers.ros.org/question/358170/parameter-events-on-foxy/

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron self-assigned this Aug 5, 2020
@jacobperron
Copy link
Member Author

If we decide to move forward with this backport, we should also backport the same change in rclpy: ros2/rclpy#612

Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

For me this is fixing unintended behavior, so a bug fix. Therefore I'm ok with it.

@ivanpauno ivanpauno changed the title Use global namespace for parameter events subscription topic (#1257) [Foxy] Use global namespace for parameter events subscription topic (#1257) Aug 5, 2020
@jacobperron
Copy link
Member Author

rclpy backport: ros2/rclpy#614

@ros-discourse
Copy link

This pull request has been mentioned on ROS Discourse. There might be relevant details there:

https://discourse.ros.org/t/global-parameter-events-and-security-ramifications/15924/1

@jacobperron
Copy link
Member Author

It sounds like we haven't reached a consensus yet on whether to use global or private topic names for parameter events:
https://discourse.ros.org/t/global-parameter-events-and-security-ramifications/15924/1

But, since I think the current state in Foxy is "broken" because of the asymmetry between the parameter client and parameter sever, I'm going to move forward on this PR.

@jacobperron
Copy link
Member Author

jacobperron commented Oct 1, 2020

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status (unrelated test failures)
  • Windows Build Status (edit: retriggered)

@jacobperron jacobperron merged commit 0e84509 into foxy Nov 6, 2020
@delete-merged-branch delete-merged-branch bot deleted the jacob/foxy_backport_1257 branch November 6, 2020 17:37
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.

4 participants