9 #include <boost/serialization/export.hpp> 20 m_.doc() =
"pybind11 wrapper of geometry_py";
24 py::class_<gtsam::Point2, std::shared_ptr<gtsam::Point2>>(m_gtsam,
"Point2")
30 .def(
"returnChar",[](
gtsam::Point2*
self){
return self->returnChar();})
32 .def(
"argChar",[](
gtsam::Point2*
self, std::shared_ptr<char> a){
self->argChar(a);},
py::arg(
"a"))
35 .def(
"argChar",[](
gtsam::Point2*
self,
const std::shared_ptr<char> a){
self->argChar(a);},
py::arg(
"a"))
40 .def(
"vectorConfusion",[](
gtsam::Point2*
self){
return self->vectorConfusion();})
47 py::class_<gtsam::Point3, std::shared_ptr<gtsam::Point3>>(m_gtsam,
"Point3")
55 .def_static(
"staticFunction",[](){
return gtsam::Point3::staticFunction();})
56 .def_static(
"StaticFunctionRet",[](
double z){
return gtsam::Point3::StaticFunctionRet(z);},
py::arg(
"z"));
59 #include "python/specializations.h"
module_ def_submodule(const char *name, const char *doc=nullptr)
std::string serialize(const T &input)
serializes to a string
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
Array< int, Dynamic, 1 > v
void deserialize(const std::string &serialized, T &output)
deserializes from a string
BOOST_CLASS_EXPORT(gtsam::noiseModel::Isotropic)