MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / BOOST_PYTHON_MODULE

Function BOOST_PYTHON_MODULE

bindings/python/module.cpp:14–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace simple::python;
13
14BOOST_PYTHON_MODULE(SIMPLE_PYTHON_MODULE_NAME)
15{
16 bp::docstring_options module_docstring_options(true, true, false);
17
18 bp::scope().attr("__version__") = bp::str(SIMPLE_VERSION);
19 bp::scope().attr("__raw_version__") = bp::str(SIMPLE_VERSION);
20
21 eigenpy::enableEigenPy();
22 using Matrix6x3s = Eigen::Matrix<simple::context::Scalar, 6, 3, simple::context::Options>;
23 eigenpy::enableEigenPySpecific<Matrix6x3s>();
24
25 // Enable warnings
26 bp::import("warnings");
27
28 // Dependencies
29 bp::import("hppfcl");
30 bp::import("pinocchio");
31
32 exposeContactFrame();
33 exposeConstraintsProblem();
34 exposeSimulator();
35}

Callers

nothing calls this directly

Calls 3

exposeContactFrameFunction · 0.85
exposeConstraintsProblemFunction · 0.85
exposeSimulatorFunction · 0.85

Tested by

no test coverage detected