Ubuntu从源码安装Webots
参考地址https://github.com/cyberbotics/webots/wiki/Linux-installation/
1. 下载源码
git clone -b R2021a --recurse-submodules -j8 git@github.com/cyberbotics/webots.git
cd webots
git checkout R2021a
git submodule init
git submodule update
2. 编译安装
sudo ./scripts/install/linux_compilation_dependencies.sh
sudo apt install python3-pip
sudo -H pip3 install --upgrade pip
sudo -H pip3 install tornado psutil requests distro pynvml
cat scripts/install/bashrc.linux >> ~/.bashrc
nano ~/.bashrc # 更新源码及qt路径
source ~/.bashrc
make -j8
3. 运行启动
webots