12 #include "wrap/serialization.h" 13 #include <boost/serialization/export.hpp> 26 m_.doc() =
"pybind11 wrapper of geometry_py";
30 py::class_<gtsam::Point2, std::shared_ptr<gtsam::Point2>>(m_gtsam,
"Point2")
36 .def(
"returnChar",[](
gtsam::Point2*
self){
return self->returnChar();})
38 .def(
"argChar",[](
gtsam::Point2*
self, std::shared_ptr<char> a){
self->argChar(a);},
py::arg(
"a"))
41 .def(
"argChar",[](
gtsam::Point2*
self,
const std::shared_ptr<char> a){
self->argChar(a);},
py::arg(
"a"))
46 .def(
"vectorConfusion",[](
gtsam::Point2*
self){
return self->vectorConfusion();})
53 py::class_<gtsam::Point3, std::shared_ptr<gtsam::Point3>>(m_gtsam,
"Point3")
61 .def_static(
"staticFunction",[](){
return gtsam::Point3::staticFunction();})
62 .def_static(
"StaticFunctionRet",[](
double z){
return gtsam::Point3::StaticFunctionRet(z);},
py::arg(
"z"));
65 #include "python/specializations.h"
module_ def_submodule(const char *name, const char *doc=nullptr)
std::string serialize(const T &input)
serializes to a string
BOOST_CLASS_EXPORT(gtsam::noiseModel::Isotropic)
Tuple< Args... > make_tuple(Args...args)
Creates a tuple object, deducing the target type from the types of arguments.
detail::initimpl::pickle_factory< GetState, SetState > pickle(GetState &&g, SetState &&s)
PYBIND11_MODULE(geometry_py, m_)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
void deserialize(const std::string &serialized, T &output)
deserializes from a string