gtsam/wrap
Duy-Nguyen Ta 2d527f0fc2 unfinished attempt to add typedef for matlab wrapper 2016-11-24 19:24:25 -05:00
..
tests Remove copy constructor assumption. Manually add copy constructors. Remove dependency on default constructor (some like Optimizers and Marginals don't have the default constructor). Remove cyCreateFromValue. Ignore variable name when checking overload similarity. 2016-09-13 17:11:23 -04:00
Argument.cpp [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
Argument.h [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
CMakeLists.txt
Class.cpp [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
Class.h support dynamic cast from all parents/virtual base 2016-11-18 11:00:15 -05:00
Constructor.cpp standardize names for classes with inner namespace 2016-11-24 19:22:44 -05:00
Constructor.h
Deconstructor.cpp
Deconstructor.h changed tabs to spaces for consistent indentation in all of GTSAM 2012-10-02 14:40:07 +00:00
FileWriter.cpp
FileWriter.h
ForwardDeclaration.h
FullyOverloadedFunction.cpp support global functions (no overload) 2016-11-22 17:09:35 -05:00
FullyOverloadedFunction.h support global functions (no overload) 2016-11-22 17:09:35 -05:00
Function.cpp
Function.h
GlobalFunction.cpp standardize names for classes with inner namespace 2016-11-24 19:22:44 -05:00
GlobalFunction.h support global function overloads 2016-11-22 17:32:48 -05:00
Method.cpp standardize names for classes with inner namespace 2016-11-24 19:22:44 -05:00
Method.h big refactoring, support method/static method overloading 2016-11-20 09:24:43 -05:00
MethodBase.cpp support global functions (no overload) 2016-11-22 17:09:35 -05:00
MethodBase.h support global functions (no overload) 2016-11-22 17:09:35 -05:00
Module.cpp unfinished attempt to add typedef for matlab wrapper 2016-11-24 19:24:25 -05:00
Module.h add typedefs to the list of validTypes 2016-11-13 23:59:56 -05:00
OverloadedFunction.h support global function overloads 2016-11-22 17:32:48 -05:00
Qualified.cpp collect typedefs of basic (non-class) types to treat them as basic types 2016-11-14 00:08:42 -05:00
Qualified.h standardize names for classes with inner namespace 2016-11-24 19:22:44 -05:00
README
ReturnType.cpp [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
ReturnType.h support global functions (no overload) 2016-11-22 17:09:35 -05:00
ReturnValue.cpp big refactoring, support method/static method overloading 2016-11-20 09:24:43 -05:00
ReturnValue.h support global functions (no overload) 2016-11-22 17:09:35 -05:00
StaticMethod.cpp [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
StaticMethod.h big refactoring, support method/static method overloading 2016-11-20 09:24:43 -05:00
Template.h
TemplateInstantiationTypedef.cpp
TemplateInstantiationTypedef.h
TemplateMethod.cpp [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
TemplateMethod.h handle "This". Wrap all geometry 2016-09-11 18:14:19 -04:00
TemplateSubstitution.h
TypeAttributesTable.cpp unfinished attempt to add typedef for matlab wrapper 2016-11-24 19:24:25 -05:00
TypeAttributesTable.h unfinished attempt to add typedef for matlab wrapper 2016-11-24 19:24:25 -05:00
TypedefPair.h [refactor] more understandable function names 2016-11-22 12:13:33 -05:00
matlab.h
spirit.h
utilities.cpp
utilities.h
wrap.cpp call new function name 2016-09-10 19:45:50 -04: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. The GTSAM-specific functionality consists primarily of handling of
Eigen Matrix and Vector classes.  

For notes on creating a wrap interface, see gtsam.h for what features can be 
wrapped into a toolbox, as well as the current state of the toolbox for gtsam.
For more technical details on the interface, 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 wrappers by calling unwrap<double>, defined in matlab.h
- Vector and Matrix arguments are normally passed by reference in GTSAM, but
  in gtsam.h you need to pretend 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