Debian Codegraph @

python/dartpy/dynamics/module.cpp

raw
1 /*
2 * Copyright (c) 2011-2022, The DART development contributors
3 * All rights reserved.
4 *
5 * The list of contributors can be found at:
6 * https://github.com/dartsim/dart/blob/master/LICENSE
7 *
8 * This file is provided under the following "BSD-style" License:
9 * Redistribution and use in source and binary forms, with or
10 * without modification, are permitted provided that the following
11 * conditions are met:
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above
15 * copyright notice, this list of conditions and the following
16 * disclaimer in the documentation and/or other materials provided
17 * with the distribution.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
19 * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
20 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
26 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
29 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 #include <pybind11/pybind11.h>
34
35 namespace py = pybind11;
36
37 namespace dart {
38 namespace python {
39
40 void Shape(py::module& sm);
41
42 void Entity(py::module& sm);
43 void Frame(py::module& sm);
44 void ShapeFrame(py::module& sm);
45 void SimpleFrame(py::module& sm);
46
47 void Node(py::module& sm);
48 void JacobianNode(py::module& sm);
49 void ShapeNode(py::module& sm);
50
51 void DegreeOfFreedom(py::module& sm);
52
53 void BodyNode(py::module& sm);
54
55 void Joint(py::module& sm);
56 void ZeroDofJoint(py::module& sm);
57 void WeldJoint(py::module& sm);
58 void GenericJoint(py::module& sm);
59 void RevoluteJoint(py::module& sm);
60 void PrismaticJoint(py::module& sm);
61 void ScrewJoint(py::module& sm);
62 void UniversalJoint(py::module& sm);
63 void TranslationalJoint2D(py::module& sm);
64 void PlanarJoint(py::module& sm);
65 void EulerJoint(py::module& sm);
66 void BallJoint(py::module& sm);
67 void TranslationalJoint(py::module& sm);
68 void FreeJoint(py::module& sm);
69
70 void MetaSkeleton(py::module& sm);
71 void ReferentialSkeleton(py::module& sm);
72 void Linkage(py::module& sm);
73 void Chain(py::module& sm);
74 void Skeleton(py::module& sm);
75
76 void InverseKinematics(py::module& sm);
77 void Inertia(py::module& sm);
78
79 void dart_dynamics(py::module& m)
80 {
81 auto sm = m.def_submodule("dynamics");
82
83 Shape(sm);
84
85 Entity(sm);
86 Frame(sm);
87 ShapeFrame(sm);
88 SimpleFrame(sm);
89
90 Node(sm);
91 JacobianNode(sm);
92 ShapeNode(sm);
93
94 DegreeOfFreedom(sm);
95
96 BodyNode(sm);
97
98 Joint(sm);
99 ZeroDofJoint(sm);
100 WeldJoint(sm);
101 GenericJoint(sm);
102 RevoluteJoint(sm);
103 PrismaticJoint(sm);
104 ScrewJoint(sm);
105 UniversalJoint(sm);
106 TranslationalJoint2D(sm);
107 PlanarJoint(sm);
108 EulerJoint(sm);
109 BallJoint(sm);
110 TranslationalJoint(sm);
111 FreeJoint(sm);
112
113 MetaSkeleton(sm);
114 ReferentialSkeleton(sm);
115 Linkage(sm);
116 Chain(sm);
117 Skeleton(sm);
118
119 InverseKinematics(sm);
120
121 Inertia(sm);
122 }
123
124 } // namespace python
125 } // namespace dart