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 check if default constructor exists. Autogenerate copy constructor by default 2016-09-10 19:44:53 -04:00
Deconstructor.cpp Removed headers 2016-05-22 14:22:36 -07:00
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 changed tabs to spaces for consistent indentation in all of GTSAM 2012-10-02 14:40:07 +00:00
ForwardDeclaration.h Added Vector and Matrix to forward declarations 2014-11-29 20:01:48 +01:00
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 Removed headers 2016-05-22 14:22:36 -07:00
Function.h Moving to optionals fixed template dreturn argument! 2014-12-01 09:48:56 +01:00
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 Changes to wrap from FixedValues branch/PR. Since unrelated to that PR and useful for OptionalJacobian wrapping in py_wrap, made this a separate PR. 2016-02-07 20:33:48 -08:00
TemplateInstantiationTypedef.cpp ctypedefs for all instantiated classes 2016-09-09 21:50:55 -04:00
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 Semi-private name/namespaces 2014-11-30 20:20:13 +01:00
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 fix ambiguous type uint64_t and int64_t in matlab toolbox, happens on gcc 4.8 and boost 1.50 2016-06-14 15:15:14 -04:00
spirit.h [inprogress] cython wrapper 2016-09-08 13:33:32 -04:00
utilities.cpp
utilities.h Removed headers 2016-05-22 14:22:36 -07:00
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