Add Tailscale Network Support and Audio Capture Task #5
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.