forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstraint.pyi
More file actions
192 lines (192 loc) · 6.77 KB
/
constraint.pyi
File metadata and controls
192 lines (192 loc) · 6.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
from __future__ import annotations
import dartpy.collision
import dartpy.dynamics
import dartpy.math
import numpy
import typing
__all__: list[str] = ['BallJointConstraint', 'ConstraintBase', 'ConstraintSolver', 'DynamicJointConstraint', 'JointConstraint', 'JointCoulombFrictionConstraint', 'RevoluteJointConstraint', 'WeldJointConstraint']
class BallJointConstraint(DynamicJointConstraint):
@staticmethod
def getStaticType() -> str:
...
@typing.overload
def __init__(self, body: dartpy.dynamics.BodyNode, jointPos: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]) -> None:
...
@typing.overload
def __init__(self, body1: dartpy.dynamics.BodyNode, body2: dartpy.dynamics.BodyNode, jointPos: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]) -> None:
...
class RevoluteJointConstraint(DynamicJointConstraint):
@staticmethod
def getStaticType() -> str:
...
@typing.overload
def __init__(self, body: dartpy.dynamics.BodyNode, jointPos: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]], axis: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]) -> None:
...
@typing.overload
def __init__(self, body1: dartpy.dynamics.BodyNode, body2: dartpy.dynamics.BodyNode, jointPos: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]], axis1: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]], axis2: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]) -> None:
...
class ConstraintBase:
@staticmethod
def compressPath(skeleton: dartpy.dynamics.Skeleton) -> dartpy.dynamics.Skeleton:
...
@staticmethod
def getRootSkeletonOf(skeleton: dartpy.dynamics.Skeleton) -> dartpy.dynamics.Skeleton:
...
def applyImpulse(self, lambda: float) -> None:
...
def applyUnitImpulse(self, index: int) -> None:
...
def excite(self) -> None:
...
def getDimension(self) -> int:
...
def getInformation(self, info: ...) -> None:
...
def getRootSkeleton(self) -> dartpy.dynamics.Skeleton:
...
def getType(self) -> str:
...
def getVelocityChange(self, vel: float, withCfm: bool) -> None:
...
def isActive(self) -> bool:
...
def unexcite(self) -> None:
...
def uniteSkeletons(self) -> None:
...
def update(self) -> None:
...
class ConstraintSolver:
def addConstraint(self, constraint: ConstraintBase) -> None:
...
def addSkeleton(self, skeleton: dartpy.dynamics.Skeleton) -> None:
...
def addSkeletons(self, skeletons: ..., std: ...) -> None:
...
def clearLastCollisionResult(self) -> None:
...
@typing.overload
def getCollisionDetector(self) -> dartpy.collision.CollisionDetector:
...
@typing.overload
def getCollisionDetector(self) -> dartpy.collision.CollisionDetector:
...
@typing.overload
def getCollisionGroup(self) -> dartpy.collision.CollisionGroup:
...
@typing.overload
def getCollisionGroup(self) -> dartpy.collision.CollisionGroup:
...
@typing.overload
def getCollisionOption(self) -> dartpy.collision.CollisionOption:
"""
Returns collision option that is used for collision checkings in this ConstraintSolver to generate contact constraints.
"""
@typing.overload
def getCollisionOption(self) -> dartpy.collision.CollisionOption:
"""
Returns collision option that is used for collision checkings in this ConstraintSolver to generate contact constraints.
"""
@typing.overload
def getConstraint(self, index: int) -> ConstraintBase:
...
@typing.overload
def getConstraint(self, index: int) -> ConstraintBase:
...
@typing.overload
def getNumConstraints(self) -> bool:
...
@typing.overload
def getNumConstraints(self) -> bool:
...
def getTimeStep(self) -> float:
...
def removeAllConstraints(self) -> None:
...
def removeAllSkeletons(self) -> None:
...
def removeConstraint(self, constraint: ConstraintBase) -> None:
...
def removeSkeleton(self, skeleton: dartpy.dynamics.Skeleton) -> None:
...
def removeSkeletons(self, skeletons: ..., std: ...) -> None:
...
def setCollisionDetector(self, collisionDetector: dartpy.collision.CollisionDetector) -> None:
...
def setTimeStep(self, timeStep: float) -> None:
...
def solve(self) -> None:
...
class DynamicJointConstraint(ConstraintBase):
@staticmethod
def getConstraintForceMixing() -> float:
...
@staticmethod
def getErrorAllowance() -> float:
...
@staticmethod
def getErrorReductionParameter() -> float:
...
@staticmethod
def getMaxErrorReductionVelocity() -> float:
...
@staticmethod
def setConstraintForceMixing(cfm: float) -> None:
...
@staticmethod
def setErrorAllowance(allowance: float) -> None:
...
@staticmethod
def setErrorReductionParameter(erp: float) -> None:
...
@staticmethod
def setMaxErrorReductionVelocity(erv: float) -> None:
...
class JointConstraint(ConstraintBase):
@staticmethod
def getConstraintForceMixing() -> float:
...
@staticmethod
def getErrorAllowance() -> float:
...
@staticmethod
def getErrorReductionParameter() -> float:
...
@staticmethod
def getMaxErrorReductionVelocity() -> float:
...
@staticmethod
def setConstraintForceMixing(cfm: float) -> None:
...
@staticmethod
def setErrorAllowance(allowance: float) -> None:
...
@staticmethod
def setErrorReductionParameter(erp: float) -> None:
...
@staticmethod
def setMaxErrorReductionVelocity(erv: float) -> None:
...
def __init__(self, joint: dartpy.dynamics.Joint) -> None:
...
class JointCoulombFrictionConstraint(ConstraintBase):
@staticmethod
def getConstraintForceMixing() -> float:
...
@staticmethod
def setConstraintForceMixing(cfm: float) -> None:
...
def __init__(self, joint: dartpy.dynamics.Joint) -> None:
...
class WeldJointConstraint(DynamicJointConstraint):
@staticmethod
def getStaticType() -> str:
...
@typing.overload
def __init__(self, body: dartpy.dynamics.BodyNode) -> None:
...
@typing.overload
def __init__(self, body1: dartpy.dynamics.BodyNode, body2: dartpy.dynamics.BodyNode) -> None:
...
def setRelativeTransform(self, tf: dartpy.math.Isometry3) -> None:
...