Merging 'master' into 'wrap'
commit
2c51730dbb
|
@ -74,8 +74,8 @@ class PybindWrapper(object):
|
|||
)
|
||||
.def("deserialize",
|
||||
[]({class_inst} self, string serialized){{
|
||||
return gtsam::deserialize(serialized, self);
|
||||
}})
|
||||
gtsam::deserialize(serialized, *self);
|
||||
}}, py::arg("serialized"))
|
||||
'''.format(class_inst=cpp_class + '*'))
|
||||
|
||||
is_method = isinstance(method, instantiator.InstantiatedMethod)
|
||||
|
|
|
@ -45,8 +45,8 @@ PYBIND11_MODULE(geometry_py, m_) {
|
|||
)
|
||||
.def("deserialize",
|
||||
[](gtsam::Point2* self, string serialized){
|
||||
return gtsam::deserialize(serialized, self);
|
||||
})
|
||||
gtsam::deserialize(serialized, *self);
|
||||
}, py::arg("serialized"))
|
||||
;
|
||||
|
||||
py::class_<gtsam::Point3, std::shared_ptr<gtsam::Point3>>(m_gtsam, "Point3")
|
||||
|
@ -59,8 +59,8 @@ PYBIND11_MODULE(geometry_py, m_) {
|
|||
)
|
||||
.def("deserialize",
|
||||
[](gtsam::Point3* self, string serialized){
|
||||
return gtsam::deserialize(serialized, self);
|
||||
})
|
||||
gtsam::deserialize(serialized, *self);
|
||||
}, py::arg("serialized"))
|
||||
|
||||
.def_static("staticFunction",[](){return gtsam::Point3::staticFunction();})
|
||||
.def_static("StaticFunctionRet",[]( double z){return gtsam::Point3::StaticFunctionRet(z);}, py::arg("z"));
|
||||
|
|
Loading…
Reference in New Issue