This repository has been archived by the owner on Mar 17, 2019. It is now read-only.
forked from openai/gym
-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
92 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
FROM austinderic/gym-gazebo:kinetic-nvidia9.2 | ||
LABEL maintainer "[email protected]" | ||
|
||
#-------------------- | ||
# Install Gym-Gazebo Turtlebot dependencies | ||
#------------------ | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
ros-kinetic-turtlebot-create \ | ||
ros-kinetic-yujin-ocs \ | ||
ros-kinetic-yocs-msgs \ | ||
ros-kinetic-xacro \ | ||
ros-kinetic-roslint \ | ||
ros-kinetic-ros-control \ | ||
ros-kinetic-image-common \ | ||
ros-kinetic-control-toolbox \ | ||
ros-kinetic-gazebo-ros-pkgs \ | ||
ros-kinetic-roslint \ | ||
ros-kinetic-driver-common \ | ||
ros-kinetic-navigation \ | ||
ros-kinetic-joystick-drivers \ | ||
ros-kinetic-kobuki-desktop \ | ||
ros-kinetic-kobuki-core \ | ||
ros-kinetic-kobuki \ | ||
ros-kinetic-kobuki-msgs \ | ||
ros-kinetic-ecl \ | ||
ros-kinetic-pcl-ros \ | ||
libbullet-dev \ | ||
libusb-dev \ | ||
libsdl-dev \ | ||
libsdl-image1.2-dev \ | ||
python-skimage \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#-------------------- | ||
# Install Gym-Gazebo Turtlebot Example | ||
#------------------ | ||
|
||
RUN mkdir -p /root/catkin_ws/src | ||
WORKDIR /root/catkin_ws/src | ||
RUN wstool init | ||
RUN wstool merge https://gist.githubusercontent.com/AustinDeric/3362c86437d88347807beaba3501602e/raw/ecadfddc98a1865dfe60b29d17ff03a513b39279/gym-gazebo.rosinstall | ||
RUN wstool update | ||
WORKDIR /root/catkin_ws | ||
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash && catkin build" | ||
RUN echo "source /root/catkin_ws/devel/setup.bash" >> ~/.bashrc | ||
|
||
#-------------------- | ||
# Setup environment variables | ||
#------------------ | ||
RUN echo "export GYM_GAZEBO_WORLD_CIRCUIT2=/root/gym-gazebo/gym_gazebo/envs/assets/worlds/circuit2.world" >> ~/.bashrc | ||
RUN export GYM_GAZEBO_WORLD_CIRCUIT2=/root/gym-gazebo/gym_gazebo/envs/assets/worlds/circuit2.world | ||
|
||
WORKDIR /root/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,9 @@ | ||
FROM austinderic/ros-desktop-full:kinetic-nvidia9.2 | ||
LABEL maintainer "[email protected]" | ||
|
||
#-------------------- | ||
# Setup nvidia-docker2 | ||
#-------------------- | ||
# Reference: http://wiki.ros.org/docker/Tutorials/Hardware%20Acceleration | ||
|
||
ENV NVIDIA_VISIBLE_DEVICES \ | ||
${NVIDIA_VISIBLE_DEVICES:-all} | ||
ENV NVIDIA_DRIVER_CAPABILITIES \ | ||
${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics | ||
|
||
#-------------------- | ||
# Install OpenAI gym | ||
#-------------------- | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
python-pip && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install --upgrade pip | ||
#------------------- | ||
|
||
RUN pip install gym | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters