Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noetic dockerfile (how to use in noetic version with astra camera) #127

Open
martin2021-sh opened this issue Dec 12, 2021 · 0 comments

Comments

@martin2021-sh
Copy link

FROM ros:noetic-robot

Update

RUN apt update
RUN apt-get install software-properties-common apt-utils -y

Set working directory

WORKDIR /home/ros/src

Get the realsense package from git

RUN git clone https://github.com/orbbec/ros_astra_camera.git
RUN git clone https://github.com/appliedAI-Initiative/orb_slam_2_ros.git

Set up Noetic keys

RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

Set up astracamera keys

RUN apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE

#Add astropro repo
RUN add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u

Install required astrapro and ROS packages

RUN apt-get update &&
apt-get install librealsense2-dkms librealsense2-utils librealsense2-dev librealsense2-dbg ros-melodic-tf2-geometry-msgs python-catkin-tools -y

WORKDIR /home/ros

Install ROS dependencies

RUN rosdep update
&& rosdep install --from-paths src --ignore-src -r -y --skip-keys=librealsense2

build ros package source

RUN catkin config
--extend /opt/ros/$ROS_DISTRO &&
catkin build

RUN echo "source /home/ros/devel/setup.bash" >> /$HOME/.bashrc

CMD "bash"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant