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

use ros-testing instead of building depthai from source #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ WORKDIR $CATKIN_WS
# copy repo to src
COPY . ./src/biodigitalmatter_ros

RUN sed -i \
's|http://packages.ros.org/ros/ubuntu|http://packages.ros.org/ros-testing/ubuntu|' \
/etc/apt/sources.list.d/ros1-latest.list

RUN apt-get update

RUN apt-get upgrade -y
Expand All @@ -28,15 +32,7 @@ RUN apt-get install -y \
RUN vcs import src < src/biodigitalmatter_ros/dependencies.repos
RUN vcs import src < src/abb_robot_driver/pkgs.repos

RUN rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} \
--skip-keys=depthai

# https://github.com/luxonis/depthai-ros/issues/540
RUN cd /tmp \
&& git clone --recursive https://github.com/luxonis/depthai-core.git --branch v2.24.0 \
&& cmake -Hdepthai-core -Bdepthai-core/build -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local \
&& cmake --build depthai-core/build --target install \
&& rm -r depthai-core
RUN rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO}

RUN source /opt/ros/${ROS_DISTRO}/setup.bash && catkin build

Expand Down