| 69 | } |
| 70 | |
| 71 | static 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 |
| 97 | void exposeManifolds(); |
no outgoing calls
no test coverage detected