@@ -21,12 +21,34 @@ RUN apt-get update && \
2121 ros-${ROS_DISTRO}-cartographer-ros \
2222 ros-${ROS_DISTRO}-navigation2 \
2323 ros-${ROS_DISTRO}-nav2-bringup \
24+ ros-${ROS_DISTRO}-nav2-route \
2425 ros-${ROS_DISTRO}-turtlebot3-msgs \
2526 ros-${ROS_DISTRO}-dynamixel-sdk \
2627 ros-${ROS_DISTRO}-xacro \
2728 ros-${ROS_DISTRO}-hls-lfcd-lds-driver \
2829 ros-${ROS_DISTRO}-ld08-driver \
2930 ros-${ROS_DISTRO}-coin-d4-driver \
31+ ros-${ROS_DISTRO}-camera-ros \
32+ ros-${ROS_DISTRO}-urdf \
33+ && rm -rf /var/lib/apt/lists/*
34+
35+ RUN apt-get update && \
36+ apt-get install -y --no-install-recommends \
37+ python3-pip \
38+ python3-jinja2 \
39+ ninja-build \
40+ libgnutls28-dev \
41+ openssl \
42+ libtiff-dev \
43+ pybind11-dev \
44+ qtbase5-dev \
45+ libqt5core5a \
46+ libqt5widgets5 \
47+ cmake \
48+ python3-yaml \
49+ python3-ply \
50+ libglib2.0-dev \
51+ libgstreamer-plugins-base1.0-dev \
3052 && rm -rf /var/lib/apt/lists/*
3153
3254WORKDIR ${COLCON_WS}
@@ -39,10 +61,21 @@ RUN bash -c "source /opt/ros/${ROS_DISTRO}/setup.bash && \
3961 cd ${COLCON_WS} && \
4062 colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release"
4163
64+ RUN python3 -m pip config set global.break-system-packages true
65+ RUN pip3 install meson
66+
67+ WORKDIR /root
68+ RUN git clone -b v0.5.2 --depth 1 https://github.com/raspberrypi/libcamera.git && \
69+ cd libcamera && \
70+ meson setup build --buildtype=release -Dpipelines=rpi/vc4,rpi/pisp -Dipas=rpi/vc4,rpi/pisp -Dv4l2=true -Dgstreamer=enabled -Dtest=false -Dlc-compliance=disabled -Dcam=disabled -Dqcam=disabled -Ddocumentation=disabled -Dpycamera=enabled && \
71+ ninja -C build install && \
72+ ldconfig
73+
4274RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> ~/.bashrc && \
4375 echo "source ${COLCON_WS}/install/setup.bash" >> ~/.bashrc && \
4476 echo "alias cb='colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release'" >> ~/.bashrc && \
4577 echo "export ROS_DOMAIN_ID=30 # TURTLEBOT3" >> ~/.bashrc && \
78+ echo 'export LD_LIBRARY_PATH=/usr/local/lib/aarch64-linux-gnu:$LD_LIBRARY_PATH' >> ~/.bashrc && \
4679 echo "# export TURTLEBOT3_MODEL= # burger, waffle, waffle_pi" >> ~/.bashrc && \
4780 echo "# export LDS_MODEL= # LDS-01, LDS-02, LDS-03" >> ~/.bashrc
4881
0 commit comments