forked from clydemcqueen/orca3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (36 loc) · 1.54 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This Dockerfile can be configured via --build-arg
# Example build command:
# docker build --pull --no-cache -t orca3:foxy --build-arg=TARGET_ROS_DISTRO=foxy .
# Example run command using Rocker (see https://github.com/osrf/rocker):
# rocker --x11 --nvidia orca3:foxy
# source src/orca3/setup.bash
# ros2 launch orca_bringup sim_launch.py gzclient:=False rviz:=True slam:=orb world:=empty
ARG TARGET_ROS_DISTRO=foxy
ARG ORCA3_BRANCH=main
ARG FIDUCIAL_VLAM_BRANCH=master
ARG ORB_SLAM2_ROS_BRANCH=clyde_rotate_pointcloud
ARG ROS2_SHARED_BRANCH=master
ARG SIM_FIDUCIAL_BRANCH=master
ARG UKF_BRANCH=master
FROM osrf/ros:$TARGET_ROS_DISTRO-desktop
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python3-pip
RUN yes | pip3 install transformations
WORKDIR /work/orca_ws/src
ARG TARGET_ROS_DISTRO
ARG ORCA3_BRANCH
ARG FIDUCIAL_VLAM_BRANCH
ARG ORB_SLAM2_ROS_BRANCH
ARG ROS2_SHARED_BRANCH
ARG SIM_FIDUCIAL_BRANCH
ARG UKF_BRANCH
RUN git clone https://github.com/clydemcqueen/orca3.git -b $ORCA3_BRANCH
RUN git clone https://github.com/ptrmu/fiducial_vlam.git -b $FIDUCIAL_VLAM_BRANCH
RUN git clone https://github.com/clydemcqueen/orb_slam_2_ros.git -b $ORB_SLAM2_ROS_BRANCH
RUN git clone https://github.com/ptrmu/ros2_shared.git -b $ROS2_SHARED_BRANCH
RUN git clone https://github.com/clydemcqueen/sim_fiducial.git -b $SIM_FIDUCIAL_BRANCH
RUN git clone https://github.com/clydemcqueen/ukf.git -b $UKF_BRANCH
WORKDIR /work/orca_ws
RUN rosdep install -y --from-paths . --ignore-src
RUN /bin/bash -c "source /opt/ros/$TARGET_ROS_DISTRO/setup.bash && colcon build"