Go to the documentation of this file.
16 m_.doc() =
"pybind11 wrapper of functions_py";
19 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"));
20 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"));
22 m_.def(
"aGlobalFunction",[](){return ::aGlobalFunction();});
23 m_.def(
"overloadedGlobalFunction",[](
int a){return ::overloadedGlobalFunction(
a);},
py::arg(
"a"));
24 m_.def(
"overloadedGlobalFunction",[](
int a,
double b){return ::overloadedGlobalFunction(
a,
b);},
py::arg(
"a"),
py::arg(
"b"));
25 m_.def(
"MultiTemplatedFunctionStringSize_tDouble",[](
const T&
x,
size_t y){return ::MultiTemplatedFunction<string,size_t,double>(
x,
y);},
py::arg(
"x"),
py::arg(
"y"));
26 m_.def(
"MultiTemplatedFunctionDoubleSize_tDouble",[](
const T&
x,
size_t y){return ::MultiTemplatedFunction<double,size_t,double>(
x,
y);},
py::arg(
"x"),
py::arg(
"y"));
27 m_.def(
"DefaultFuncInt",[](
int a,
int b){ ::DefaultFuncInt(
a,
b);},
py::arg(
"a") = 123,
py::arg(
"b") = 0);
28 m_.def(
"DefaultFuncString",[](
const string&
s,
const string&
name){ ::DefaultFuncString(
s,
name);},
py::arg(
"s") =
"hello",
py::arg(
"name") =
"");
30 m_.def(
"DefaultFuncZero",[](
int a,
int b,
double c,
int d,
bool e){ ::DefaultFuncZero(
a,
b,
c,
d,
e);},
py::arg(
"a"),
py::arg(
"b"),
py::arg(
"c") = 0.0,
py::arg(
"d") = 0,
py::arg(
"e") =
false);
31 m_.def(
"DefaultFuncVector",[](
const std::vector<int>&
i,
const std::vector<string>&
s){ ::DefaultFuncVector(
i,
s);},
py::arg(
"i") = {1, 2, 3},
py::arg(
"s") = {
"borglab",
"gtsam"});
34 m_.def(
"TemplatedFunctionRot3",[](
const gtsam::Rot3&
t){ ::TemplatedFunction<gtsam::Rot3>(
t);},
py::arg(
"t"));
36 #include "python/specializations.h"
Contains generic global functions designed particularly for the matlab interface.
std::pair< DiscreteConditional::shared_ptr, DiscreteFactor::shared_ptr > EliminateDiscrete(const DiscreteFactorGraph &factors, const Ordering &frontalKeys)
Main elimination function for DiscreteFactorGraph.
Annotation for function names.
static const Pose3 pose(Rot3(Vector3(1, -1, -1).asDiagonal()), Point3(0, 0, 0.5))
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static const double d[K][N]
const GaussianFactorGraph factors
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
PYBIND11_MODULE(functions_py, m_)
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Rot3 is a 3D rotation represented as a rotation matrix if the preprocessor symbol GTSAM_USE_QUATERNIO...
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 const EIGEN_STRONG_INLINE ArgReturnType arg() const
noiseModel::Diagonal::shared_ptr model
GraphAndValues load2D(const std::string &filename, SharedNoiseModel model, size_t maxIndex, bool addNoise, bool smart, NoiseFormat noiseFormat, KernelFunctionType kernelFunctionType)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:11:33