From 1819f3c9a409436f7c7280328815da3a2dc78cdb Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Mon, 22 Mar 2021 22:56:58 -0400 Subject: [PATCH] Fixed bug (missing tf2-geometry) in Dockerfile and added setup.bash sourcing --- docker/kinetic/Dockerfile | 7 ++++++- docker/melodic/Dockerfile | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docker/kinetic/Dockerfile b/docker/kinetic/Dockerfile index 5a71d5c6..da7266fd 100644 --- a/docker/kinetic/Dockerfile +++ b/docker/kinetic/Dockerfile @@ -25,7 +25,8 @@ RUN apt-get install software-properties-common apt-utils -y RUN add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main" -u # Install required realsense and ROS packages -RUN apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev librealsense2-dbg ros-kinetic-rgbd-launch python-catkin-tools -y +RUN apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev \ + librealsense2-dbg ros-kinetic-rgbd-launch ros-kinetic-tf2-geometry-msgs python-catkin-tools -y # Install ROS dependencies RUN rosdep update \ @@ -35,3 +36,7 @@ RUN rosdep update \ RUN catkin config \ --extend /opt/ros/$ROS_DISTRO && \ catkin build + +RUN echo "source /home/devel/setup.bash" >> /$HOME/.bashrc + +CMD "bash" \ No newline at end of file diff --git a/docker/melodic/Dockerfile b/docker/melodic/Dockerfile index 2839d1ad..8fc94b8a 100644 --- a/docker/melodic/Dockerfile +++ b/docker/melodic/Dockerfile @@ -23,7 +23,7 @@ RUN add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/a # Install required realsense and ROS packages RUN apt-get update && \ - apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev librealsense2-dbg python-catkin-tools -y + apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev librealsense2-dbg ros-melodic-tf2-geometry-msgs python-catkin-tools -y WORKDIR /home/ros @@ -35,3 +35,7 @@ RUN rosdep update \ RUN catkin config \ --extend /opt/ros/$ROS_DISTRO && \ catkin build + +RUN echo "source /home/ros/devel/setup.bash" >> /$HOME/.bashrc + +CMD "bash" \ No newline at end of file