Skip to content

Add Tailscale Network Support and Audio Capture Task - #5

Open
ducroq wants to merge 1 commit into
mainfrom
dev_tailscale
Open

Add Tailscale Network Support and Audio Capture Task#5
ducroq wants to merge 1 commit into
mainfrom
dev_tailscale

Conversation

@ducroq

@ducroq ducroq commented Apr 23, 2025

Copy link
Copy Markdown
Contributor

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.

@ducroq
ducroq requested a review from Hoog-V April 23, 2025 07:13

@Hoog-V Hoog-V left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Comment thread cyclonedds.xml
Comment thread setup_ros_tailscale.sh
@ducroq

ducroq commented Apr 23, 2025

Copy link
Copy Markdown
Contributor Author

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

Perhaps you are right, let's not make very specific adaptation part of the library

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.

2 participants