expose-liegroups.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2015-2020 CNRS INRIA
3 //
4 
8 
9 #include <eigenpy/memory.hpp>
10 
11 namespace pinocchio
12 {
13 namespace python
14 {
15 
16 namespace bp = boost::python;
17 
18 template<typename LgType>
19 CartesianProductOperationVariantTpl<double,0,LieGroupCollectionDefaultTpl>
21 {
23 }
24 
26 makeRn(int n)
27 {
30 }
31 
32 
33 /* --- Expose --------------------------------------------------------- */
35 {
38  >::expose("LieGroup");
39 
40  {
41  // Switch the scope to the submodule, add methods and classes.
42  bp::scope submoduleScope = getOrCreatePythonNamespace("liegroups");
43 
47  bp::def("Rn", makeRn);
52  }
53 }
54 } // namespace python
55 } // namespace pinocchio
Vec3f n
CartesianProductOperationVariantTpl< double, 0, LieGroupCollectionDefaultTpl > makeLieGroup()
Dynamic Cartesian product composed of elementary Lie groups defined in LieGroupVariant.
CartesianProductOperationVariantTpl< double, 0, LieGroupCollectionDefaultTpl > makeRn(int n)
boost::python::object getOrCreatePythonNamespace(const std::string &submodule_name)
Helper to create or simply return an existing namespace in Python.
Definition: namespace.hpp:22
Main pinocchio namespace.
Definition: timings.cpp:28


pinocchio
Author(s):
autogenerated on Fri Jun 23 2023 02:38:30