Skip to content

Commit

Permalink
Add foxglove & hikcam and set up rosdistro mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
catslashbin committed Dec 7, 2023
1 parent 9c40594 commit 16e4dda
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
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

0 comments on commit 16e4dda

Please sign in to comment.