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

Function exposeContainers

bindings/python/src/module.cpp:71–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static void exposeContainers() {
72 using VecXBool = Eigen::Matrix<bool, Eigen::Dynamic, 1>;
73 using context::MatrixRef;
74 using context::MatrixXs;
75 using context::Scalar;
76 using context::Vector3s;
77 using context::VectorRef;
78 using context::VectorXs;
79
80 eigenpy::StdContainerFromPythonList<
81 std::vector<std::string>>::register_converter();
82 StdVectorPythonVisitor<std::vector<long>, true>::expose("StdVec_long");
83 StdVectorPythonVisitor<std::vector<bool>, true>::expose("StdVec_bool");
84 StdVectorPythonVisitor<std::vector<int>, true>::expose("StdVec_int");
85 StdVectorPythonVisitor<std::vector<Scalar>, true>::expose("StdVec_Scalar");
86
87 // Eigen types
88 exposeStdVectorEigenStdAlloc<Vector3s>("Vector3s");
89 exposeStdVectorEigenStdAlloc<VectorXs>("Vector");
90 exposeStdVectorEigenStdAlloc<MatrixXs>("Matrix");
91 exposeStdVectorEigenStdAlloc<VecXBool>("VecBool");
92 StdVectorPythonVisitor<std::vector<VectorRef>, true>::expose("StdVec_VecRef");
93 StdVectorPythonVisitor<std::vector<MatrixRef>, true>::expose("StdVec_MatRef");
94}
95
96/// Expose manifolds
97void exposeManifolds();

Callers 1

BOOST_PYTHON_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected