Skip to content

Add Tailscale Network Support and Audio Capture Task #5

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ducroq
Copy link
Contributor

@ducroq ducroq commented Apr 23, 2025

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
Copy link
Member

@Hoog-V Hoog-V left a comment

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

@ducroq
Copy link
Contributor Author

ducroq commented Apr 23, 2025

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