File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
ARG ROS_DISTRO="jazzy"
2
2
FROM osrf/ros:$ROS_DISTRO-desktop-full
3
- ARG BRANCH="ros2 "
3
+ ARG BRANCH="dockertest "
4
4
5
5
# Install Utilities
6
6
# hadolint ignore=DL3008
@@ -39,7 +39,7 @@ RUN adduser --shell /bin/bash --disabled-password --gecos '' $USER \
39
39
40
40
# Install ROS-Gazebo framework
41
41
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
42
- extras/ros-jazzy-gz-harmonic-install.sh install.sh
42
+ extras/ros-jazzy-binary- gz-harmonic-source -install.sh install.sh
43
43
RUN bash install.sh
44
44
45
45
# Set up Dave workspace
@@ -66,4 +66,5 @@ RUN touch /ros_entrypoint.sh && sed --in-place --expression \
66
66
67
67
# Set User as user
68
68
USER $USER
69
- RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
69
+ RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
70
+ echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ sudo apt update && apt install -y \
89
89
90
90
echo
91
91
echo -e " \033[34mSetting up Gazebo source directory...\033[0m"
92
- mkdir -p ~ / gazebo/src && cd ~ /gazebo/src || exit
92
+ mkdir -p /opt/ gazebo/src && cd /opt /gazebo/src || exit
93
93
curl -O https://raw.githubusercontent.com/gazebo-tooling/gazebodistro/master/collection-harmonic.yaml
94
94
vcs import < collection-harmonic.yaml
95
95
@@ -98,7 +98,7 @@ echo -e "\033[34mUpdating package list and installing dependencies...\033[0m"
98
98
sudo apt -y install $( sort -u $( find . -iname ' packages-' ` lsb_release -cs` ' .apt' -o -iname ' packages.apt' | grep -v ' /\.git/' ) | sed ' /gz\|sdf/d' | tr ' \n' ' ' )
99
99
100
100
echo -e " \033[34mBuilding the project with colcon...\033[0m"
101
- cd ~ /gazebo || exit
101
+ cd /opt /gazebo || exit
102
102
# Build gz-physics with limited cores to avoid memory issues
103
103
MAKEFLAGS=" -j2" colcon build --cmake-args -DBUILD_TESTING=OFF --merge-install --packages-up-to gz-physics
104
104
# Full build
@@ -109,6 +109,6 @@ echo -e "\033[32m============================================================\03
109
109
echo -e " \033[32mROS-Gazebo Framework Installation completed. Awesome! 🤘🚀 \033[0m"
110
110
echo -e " Following command will set-up ROS-Gazebo environment variables to run it"
111
111
echo -e " \033[95msource /opt/ros/jazzy/setup.bash\033[0m"
112
- echo -e " \033[95msource ~ /gazebo/install/setup.bash\033[0m"
112
+ echo -e " \033[95msource /opt /gazebo/install/setup.bash\033[0m"
113
113
echo -e " You may check ROS, and Gazebo version installed with \033[33mprintenv ROS_DISTRO\033[0m and \033[33mecho \$ GZ_VERSION\033[0m"
114
114
echo
You can’t perform that action at this time.
0 commit comments