Commit Graph

210 Commits (53dbe25c50deb9dba0ef0384b543e90e7e2769c3)

Author SHA1 Message Date
Duy-Nguyen Ta 6044bffd8a handle Key by adding noninstantiating normal typedef rule. Fix copy constructor in template classes: using This. 2016-09-12 18:17:47 -04:00
Duy-Nguyen Ta 06ab94766c improve inherited method removal
Checking nontemplateMethods_ against parent's methods_ because:
1. Only nontemplateMethods_ are serialized to Cython's pxd, which doesn't like duplicate methods
2. Parent's methods_ list has every methods inherited from grand and grand-grand parents, etc., so we don't need to check higher levels.
Also refactor to reduce nested code
2016-09-12 12:38:04 -04:00
Duy-Nguyen Ta e35f0c3f50 remove inherited functions for Cython classes. Testing HessianFactor with debug info... 2016-09-12 11:05:28 -04:00
Duy-Nguyen Ta 1b04c6713b handle "This". Wrap all geometry 2016-09-11 18:14:19 -04:00
Duy-Nguyen Ta 63a5d1e15a wrap pair. Improve return. 2016-09-11 16:40:09 -04:00
Duy-Nguyen Ta b91a7d368d fix Vector/Matrix and Map[Vector/Matrix] ambiguity.
That also fixes the problem of function templated on Matrix/Vector
2016-09-11 08:24:45 -04:00
Duy-Nguyen Ta cf51c85391 fix testWrap: revert experimental changes 2016-09-10 22:18:53 -04:00
Duy-Nguyen Ta 948e6262db first version ever compiled.
... Not without some changes:
- add traits<size_t> in Key.h
- add these to JacobianFactor:
    explicit JacobianFactor(const Eigen::Map<Vector>& b_in);
    Vector py_getb() { return getb(); }
    Matrix py_getA() { return getA(); }
---------
... Remaining corner cases:
 ☐ Eigency: Map[] to Block
 ☐ Eigency: ambiguous call: A(const T&) A(const Vector& v) and Eigency A(Map[Vector]& v)
 ☐ Fix return properly
   ☐ handle pair
 ☐ Fix method template of Vector/Matrix: template argument is [Vector] while arugment is Map[Vector]
 ☐ Constructor: generate default constructor? (hack: if it's serializable?)
 ☐ Constructor: ambiguous construct from Vector/Matrix
 ☐ Key and size_t: traits<size_t> doesn't exist
 ☐ [Nice to have] Auto delete duplicate methods in derived class
2016-09-10 19:50:12 -04:00
Duy-Nguyen Ta 8944f02401 add headers, small refactor, test FastContainers 2016-09-09 22:28:15 -04:00
Duy-Nguyen Ta f137ae1d9c test wrapping JacobianFactor 2016-09-09 11:59:28 -04:00
Duy-Nguyen Ta b9880d4257 emit template class to Cython pxd with test
Cython allows template class.
2016-09-09 07:28:13 -04:00
Duy-Nguyen Ta 93696c0245 test pxd ReturnValue and ReturnType 2016-09-09 07:17:12 -04:00
Duy-Nguyen Ta ecde851d8c [inprogress] cython wrapper 2016-09-08 13:33:32 -04:00
dellaert 72fe66d468 Removed headers 2016-05-22 14:22:36 -07:00
yao dc00eb4f87 Reverted the files in which the #include <boost/foreach.hpp> was removed. 2016-05-21 17:51:04 -04:00
Yao Chen d1ea1015a9 Replaced BOOSE_FOREACH with for in wrap folder. Tested the changed code locally: successful. 2016-05-20 21:41:18 -04:00
dellaert 5b581a36c9 Made tests succeed, added templated Vector templates 2016-02-07 20:34:16 -08:00
dellaert 699943d632 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
Frank 72d2d77e21 Fixed warning 2015-05-12 14:23:51 -07:00
dellaert c29e6ca2e7 Fixed subtle (imperative!) bug where a forward declaration was partially parsed as a class, only then as a forward declaration. 2014-12-19 16:19:02 +01:00
dellaert 9f2e6562c2 test virtual, cleaned up other test 2014-12-19 15:40:21 +01:00
dellaert aaba18c61d Added expected files. 2014-12-19 15:39:34 +01:00
lvzhaoyang bcfcf8be8e fix gtsam wrapper for priorFactorVector 2014-12-12 11:34:34 -05:00
lvzhaoyang e49c9fa100 1. remove LieVector in IMUKittiExampleGPS.m 2. Add tests the priorFactor in matlab 3. template substition tests in testsClass.cpp 2014-12-04 13:28:20 -05:00
dellaert 41d2783beb GlobalFunctionGrammar done and used 2014-12-02 13:49:25 +01:00
dellaert a8de6c4dc3 Moved to header 2014-12-02 13:41:46 +01:00
dellaert 60d7b80055 Successful global function parser 2014-12-02 13:30:52 +01:00
dellaert 3606a1ab68 killed old stuff 2014-12-02 13:30:21 +01:00
dellaert b8d7516e93 Successful use of ClassGrammar in Module.cpp 2014-12-02 13:12:42 +01:00
dellaert 0e48e2ff0b Moved to header 2014-12-02 12:41:35 +01:00
dellaert f035b12f46 Successful parse! 2014-12-02 12:34:54 +01:00
dellaert 12791737e0 First non-passing grammar test 2014-12-02 11:41:09 +01:00
dellaert 78b1cd271a Fixed testClass unit tests 2014-12-01 20:34:05 +01:00
dellaert aceeb2037b Template tightening 2014-12-01 20:29:35 +01:00
dellaert e963512164 Tightened up individual Grammars 2014-12-01 20:03:26 +01:00
dellaert 08c9243acb Fixed tests 2014-12-01 14:47:18 +01:00
dellaert 8d128ef809 Make sure an Eigen type is tested as template parameter 2014-12-01 14:42:19 +01:00
dellaert 32852eeec7 Template class and parser 2014-12-01 12:43:12 +01:00
dellaert 9a77072654 Successfully used TypeListGrammar 2014-12-01 12:14:08 +01:00
dellaert 19ea0436db Moved to header 2014-12-01 11:35:48 +01:00
dellaert d25636685b TypeListGrammar 2014-12-01 11:32:33 +01:00
dellaert 7dbe9389cb Fixed ArgumentListGrammar 2014-12-01 10:38:24 +01:00
dellaert 0e5332ed3e Removed incorrect void, which fixed old problems and even improves on generated code. 2014-12-01 10:30:47 +01:00
dellaert 7362b4e393 Returned correct test 2014-12-01 10:20:54 +01:00
dellaert ba51b02cf0 Moving to optionals fixed template dreturn argument!
Merge branch 'qualified' into grammar_wrongtest

Conflicts:
	wrap/Class.cpp
	wrap/Function.h
	wrap/Qualified.h
	wrap/ReturnType.h
	wrap/tests/testWrap.cpp
2014-12-01 09:48:56 +01:00
dellaert f6faabf542 Temporarily checked in wrong tests to be able to fix everything else 2014-11-30 23:47:55 +01:00
dellaert 49870be846 Another test 2014-11-30 23:46:25 +01:00
dellaert e9915fe25c Moved to headers 2014-11-30 23:26:07 +01:00
dellaert c661329ac1 ReturnType grammar 2014-11-30 23:24:24 +01:00
dellaert dc42773f1e Some more tests 2014-11-30 23:02:23 +01:00