10 #include "wrap/serialization.h" 11 #include <boost/serialization/export.hpp> 22 m_.doc() =
"pybind11 wrapper of functions_py";
25 m_.def(
"load2D",[](
string filename, std::shared_ptr<Test>
model,
int maxID,
bool addNoise,
bool smart){
return ::load2D(filename, model, maxID, addNoise, smart);},
py::arg(
"filename"),
py::arg(
"model"),
py::arg(
"maxID"),
py::arg(
"addNoise"),
py::arg(
"smart"));
26 m_.def(
"load2D",[](
string filename,
const std::shared_ptr<gtsam::noiseModel::Diagonal> model,
int maxID,
bool addNoise,
bool smart){
return ::load2D(filename, model, maxID, addNoise, smart);},
py::arg(
"filename"),
py::arg(
"model"),
py::arg(
"maxID"),
py::arg(
"addNoise"),
py::arg(
"smart"));
28 m_.def(
"aGlobalFunction",[](){return ::aGlobalFunction();});
29 m_.def(
"overloadedGlobalFunction",[](
int a){return ::overloadedGlobalFunction(a);},
py::arg(
"a"));
30 m_.def(
"overloadedGlobalFunction",[](
int a,
double b){return ::overloadedGlobalFunction(a, b);},
py::arg(
"a"),
py::arg(
"b"));
31 m_.def(
"MultiTemplatedFunctionStringSize_tDouble",[](
const T&
x,
size_t y){return ::MultiTemplatedFunction<string,size_t,double>(
x,
y);},
py::arg(
"x"),
py::arg(
"y"));
32 m_.def(
"MultiTemplatedFunctionDoubleSize_tDouble",[](
const T& x,
size_t y){return ::MultiTemplatedFunction<double,size_t,double>(
x,
y);},
py::arg(
"x"),
py::arg(
"y"));
33 m_.def(
"DefaultFuncInt",[](
int a){ ::DefaultFuncInt(a);},
py::arg(
"a") = 123);
34 m_.def(
"DefaultFuncString",[](
const string&
s,
const string&
name){ ::DefaultFuncString(s, name);},
py::arg(
"s") =
"hello",
py::arg(
"name") =
"");
36 m_.def(
"TemplatedFunctionRot3",[](
const gtsam::Rot3&
t){ ::TemplatedFunction<Rot3>(
t);},
py::arg(
"t"));
38 #include "python/specializations.h"
noiseModel::Diagonal::shared_ptr model
GraphAndValues load2D(const string &filename, SharedNoiseModel model, size_t maxIndex, bool addNoise, bool smart, NoiseFormat noiseFormat, KernelFunctionType kernelFunctionType)
PYBIND11_MODULE(functions_py, m_)
static const KeyFormatter DefaultKeyFormatter
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const ArgReturnType arg() const
Annotation for function names.
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