diff --git a/.cproject b/.cproject
index 1134896ad..fa20e5794 100644
--- a/.cproject
+++ b/.cproject
@@ -532,14 +532,6 @@
true
true
-
- make
- -j4
- testSimilarity3.run
- true
- true
- true
-
make
-j2
@@ -755,6 +747,14 @@
true
true
+
+ make
+ -j4
+ testSimilarity3.run
+ true
+ true
+ true
+
make
-j5
@@ -1035,6 +1035,14 @@
true
true
+
+ make
+ -j4
+ testCyclic.run
+ true
+ true
+ true
+
make
-j2
@@ -1301,7 +1309,6 @@
make
-
testSimulated2DOriented.run
true
false
@@ -1341,7 +1348,6 @@
make
-
testSimulated2D.run
true
false
@@ -1349,7 +1355,6 @@
make
-
testSimulated3D.run
true
false
@@ -1453,6 +1458,7 @@
make
+
testErrors.run
true
false
@@ -1763,6 +1769,7 @@
cpack
+
-G DEB
true
false
@@ -1770,6 +1777,7 @@
cpack
+
-G RPM
true
false
@@ -1777,6 +1785,7 @@
cpack
+
-G TGZ
true
false
@@ -1784,6 +1793,7 @@
cpack
+
--config CPackSourceConfig.cmake
true
false
@@ -1975,7 +1985,6 @@
make
-
tests/testGaussianISAM2
true
false
@@ -2037,22 +2046,6 @@
true
true
-
- make
- -j5
- testExpressionMeta.run
- true
- true
- true
-
-
- make
- -j4
- testCustomChartExpression.run
- true
- true
- true
-
make
-j5
@@ -2127,6 +2120,7 @@
make
+
tests/testBayesTree.run
true
false
@@ -2134,6 +2128,7 @@
make
+
testBinaryBayesNet.run
true
false
@@ -2181,6 +2176,7 @@
make
+
testSymbolicBayesNet.run
true
false
@@ -2188,6 +2184,7 @@
make
+
tests/testSymbolicFactor.run
true
false
@@ -2195,6 +2192,7 @@
make
+
testSymbolicFactorGraph.run
true
false
@@ -2210,6 +2208,7 @@
make
+
tests/testBayesTree
true
false
@@ -2783,6 +2782,14 @@
true
true
+
+ make
+ -j4
+ testExecutionTrace.run
+ true
+ true
+ true
+
make
-j5
@@ -3191,6 +3198,14 @@
true
true
+
+ make
+ -j4
+ testGroup.run
+ true
+ true
+ true
+
make
-j5
@@ -3329,6 +3344,7 @@
make
+
testGraph.run
true
false
@@ -3336,6 +3352,7 @@
make
+
testJunctionTree.run
true
false
@@ -3343,6 +3360,7 @@
make
+
testSymbolicBayesNetB.run
true
false
@@ -3412,6 +3430,14 @@
true
true
+
+ make
+ -j4
+ testLie.run
+ true
+ true
+ true
+
make
-j2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38ee89760..a77173ba0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -158,6 +158,12 @@ else()
set(GTSAM_USE_TBB 0) # This will go into config.h
endif()
+###############################################################################
+# Prohibit Timing build mode in combination with TBB
+if(GTSAM_USE_TBB AND (CMAKE_BUILD_TYPE STREQUAL "Timing"))
+ message(FATAL_ERROR "Timing build mode cannot be used together with TBB. Use a sampling profiler such as Instruments or Intel VTune Amplifier instead.")
+endif()
+
###############################################################################
# Find Google perftools
@@ -192,36 +198,40 @@ endif()
###############################################################################
# Option for using system Eigen or GTSAM-bundled Eigen
-### Disabled until our patches are included in Eigen ###
+### These patches only affect usage of MKL. If you want to enable MKL, you *must*
+### use our patched version of Eigen
### See: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=704 (Householder QR MKL selection)
### http://eigen.tuxfamily.org/bz/show_bug.cgi?id=705 (Fix MKL LLT return code)
-### http://eigen.tuxfamily.org/bz/show_bug.cgi?id=716 (Improved comma initialization)
-# option(GTSAM_USE_SYSTEM_EIGEN "Find and use system-installed Eigen. If 'off', use the one bundled with GTSAM" OFF)
-set(GTSAM_USE_SYSTEM_EIGEN OFF)
+option(GTSAM_USE_SYSTEM_EIGEN "Find and use system-installed Eigen. If 'off', use the one bundled with GTSAM" OFF)
# Switch for using system Eigen or GTSAM-bundled Eigen
if(GTSAM_USE_SYSTEM_EIGEN)
- # Use generic Eigen include paths e.g.
- set(GTSAM_EIGEN_INCLUDE_PREFIX "")
-
find_package(Eigen3 REQUIRED)
include_directories(AFTER "${EIGEN3_INCLUDE_DIR}")
+
+ # Use generic Eigen include paths e.g.
+ set(GTSAM_EIGEN_INCLUDE_PREFIX "${EIGEN3_INCLUDE_DIR}")
+
+ # check if MKL is also enabled - can have one or the other, but not both!
+ if(EIGEN_USE_MKL_ALL)
+ message(FATAL_ERROR "MKL cannot be used together with system-installed Eigen, as MKL support relies on patches which are not yet in the system-installed Eigen. Disable either GTSAM_USE_SYSTEM_EIGEN or GTSAM_WITH_EIGEN_MKL")
+ endif()
else()
- # Use bundled Eigen include paths e.g.
- set(GTSAM_EIGEN_INCLUDE_PREFIX "gtsam/3rdparty/Eigen/")
-
+ # Use bundled Eigen include path.
# Clear any variables set by FindEigen3
if(EIGEN3_INCLUDE_DIR)
set(EIGEN3_INCLUDE_DIR NOTFOUND CACHE STRING "" FORCE)
endif()
+ # Add the bundled version of eigen to the include path so that it can still be included
+ # with #include
+ include_directories(BEFORE "gtsam/3rdparty/Eigen/")
+
+ # set full path to be used by external projects
+ # this will be added to GTSAM_INCLUDE_DIR by gtsam_extra.cmake.in
+ set(GTSAM_EIGEN_INCLUDE_PREFIX "${CMAKE_INSTALL_PREFIX}/include/gtsam/3rdparty/Eigen/")
+
endif()
-# Write Eigen include file with the paths for either the system Eigen or the GTSAM-bundled Eigen
-configure_file(gtsam/3rdparty/gtsam_eigen_includes.h.in gtsam/3rdparty/gtsam_eigen_includes.h)
-
-# Install the configuration file for Eigen
-install(FILES ${PROJECT_BINARY_DIR}/gtsam/3rdparty/gtsam_eigen_includes.h DESTINATION include/gtsam/3rdparty)
-
###############################################################################
# Global compile options
@@ -389,6 +399,11 @@ if(NOT MSVC AND NOT XCODE_VERSION)
message(STATUS " C compilation flags : ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${cmake_build_type_toupper}}")
message(STATUS " C++ compilation flags : ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${cmake_build_type_toupper}}")
endif()
+if(GTSAM_USE_SYSTEM_EIGEN)
+ message(STATUS " Use System Eigen : Yes")
+else()
+ message(STATUS " Use System Eigen : No")
+endif()
if(GTSAM_USE_TBB)
message(STATUS " Use Intel TBB : Yes")
elseif(TBB_FOUND)
diff --git a/cmake/GtsamBuildTypes.cmake b/cmake/GtsamBuildTypes.cmake
index 1bead58d8..c2cd7b449 100644
--- a/cmake/GtsamBuildTypes.cmake
+++ b/cmake/GtsamBuildTypes.cmake
@@ -53,11 +53,12 @@ if(NOT FIRST_PASS_DONE)
endif()
endif()
-# Clang on Mac uses a template depth that is less than standard and is too small
+# Clang uses a template depth that is less than standard and is too small
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
- if(NOT "${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "5.0")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
- endif()
+ # Apple Clang before 5.0 does not support -ftemplate-depth.
+ if(NOT (APPLE AND "${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "5.0"))
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
+ endif()
endif()
# Set up build type library postfixes
@@ -97,7 +98,8 @@ if( NOT cmake_build_type_tolower STREQUAL ""
AND NOT cmake_build_type_tolower STREQUAL "release"
AND NOT cmake_build_type_tolower STREQUAL "timing"
AND NOT cmake_build_type_tolower STREQUAL "profiling"
- AND NOT cmake_build_type_tolower STREQUAL "relwithdebinfo")
+ AND NOT cmake_build_type_tolower STREQUAL "relwithdebinfo"
+ AND NOT cmake_build_type_tolower STREQUAL "minsizerel")
message(FATAL_ERROR "Unknown build type \"${CMAKE_BUILD_TYPE}\". Allowed values are None, Debug, Release, Timing, Profiling, RelWithDebInfo (case-insensitive).")
endif()
diff --git a/cmake/GtsamMatlabWrap.cmake b/cmake/GtsamMatlabWrap.cmake
index 2da2d02c2..d1d3d93dd 100644
--- a/cmake/GtsamMatlabWrap.cmake
+++ b/cmake/GtsamMatlabWrap.cmake
@@ -367,6 +367,11 @@ endfunction()
# should be installed to all build type toolboxes
function(install_matlab_scripts source_directory patterns)
set(patterns_args "")
+ set(exclude_patterns "")
+ if(NOT GTSAM_WRAP_SERIALIZATION)
+ set(exclude_patterns "testSerialization.m")
+ endif()
+
foreach(pattern ${patterns})
list(APPEND patterns_args PATTERN "${pattern}")
endforeach()
@@ -381,10 +386,10 @@ function(install_matlab_scripts source_directory patterns)
# Split up filename to strip trailing '/' in GTSAM_TOOLBOX_INSTALL_PATH if there is one
get_filename_component(location "${GTSAM_TOOLBOX_INSTALL_PATH}" PATH)
get_filename_component(name "${GTSAM_TOOLBOX_INSTALL_PATH}" NAME)
- install(DIRECTORY "${source_directory}" DESTINATION "${location}/${name}${build_type_tag}" CONFIGURATIONS "${build_type}" FILES_MATCHING ${patterns_args} PATTERN ".svn" EXCLUDE)
+ install(DIRECTORY "${source_directory}" DESTINATION "${location}/${name}${build_type_tag}" CONFIGURATIONS "${build_type}" FILES_MATCHING ${patterns_args} PATTERN "${exclude_patterns}" EXCLUDE)
endforeach()
else()
- install(DIRECTORY "${source_directory}" DESTINATION "${GTSAM_TOOLBOX_INSTALL_PATH}" FILES_MATCHING ${patterns_args} PATTERN ".svn" EXCLUDE)
+ install(DIRECTORY "${source_directory}" DESTINATION "${GTSAM_TOOLBOX_INSTALL_PATH}" FILES_MATCHING ${patterns_args} PATTERN "${exclude_patterns}" EXCLUDE)
endif()
endfunction()
diff --git a/examples/SolverComparer.cpp b/examples/SolverComparer.cpp
index 923b0b9de..0393affe1 100644
--- a/examples/SolverComparer.cpp
+++ b/examples/SolverComparer.cpp
@@ -31,28 +31,29 @@
*
*/
-#include
-#include
-#include
-#include
-#include
#include
#include
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include
#include
+#include
+#include
+#include
+#include
+#include
-#include
-#include
-#include
#include
-#include
+#include
#include
#include
#include
+#include
+
+#include
+#include
#ifdef GTSAM_USE_TBB
#include
@@ -72,23 +73,6 @@ typedef NoiseModelFactor1 NM1;
typedef NoiseModelFactor2 NM2;
typedef BearingRangeFactor BR;
-//GTSAM_VALUE_EXPORT(Value);
-//GTSAM_VALUE_EXPORT(Pose);
-//GTSAM_VALUE_EXPORT(Rot2);
-//GTSAM_VALUE_EXPORT(Point2);
-//GTSAM_VALUE_EXPORT(NonlinearFactor);
-//GTSAM_VALUE_EXPORT(NoiseModelFactor);
-//GTSAM_VALUE_EXPORT(NM1);
-//GTSAM_VALUE_EXPORT(NM2);
-//GTSAM_VALUE_EXPORT(BetweenFactor);
-//GTSAM_VALUE_EXPORT(PriorFactor);
-//GTSAM_VALUE_EXPORT(BR);
-//GTSAM_VALUE_EXPORT(noiseModel::Base);
-//GTSAM_VALUE_EXPORT(noiseModel::Isotropic);
-//GTSAM_VALUE_EXPORT(noiseModel::Gaussian);
-//GTSAM_VALUE_EXPORT(noiseModel::Diagonal);
-//GTSAM_VALUE_EXPORT(noiseModel::Unit);
-
double chi2_red(const gtsam::NonlinearFactorGraph& graph, const gtsam::Values& config) {
// Compute degrees of freedom (observations - variables)
// In ocaml, +1 was added to the observations to account for the prior, but
@@ -269,12 +253,12 @@ void runIncremental()
boost::dynamic_pointer_cast >(datasetMeasurements[nextMeasurement]))
{
Key key1 = measurement->key1(), key2 = measurement->key2();
- if((key1 >= firstStep && key1 < key2) || (key2 >= firstStep && key2 < key1)) {
+ if(((int)key1 >= firstStep && key1 < key2) || ((int)key2 >= firstStep && key2 < key1)) {
// We found an odometry starting at firstStep
firstPose = std::min(key1, key2);
break;
}
- if((key2 >= firstStep && key1 < key2) || (key1 >= firstStep && key2 < key1)) {
+ if(((int)key2 >= firstStep && key1 < key2) || ((int)key1 >= firstStep && key2 < key1)) {
// We found an odometry joining firstStep with a previous pose
havePreviousPose = true;
firstPose = std::max(key1, key2);
@@ -303,7 +287,9 @@ void runIncremental()
cout << "Playing forward time steps..." << endl;
- for(size_t step = firstPose; nextMeasurement < datasetMeasurements.size() && (lastStep == -1 || step <= lastStep); ++step)
+ for (size_t step = firstPose;
+ nextMeasurement < datasetMeasurements.size() && (lastStep == -1 || (int)step <= lastStep);
+ ++step)
{
Values newVariables;
NonlinearFactorGraph newFactors;
diff --git a/gtsam.h b/gtsam.h
index 33e95b558..b9edfe14f 100644
--- a/gtsam.h
+++ b/gtsam.h
@@ -288,6 +288,32 @@ class Point2 {
void serialize() const;
};
+// std::vector
+class Point2Vector
+{
+ // Constructors
+ Point2Vector();
+ Point2Vector(const gtsam::Point2Vector& v);
+
+ //Capacity
+ size_t size() const;
+ size_t max_size() const;
+ void resize(size_t sz);
+ size_t capacity() const;
+ bool empty() const;
+ void reserve(size_t n);
+
+ //Element access
+ gtsam::Point2 at(size_t n) const;
+ gtsam::Point2 front() const;
+ gtsam::Point2 back() const;
+
+ //Modifiers
+ void assign(size_t n, const gtsam::Point2& u);
+ void push_back(const gtsam::Point2& x);
+ void pop_back();
+};
+
class StereoPoint2 {
// Standard Constructors
StereoPoint2();
@@ -304,8 +330,6 @@ class StereoPoint2 {
gtsam::StereoPoint2 between(const gtsam::StereoPoint2& p2) const;
// Manifold
- static size_t Dim();
- size_t dim() const;
gtsam::StereoPoint2 retract(Vector v) const;
Vector localCoordinates(const gtsam::StereoPoint2& p) const;
@@ -550,6 +574,16 @@ class Pose3 {
void serialize() const;
};
+// std::vector
+class Pose3Vector
+{
+ Pose3Vector();
+ size_t size() const;
+ bool empty() const;
+ gtsam::Pose3 at(size_t n) const;
+ void push_back(const gtsam::Pose3& x);
+};
+
#include
class Unit3 {
// Standard Constructors
@@ -788,56 +822,16 @@ class CalibratedCamera {
void serialize() const;
};
-class SimpleCamera {
- // Standard Constructors and Named Constructors
- SimpleCamera();
- SimpleCamera(const gtsam::Pose3& pose);
- SimpleCamera(const gtsam::Pose3& pose, const gtsam::Cal3_S2& K);
- static gtsam::SimpleCamera Level(const gtsam::Cal3_S2& K,
- const gtsam::Pose2& pose, double height);
- static gtsam::SimpleCamera Level(const gtsam::Pose2& pose, double height);
- static gtsam::SimpleCamera Lookat(const gtsam::Point3& eye,
- const gtsam::Point3& target, const gtsam::Point3& upVector,
- const gtsam::Cal3_S2& K);
-
- // Testable
- void print(string s) const;
- bool equals(const gtsam::SimpleCamera& camera, double tol) const;
-
- // Standard Interface
- gtsam::Pose3 pose() const;
- gtsam::Cal3_S2 calibration();
-
- // Manifold
- gtsam::SimpleCamera retract(const Vector& d) const;
- Vector localCoordinates(const gtsam::SimpleCamera& T2) const;
- size_t dim() const;
- static size_t Dim();
-
- // Transformations and measurement functions
- static gtsam::Point2 Project(const gtsam::Point3& cameraPoint);
- pair projectSafe(const gtsam::Point3& pw) const;
- gtsam::Point2 project(const gtsam::Point3& point);
- gtsam::Point3 backproject(const gtsam::Point2& p, double depth) const;
- double range(const gtsam::Point3& point);
- double range(const gtsam::Pose3& point);
-
- // enabling serialization functionality
- void serialize() const;
-};
-
-template
+template
class PinholeCamera {
// Standard Constructors and Named Constructors
PinholeCamera();
PinholeCamera(const gtsam::Pose3& pose);
- PinholeCamera(const gtsam::Pose3& pose, const gtsam::Cal3DS2& K);
- static This Level(const gtsam::Cal3DS2& K,
- const gtsam::Pose2& pose, double height);
+ PinholeCamera(const gtsam::Pose3& pose, const CALIBRATION& K);
+ static This Level(const CALIBRATION& K, const gtsam::Pose2& pose, double height);
static This Level(const gtsam::Pose2& pose, double height);
- static This Lookat(const gtsam::Point3& eye,
- const gtsam::Point3& target, const gtsam::Point3& upVector,
- const gtsam::Cal3DS2& K);
+ static This Lookat(const gtsam::Point3& eye, const gtsam::Point3& target,
+ const gtsam::Point3& upVector, const CALIBRATION& K);
// Testable
void print(string s) const;
@@ -865,6 +859,50 @@ class PinholeCamera {
void serialize() const;
};
+virtual class SimpleCamera {
+ // Standard Constructors and Named Constructors
+ SimpleCamera();
+ SimpleCamera(const gtsam::Pose3& pose);
+ SimpleCamera(const gtsam::Pose3& pose, const gtsam::Cal3_S2& K);
+ static gtsam::SimpleCamera Level(const gtsam::Cal3_S2& K, const gtsam::Pose2& pose, double height);
+ static gtsam::SimpleCamera Level(const gtsam::Pose2& pose, double height);
+ static gtsam::SimpleCamera Lookat(const gtsam::Point3& eye, const gtsam::Point3& target,
+ const gtsam::Point3& upVector, const gtsam::Cal3_S2& K);
+
+ // Testable
+ void print(string s) const;
+ bool equals(const gtsam::SimpleCamera& camera, double tol) const;
+
+ // Standard Interface
+ gtsam::Pose3 pose() const;
+ gtsam::Cal3_S2 calibration() const;
+
+ // Manifold
+ gtsam::SimpleCamera retract(const Vector& d) const;
+ Vector localCoordinates(const gtsam::SimpleCamera& T2) const;
+ size_t dim() const;
+ static size_t Dim();
+
+ // Transformations and measurement functions
+ static gtsam::Point2 Project(const gtsam::Point3& cameraPoint);
+ pair projectSafe(const gtsam::Point3& pw) const;
+ gtsam::Point2 project(const gtsam::Point3& point);
+ gtsam::Point3 backproject(const gtsam::Point2& p, double depth) const;
+ double range(const gtsam::Point3& point);
+ double range(const gtsam::Pose3& point);
+
+ // enabling serialization functionality
+ void serialize() const;
+
+};
+
+// Some typedefs for common camera types
+// PinholeCameraCal3_S2 is the same as SimpleCamera above
+typedef gtsam::PinholeCamera PinholeCameraCal3_S2;
+typedef gtsam::PinholeCamera PinholeCameraCal3DS2;
+typedef gtsam::PinholeCamera PinholeCameraCal3Unified;
+typedef gtsam::PinholeCamera PinholeCameraCal3Bundler;
+
class StereoCamera {
// Standard Constructors and Named Constructors
StereoCamera();
@@ -893,6 +931,16 @@ class StereoCamera {
void serialize() const;
};
+#include
+
+// Templates appear not yet supported for free functions
+gtsam::Point3 triangulatePoint3(const gtsam::Pose3Vector& poses,
+ gtsam::Cal3_S2* sharedCal, const gtsam::Point2Vector& measurements,
+ double rank_tol, bool optimize);
+gtsam::Point3 triangulatePoint3(const gtsam::Pose3Vector& poses,
+ gtsam::Cal3Bundler* sharedCal, const gtsam::Point2Vector& measurements,
+ double rank_tol, bool optimize);
+
//*************************************************************************
// Symbolic
//*************************************************************************
@@ -2176,9 +2224,6 @@ class NonlinearISAM {
//*************************************************************************
// Nonlinear factor types
//*************************************************************************
-#include
-#include
-#include
#include
#include
#include
diff --git a/gtsam/3rdparty/CMakeLists.txt b/gtsam/3rdparty/CMakeLists.txt
index 301548dcf..4adbfb250 100644
--- a/gtsam/3rdparty/CMakeLists.txt
+++ b/gtsam/3rdparty/CMakeLists.txt
@@ -58,10 +58,10 @@ add_subdirectory(ceres)
include(GeographicLib/cmake/FindGeographicLib.cmake)
# Set up the option to install GeographicLib
-if(GEOGRAPHICLIB_FOUND)
- set(install_geographiclib_default OFF)
-else()
+if(GEOGRAPHICLIB-NOTFOUND)
set(install_geographiclib_default ON)
+else()
+ set(install_geographiclib_default OFF)
endif()
option(GTSAM_INSTALL_GEOGRAPHICLIB "Build and install the 3rd-party library GeographicLib" ${install_geographiclib_default})
diff --git a/gtsam/3rdparty/ceres/eigen.h b/gtsam/3rdparty/ceres/eigen.h
index 18a602cf4..a25fde97f 100644
--- a/gtsam/3rdparty/ceres/eigen.h
+++ b/gtsam/3rdparty/ceres/eigen.h
@@ -31,7 +31,7 @@
#ifndef CERES_INTERNAL_EIGEN_H_
#define CERES_INTERNAL_EIGEN_H_
-#include
+#include
namespace ceres {
diff --git a/gtsam/3rdparty/ceres/fixed_array.h b/gtsam/3rdparty/ceres/fixed_array.h
index db1591636..455fce383 100644
--- a/gtsam/3rdparty/ceres/fixed_array.h
+++ b/gtsam/3rdparty/ceres/fixed_array.h
@@ -33,7 +33,7 @@
#define CERES_PUBLIC_INTERNAL_FIXED_ARRAY_H_
#include
-#include
+#include
#include
#include
diff --git a/gtsam/3rdparty/ceres/jet.h b/gtsam/3rdparty/ceres/jet.h
index 12d4e8bc9..4a7683f50 100644
--- a/gtsam/3rdparty/ceres/jet.h
+++ b/gtsam/3rdparty/ceres/jet.h
@@ -162,7 +162,7 @@
#include
#include
-#include
+#include
#include
namespace ceres {
diff --git a/gtsam/3rdparty/gtsam_eigen_includes.h.in b/gtsam/3rdparty/gtsam_eigen_includes.h.in
deleted file mode 100644
index f53e37f07..000000000
--- a/gtsam/3rdparty/gtsam_eigen_includes.h.in
+++ /dev/null
@@ -1,33 +0,0 @@
-/* ----------------------------------------------------------------------------
-
- * GTSAM Copyright 2010, Georgia Tech Research Corporation,
- * Atlanta, Georgia 30332-0415
- * All Rights Reserved
- * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
-
- * See LICENSE for the license information
-
- * -------------------------------------------------------------------------- */
-
-/**
- * @file gtsam_eigen_includes.h
- * @brief File to include the Eigen headers that we use - generated by CMake
- * @author Richard Roberts
- */
-
-#pragma once
-
-#ifndef MKL_BLAS
-#define MKL_BLAS MKL_DOMAIN_BLAS
-#endif
-
-#cmakedefine EIGEN_USE_MKL_ALL // This is also defined in config.h
-#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/Dense>
-#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/QR>
-#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/LU>
-#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/SVD>
-#include <@GTSAM_EIGEN_INCLUDE_PREFIX@Eigen/Geometry>
-
-
-
-
diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt
index 0ebd6c07d..e26d85ff8 100644
--- a/gtsam/CMakeLists.txt
+++ b/gtsam/CMakeLists.txt
@@ -131,12 +131,6 @@ else()
set(GTSAM_EXPORTED_TARGETS "${GTSAM_EXPORTED_TARGETS}" PARENT_SCOPE)
endif()
-# Set dataset paths
-set_property(SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/slam/dataset.cpp"
- APPEND PROPERTY COMPILE_DEFINITIONS
- "SOURCE_TREE_DATASET_DIR=\"${PROJECT_SOURCE_DIR}/examples/Data\""
- "INSTALLED_DATASET_DIR=\"${GTSAM_TOOLBOX_INSTALL_PATH}/gtsam_examples/Data\"")
-
# Special cases
if(MSVC)
set_property(SOURCE
diff --git a/gtsam/base/ConcurrentMap.h b/gtsam/base/ConcurrentMap.h
index 336ea7e05..b8388057d 100644
--- a/gtsam/base/ConcurrentMap.h
+++ b/gtsam/base/ConcurrentMap.h
@@ -95,7 +95,7 @@ private:
/** Serialization function */
friend class boost::serialization::access;
template
- void save(Archive& ar, const unsigned int version) const
+ void save(Archive& ar, const unsigned int /*version*/) const
{
// Copy to an STL container and serialize that
FastVector > map(this->size());
@@ -103,7 +103,7 @@ private:
ar & BOOST_SERIALIZATION_NVP(map);
}
template
- void load(Archive& ar, const unsigned int version)
+ void load(Archive& ar, const unsigned int /*version*/)
{
// Load into STL container and then fill our map
FastVector > map;
diff --git a/gtsam/base/DerivedValue.h b/gtsam/base/DerivedValue.h
index 78155d308..f01156bd6 100644
--- a/gtsam/base/DerivedValue.h
+++ b/gtsam/base/DerivedValue.h
@@ -129,7 +129,7 @@ public:
protected:
/// Assignment operator, protected because only the Value or DERIVED
/// assignment operators should be used.
- DerivedValue& operator=(const DerivedValue& rhs) {
+ DerivedValue& operator=(const DerivedValue& /*rhs*/) {
// Nothing to do, do not call base class assignment operator
return *this;
}
diff --git a/gtsam/base/FastDefaultAllocator.h b/gtsam/base/FastDefaultAllocator.h
index 156a87f55..bf5cfc498 100644
--- a/gtsam/base/FastDefaultAllocator.h
+++ b/gtsam/base/FastDefaultAllocator.h
@@ -17,8 +17,7 @@
*/
#pragma once
-
-#include
+#include // Configuration from CMake
#if !defined GTSAM_ALLOCATOR_BOOSTPOOL && !defined GTSAM_ALLOCATOR_TBB && !defined GTSAM_ALLOCATOR_STL
# ifdef GTSAM_USE_TBB
@@ -85,4 +84,4 @@ namespace gtsam
};
}
-}
\ No newline at end of file
+}
diff --git a/gtsam/base/FastList.h b/gtsam/base/FastList.h
index 4b5d1caf1..380836d1d 100644
--- a/gtsam/base/FastList.h
+++ b/gtsam/base/FastList.h
@@ -74,7 +74,7 @@ private:
/** Serialization function */
friend class boost::serialization::access;
template
- void serialize(ARCHIVE & ar, const unsigned int version) {
+ void serialize(ARCHIVE & ar, const unsigned int /*version*/) {
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
}
diff --git a/gtsam/base/FastMap.h b/gtsam/base/FastMap.h
index 0a76c08b0..65d532191 100644
--- a/gtsam/base/FastMap.h
+++ b/gtsam/base/FastMap.h
@@ -19,9 +19,9 @@
#pragma once
#include
-#include