This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
54 lines (39 loc) · 2.18 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
49
50
51
52
53
54
# This Dockerfile can be configured via --build-arg
# Example build command:
# docker build --pull --no-cache -t orca3:galactic .
# Example run command using Rocker (see https://github.com/osrf/rocker):
# rocker --x11 --nvidia orca3:galactic
FROM osrf/ros:galactic-desktop
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3-pip
RUN yes | pip3 install transformations
# Required for orca_topside
RUN apt-get install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools \
gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio \
libgstreamer-plugins-base1.0-dev
WORKDIR /work/orca_ws/src
COPY . orca3
ARG FIDUCIAL_VLAM_BRANCH=master
ARG H264_IMAGE_TRANSPORT_BRANCH=master
ARG ORB_SLAM2_ROS_BRANCH=clyde_h264_stereo_galactic
ARG ROS2_SHARED_BRANCH=master
ARG SIM_FIDUCIAL_BRANCH=master
ARG STEREO_DECODER_BRANCH=main
ARG UKF_BRANCH=master
RUN git clone https://github.com/ptrmu/fiducial_vlam.git -b $FIDUCIAL_VLAM_BRANCH
RUN git clone https://github.com/clydemcqueen/h264_image_transport.git -b $H264_IMAGE_TRANSPORT_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/stereo_decoder.git -b $STEREO_DECODER_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/galactic/setup.bash && colcon build"
# Simulation with fiducial_vlam:
# source src/orca3/setup.bash # Required to set up the Gazebo environment correctly
# ros2 launch orca_bringup sim_launch.py gzclient:=True rviz:=True slam:=vlam world:=ping_pong
# Simulation with orb_slam2_ros:
# source src/orca3/setup.bash # Required to set up the Gazebo environment correctly
# ros2 launch orca_bringup sim_launch.py gzclient:=True rviz:=True slam:=orb world:=empty