Skip to content

Instantly share code, notes, and snippets.

@matlabbe
matlabbe / rtabmap_opencv310_backward_compatibility.patch
Last active November 19, 2023 02:19
rtabmap compilation fix with opencv 3.1.0
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f2bfd83..65b03eef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -228,7 +228,7 @@ ENDIF()
set(RTABMAP_QT_VERSION AUTO CACHE STRING "Force a specific Qt version.")
set_property(CACHE RTABMAP_QT_VERSION PROPERTY STRINGS AUTO 4 5 6)
-FIND_PACKAGE(OpenCV REQUIRED QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d)
+FIND_PACKAGE(OpenCV QUIET COMPONENTS core calib3d imgproc highgui stitching photo video videoio OPTIONAL_COMPONENTS aruco xfeatures2d nonfree gpu cudafeatures2d)
@matlabbe
matlabbe / pcl_1_11_1_vtk_ios_support.patch
Last active June 17, 2023 23:52
Patch for PCL 1.11.1 to add vtk support in ios build
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e5aa7f40a..13fb3b874 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -370,7 +370,7 @@ endif()
# Find VTK
option(WITH_VTK "Build VTK-Visualizations" TRUE)
-if(WITH_VTK AND NOT ANDROID)
+if(WITH_VTK)
@matlabbe
matlabbe / associate.py
Last active April 16, 2023 00:32
Modified script from TUM's rgbd dataset to copy associated rgb and depth images in distinct folders "rgb_sync" and "depth_sync" (original: http://vision.in.tum.de/data/datasets/rgbd-dataset/tools)
#!/usr/bin/python3
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, Juergen Sturm, TUM
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
@matlabbe
matlabbe / realsense2_t265.patch
Created March 19, 2023 20:55
Fixing realsense2 t265 image synchronization for >= v2.43
diff --git a/src/proc/syncer-processing-block.cpp b/src/proc/syncer-processing-block.cpp
index 34ebcb492..020b88eb7 100644
--- a/src/proc/syncer-processing-block.cpp
+++ b/src/proc/syncer-processing-block.cpp
@@ -11,7 +11,7 @@
namespace librealsense
{
syncer_process_unit::syncer_process_unit(std::initializer_list< bool_option::ptr > enable_opts, bool log)
- : processing_block("syncer"), _matcher((new composite_identity_matcher({})))
+ : processing_block("syncer"), _matcher((new timestamp_composite_matcher({})))
@matlabbe
matlabbe / gtsam-4.0.0-alpha2-MSVC.patch
Last active March 19, 2023 19:47
GTSAM 4.0.0 alpha2 Visual Studio fix
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77434d135..46ce2e9a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,9 +53,9 @@ endif()
# Configurable Options
if(GTSAM_UNSTABLE_AVAILABLE)
- option(GTSAM_BUILD_UNSTABLE "Enable/Disable libgtsam_unstable" ON)
+ option(GTSAM_BUILD_UNSTABLE "Enable/Disable libgtsam_unstable" OFF)
@matlabbe
matlabbe / pointmatcher_windows_dll.patch
Last active March 19, 2023 19:11
Build libpointmatcher as shared library on Windows (tested with libpointmatcher 7dc58e5)
diff --git a/.gitignore b/.gitignore
index 85152fb..da016a7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
*.cur_trans
build
.ipynb_checkpoints/
+pointmatcher/pm_export.h
\ No newline at end of file
@matlabbe
matlabbe / vins-fusion_be55a93_pull136.patch
Last active January 8, 2023 23:06
VINS-Fusion patch to use it as library from external project
diff --git a/vins_estimator/CMakeLists.txt b/vins_estimator/CMakeLists.txt
index 8735939..3f7c8d7 100644
--- a/vins_estimator/CMakeLists.txt
+++ b/vins_estimator/CMakeLists.txt
@@ -31,7 +31,18 @@ include_directories(
${EIGEN3_INCLUDE_DIR}
)
-catkin_package()
+catkin_package(
@matlabbe
matlabbe / msckf_vio_a9386c5_ros_commented.patch
Last active September 26, 2022 22:42
MSCKF VIO patch to disable ROS stuff to be compiled inside RTAB-Map
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb741cb..14a5f7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,8 @@ project(msckf_vio)
add_compile_options(-std=c++11)
+set(CMAKE_BUILD_TYPE Release)
+
@matlabbe
matlabbe / floam_as_library_support.patch
Created September 9, 2021 21:44
Make FLOAM package available as a library for RTAB-Map integration (Noetic).
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95b92f1..cd07eef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8.3)
project(floam)
set(CMAKE_BUILD_TYPE "Release")
-set(CMAKE_CXX_FLAGS "-std=c++11")
+set(CMAKE_CXX_FLAGS "-std=c++14")
@matlabbe
matlabbe / opengv_disable_march_native.patch
Created June 26, 2022 02:53
Disable OpenGV march native compile option
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9660f55..ca01034 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,12 +31,12 @@ IF(MSVC)
add_definitions(-D_USE_MATH_DEFINES)
ELSE()
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64)|(ARM64)|(aarch64)|(AARCH64)")
- add_definitions (-march=armv8-a)
+ #add_definitions (-march=armv8-a)