Remote ROS Connections
Use the same middleware implementation and ROS domain ID on the robot and remote computer. These settings are needed for RViz2 and remote ROS CLI tools; Foxglove's WebSocket connection does not require them.
Zenoh
Zenoh provides a TCP connection through the robot's router, making it suitable for wireless and routed networks.
Robot configuration
Install the RMW package:
sudo apt install ros-jazzy-rmw-zenoh-cpp
Merge the following into /etc/clearpath/robot.yaml:
system:
ros2:
middleware:
implementation: rmw_zenoh_cpp
Restart the robot service while the robot is stopped:
sudo systemctl restart clearpath-robot.service
ss -tlnp | grep 7447
The router must listen on a network-accessible address, not only
127.0.0.1:7447.
Remote computer
Install the RMW and template-rendering utility:
sudo apt install ros-jazzy-rmw-zenoh-cpp gettext-base
Follow the RViz2 connection sequence with zenoh.
The connector renders the session configuration, selects the RMW, and clears
conflicting DDS environment variables. It may request sudo access to add the
robot hostname to /etc/hosts; resolve any conflicting hostname entry first.
SSH tunnel
If a reachable SSH host can access the robot's router, the connector can create a tunnel through that host:
export ROS_DOMAIN_ID=0
source <workspace>/src/clearpath_indoor_navigation/middleware/connect_robot.sh zenoh \
--ssh-tunnel <user>@<ssh_host> --ssh-port <ssh_port> \
--router-ip <robot_router_ip> --local-port 17447
source <workspace>/install/setup.bash
ros2 launch clearpath_indoor_navigation rviz_navigation.launch.py namespace:=$ROBOT_NAMESPACE
Replace all placeholders and use the robot's domain ID. The upstream defaults
are SSH port 1122 and router 192.168.131.1:7447; specify the values for your
network rather than assuming these defaults apply.
Close the managed tunnel from the same terminal when finished:
cpr_zenoh_tunnel_stop
Troubleshooting
- If namespace discovery fails, check router reachability on TCP port
7447. - If topics appear without data, check that both hosts use
rmw_zenoh_cpp. - Loopback peer connection warnings can indicate a Zenoh session in
peermode. The router-based connection requiresclientmode.
Cyclone DDS
Cyclone DDS requires bidirectional DDS UDP connectivity between the computers; opening a single TCP port is insufficient. Use Zenoh when the network cannot support direct DDS communication.
Robot configuration
sudo apt install ros-jazzy-rmw-cyclonedds-cpp
Install a Cyclone DDS profile appropriate to the robot and its network at
/etc/clearpath/cyclonedds.xml. The upstream repository supplies a
J100 example;
do not assume that equivalent files exist for every model.
Merge these settings into /etc/clearpath/robot.yaml:
system:
ros2:
middleware:
implementation: rmw_cyclonedds_cpp
profile: /etc/clearpath/cyclonedds.xml
Restart the service and verify its generated environment:
sudo systemctl restart clearpath-robot.service
grep -E 'RMW_IMPLEMENTATION|CYCLONEDDS_URI' /etc/clearpath/setup.bash
Remote computer
sudo apt install ros-jazzy-rmw-cyclonedds-cpp gettext-base iproute2
Use the RViz2 connection sequence with
cyclone_dds. The connector selects the local network interface and generates
a unicast-discovery profile. Re-source it after a network address change.
Troubleshooting
- Participant-index exhaustion requires reviewing
MaxAutoParticipantIndexin the robot's Cyclone configuration. - Missing maps or costmaps can indicate an insufficient
MaxMessageSizeon the transmitting robot. - For discovery failures, check that the robot advertises an address reachable from the remote computer and that the configured network interface is correct.