Skip to content
@UMD-CDCL

Collective Dynamics and Control Lab

DTC

If you are working on DTC you will likely need to build and install the cdcl_umd_msgs repository, instructions can be found in the README for the repository

The file structure on most DTC base station devices is:

/home/<USER>/
 └── DTC/
     ├── cdcl_ws/
     │   └── src/
     │       └── cdcl_umd_msgs/
     └── inference_engine/

Network Setup for Control of Spot through the onboard computer (HP Z2)

Settings on Spot

General

On network setup page > General, set Default interface to Payload

General network settings page

Ethernet

On network setup page > Ethernet, no special changes since WS3

Ethernet network settings page

WiFi

On network setup page > WiFi, disable WiFi Radio

WiFi network settings page

Payload

On network setup page > Payload,

  1. IPv4 Address is 192.168.50.3
  2. Stored Default Route is 192.168.50.5

Payload network settings page


Settings on the HP

1. Enable packet forwarding

Tell the Linux kernel to allow packet transit.

Note: To make this survive reboots permanently, ensure net.ipv4.ip_forward=1 is uncommented in /etc/sysctl.conf.

sudo sysctl -w net.ipv4.ip_forward=1

2. Check interface names

Check names for interfaces using ip a.

In this example:

  • Ethernet interface name on HP to Spot: enxa0cec8b8349f
  • WiFi interface name on HP to RoboScout: wls3f3

3. Forward tablet traffic to Spot

Forward ONLY the tablet's incoming traffic to Spot's payload IP.

Note:

  • Tablet IP is 10.200.142.32 for Cairo. Change for other Spots accordingly.
  • Destination IP remains 192.168.50.3 for all Spots.
sudo iptables -t nat -A PREROUTING -i wls3f3 -s 10.200.142.32 -j DNAT --to-destination 192.168.50.3

4. Masquerade outbound Ethernet traffic

Masquerade the traffic leaving single_gstreamerthe Ethernet port so Spot knows how to reply

sudo iptables -t nat -A POSTROUTING -o enxa0cec8b8349f -j MASQUERADE

5. Bypass Docker firewall rules

Explicitly permit the tablet's traffic to traverse Docker's default DROP policy on the FORWARD chain.

Allow tablet traffic into the Ethernet port

Note: Tablet IP is 10.200.142.32 for Cairo. Change for other Spots accordingly.

sudo iptables -A FORWARD -i wls3f3 -o enxa0cec8b8349f -s 10.200.142.32 -j ACCEPT
Allow Spot return traffic back to the tablet

Note: Tablet IP is 10.200.142.32 for Cairo. Change for other Spots accordingly.

sudo iptables -A FORWARD -i enxa0cec8b8349f -o wls3f3 -d 10.200.142.32 -j ACCEPT

6. Save configuration

Save configuration such that it persists upon reboot

sudo netfilter-persistent save

FloatSci

Popular repositories Loading

  1. .github .github Public

  2. py_lossy_network py_lossy_network Public archive

    python package for simulating and testing lossy networks

    Python

  3. reach_ros_node reach_ros_node Public

    Forked from REZOOM-UMD/reach_ros_node

    ROS driver for the Reach RTK GNSS module by Emlid

    Python 1

  4. wearable-biosensors-ros2 wearable-biosensors-ros2 Public

    Forked from SMARTlab-Purdue/ros2-foxy-wearable-biosensors

    This repository is a new wearable biosensors package for ROS2. The package currently supports six wearable biosensors that can be used in HRI researches without behavioral constraints caused by lim…

    Python 1

  5. YOLOv8-TensorRT-CPP YOLOv8-TensorRT-CPP Public archive

    Forked from cyrusbehr/YOLOv8-TensorRT-CPP

    YOLOv8 TensorRT C++ Implementation

    C++

  6. spot_ros2 spot_ros2 Public archive

    Forked from rai-opensource/spot_ros2

    ROS2 driver package for boston dynamic's spot

    Python

Repositories

Showing 10 of 19 repositories

Top languages

Loading…

Most used topics

Loading…