[Recommended] Install Anaconda

I recommend installing Anaconda in order to avoid conflicts with system-wide Python dependencies used by ROS. For communicating with Go1, I recommend using Python 3.8:

conda create -n go1 python=3.8
conda activate go1

If you want to make sure you always use the same Python installation every time you open a new terminal, add it to your bash read command as

echo 'conda activate go1' >> ~/.bashrc

To verify that you are using the Python installation you want, check the output from the following command

which python

Install dependencies

Unitree’s packages need a few dependencies pre-installed in your system, as indicated here.

Install LCM (version 1.4.0 or higher)

You’ll need to compile it from source.

cd ~
git clone -b v1.4.0 <https://github.com/lcm-proj/lcm>
cd lcm
mkdir build
cd build
cmake ..
make
sudo make install

Install CMake (version 2.8.3 or higher)

Check first if you have CMake installed by doing

cmake --version

If not installed, please follow instructions from the official website.

Install Boost (version 1.5.4 or higher)

If installed, boost is usually located at /usr/include/boost. Please check that the directory exists. If it doesn’t exist, you can make sure it’s installed by creating a C++ test program that includes any boost header like <boost/function.hpp>, which should give you no compilation errors. If not installed: