From 16e4ddae38cb69de6208fecfae6e2ba9ab35b916 Mon Sep 17 00:00:00 2001 From: catslashbin Date: Thu, 7 Dec 2023 11:19:45 +0000 Subject: [PATCH] Add foxglove & hikcam and set up rosdistro mirror --- .devcontainer/Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index f6a1a26..0765d02 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -24,6 +24,15 @@ RUN apt-get update \ && apt-get clean -y \ && rm -rf /var/lib/apt/lists/* +# Install ROS packages +RUN apt-get update \ + && apt-get -y install --no-install-recommends \ + ros-humble-camera-calibration \ + ros-humble-foxglove-bridge \ + && apt-get autoremove -y \ + && apt-get clean -y \ + && rm -rf /var/lib/apt/lists/* + # Install global pip packages COPY python_requirements.txt /tmp/ RUN pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip \ @@ -36,4 +45,9 @@ ENV DEBIAN_FRONTEND=dialog # Set up auto-source of workspace for ros user ARG WORKSPACE -RUN echo "if [ -f ${WORKSPACE}/install/setup.bash ]; then source ${WORKSPACE}/install/setup.bash; fi" >> /home/ros/.bashrc \ No newline at end of file +RUN echo "if [ -f ${WORKSPACE}/install/setup.bash ]; then source ${WORKSPACE}/install/setup.bash; fi" >> /home/ros/.bashrc + +# Set up rosdistro mirror +RUN mkdir -p /etc/ros/rosdep/sources.list.d/ \ + && curl -o /etc/ros/rosdep/sources.list.d/20-default.list https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list \ + && echo 'export ROSDISTRO_INDEX_URL=https://mirrors.tuna.tsinghua.edu.cn/rosdistro/index-v4.yaml' >> /home/ros/.bashrc \ No newline at end of file