- Add instructions for running warehouse simulation to README - Create new warehouse docker service based on gazebo service - Add new warehouse Dockerfile with commands for installing GEAR
5.4 KiB
RRRobot!
Table of Contents
Contributors
Project Team
- Sravan Balaji (balajsra@umich.edu)
- Chenxi Gu (chenxgu@umich.edu)
- Jake Johnson (thejakej@umich.edu)
- Derek Witcpalek (dwitcpa@umich.edu)
EECS 467 W20 Course Staff
- Prof. Chad Jenkins (ocj@umich.edu)
- Xiaotong Chen (cxt@umich.edu)
- Jana Pavlasek (pavlasek@umich.edu)
Documents
Introduction
Repository for UMICH EECS 467: Autonomous Robotics (W20) RRRobot! project.
To get started, you will need to install Docker on your system. Information on what Docker is, how to install it, and how to use it can be found in Getting Started with Docker.
Development Guide
At this point, you should have Docker Desktop, Toolbox, or Engine setup on your host system. In this section, you will find a list of the different docker-compose services available and how to run them.
Docker Compose Services
ros-dev
ros-dev is the development container for ROS. This is used to provide all the necessary dependencies for working through the ROS tutorials and creating ROS packages.
ros-turtlesim
ros-turtlesim is a container that tests whether GUI support is working. This will install the ros tutorial packages and run the turtlesim GUI with keyboard control. If X forwarding is setup correctly, you should see a window open up with a turtle on a blue background. Use the arrow keys in the container terminal to move it around and press q
to quit.
ros
ros is the production container for all ROS nodes we create. This is meant to run our final code and interface with the gazebo container for simulation.
gazebo
Similarly to ros, gazebo is the production container for gazebo. This is meant to run our final simulation.
GUI Support
If using VcXsrv for Windows to enable GUI applications, run XLaunch using config.xlaunch. This will enable the following settings:
- Display Settings
- Multiple Windows
- Display Number: -1
- Client Startup
- Start No Client
- Extra Settings
- Clipboard
- Primary Selection
- Native OpenGL
- Disable Access Control
- Clipboard
The main thing to note here is that Native OpenGL
is disabled and Disable Access Control
is enabled. When running Gazebo GUI applications through a Docker Container in WSL, enabling Native OpenGL
resulted in the following errors:
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
As mentioned in No libGL libraries when running Gazebo from ROS, this can be resolved by disabling No native OpenGL
in the VcXsrv configuration.
Additionally, be sure to update the IP_ADDRESS
variable in .env with your computer's IP Address to enable X forwarding.
Running Docker Containers
- Start Docker Machine (default)
- WSL:
docker-machine.exe start default
- Other:
docker-machine start default
- WSL:
- Set Docker Machine Environment
- WSL:
docker-machine.exe env
- Other:
docker-machine env
- WSL:
- Navigate to src folder
cd /PATH/TO/rrrobot/src
- Use Docker Compose to run a service (refer to docker-compose.yml or Docker Compose Services)
docker-compose run --rm <service_name>
Warehouse Simulation
- Clone repo
- HTTPS:
git clone https://github.com/EECS-467-W20-RRRobot-Project/RRRobot.git
- SSH:
git clone git@github.com:EECS-467-W20-RRRobot-Project/RRRobot.git
- HTTPS:
- Go to
RRRobot
foldercd /PATH/TO/RRRobot
- Get submodule(s)
git submodule init
- Go to
docker_env
foldercd /PATH/TO/RRRobot/docker_env
- Start gazebo docker container
docker-compose run --rm warehouse
- Source ROS Setup
source /opt/ros/melodic/setup.bash
- Go to warehouse folder in container
cd /app/rrrobot_src/warehouse
- Build package
catkin_make clean
catkin_make
catkin_make install
source devel/setup.bash
- Run sample environment
roslaunch osrf_gear sample_environment.launch
Gazebo Grasping Simulation
- Source ROS Setup
source /opt/ros/melodic/setup.bash
- Build the drivers for the simulation
cd /app/rrrobot_src/src/simulation_drivers/
source build.sh
- Start ros master node
roscore &
- Run the gazebo simulator - this will bring up gazebo with a robotic arm
gazebo /app/rrrobot_src/world/rrrobot.world
- Run control and perception programs