Add Tailscale Network Support and Audio Capture Task#5
Open
Conversation
…ast and use unicast for DDS communications
Hoog-V
requested changes
Apr 23, 2025
Member
Hoog-V
left a comment
There was a problem hiding this comment.
Remove the ip-adress and make it windows compatible, I have doubts if this is the right repo to push this in? Maybe this is more suited to a project repository. As this is tightly coupled to our specific use-case
Contributor
Author
Perhaps you are right, let's not make very specific adaptation part of the library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for running ROS2 audio tools over Tailscale VPN by configuring CycloneDDS to properly use unicast communication. It also adds convenient Pixi tasks for running the audio capture node over Tailscale.
Changes
Added cyclonedds.xml to configure DDS for unicast communication over Tailscale
Created setup_ros_tailscale.sh script that sets up the proper environment variables
Added new Pixi task run_audio_capture_tailscale to easily run the audio capture node
Disabled multicast in CycloneDDS configuration to ensure proper unicast operation
Why these changes are needed
Tailscale uses a private network that doesn't support multicast, which is the default discovery mechanism for ROS2. These changes allow ROS2 nodes to properly discover each other and communicate over Tailscale by:
Forcing CycloneDDS to use unicast instead of multicast
Specifying the correct network interface for communication
Setting up all necessary environment variables automatically
Testing
Tested with multiple ROS2 nodes across different machines connected via Tailscale. Verified topic communication using ros2 topic echo and ros2 topic hz commands.