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

Slam types changes #11

Open
wants to merge 7 commits into
base: rgbd_feature_slam
Choose a base branch
from
Open
Show file tree
Hide file tree
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
25 changes: 25 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
Checks: "*,
-abseil-*,
-altera-*,
-android-*,
-fuchsia-*,
-google-*,
-llvm*,
-modernize-use-trailing-return-type,
-zircon-*,
-readability-else-after-return,
-readability-static-accessed-through-instance,
-readability-avoid-const-params-in-decls,
-cppcoreguidelines-non-private-member-variables-in-classes,
-misc-non-private-member-variables-in-classes,
"
WarningsAsErrors: ''
HeaderFilterRegex: ''
FormatStyle: none






10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@ jobs:
runs-on: ubuntu-latest
environment: modular-slam-ci
container:
image: ghcr.io/marcin-ochman/modular-slam:v0.0.6-arch
image: ghcr.io/marcin-ochman/modular-slam:v0.0.10-conan
credentials:
username: marcin-ochman
password: ${{ secrets.container_registry_token }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Configure CMake
shell: bash
run: mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..; cd -
run: mkdir build; cd build; cmake -DCMAKE_TOOLCHAIN_FILE=/conan_install/build/Release/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_FLAGS="-Wall -pedantic -Wextra" ..; cd -

- name: Build
shell: bash
run: cd build; make -j; cd -
run: cd build; source /conan_install/build/Release/generators/conanrun.sh; make -j; cd -

- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
run: source /conan_install/build/Release/generators/conanrun.sh; ctest -C ${{env.BUILD_TYPE}} --output-on-failure

- name: Generate Docs
run: cd build; make doc; cd -;
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ build/
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
.cache
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ cmake_minimum_required(VERSION 3.19)

project(ModularSlam VERSION 0.0.1)

list(
APPEND CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/cmake
)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
695 changes: 674 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion ci/Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN pacman -Syu --noconfirm \
glm \
go \
graphviz \
hdf5 \
htop \
nlohmann-json \
opencv \
Expand All @@ -23,17 +24,24 @@ RUN pacman -Syu --noconfirm \
qt5 \
qt6 \
valgrind \
vtk \
vim

RUN useradd builduser -m \
&& passwd -d builduser \
&& cd /home/builduser \
&& (printf 'builduser ALL=(ALL) ALL\n' | tee -a /etc/sudoers)

COPY dbow3.patch /modular-slam-data/dbow3.patch

RUN git clone https://aur.archlinux.org/yay.git yay.git && chown builduser -R yay.git && cd yay.git && sudo -u builduser bash -c "makepkg -si --noconfirm" && cd - && rm -rf yay.git
RUN git clone https://github.com/rmsalinas/DBow3.git && cd DBow3 && mkdir build && git apply /modular-slam-data/dbow3.patch && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=/opt/dbow3 -DBUILD_UTILS=0 && make install && cd -


USER builduser
RUN yay -Syu --noconfirm librealsense ceres-solver trompeloeil-git
RUN yay -Syu --noconfirm librealsense ceres-solver spdlog trompeloeil-git

ENV LD_LIBRARY_PATH="/opt/dbow3/lib/:${LD_LIBRARY_PATH}"
ENV LIBRARY_PATH="/opt/dbow3/lib/:${LIBRARY_PATH}"

USER root
Loading
Loading