A containerised, clean ROS2 workspace for the Boston Dynamics Spot Robot Dog.
Warning
This is currently in-development and should not be expected to fully function or be ready for non-research activities.
First, you will need to get a computer that is going to act as our gateway to Spot. We have an Intel NUC that is mounted to the back of our Spot. This is what we have nicknamed the 'backpack'.
This machine needs an Operating System installed, for this - we are using Ubuntu 22.04 so it can give the container the best chance, but this can be something else if you prefer. We will setup the computer with the username of spot
.
Configure the machine for SSH. And get connected.
Then git clone this repository into the home folder (/home/spot/spot_platform
).
Then cd into the repository and then into the configs folder, (/home/spot/spot_platform/configs
).
Then copy the example .env
file (cp .env.example .env
). And then edit it to include the following values:
ROBOT_NAME
: How should you call your spot, do you have multiple? If not - we can call this justSPOT
BOSDYN_CLIENT_USERNAME
: This is the password for connecting to Spot, by default its the one in the battery compartment, if it has changed on your Spot you should be informed when you're inducted!BOSDYN_CLIENT_PASSWORD
: This is the password for connecting to Spot, by default its the one in the battery compartment, if it has changed on your Spot you should be informed when you're inducted!SPOT_IP
: Leave this as192.168.50.3
unless you are doing something special (read the Spot Network wiki page first!)
Also, If you want to use your NVIDIA GPU inside the container, Docker needs to be configured with the NVIDIA runtime running and tested.
Now you have setup the container, you should start it!
- Navigate to the
configs
directory of this repository:
cd configs
- Start the container in detached mode and view logs:
docker compose up -d && docker compose logs -f
Note: By default, the containers here are restarted at boot time
- Find the IP address of your robot, let's name it
SPOT_IP
- Open your browser at address http://
SPOT_IP
:5801/, and connect
docker compose down
, again in theconfigs
directory
Once you're connected - open a terminal and run walkies
(this is an alias) and give it a go!
You can setup your ROS Workspace on the native computer by using the folder /home/ros/robot_home
which is a link to your local folder /home/spot/
, this is using a Docker volume. Create a folder such as my_ws
inside of this.
Now you have done your initial setup of Spot, look at the wiki for more help on what to do!