Skip to content

Commit

Permalink
feat: Update installation procedure from Debian packages to official …
Browse files Browse the repository at this point in the history
…ROS-hosted repositories simplifying installation procedure
  • Loading branch information
2b-t committed Aug 5, 2023
1 parent 95ba6bd commit f459a56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 42 deletions.
32 changes: 9 additions & 23 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,24 @@ SHELL ["/bin/bash", "-c"]

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update -y \
RUN apt-get update \
&& apt-get install -y \
build-essential \
cmake \
git-all \
software-properties-common
software-properties-common \
&& rm -rf /var/lib/apt/lists/*

# Install dependencies: See https://github.com/IntelRealSense/realsense-ros/tree/ros2-development
# Librealsense: See https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages
RUN apt-get update -y \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \
&& add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u \
RUN apt-get update \
&& apt-get install -y \
librealsense2-dbg \
librealsense2-dev \
librealsense2-dkms \
librealsense2-utils
ros-${ROS_DISTRO}-librealsense2* \
ros-${ROS_DISTRO}-realsense2-* \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update -y \
RUN apt-get update \
&& apt-get install -y \
ros-${ROS_DISTRO}-rviz2 \
&& mkdir src \
&& cd src \
&& git clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-development \
&& cd .. \
&& apt-get install -y python3-rosdep \
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
&& rm /etc/ros/rosdep/sources.list.d/20-default.list \
&& rosdep init \
&& rosdep update \
&& rosdep install -i --from-path src --rosdistro ${ROS_DISTRO} --skip-keys=librealsense2 -y \
&& colcon build
&& rm -rf /var/lib/apt/lists/*

ARG DEBIAN_FRONTEND=dialog
```
Expand Down
22 changes: 3 additions & 19 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,15 @@ RUN apt-get update \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*

# Install dependencies: See https://github.com/IntelRealSense/realsense-ros/tree/ros2-development
# Librealsense: See https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md#installing-the-packages
RUN apt-get update \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE \
&& add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" -u \
&& apt-get install -y \
librealsense2-dbg \
librealsense2-dev \
librealsense2-dkms \
librealsense2-utils \
ros-${ROS_DISTRO}-librealsense2* \
ros-${ROS_DISTRO}-realsense2-* \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update \
&& apt-get install -y \
ros-${ROS_DISTRO}-rviz2 \
&& mkdir src \
&& cd src \
&& git clone https://github.com/IntelRealSense/realsense-ros.git -b ros2-development \
&& cd .. \
&& apt-get install -y python3-rosdep \
&& source /opt/ros/${ROS_DISTRO}/setup.bash \
&& rm /etc/ros/rosdep/sources.list.d/20-default.list \
&& rosdep init \
&& rosdep update \
&& rosdep install -i --from-path src --rosdistro ${ROS_DISTRO} --skip-keys=librealsense2 -y \
&& colcon build \
&& rm -rf /var/lib/apt/lists/*

ARG DEBIAN_FRONTEND=dialog

0 comments on commit f459a56

Please sign in to comment.