Skip to content

Commit d371eb1

Browse files
authored
Merge pull request #209 from rpng/develop_v2.5
Development v2.5 - New Config System, ROS2 support, and many other changes!
2 parents 83ffb88 + 5cdd24e commit d371eb1

File tree

209 files changed

+13994
-16110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+13994
-16110
lines changed

.github/workflows/build.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: ROS Free Workflow
2+
3+
on:
4+
push:
5+
branches: [ master]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
name: "Ubuntu Latest"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Code Checkout
14+
uses: actions/checkout@v2
15+
- name: Configure and Build
16+
run: |
17+
sudo apt-get update && sudo apt-get install -y libeigen3-dev libopencv-dev libboost-all-dev &&
18+
mkdir build && cd build &&
19+
cmake ../ov_msckf/ && make
20+

.github/workflows/build_catkin.yml

-63
This file was deleted.

.github/workflows/build_ros1.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: ROS 1 Workflow
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
8+
jobs:
9+
build_1604:
10+
name: "ROS1 Ubuntu 16.04"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Code Checkout
14+
uses: actions/checkout@v2
15+
- name: Create Workspace and Docker Image
16+
run: |
17+
export REPO=$(basename $GITHUB_REPOSITORY) &&
18+
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
19+
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
20+
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_16_04 .
21+
- name: Echo Enviroment
22+
run: |
23+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "echo $ROS_DISTRO && echo $ROS_VERSION"
24+
- name: Run Build in Docker
25+
run: |
26+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && catkin build"
27+
- name: Run OpenVINS Simulation!
28+
run: |
29+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_msckf simulation.launch verbosity:=WARNING"
30+
build_1804:
31+
name: "ROS1 Ubuntu 18.04"
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Code Checkout
35+
uses: actions/checkout@v2
36+
- name: Create Workspace and Docker Image
37+
run: |
38+
export REPO=$(basename $GITHUB_REPOSITORY) &&
39+
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
40+
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
41+
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_18_04 .
42+
- name: Echo Enviroment
43+
run: |
44+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "echo $ROS_DISTRO && echo $ROS_VERSION"
45+
- name: Run Build in Docker
46+
run: |
47+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && catkin build"
48+
- name: Run OpenVINS Simulation!
49+
run: |
50+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_msckf simulation.launch verbosity:=WARNING"
51+
build_2004:
52+
name: "ROS1 Ubuntu 20.04"
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Code Checkout
56+
uses: actions/checkout@v2
57+
- name: Create Workspace and Docker Image
58+
run: |
59+
export REPO=$(basename $GITHUB_REPOSITORY) &&
60+
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
61+
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
62+
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros1_20_04 .
63+
- name: Echo Enviroment
64+
run: |
65+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "echo $ROS_DISTRO && echo $ROS_VERSION"
66+
- name: Run Build in Docker
67+
run: |
68+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && catkin build"
69+
- name: Run OpenVINS Simulation!
70+
run: |
71+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source devel/setup.bash && roslaunch ov_msckf simulation.launch verbosity:=WARNING"

.github/workflows/build_ros2.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: ROS 2 Workflow
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
8+
jobs:
9+
build_1804:
10+
name: "ROS2 Ubuntu 18.04"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Code Checkout
14+
uses: actions/checkout@v2
15+
- name: Create Workspace and Docker Image
16+
run: |
17+
export REPO=$(basename $GITHUB_REPOSITORY) &&
18+
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
19+
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
20+
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros2_18_04 .
21+
- name: Echo Enviroment
22+
run: |
23+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "echo $ROS_DISTRO && echo $ROS_VERSION"
24+
- name: Run Build in Docker
25+
run: |
26+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && colcon build"
27+
# THIS SEEMS TO FAIL WITH 245 ERROR, NOT SURE WHY!!!!!
28+
#- name: Run OpenVINS Simulation!
29+
# run: |
30+
# docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source install/setup.bash && ros2 run ov_msckf run_simulation src/open_vins/config/rpng_sim/estimator_config.yaml"
31+
build_2004:
32+
name: "ROS2 Ubuntu 20.04"
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Code Checkout
36+
uses: actions/checkout@v2
37+
- name: Create Workspace and Docker Image
38+
run: |
39+
export REPO=$(basename $GITHUB_REPOSITORY) &&
40+
cd $GITHUB_WORKSPACE/.. && mkdir src/ &&
41+
mv $REPO/ src/ && mkdir $REPO/ && mv src/ $REPO/ && cd $REPO/ &&
42+
docker build -t openvins -f $GITHUB_WORKSPACE/src/$REPO/Dockerfile_ros2_20_04 .
43+
- name: Echo Enviroment
44+
run: |
45+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "echo $ROS_DISTRO && echo $ROS_VERSION"
46+
- name: Run Build in Docker
47+
run: |
48+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && colcon build"
49+
- name: Run OpenVINS Simulation!
50+
run: |
51+
docker run -t --mount type=bind,source=$GITHUB_WORKSPACE,target=/catkin_ws openvins /bin/bash -c "cd /catkin_ws && source install/setup.bash && ros2 run ov_msckf run_simulation src/open_vins/config/rpng_sim/estimator_config.yaml"

CMakeLists.txt

-6
This file was deleted.

Dockerfile_ros1_16_04

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM osrf/ros:kinetic-desktop-full
2+
3+
# =========================================================
4+
# =========================================================
5+
6+
# Are you are looking for how to use this docker file?
7+
# - https://docs.openvins.com/dev-docker.html
8+
# - https://docs.docker.com/get-started/
9+
# - http://wiki.ros.org/docker/Tutorials/Docker
10+
11+
# =========================================================
12+
# =========================================================
13+
14+
# Dependencies we use, catkin tools is very good build system
15+
# Also some helper utilities for fast in terminal edits (nano etc)
16+
RUN apt-get update && apt-get install -y libeigen3-dev nano git
17+
RUN sudo apt-get install -y python-catkin-tools
18+
19+
# Seems this has Python 2.7 installed on it...
20+
RUN sudo apt-get install -y python2.7-dev python-matplotlib python-numpy python-psutil python-tk
21+
22+
# Install CMake 3.13.5
23+
ADD https://cmake.org/files/v3.13/cmake-3.13.5-Linux-x86_64.sh /cmake-3.13.5-Linux-x86_64.sh
24+
RUN mkdir /opt/cmake
25+
RUN sh /cmake-3.13.5-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
26+
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
27+
RUN cmake --version
28+
29+
# Install deps needed for clion remote debugging
30+
# https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/
31+
RUN apt-get update && apt-get install -y ssh build-essential gcc g++ \
32+
gdb clang cmake rsync tar python && apt-get clean
33+
RUN ( \
34+
echo 'LogLevel DEBUG2'; \
35+
echo 'PermitRootLogin yes'; \
36+
echo 'PasswordAuthentication yes'; \
37+
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
38+
) > /etc/ssh/sshd_config_test_clion \
39+
&& mkdir /run/sshd
40+
RUN useradd -m user && yes password | passwd user
41+
RUN usermod -s /bin/bash user
42+
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"]
43+

Dockerfile_ros1_18_04

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM osrf/ros:melodic-desktop-full
2+
3+
# =========================================================
4+
# =========================================================
5+
6+
# Are you are looking for how to use this docker file?
7+
# - https://docs.openvins.com/dev-docker.html
8+
# - https://docs.docker.com/get-started/
9+
# - http://wiki.ros.org/docker/Tutorials/Docker
10+
11+
# =========================================================
12+
# =========================================================
13+
14+
# Dependencies we use, catkin tools is very good build system
15+
# Also some helper utilities for fast in terminal edits (nano etc)
16+
RUN apt-get update && apt-get install -y libeigen3-dev nano git
17+
RUN sudo apt-get install -y python-catkin-tools
18+
19+
# Seems this has Python 3.6 installed on it...
20+
RUN sudo apt-get install -y python3-dev python3-matplotlib python3-numpy python3-psutil python3-tk
21+
22+
# Install CMake 3.13.5
23+
ADD https://cmake.org/files/v3.13/cmake-3.13.5-Linux-x86_64.sh /cmake-3.13.5-Linux-x86_64.sh
24+
RUN mkdir /opt/cmake
25+
RUN sh /cmake-3.13.5-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
26+
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
27+
RUN cmake --version
28+
29+
# Install deps needed for clion remote debugging
30+
# https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/
31+
RUN apt-get update && apt-get install -y ssh build-essential gcc g++ \
32+
gdb clang cmake rsync tar python && apt-get clean
33+
RUN ( \
34+
echo 'LogLevel DEBUG2'; \
35+
echo 'PermitRootLogin yes'; \
36+
echo 'PasswordAuthentication yes'; \
37+
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
38+
) > /etc/ssh/sshd_config_test_clion \
39+
&& mkdir /run/sshd
40+
RUN useradd -m user && yes password | passwd user
41+
RUN usermod -s /bin/bash user
42+
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"]
43+

Dockerfile Dockerfile_ros1_20_04

+12-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,20 @@ FROM osrf/ros:noetic-desktop-full
1212
# =========================================================
1313

1414
# Dependencies we use, catkin tools is very good build system
15-
# Also some helper utitiles for fast in terminal edits (nano etc)
16-
RUN apt-get update && apt-get install -y libeigen3-dev nano git cmake
15+
# Also some helper utilities for fast in terminal edits (nano etc)
16+
RUN apt-get update && apt-get install -y libeigen3-dev nano git
1717
RUN sudo apt-get install -y python3-catkin-tools python3-osrf-pycommon
1818

19+
# Seems this has Python 3.8 installed on it...
20+
RUN sudo apt-get install -y python3-dev python3-matplotlib python3-numpy python3-psutil python3-tk
21+
22+
# Install CMake 3.13.5
23+
ADD https://cmake.org/files/v3.13/cmake-3.13.5-Linux-x86_64.sh /cmake-3.13.5-Linux-x86_64.sh
24+
RUN mkdir /opt/cmake
25+
RUN sh /cmake-3.13.5-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
26+
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
27+
RUN cmake --version
28+
1929
# Install deps needed for clion remote debugging
2030
# https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/
2131
RUN apt-get update && apt-get install -y ssh build-essential gcc g++ \

Dockerfile_ros2_18_04

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM osrf/ros:dashing-desktop
2+
3+
# =========================================================
4+
# =========================================================
5+
6+
# Are you are looking for how to use this docker file?
7+
# - https://docs.openvins.com/dev-docker.html
8+
# - https://docs.docker.com/get-started/
9+
# - http://wiki.ros.org/docker/Tutorials/Docker
10+
11+
# =========================================================
12+
# =========================================================
13+
14+
# Dependencies we use, catkin tools is very good build system
15+
# Also some helper utilities for fast in terminal edits (nano etc)
16+
RUN apt-get update && apt-get install -y libeigen3-dev nano git
17+
18+
# Seems this has Python 3.6 installed on it...
19+
RUN sudo apt-get install -y python3-dev python3-matplotlib python3-numpy python3-psutil python3-tk
20+
21+
# Install CMake 3.13.5
22+
ADD https://cmake.org/files/v3.13/cmake-3.13.5-Linux-x86_64.sh /cmake-3.13.5-Linux-x86_64.sh
23+
RUN mkdir /opt/cmake
24+
RUN sh /cmake-3.13.5-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
25+
RUN ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
26+
RUN cmake --version
27+
28+
# Install deps needed for clion remote debugging
29+
# https://blog.jetbrains.com/clion/2020/01/using-docker-with-clion/
30+
RUN apt-get update && apt-get install -y ssh build-essential gcc g++ \
31+
gdb clang cmake rsync tar python && apt-get clean
32+
RUN ( \
33+
echo 'LogLevel DEBUG2'; \
34+
echo 'PermitRootLogin yes'; \
35+
echo 'PasswordAuthentication yes'; \
36+
echo 'Subsystem sftp /usr/lib/openssh/sftp-server'; \
37+
) > /etc/ssh/sshd_config_test_clion \
38+
&& mkdir /run/sshd
39+
RUN useradd -m user && yes password | passwd user
40+
RUN usermod -s /bin/bash user
41+
CMD ["/usr/sbin/sshd", "-D", "-e", "-f", "/etc/ssh/sshd_config_test_clion"]
42+

0 commit comments

Comments
 (0)