-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add call-through function for notifying about network interfaces #344
base: rolling
Are you sure you want to change the base?
Add call-through function for notifying about network interfaces #344
Conversation
Signed-off-by: Sebastian Jakymiw <[email protected]>
1e9ea9c
to
57516ea
Compare
@jakymiws Can you please give us an overview of what you are attempting to accomplish with this series of PRs? |
The goal is to be able to call into fast-dds to get it to re-scan network interfaces. The specific feature in question is enabled by calling the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -2787,8 +2787,19 @@ RMW_WARN_UNUSED | |||
rmw_ret_t | |||
rmw_set_log_severity(rmw_log_severity_t severity); | |||
|
|||
/// Notify fast-dds to re-scan networks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RMW should be agnostic from implementation details, Fast-DDS
should be removed.
@fujitatomoya sure, we can definitely have a discussion during the next middleware WG. The use-case is the following: all the existing DDS implementations currently scan for available network interfaces only once, i.e. when a DDS participant is created. This usually happens when you call We had a discussion in the past about how to get around this and it is ultimately problematic for the middlewares to know whether they have to wait for interfaces, keep scanning for them, republish messages on new interfaces etc. The current default RMW implementation (Fast-DDS) supports this feature: https://fast-dds.docs.eprosima.com/en/latest/fastdds/use_cases/dynamic_network_interfaces/dynamic_network_interfaces.html#dynamic-network-interfaces |
@alsora appreciate the information, thanks for sharing. apparently we almost have the same use cases 😄 I have considered this kind of feature before, so posting my note here. hopefully this could bring more discussion. Network Detection / AwarenessOverviewI just want to come up with questions and possible requirements in robots, robotics and edge devices. Possible Situations
Requirements / Capabilities
Consideration / Note
Currently i was thinking that this is doable with following and restarting ROS 2 node (DDS participants), but happy to discuss.
|
This pull request has been mentioned on ROS Discourse. There might be relevant details there: |
@fujitatomoya there are currently no APIs on Fast-DDS to be notified about a change on the network interfaces. |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2023-02-16/29927/1 |
Related to:
ros2/rcl#1028
ros2/rmw_fastrtps#662
ros2/rmw_implementation#213
ros2/rclcpp#2086