Open DrakeProvost opened 3 years ago
I got Webots to successfully run on shatterdome. I need to find a way to add Webots to the docker image (the instructions below require stdin responses during sudo apt-get install webots
(to specify the keyboard's country of origin), which won't work for building an image), but here are the steps I took to make it work:
You will likely get a
sudo: apt-add-repository: command not found
at the second step. To resolve, runsudo apt update; sudo apt install software-properties-common
and then try the apt-add-repository command again.
sudo apt install libxtst6
.ros2 launch webots_ros2_demos armed_robots.launch.py
. It should show two robotic arms moving cans around.Looks like there might be a missing library we need to install.
Fixed, and updated the comment. Webots ran successfully on shatterdome, now I just need to find a way to include it in the Docker image (the technique described above doesn't work since it requires stdin responses while building).
I got a docker image with both ROS2 and Webots running! 🙌
webots_ros2_foxy
docker containerBuild the webots_ros2
package in a ROS2 workspace:
source /opt/ros/$ROS_DISTRO/local_setup.bash
# Retrieve the sources
cd /path/to/ros2_ws
git clone --recurse-submodules -b $ROS_DISTRO https://github.com/cyberbotics/webots_ros2.git src/webots_ros2
# Check dependencies
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO
# Building packages
colcon build
# Source this workspace (careful when also sourcing others)
source install/local_setup.bash
ros2 launch webots_ros2_demos armed_robots.launch.py
. (For some reason this demo is missing the two robotic arms when I run it, but webots launches successfully and responds to interaction so I think webots itself is functional.)Webots is already seeming like an attractive choice, but GPU acceleration with shatterdome's nvidia graphics card might make it even better. Here are instructions for that, which I haven't tried yet.
Physics simulators compatible with ROS2
Related tools