|
1 | | -FROM ghcr.io/smart-wheelchair-rrc/humble_harmonic:dev4.10.1 |
| 1 | +FROM ghcr.io/smart-wheelchair-rrc/humble_harmonic:dev4.10.2 |
2 | 2 |
|
3 | 3 | ARG USERNAME=container_user |
4 | 4 |
|
@@ -59,11 +59,39 @@ RUN cd Livox-SDK2 \ |
59 | 59 | && cmake .. && make -j \ |
60 | 60 | && sudo make install |
61 | 61 |
|
| 62 | +RUN sudo bash -c 'wget https://raw.githubusercontent.com/osrf/osrf-rosdep/master/gz/00-gazebo.list -O /etc/ros/rosdep/sources.list.d/00-gazebo.list' \ |
| 63 | + && rosdep update \ |
| 64 | + && rosdep resolve gz-harmonic |
| 65 | + |
62 | 66 | COPY rosPkgs.list /tmp/rosPkgs.list |
63 | 67 | RUN sudo apt-get update \ |
64 | 68 | && sudo apt-get -y install --no-install-recommends $(cat /tmp/rosPkgs.list) \ |
65 | 69 | && sudo rm -rf /var/lib/apt/lists/* |
66 | 70 |
|
| 71 | +WORKDIR /home/$USERNAME/gz_ros2_control_ws/src |
| 72 | +RUN git clone --depth=1 --progress --verbose https://github.com/ros-controls/gz_ros2_control -b $ROS_DISTRO . \ |
| 73 | + && export GZ_VERSION=harmonic \ |
| 74 | + && rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y --skip-keys="ros_gz_bridge ros_gz_sim" |
| 75 | + |
| 76 | +WORKDIR /home/$USERNAME/gz_ros2_control_ws |
| 77 | +RUN source /opt/ros/$ROS_DISTRO/setup.bash \ |
| 78 | + && colcon build \ |
| 79 | + && echo "source ~/gz_ros2_control_ws/install/setup.bash" | sudo tee -a ~/.bashrc > /dev/null |
| 80 | + |
| 81 | +RUN sudo mkdir -p /opt/nvidia/ |
| 82 | +COPY NVIDIA-OptiX-SDK-7.2.0-linux64-x86_64/ /opt/nvidia/NVIDIA-OptiX-SDK-7.2.0-linux64-x86_64/ |
| 83 | +ENV OptiX_INSTALL_DIR=/opt/nvidia/NVIDIA-OptiX-SDK-7.2.0-linux64-x86_64/ |
| 84 | + |
| 85 | +WORKDIR /home/$USERNAME |
| 86 | +RUN git clone --depth=1 --progress --verbose https://github.com/RobotecAI/RGLGazeboPlugin.git \ |
| 87 | + && cd RGLGazeboPlugin \ |
| 88 | + && mkdir build && cd build \ |
| 89 | + && cmake .. && sudo make -j && sudo make install |
| 90 | + |
| 91 | +# Environment variable for RGLGazeboPlugin |
| 92 | +ENV GZ_GUI_PLUGIN_PATH=/home/$USERNAME/RGLGazeboPlugin/install/RGLVisualize |
| 93 | +ENV GZ_SIM_SYSTEM_PLUGIN_PATH=/home/$USERNAME/RGLGazeboPlugin/install/RGLServerPlugin |
| 94 | +ENV RGL_PATTERNS_DIR=/home/$USERNAME/RGLGazeboPlugin/lidar_patterns |
67 | 95 |
|
68 | 96 | COPY pythonPkgs.list /tmp/pythonPkgs.list |
69 | 97 | RUN sudo apt-get update \ |
|
0 commit comments