@@ -12,11 +12,13 @@ RUN apt-get update && \
12
12
lsb-release pkg-config protobuf-compiler \
13
13
python3-dbg python3-pip python3-venv python3-pexpect \
14
14
python-is-python3 python3-future python3-wxgtk4.0 \
15
- libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
16
15
qtbase5-dev ruby dirmngr gnupg2 nano xauth \
17
16
software-properties-common htop libtool \
18
- x11-apps mesa-utils bison flex automake && \
19
- rm -rf /var/lib/apt/lists/
17
+ x11-apps mesa-utils bison flex automake \
18
+ libgz-sim8-dev rapidjson-dev libopencv-dev \
19
+ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
20
+ gstreamer1.0-plugins-bad gstreamer1.0-libav gstreamer1.0-gl \
21
+ && rm -rf /var/lib/apt/lists/
20
22
21
23
# Locale for UTF-8
22
24
RUN truncate -s0 /tmp/preseed.cfg && \
@@ -50,7 +52,7 @@ extras/ardusub-ubuntu-install.sh install.sh
50
52
RUN bash install.sh
51
53
52
54
# Set up Dave workspace
53
- ENV DAVE_WS=/opt/ws_dave
55
+ ENV DAVE_WS=/opt/dave_ws
54
56
WORKDIR $DAVE_WS/src
55
57
56
58
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
@@ -69,25 +71,31 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
69
71
70
72
# source entrypoint setup
71
73
RUN touch /ros_entrypoint.sh && sed --in-place --expression \
72
- '$i source "/opt/ws_dave /install/setup.bash"' /ros_entrypoint.sh
74
+ '$i source "/opt/dave_ws /install/setup.bash"' /ros_entrypoint.sh
73
75
74
76
# Source ROS and Gazebo
75
77
RUN sed --in-place --expression \
76
78
'$i source "/opt/ros/jazzy/setup.bash"' /ros_entrypoint.sh && \
77
79
sed --in-place --expression \
78
80
'$i source "/opt/gazebo/install/setup.bash"' /ros_entrypoint.sh && \
79
81
sed --in-place --expression \
80
- '$i export PYTHONPATH=$PYTHONPATH:/opt/gazebo/install/lib/python' /ros_entrypoint.sh && \
82
+ '$i export PYTHONPATH=\ $ PYTHONPATH:/opt/gazebo/install/lib/python' /ros_entrypoint.sh && \
81
83
sed --in-place --expression \
82
- '$i export PATH=/opt/ardupilot_dave/ardupilot/build/still/bin:$PATH' /ros_entrypoint.sh && \
84
+ '$i export PATH=/opt/ardupilot_dave/ardupilot/build/still/bin:\ $ PATH' /ros_entrypoint.sh && \
83
85
sed --in-place --expression \
84
- '$i export PATH=/opt/ardupilot_dave/ardupilot/Tools/autotest:$PATH' /ros_entrypoint.sh && \
86
+ '$i export PATH=/opt/ardupilot_dave/ardupilot/Tools/autotest:\ $ PATH' /ros_entrypoint.sh && \
85
87
sed --in-place --expression \
86
- '$i export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ardupilot_dave/ardupilot_gazebo/build:$GZ_SIM_SYSTEM_PLUGIN_PATH' /ros_entrypoint.sh && \
88
+ '$i export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ardupilot_dave/ardupilot_gazebo/build:\ $ GZ_SIM_SYSTEM_PLUGIN_PATH' /ros_entrypoint.sh && \
87
89
sed --in-place --expression \
88
- '$i export GZ_SIM_RESOURCE_PATH=/opt/ardupilot_dave/ardupilot_gazebo/models:/opt/ardupilot_dave/ardupilot_gazebo/worlds:$GZ_SIM_RESOURCE_PATH' /ros_entrypoint.sh
90
+ '$i export GZ_SIM_RESOURCE_PATH=/opt/ardupilot_dave/ardupilot_gazebo/models:/opt/ardupilot_dave/ardupilot_gazebo/worlds:\ $ GZ_SIM_RESOURCE_PATH' /ros_entrypoint.sh
89
91
90
92
# Set User as user
91
93
USER $USER
92
94
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
93
- echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc
95
+ echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc && \
96
+ echo "export PYTHONPATH=\$ PYTHONPATH:/opt/gazebo/install/lib/python" >> ~/.bashrc && \
97
+ echo "export PATH=/opt/ardupilot_dave/ardupilot/build/still/bin:\$ PATH" >> ~/.bashrc && \
98
+ echo "export PATH=/opt/ardupilot_dave/ardupilot/Tools/autotest:\$ PATH" >> ~/.bashrc && \
99
+ echo "export GZ_SIM_SYSTEM_PLUGIN_PATH=/opt/ardupilot_dave/ardupilot_gazebo/build:\$ GZ_SIM_SYSTEM_PLUGIN_PATH" >> ~/.bashrc && \
100
+ echo "export GZ_SIM_RESOURCE_PATH=/opt/ardupilot_dave/ardupilot_gazebo/models:/opt/ardupilot_dave/ardupilot_gazebo/worlds:\$ GZ_SIM_RESOURCE_PATH" >> ~/.bashrc
101
+
0 commit comments