-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add dockerfile * Add docker run commands * Add instructions for noetic docker
- Loading branch information
1 parent
9008659
commit 30ecc3a
Showing
4 changed files
with
86 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ros:noetic-ros-core-focal | ||
RUN apt update | ||
RUN apt -y install python3-pip python3-gi python3-pip tmux | ||
RUN apt -y install mesa-utils libgl1-mesa-glx dbus | ||
RUN apt -y install libgtk-3-dev python3-gi gobject-introspection | ||
RUN apt -y install ros-noetic-gazebo-ros-pkgs ros-noetic-gazebo-ros-control ros-noetic-xacro | ||
RUN python3 -m pip install pip --upgrade | ||
RUN python3 -m pip install numpy pandas matplotlib | ||
|
||
RUN python3 -m pip install -U rosdep | ||
RUN sudo rosdep init | ||
RUN rosdep update | ||
|
||
RUN adduser --disabled-password sim | ||
USER sim | ||
|
||
WORKDIR /home |
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,9 @@ | ||
docker run \ | ||
--rm \ | ||
--mount source="$(pwd)",target=/home/uav_simulator,type=bind \ | ||
--net host \ | ||
-v /tmp/.X11-unix:/tmp/.X11-unix \ | ||
-u sim \ | ||
-e DISPLAY=unix$DISPLAY \ | ||
--privileged \ | ||
-it uav_simulator bash |
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