geometry_wrapper.cpp
Go to the documentation of this file.
1 #include <gtwrap/matlab.h>
2 #include <map>
3 
4 #include <boost/archive/text_iarchive.hpp>
5 #include <boost/archive/text_oarchive.hpp>
6 #include <boost/serialization/export.hpp>
7 
8 #include <folder/path/to/Test.h>
10 #include <gtsam/geometry/Point3.h>
11 
12 typedef Fun<double> FunDouble;
13 typedef PrimitiveRef<double> PrimitiveRefDouble;
14 typedef MyVector<3> MyVector3;
15 typedef MyVector<12> MyVector12;
16 typedef MultipleTemplates<int, double> MultipleTemplatesIntDouble;
17 typedef MultipleTemplates<int, float> MultipleTemplatesIntFloat;
19 
22 
23 typedef std::set<boost::shared_ptr<FunRange>*> Collector_FunRange;
25 typedef std::set<boost::shared_ptr<FunDouble>*> Collector_FunDouble;
27 typedef std::set<boost::shared_ptr<Test>*> Collector_Test;
29 typedef std::set<boost::shared_ptr<PrimitiveRefDouble>*> Collector_PrimitiveRefDouble;
31 typedef std::set<boost::shared_ptr<MyVector3>*> Collector_MyVector3;
33 typedef std::set<boost::shared_ptr<MyVector12>*> Collector_MyVector12;
35 typedef std::set<boost::shared_ptr<MultipleTemplatesIntDouble>*> Collector_MultipleTemplatesIntDouble;
37 typedef std::set<boost::shared_ptr<MultipleTemplatesIntFloat>*> Collector_MultipleTemplatesIntFloat;
39 typedef std::set<boost::shared_ptr<MyFactorPosePoint2>*> Collector_MyFactorPosePoint2;
41 typedef std::set<boost::shared_ptr<gtsam::Point2>*> Collector_gtsamPoint2;
43 typedef std::set<boost::shared_ptr<gtsam::Point3>*> Collector_gtsamPoint3;
45 
47 {
48  mstream mout;
49  std::streambuf *outbuf = std::cout.rdbuf(&mout);
50 
51  bool anyDeleted = false;
52  { for(Collector_FunRange::iterator iter = collector_FunRange.begin();
53  iter != collector_FunRange.end(); ) {
54  delete *iter;
55  collector_FunRange.erase(iter++);
56  anyDeleted = true;
57  } }
58  { for(Collector_FunDouble::iterator iter = collector_FunDouble.begin();
59  iter != collector_FunDouble.end(); ) {
60  delete *iter;
61  collector_FunDouble.erase(iter++);
62  anyDeleted = true;
63  } }
64  { for(Collector_Test::iterator iter = collector_Test.begin();
65  iter != collector_Test.end(); ) {
66  delete *iter;
67  collector_Test.erase(iter++);
68  anyDeleted = true;
69  } }
70  { for(Collector_PrimitiveRefDouble::iterator iter = collector_PrimitiveRefDouble.begin();
72  delete *iter;
74  anyDeleted = true;
75  } }
76  { for(Collector_MyVector3::iterator iter = collector_MyVector3.begin();
77  iter != collector_MyVector3.end(); ) {
78  delete *iter;
79  collector_MyVector3.erase(iter++);
80  anyDeleted = true;
81  } }
82  { for(Collector_MyVector12::iterator iter = collector_MyVector12.begin();
83  iter != collector_MyVector12.end(); ) {
84  delete *iter;
85  collector_MyVector12.erase(iter++);
86  anyDeleted = true;
87  } }
88  { for(Collector_MultipleTemplatesIntDouble::iterator iter = collector_MultipleTemplatesIntDouble.begin();
90  delete *iter;
92  anyDeleted = true;
93  } }
94  { for(Collector_MultipleTemplatesIntFloat::iterator iter = collector_MultipleTemplatesIntFloat.begin();
96  delete *iter;
98  anyDeleted = true;
99  } }
100  { for(Collector_MyFactorPosePoint2::iterator iter = collector_MyFactorPosePoint2.begin();
101  iter != collector_MyFactorPosePoint2.end(); ) {
102  delete *iter;
104  anyDeleted = true;
105  } }
106  { for(Collector_gtsamPoint2::iterator iter = collector_gtsamPoint2.begin();
107  iter != collector_gtsamPoint2.end(); ) {
108  delete *iter;
109  collector_gtsamPoint2.erase(iter++);
110  anyDeleted = true;
111  } }
112  { for(Collector_gtsamPoint3::iterator iter = collector_gtsamPoint3.begin();
113  iter != collector_gtsamPoint3.end(); ) {
114  delete *iter;
115  collector_gtsamPoint3.erase(iter++);
116  anyDeleted = true;
117  } }
118  if(anyDeleted)
119  cout <<
120  "WARNING: Wrap modules with variables in the workspace have been reloaded due to\n"
121  "calling destructors, call 'clear all' again if you plan to now recompile a wrap\n"
122  "module, so that your recompiled module is used instead of the old one." << endl;
123  std::cout.rdbuf(outbuf);
124 }
125 
127  const mxArray *alreadyCreated = mexGetVariablePtr("global", "gtsam_geometry_rttiRegistry_created");
128  if(!alreadyCreated) {
129  std::map<std::string, std::string> types;
130 
131  mxArray *registry = mexGetVariable("global", "gtsamwrap_rttiRegistry");
132  if(!registry)
133  registry = mxCreateStructMatrix(1, 1, 0, NULL);
134  typedef std::pair<std::string, std::string> StringPair;
135  for(const StringPair& rtti_matlab: types) {
136  int fieldId = mxAddField(registry, rtti_matlab.first.c_str());
137  if(fieldId < 0)
138  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
139  mxArray *matlabName = mxCreateString(rtti_matlab.second.c_str());
140  mxSetFieldByNumber(registry, 0, fieldId, matlabName);
141  }
142  if(mexPutVariable("global", "gtsamwrap_rttiRegistry", registry) != 0)
143  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
144  mxDestroyArray(registry);
145 
146  mxArray *newAlreadyCreated = mxCreateNumericMatrix(0, 0, mxINT8_CLASS, mxREAL);
147  if(mexPutVariable("global", "gtsam_geometry_rttiRegistry_created", newAlreadyCreated) != 0)
148  mexErrMsgTxt("gtsam wrap: Error indexing RTTI types, inheritance will not work correctly");
149  mxDestroyArray(newAlreadyCreated);
150  }
151 }
152 
153 void gtsamPoint2_collectorInsertAndMakeBase_0(int nargout, mxArray *out[], int nargin, const mxArray *in[])
154 {
155  mexAtExit(&_deleteAllObjects);
156  typedef boost::shared_ptr<gtsam::Point2> Shared;
157 
158  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
159  collector_gtsamPoint2.insert(self);
160 }
161 
162 void gtsamPoint2_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[])
163 {
164  mexAtExit(&_deleteAllObjects);
165  typedef boost::shared_ptr<gtsam::Point2> Shared;
166 
167  Shared *self = new Shared(new gtsam::Point2());
168  collector_gtsamPoint2.insert(self);
169  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
170  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
171 }
172 
173 void gtsamPoint2_constructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[])
174 {
175  mexAtExit(&_deleteAllObjects);
176  typedef boost::shared_ptr<gtsam::Point2> Shared;
177 
178  double x = unwrap< double >(in[0]);
179  double y = unwrap< double >(in[1]);
180  Shared *self = new Shared(new gtsam::Point2(x,y));
181  collector_gtsamPoint2.insert(self);
182  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
183  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
184 }
185 
186 void gtsamPoint2_deconstructor_3(int nargout, mxArray *out[], int nargin, const mxArray *in[])
187 {
188  typedef boost::shared_ptr<gtsam::Point2> Shared;
189  checkArguments("delete_gtsamPoint2",nargout,nargin,1);
190  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
191  Collector_gtsamPoint2::iterator item;
192  item = collector_gtsamPoint2.find(self);
193  if(item != collector_gtsamPoint2.end()) {
194  delete self;
195  collector_gtsamPoint2.erase(item);
196  }
197 }
198 
199 void gtsamPoint2_argChar_4(int nargout, mxArray *out[], int nargin, const mxArray *in[])
200 {
201  checkArguments("argChar",nargout,nargin-1,1);
202  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
203  char a = unwrap< char >(in[1]);
204  obj->argChar(a);
205 }
206 
207 void gtsamPoint2_argChar_5(int nargout, mxArray *out[], int nargin, const mxArray *in[])
208 {
209  checkArguments("argChar",nargout,nargin-1,1);
210  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
211  boost::shared_ptr<char> a = unwrap_shared_ptr< char >(in[1], "ptr_char");
212  obj->argChar(a);
213 }
214 
215 void gtsamPoint2_argChar_6(int nargout, mxArray *out[], int nargin, const mxArray *in[])
216 {
217  checkArguments("argChar",nargout,nargin-1,1);
218  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
219  char a = unwrap< char >(in[1]);
220  obj->argChar(a);
221 }
222 
223 void gtsamPoint2_argChar_7(int nargout, mxArray *out[], int nargin, const mxArray *in[])
224 {
225  checkArguments("argChar",nargout,nargin-1,1);
226  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
227  boost::shared_ptr<char> a = unwrap_shared_ptr< char >(in[1], "ptr_char");
228  obj->argChar(a);
229 }
230 
231 void gtsamPoint2_argChar_8(int nargout, mxArray *out[], int nargin, const mxArray *in[])
232 {
233  checkArguments("argChar",nargout,nargin-1,1);
234  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
235  boost::shared_ptr<char> a = unwrap_shared_ptr< char >(in[1], "ptr_char");
236  obj->argChar(a);
237 }
238 
239 void gtsamPoint2_argChar_9(int nargout, mxArray *out[], int nargin, const mxArray *in[])
240 {
241  checkArguments("argChar",nargout,nargin-1,1);
242  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
243  char a = unwrap< char >(in[1]);
244  obj->argChar(a);
245 }
246 
247 void gtsamPoint2_argChar_10(int nargout, mxArray *out[], int nargin, const mxArray *in[])
248 {
249  checkArguments("argChar",nargout,nargin-1,1);
250  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
251  boost::shared_ptr<char> a = unwrap_shared_ptr< char >(in[1], "ptr_char");
252  obj->argChar(a);
253 }
254 
255 void gtsamPoint2_argUChar_11(int nargout, mxArray *out[], int nargin, const mxArray *in[])
256 {
257  checkArguments("argUChar",nargout,nargin-1,1);
258  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
259  unsigned char a = unwrap< unsigned char >(in[1]);
260  obj->argUChar(a);
261 }
262 
263 void gtsamPoint2_dim_12(int nargout, mxArray *out[], int nargin, const mxArray *in[])
264 {
265  checkArguments("dim",nargout,nargin-1,0);
266  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
267  out[0] = wrap< int >(obj->dim());
268 }
269 
270 void gtsamPoint2_eigenArguments_13(int nargout, mxArray *out[], int nargin, const mxArray *in[])
271 {
272  checkArguments("eigenArguments",nargout,nargin-1,2);
273  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
274  Vector v = unwrap< Vector >(in[1]);
275  Matrix m = unwrap< Matrix >(in[2]);
276  obj->eigenArguments(v,m);
277 }
278 
279 void gtsamPoint2_returnChar_14(int nargout, mxArray *out[], int nargin, const mxArray *in[])
280 {
281  checkArguments("returnChar",nargout,nargin-1,0);
282  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
283  out[0] = wrap< char >(obj->returnChar());
284 }
285 
286 void gtsamPoint2_vectorConfusion_15(int nargout, mxArray *out[], int nargin, const mxArray *in[])
287 {
288  checkArguments("vectorConfusion",nargout,nargin-1,0);
289  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
290  out[0] = wrap_shared_ptr(boost::make_shared<VectorNotEigen>(obj->vectorConfusion()),"VectorNotEigen", false);
291 }
292 
293 void gtsamPoint2_x_16(int nargout, mxArray *out[], int nargin, const mxArray *in[])
294 {
295  checkArguments("x",nargout,nargin-1,0);
296  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
297  out[0] = wrap< double >(obj->x());
298 }
299 
300 void gtsamPoint2_y_17(int nargout, mxArray *out[], int nargin, const mxArray *in[])
301 {
302  checkArguments("y",nargout,nargin-1,0);
303  auto obj = unwrap_shared_ptr<gtsam::Point2>(in[0], "ptr_gtsamPoint2");
304  out[0] = wrap< double >(obj->y());
305 }
306 
307 void gtsamPoint3_collectorInsertAndMakeBase_18(int nargout, mxArray *out[], int nargin, const mxArray *in[])
308 {
309  mexAtExit(&_deleteAllObjects);
310  typedef boost::shared_ptr<gtsam::Point3> Shared;
311 
312  Shared *self = *reinterpret_cast<Shared**> (mxGetData(in[0]));
313  collector_gtsamPoint3.insert(self);
314 }
315 
316 void gtsamPoint3_constructor_19(int nargout, mxArray *out[], int nargin, const mxArray *in[])
317 {
318  mexAtExit(&_deleteAllObjects);
319  typedef boost::shared_ptr<gtsam::Point3> Shared;
320 
321  double x = unwrap< double >(in[0]);
322  double y = unwrap< double >(in[1]);
323  double z = unwrap< double >(in[2]);
324  Shared *self = new Shared(new gtsam::Point3(x,y,z));
325  collector_gtsamPoint3.insert(self);
326  out[0] = mxCreateNumericMatrix(1, 1, mxUINT32OR64_CLASS, mxREAL);
327  *reinterpret_cast<Shared**> (mxGetData(out[0])) = self;
328 }
329 
330 void gtsamPoint3_deconstructor_20(int nargout, mxArray *out[], int nargin, const mxArray *in[])
331 {
332  typedef boost::shared_ptr<gtsam::Point3> Shared;
333  checkArguments("delete_gtsamPoint3",nargout,nargin,1);
334  Shared *self = *reinterpret_cast<Shared**>(mxGetData(in[0]));
335  Collector_gtsamPoint3::iterator item;
336  item = collector_gtsamPoint3.find(self);
337  if(item != collector_gtsamPoint3.end()) {
338  delete self;
339  collector_gtsamPoint3.erase(item);
340  }
341 }
342 
343 void gtsamPoint3_norm_21(int nargout, mxArray *out[], int nargin, const mxArray *in[])
344 {
345  checkArguments("norm",nargout,nargin-1,0);
346  auto obj = unwrap_shared_ptr<gtsam::Point3>(in[0], "ptr_gtsamPoint3");
347  out[0] = wrap< double >(obj->norm());
348 }
349 
350 void gtsamPoint3_string_serialize_22(int nargout, mxArray *out[], int nargin, const mxArray *in[])
351 {
352  typedef boost::shared_ptr<gtsam::Point3> Shared;
353  checkArguments("string_serialize",nargout,nargin-1,0);
354  Shared obj = unwrap_shared_ptr<gtsam::Point3>(in[0], "ptr_gtsamPoint3");
355  ostringstream out_archive_stream;
356  boost::archive::text_oarchive out_archive(out_archive_stream);
357  out_archive << *obj;
358  out[0] = wrap< string >(out_archive_stream.str());
359 }
360 void gtsamPoint3_StaticFunctionRet_23(int nargout, mxArray *out[], int nargin, const mxArray *in[])
361 {
362  checkArguments("gtsamPoint3.StaticFunctionRet",nargout,nargin,1);
363  double z = unwrap< double >(in[0]);
364  out[0] = wrap< Point3 >(gtsam::Point3::StaticFunctionRet(z));
365 }
366 
367 void gtsamPoint3_staticFunction_24(int nargout, mxArray *out[], int nargin, const mxArray *in[])
368 {
369  checkArguments("gtsamPoint3.staticFunction",nargout,nargin,0);
370  out[0] = wrap< double >(gtsam::Point3::staticFunction());
371 }
372 
373 void gtsamPoint3_string_deserialize_25(int nargout, mxArray *out[], int nargin, const mxArray *in[])
374 {
375  typedef boost::shared_ptr<gtsam::Point3> Shared;
376  checkArguments("gtsamPoint3.string_deserialize",nargout,nargin,1);
377  string serialized = unwrap< string >(in[0]);
378  istringstream in_archive_stream(serialized);
379  boost::archive::text_iarchive in_archive(in_archive_stream);
380  Shared output(new gtsam::Point3());
381  in_archive >> *output;
382  out[0] = wrap_shared_ptr(output,"gtsam.Point3", false);
383 }
384 
385 void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
386 {
387  mstream mout;
388  std::streambuf *outbuf = std::cout.rdbuf(&mout);
389 
391 
392  int id = unwrap<int>(in[0]);
393 
394  try {
395  switch(id) {
396  case 0:
397  gtsamPoint2_collectorInsertAndMakeBase_0(nargout, out, nargin-1, in+1);
398  break;
399  case 1:
400  gtsamPoint2_constructor_1(nargout, out, nargin-1, in+1);
401  break;
402  case 2:
403  gtsamPoint2_constructor_2(nargout, out, nargin-1, in+1);
404  break;
405  case 3:
406  gtsamPoint2_deconstructor_3(nargout, out, nargin-1, in+1);
407  break;
408  case 4:
409  gtsamPoint2_argChar_4(nargout, out, nargin-1, in+1);
410  break;
411  case 5:
412  gtsamPoint2_argChar_5(nargout, out, nargin-1, in+1);
413  break;
414  case 6:
415  gtsamPoint2_argChar_6(nargout, out, nargin-1, in+1);
416  break;
417  case 7:
418  gtsamPoint2_argChar_7(nargout, out, nargin-1, in+1);
419  break;
420  case 8:
421  gtsamPoint2_argChar_8(nargout, out, nargin-1, in+1);
422  break;
423  case 9:
424  gtsamPoint2_argChar_9(nargout, out, nargin-1, in+1);
425  break;
426  case 10:
427  gtsamPoint2_argChar_10(nargout, out, nargin-1, in+1);
428  break;
429  case 11:
430  gtsamPoint2_argUChar_11(nargout, out, nargin-1, in+1);
431  break;
432  case 12:
433  gtsamPoint2_dim_12(nargout, out, nargin-1, in+1);
434  break;
435  case 13:
436  gtsamPoint2_eigenArguments_13(nargout, out, nargin-1, in+1);
437  break;
438  case 14:
439  gtsamPoint2_returnChar_14(nargout, out, nargin-1, in+1);
440  break;
441  case 15:
442  gtsamPoint2_vectorConfusion_15(nargout, out, nargin-1, in+1);
443  break;
444  case 16:
445  gtsamPoint2_x_16(nargout, out, nargin-1, in+1);
446  break;
447  case 17:
448  gtsamPoint2_y_17(nargout, out, nargin-1, in+1);
449  break;
450  case 18:
451  gtsamPoint3_collectorInsertAndMakeBase_18(nargout, out, nargin-1, in+1);
452  break;
453  case 19:
454  gtsamPoint3_constructor_19(nargout, out, nargin-1, in+1);
455  break;
456  case 20:
457  gtsamPoint3_deconstructor_20(nargout, out, nargin-1, in+1);
458  break;
459  case 21:
460  gtsamPoint3_norm_21(nargout, out, nargin-1, in+1);
461  break;
462  case 22:
463  gtsamPoint3_string_serialize_22(nargout, out, nargin-1, in+1);
464  break;
465  case 23:
466  gtsamPoint3_StaticFunctionRet_23(nargout, out, nargin-1, in+1);
467  break;
468  case 24:
469  gtsamPoint3_staticFunction_24(nargout, out, nargin-1, in+1);
470  break;
471  case 25:
472  gtsamPoint3_string_deserialize_25(nargout, out, nargin-1, in+1);
473  break;
474  }
475  } catch(const std::exception& e) {
476  mexErrMsgTxt(("Exception from gtsam:\n" + std::string(e.what()) + "\n").c_str());
477  }
478 
479  std::cout.rdbuf(outbuf);
480 }
int unwrap< int >(const mxArray *array)
Definition: matlab.h:295
std::set< boost::shared_ptr< Test > * > Collector_Test
Matrix3f m
std::set< boost::shared_ptr< MultipleTemplatesIntDouble > * > Collector_MultipleTemplatesIntDouble
std::set< boost::shared_ptr< gtsam::Point2 > * > Collector_gtsamPoint2
std::set< boost::shared_ptr< Test > * > Collector_Test
void _geometry_RTTIRegister()
void gtsamPoint2_x_16(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Scalar * y
MyVector< 3 > MyVector3
PrimitiveRef< double > PrimitiveRefDouble
void gtsamPoint3_collectorInsertAndMakeBase_18(int nargout, mxArray *out[], int nargin, const mxArray *in[])
char unwrap< char >(const mxArray *array)
Definition: matlab.h:281
void checkArguments(const string &name, int nargout, int nargin, int expected)
Definition: matlab.h:116
Vector2 Point2
Definition: Point2.h:27
ArrayXcf v
Definition: Cwise_arg.cpp:1
void gtsamPoint2_eigenArguments_13(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint2_deconstructor_3(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Fun< double > FunDouble
string unwrap< string >(const mxArray *array)
Definition: matlab.h:250
iterator iter(handle obj)
Definition: pytypes.h:1547
void gtsamPoint2_argChar_5(int nargout, mxArray *out[], int nargin, const mxArray *in[])
static Collector_Test collector_Test
std::set< boost::shared_ptr< gtsam::Point3 > * > Collector_gtsamPoint3
unsigned char unwrap< unsigned char >(const mxArray *array)
Definition: matlab.h:288
std::set< boost::shared_ptr< MyVector12 > * > Collector_MyVector12
mxArray * wrap_shared_ptr(boost::shared_ptr< Class > shared_ptr, const std::string &matlabName, bool isVirtual)
Definition: matlab.h:454
MyVector< 12 > MyVector12
GeneralSFMFactor< SfmCamera, Point3 > MyFactor
std::set< boost::shared_ptr< MultipleTemplatesIntDouble > * > Collector_MultipleTemplatesIntDouble
void gtsamPoint2_constructor_1(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint3_deconstructor_20(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint2_argChar_9(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint2_argChar_8(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Array33i a
void gtsamPoint2_argChar_4(int nargout, mxArray *out[], int nargin, const mxArray *in[])
MultipleTemplates< int, double > MultipleTemplatesIntDouble
static Collector_MyVector12 collector_MyVector12
std::set< boost::shared_ptr< FunRange > * > Collector_FunRange
void _deleteAllObjects()
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint3_constructor_19(int nargout, mxArray *out[], int nargin, const mxArray *in[])
std::set< boost::shared_ptr< MultipleTemplatesIntFloat > * > Collector_MultipleTemplatesIntFloat
static Collector_FunDouble collector_FunDouble
void gtsamPoint2_y_17(int nargout, mxArray *out[], int nargin, const mxArray *in[])
double unwrap< double >(const mxArray *array)
Definition: matlab.h:309
std::set< boost::shared_ptr< MyFactorPosePoint2 > * > Collector_MyFactorPosePoint2
static Collector_PrimitiveRefDouble collector_PrimitiveRefDouble
static Collector_MultipleTemplatesIntDouble collector_MultipleTemplatesIntDouble
void gtsamPoint2_argChar_10(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint3_StaticFunctionRet_23(int nargout, mxArray *out[], int nargin, const mxArray *in[])
static Collector_MyVector3 collector_MyVector3
void gtsamPoint2_constructor_2(int nargout, mxArray *out[], int nargin, const mxArray *in[])
mxArray * wrap< char >(const char &value)
Definition: matlab.h:143
void gtsamPoint3_string_deserialize_25(int nargout, mxArray *out[], int nargin, const mxArray *in[])
std::set< boost::shared_ptr< FunDouble > * > Collector_FunDouble
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::set< boost::shared_ptr< PrimitiveRefDouble > * > Collector_PrimitiveRefDouble
BOOST_CLASS_EXPORT_GUID(gtsam::Point2,"gtsamPoint2")
#define NULL
Definition: ccolamd.c:609
std::set< boost::shared_ptr< MyVector12 > * > Collector_MyVector12
void gtsamPoint2_dim_12(int nargout, mxArray *out[], int nargin, const mxArray *in[])
void gtsamPoint3_staticFunction_24(int nargout, mxArray *out[], int nargin, const mxArray *in[])
static Collector_gtsamPoint3 collector_gtsamPoint3
mxArray * wrap< int >(const int &value)
Definition: matlab.h:175
void gtsamPoint3_norm_21(int nargout, mxArray *out[], int nargin, const mxArray *in[])
mxArray * wrap< double >(const double &value)
Definition: matlab.h:183
static Collector_FunRange collector_FunRange
static Collector_MyFactorPosePoint2 collector_MyFactorPosePoint2
std::set< boost::shared_ptr< MyVector3 > * > Collector_MyVector3
std::set< boost::shared_ptr< MyFactorPosePoint2 > * > Collector_MyFactorPosePoint2
void gtsamPoint2_argChar_7(int nargout, mxArray *out[], int nargin, const mxArray *in[])
#define mxUINT32OR64_CLASS
Definition: matlab.h:61
std::set< boost::shared_ptr< PrimitiveRefDouble > * > Collector_PrimitiveRefDouble
void gtsamPoint3_string_serialize_22(int nargout, mxArray *out[], int nargin, const mxArray *in[])
static Collector_gtsamPoint2 collector_gtsamPoint2
std::set< boost::shared_ptr< FunRange > * > Collector_FunRange
void gtsamPoint2_argUChar_11(int nargout, mxArray *out[], int nargin, const mxArray *in[])
mxArray * wrap< string >(const string &value)
Definition: matlab.h:137
3D Point
MyFactor< gtsam::Pose2, gtsam::Matrix > MyFactorPosePoint2
void gtsamPoint2_collectorInsertAndMakeBase_0(int nargout, mxArray *out[], int nargin, const mxArray *in[])
std::set< boost::shared_ptr< MyVector3 > * > Collector_MyVector3
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor > Matrix
void gtsamPoint2_argChar_6(int nargout, mxArray *out[], int nargin, const mxArray *in[])
Vector3 Point3
Definition: Point3.h:35
MultipleTemplates< int, float > MultipleTemplatesIntFloat
static Collector_MultipleTemplatesIntFloat collector_MultipleTemplatesIntFloat
void gtsamPoint2_returnChar_14(int nargout, mxArray *out[], int nargin, const mxArray *in[])
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
2D Point
Eigen::Matrix< double, Eigen::Dynamic, 1 > Vector
Definition: matlab.h:98
void gtsamPoint2_vectorConfusion_15(int nargout, mxArray *out[], int nargin, const mxArray *in[])
std::set< boost::shared_ptr< FunDouble > * > Collector_FunDouble
std::set< boost::shared_ptr< MultipleTemplatesIntFloat > * > Collector_MultipleTemplatesIntFloat


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:42:08