gtsam/wrap
Alex Cunningham 7e221aa7a1 Added comment support in wrap 2011-12-01 22:06:03 +00:00
..
tests Added comment support in wrap 2011-12-01 22:06:03 +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 flag to install matlab tests into toolbox path 2011-12-01 01:59:38 +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 Added comment support in wrap 2011-12-01 22:06:03 +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 comment support in wrap 2011-12-01 22:06:03 +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 Added more functions to wrap, started going though wrap tests 2011-12-01 18:57:32 +00:00
utilities.h Added more functions to wrap, started going though wrap tests 2011-12-01 18:57:32 +00:00
wrap.cpp Added more functions to wrap, started going though wrap tests 2011-12-01 18:57:32 +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