gtsam/wrap
Alex Cunningham 9d7d563688 Fixed unit test for wrap 2011-11-04 15:10:38 +00:00
..
tests Fixed unit test for wrap 2011-11-04 15:10:38 +00:00
Argument.cpp Added comments 2011-10-21 02:17:20 +00:00
Argument.h Documentation 2011-10-14 04:43:06 +00:00
Class.cpp More fine-tuning of documentation 2011-11-04 04:27:13 +00:00
Class.h Documentation 2011-10-14 04:43:06 +00:00
Constructor.cpp Fixed wrap unit test by moving emitted comments or removing them 2011-11-03 23:13:09 +00:00
Constructor.h Documentation 2011-10-14 04:43:06 +00:00
Makefile.am Added UNSAFE_WRAP flag that omits type-checking, to allow for GaussianFactor -> JacobianFactor inheritance. TODO: how can we have type safety AND inheritance? 2011-10-21 05:34:53 +00:00
Method.cpp Fixed wrap unit test by moving emitted comments or removing them 2011-11-03 23:13:09 +00:00
Method.h Fixed instance variable naming convention 2011-10-21 02:35:11 +00:00
Module.cpp Don't need to 'cd' to toolbox directory to run 'make_gtsam' in matlab 2011-11-04 11:58:22 +00:00
Module.h Documentation 2011-10-14 04:43:06 +00:00
README wrapping PlanarSLAMExample_easy 2011-10-21 16:56:50 +00:00
geometry.h Added back the matlab interface to gtsam 2011-10-13 18:41:56 +00:00
matlab.h Disabled use of non-gtsam-namespace Vector and Matrix in wrap/matlab.h, removed two typeof uses (one more to go) 2011-10-21 20:42:25 +00:00
utilities.cpp Fixed some Doxygen problems with global replace 2011-10-14 03:23:14 +00:00
utilities.h Fixed some Doxygen problems with global replace 2011-10-14 03:23:14 +00:00
wrap.cpp Documentation 2011-10-14 04:43:06 +00:00

README

Frank Dellaert
October 2011

The wrap library wraps the GTSAM library into a MATLAB toolbox.

It was designed to be more general than just wrapping GTSAM, but a small amount of 
GTSAM specific code exists in matlab.h, the include file that is included by the
mex files. In addition, the current makefile (Oct 11) is GTSAM specific.

The classes and methods to be warpped are specified in gtsam.h
This tool will not wrap arbitrary methods. Please read comments in matlab.h
Some good things to know:

OBJECT CREATION
- Classes are created by special constructors, e.g., new_GaussianFactorGraph_.cpp.
	These constructors are called from the MATLAB class @GaussianFactorGraph.
	new_GaussianFactorGraph_ calls wrap_constructed in matlab.h, see documentation there
	
METHOD (AND CONSTRUCTOR) ARGUMENTS
- simple argument types of methods, such as "double", will be converted in the
  mex warppers by calling unwrap<double>, defined in matlab.h
- Vector and Matric arguments are normally passed by reference in GTSAM, but
  in gtsam.h you need to pretedn they are passed by value, to trigger the 
  generation of the correct conversion routines unwrap<Vector> and unwrap<Matrix>
- passing classes as arguments works, provided they are passed by reference.
	This triggers a call to unwrap_shared_ptr
- GTSAM specific: keys will be cast automatically from strings via GTSAM_magic. This
  allows us to not have to declare all key types in MATLAB. Just replace key arguments with
  the (non-const, non-reference) string type