Skip to content

Instantly share code, notes, and snippets.

matlabbe

Block or report user

Report or block matlabbe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matlabbe
matlabbe / alice_vision_eigen.patch
Created Oct 28, 2019
Patch for AliceVision integration in RTAB-Map
View alice_vision_eigen.patch
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7ea43b50..b8646276 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -334,8 +334,8 @@ if(Eigen3_FOUND OR EIGEN3_FOUND)
# message(FATAL_ERROR "EIGEN_INCLUDE_DIR: ${EIGEN_INCLUDE_DIR}")
include_directories(${EIGEN_INCLUDE_DIR})
# See https://eigen.tuxfamily.org/dox/group__TopicUnalignedArrayAssert.html
- add_definitions("-DEIGEN_DONT_ALIGN_STATICALLY=1")
- add_definitions("-DEIGEN_DONT_VECTORIZE=1")
@matlabbe
matlabbe / tum_rename_world_kinect_frame.py
Created Mar 20, 2019
Script used to rename /world -> /kinect frame to /world -> /kinect_gt to be more friendly with SLAM approaches that estimate /map -> /kinect
View tum_rename_world_kinect_frame.py
import rosbag
import sys
import os
from tf.msg import tfMessage
if len(sys.argv) < 1:
print 'Usage example: tum_rename_world_kinect_frame.py rgbd_dataset_freiburg3_long_office_household.bag'
exit
os.rename(sys.argv[1], sys.argv[1] + '.tmp')
@matlabbe
matlabbe / vins-fusion_e72b5f7.patch
Last active May 23, 2019
VINS-Fusion patch to use it as library from external project
View vins-fusion_e72b5f7.patch
diff --git a/vins_estimator/CMakeLists.txt b/vins_estimator/CMakeLists.txt
index 5daf0ee..f8a4ad5 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 / pointcloud_to_laserscan_nodelet_indigo.patch
Created Jan 26, 2019
Fixing pointcloud_to_laserscan build from indigo_devel branch into recent ros distros
View pointcloud_to_laserscan_nodelet_indigo.patch
diff --git a/src/pointcloud_to_laserscan_nodelet.cpp b/src/pointcloud_to_laserscan_nodelet.cpp
index 3411d45..5918f0b 100644
--- a/src/pointcloud_to_laserscan_nodelet.cpp
+++ b/src/pointcloud_to_laserscan_nodelet.cpp
@@ -238,4 +238,4 @@ namespace pointcloud_to_laserscan
}
-PLUGINLIB_DECLARE_CLASS(pointcloud_to_laserscan, PointCloudToLaserScanNodelet, pointcloud_to_laserscan::PointCloudToLaserScanNodelet, nodelet::Nodelet);
+PLUGINLIB_EXPORT_CLASS(pointcloud_to_laserscan::PointCloudToLaserScanNodelet, nodelet::Nodelet);
@matlabbe
matlabbe / okvis_1dce912_marchnative_disabled.patch
Last active Mar 20, 2019
OKVIS with -march=native disabled and use shared libraries
View okvis_1dce912_marchnative_disabled.patch
diff --git a/.gitignore b/.gitignore
index 7ee7366..f764f90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,3 +29,5 @@
# Docu
documentation/html/
+
+build
@matlabbe
matlabbe / orbslam2_f2e6f51_marchnative_disabled.patch
Created Dec 27, 2018
ORB_SLAM2 patch to disable -march=native
View orbslam2_f2e6f51_marchnative_disabled.patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08a8af4..8190289 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,8 +7,8 @@ ENDIF()
MESSAGE("Build type: " ${CMAKE_BUILD_TYPE})
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O3 -march=native ")
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -march=native")
@matlabbe
matlabbe / rtabmap-0.16.3-euroc-tool-fix.patch
Created Dec 25, 2018
Patch to fix rtabmap 0.16.3 build of euroc tool on c++11
View rtabmap-0.16.3-euroc-tool-fix.patch
diff --git a/tools/EurocDataset/main.cpp b/tools/EurocDataset/main.cpp
index 26e633b..4e8a3d0 100644
--- a/tools/EurocDataset/main.cpp
+++ b/tools/EurocDataset/main.cpp
@@ -44,6 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <yaml-cpp/yaml.h>
#include <stdio.h>
#include <signal.h>
+#include <fstream>
@matlabbe
matlabbe / msckf_vio_a9386c5_ros_commented.patch
Last active Oct 13, 2019
MSCKF VIO patch to disable ROS stuff to be compiled inside RTAB-Map
View msckf_vio_a9386c5_ros_commented.patch
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 / gtsam-4.0.0-alpha2-VS2015.patch
Last active Mar 28, 2018
GTSAM 4.0.0 alpha2 VS2015 fix
View gtsam-4.0.0-alpha2-VS2015.patch
diff --git a/gtsam/discrete/DiscreteConditional.cpp b/gtsam/discrete/DiscreteConditional.cpp
index 4a918ef..068c66a 100644
--- a/gtsam/discrete/DiscreteConditional.cpp
+++ b/gtsam/discrete/DiscreteConditional.cpp
@@ -88,6 +88,7 @@ Potentials::ADT DiscreteConditional::choose(const Values& parentsValues) const {
ADT pFS(*this);
Key j; size_t value;
for(Key key: parents())
+ {
try {
View gtsam_GKlib_android_fix.patch
From 6a1c1cb56233bd4f990c72f9726167e774668d9d Mon Sep 17 00:00:00 2001
From: matlabbe <matlabbe@gmail.com>
Date: Mon, 20 Mar 2017 14:29:42 -0400
Subject: [PATCH] fixed metis/GKlib compilation errors for android
---
gtsam/3rdparty/metis/GKlib/GKlibSystem.cmake | 4 +++-
gtsam/3rdparty/metis/GKlib/error.c | 2 +-
gtsam/3rdparty/metis/GKlib/gk_externs.h | 1 -
gtsam/3rdparty/metis/GKlib/gk_macros.h | 2 +-
You can’t perform that action at this time.