Go to file
Chris Beall 5d538cbdc2 made leaner 2012-05-14 22:19:42 +00:00
.settings Merged simplelinear branch into trunk 2010-10-08 22:04:47 +00:00
CppUnitLite Format with g instead of f with printing doubles in CppUnitLite 2012-04-09 03:02:30 +00:00
doc Mathematica files -one per class- that explains specific symbolic optimizations, e.g. inlined derivatives of compound functions like project. 2012-01-08 18:08:52 +00:00
examples UGM (undirected graphical model) example, small, see http://www.di.ens.fr/~mschmidt/Software/UGM/small.html 2012-05-03 05:09:22 +00:00
gtsam fixed size improvements for significant speedup in LBA 2012-05-09 17:19:01 +00:00
gtsam_unstable Fixed include path for gtsam_unstable matlab toolbox 2012-05-04 18:50:34 +00:00
tests tested and documented ability to swap factors with ISAM2 2012-05-01 18:54:44 +00:00
wrap Added better support for "using namespace x" to wrap - only applies to classes *after* it is called 2012-05-04 19:14:58 +00:00
.cproject Added 'unsigned char' as argument option to wrap, added make targets 2012-05-04 18:50:36 +00:00
.project Adding faster compilation options for distribution in CMake 2012-02-14 18:03:29 +00:00
CMakeLists.txt fixed small bugs in the build script 2012-05-03 17:03:28 +00:00
COPYING Fixing directory structure 2009-08-21 22:23:24 +00:00
Doxyfile Added unstable to doxygen 2012-05-03 17:03:29 +00:00
DoxygenLayout.xml Nick's README file updates, doxygen page layout modification 2011-10-25 03:41:40 +00:00
LGPL added LGPL license 2010-10-14 14:21:04 +00:00
LICENSE Updated Readme and Licence with details of the 3rdparty inclusions and relevant licensing details 2011-06-17 16:08:58 +00:00
README made leaner 2012-05-14 22:19:42 +00:00
THANKS adding people 2010-10-21 14:00:49 +00:00
USAGE updating build docs and comments 2012-03-30 18:14:31 +00:00
gtsam.h Added better support for "using namespace x" to wrap - only applies to classes *after* it is called 2012-05-04 19:14:58 +00:00
makedoc.sh doxygen documentation no longer build with autotools, added makedoc.sh to build it in top-level directory 2012-01-10 22:25:12 +00:00

README

README - Georgia Tech Smoothing and Mapping library
---------------------------------------------------

Quickstart

In the root library folder execute:

$] mkdir build
$] cd build
$] cmake ..
$] make check (optional, runs unit tests)
$] make install

What is GTSAM ?

  GTSAM is a library of C++ classes that implement smoothing and
  mapping (SAM) in robotics and vision, using factor graphs and Bayes
  networks as the underlying computing paradigm rather than sparse
  matrices. 

GTSAM is not (yet) open source: See COPYING & LICENSE
Please see USAGE for an example on how to use GTSAM.

The core GTSAM code within the folder gtsam, with source, headers, and 
unit tests. After building, this will generate a single library "libgtsam"

The libgtsam code is organized according to the following directory structure:
 
  3rdparty      local copies of third party libraries - Eigen3 and CCOLAMD
  base          provides some base Math and data structures, as well as test-related utilities
  geometry      points, poses, tensors, etc
  inference     core graphical model inference such as factor graphs, junction trees, Bayes nets, Bayes trees 
  linear        inference specialized to Gaussian linear case, GaussianFactorGraph etc...
  nonlinear     non-linear factor graphs and non-linear optimization
  slam          SLAM and visual SLAM application code

Additionally, in the SVN development version of GTSAM, there is an area for 
unstable code directly under development in the folder gtsam_unstable, which contains 
a directory structuring mirroring the libgtsam structure as necessary.  This section produces
a single library "libgtsam_unstable".  Building of gtsam_unstable is disabled by default, see
CMake configuration options for information on enabling building.

This library contains unchanged copies of two third party libraries, with documentation 
of licensing in LICENSE and as follows: 
  - CCOLAMD 2.73: Tim Davis' constrained column approximate minimum degree ordering library
    - http://www.cise.ufl.edu/research/sparse
    - Licenced under LGPL v2.1, provided in gtsam/3rdparty/CCOLAMD/Doc/lesser.txt
  - Eigen 3.0.5:  General C++ matrix and linear algebra library
    - Licenced under LGPL v3, provided in gtsam/3rdparty/Eigen/COPYING.LGPL

After this is built, you can also run the more involved tests, which test the entire library:  
  
  tests         More involved unit tests that depend on slam
  examples      Demo applications as a tutorial for using gtsam
  cmake         CMake scripts used within the library, as well as for finding GTSAM by dependent projects

Finally, there are some local libraries built needed in the rest of the code:

  CppUnitLite   unit test library customized for use with gtsam
  wrap          code generation utility for the Matlab interface to gtsam

Important Installation Notes Specific to GTSAM
----------------------------------------------

1)
GTSAM requires the following libraries to be installed on your system:
 - BOOST version 1.40 or greater (install through Linux repositories or MacPorts)

GTSAM uses CMake (http://www.cmake.org/) for build automation
 - Installed cmake version must be 2.6 or higher

Tested compilers
 - gcc
 - clang
 - OSX gcc

2)
GTSAM makes extensive use of debug assertions, even for checking input of
the functions you will call.  These assertions are disabled when NDEBUG is
defined.  Thus, we strongly recommend compiling GTSAM and your own code without
this symbol during debugging.

After debugging, GTSAM will run much faster when compiled with NDEBUG defined,
so that debug checks are disabled.

Another useful debugging symbol is _GLIBCXX_DEBUG, which enables debug checks
and safe containers in the standard C++ library and makes problems much easier
to find.

NOTE:  The native Snow Leopard g++ compiler/library contains a bug that makes
it impossible to use _GLIBCXX_DEBUG.  MacPorts g++ compilers do work with it though.

NOTE:  If _GLIBCXX_DEBUG is used to compile gtsam, anything that links against
gtsam will need to be compiled with _GLIBCXX_DEBUG as well, due to the use of
header-only Eigen.  

3)
GTSAM has been written to support the creation of API documentation using
doxygen.  To create html documentation for GTSAM, run the the script 
makedoc.sh.  

4)
After installing prerequisites for building GTSAM, you can configure and build
GTSAM using CMake with the default options with the quickstart options. For 
details on the full functionality of CMake, see the CMake documentation.  

- CMake Quickstart
Installs to the default system install path and builds all components.  From a terminal, 
starting in the root library folder, execute commands as follows for an out-of-source
build:

$] mkdir build
$] cd build
$] cmake ..
$] make check (optional, runs unit tests)
$] make install

This will build the library and unit tests, run all of the unit tests, 
and then install the library itself.

- Additional CMake Options and Details

GTSAM has a number of options that can be configured, which is best done with
one of the following:

  ccmake      the curses GUI for cmake
  cmake-gui   a real GUI for cmake

Important CMake configuration options: 

CMAKE_BUILD_TYPE: We support several build configurations for GTSAM (case insensitive)
  Debug (default)  All error checking options on, no optimization. Use for development.
  Release          Optimizations turned on, no debug symbols.           
  Timing           Adds ENABLE_TIMING flag to provide statistics on operation 
  Profiling        Standard configuration for use during profiling
  RelWithDebInfo   Same as Release, but with the -g flag for debug symbols

CMAKE_INSTALL_PREFIX: The install folder. The default is typically /usr/local/
To configure to install to your home directory, you could execute:
$] cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME ..

GTSAM_TOOLBOX_INSTALL_PATH: The Matlab toolbox will be installed in a subdirectory
of this folder, called 'gtsam'.
$] cmake -DGTSAM_TOOLBOX_INSTALL_PATH:PATH=$HOME/toolbox ..

GTSAM_BUILD_CONVENIENCE_LIBRARIES: This is a build option to allow for tests in 
subfolders to be linked against convenience libraries rather than the full libgtsam. 
Set with the command line as follows:
$] cmake -DGTSAM_BUILD_CONVENIENCE_LIBRARIES:OPTION=ON ..
  ON (Default)   This builds convenience libraries and links tests against them. This 
  				 option is suggested for gtsam developers, as it is possible to build 
  				 and run tests without first building the rest of the library, and 
  				 speeds up compilation for a single test. The downside of this option 
  				 is that it will build the entire library again to build the full 
  				 libgtsam library, so build/install will be slower.
  OFF            This will build all of libgtsam before any of the tests, and then 
  				 link all of the tests at once. This option is best for users of GTSAM, 
  				 as it avoids rebuilding the entirety of gtsam an extra time. 

GTSAM_BUILD_UNSTABLE: Enable build and install for libgtsam_unstable library. 
Set with the command line as follows:
$] cmake -DGTSAM_BUILD_UNSTABLE:OPTION=ON ..
  ON             When enabled, libgtsam_unstable will be built and installed with the 
                 same options as libgtsam.  In addition, if tests are enabled, the 
                 unit tests will be built as well.  The Matlab toolbox will also
                 be generated if the matlab toolbox is enabled, installing into a 
                 folder called "gtsam_unstable".
  OFF (Default)  If disabled, no gtsam_unstable code will be included in build or install. 

Check

"make check" will build and run all of the tests. Note that the tests will only be 
built when using the "check" targets, to prevent "make install" from building the tests
unnecessarily. You can also run "make timing" to build all of the timing scripts. 
To run check on a particular module only, run "make check.[subfolder]", so to run
just the geometry tests, run "make check.geometry". Individual tests can be run by
appending ".run" to the name of the test, for example, to run testMatrix, run 
"make testMatrix.run".