forked from dartsim/dart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulation.pyi
More file actions
153 lines (149 loc) · 4.74 KB
/
simulation.pyi
File metadata and controls
153 lines (149 loc) · 4.74 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
from __future__ import annotations
import dartpy.collision
import dartpy.constraint
import dartpy.dynamics
import numpy
import typing
__all__: list[str] = ['CollisionDetectorType', 'World']
class CollisionDetectorType:
"""
Members:
DART
FCL
BULLET
ODE
"""
BULLET: typing.ClassVar[CollisionDetectorType] # value = <CollisionDetectorType.BULLET: 2>
DART: typing.ClassVar[CollisionDetectorType] # value = <CollisionDetectorType.DART: 0>
FCL: typing.ClassVar[CollisionDetectorType] # value = <CollisionDetectorType.FCL: 1>
ODE: typing.ClassVar[CollisionDetectorType] # value = <CollisionDetectorType.ODE: 3>
__members__: typing.ClassVar[dict[str, CollisionDetectorType]] # value = {'DART': <CollisionDetectorType.DART: 0>, 'FCL': <CollisionDetectorType.FCL: 1>, 'BULLET': <CollisionDetectorType.BULLET: 2>, 'ODE': <CollisionDetectorType.ODE: 3>}
def __eq__(self, other: typing.Any) -> bool:
...
def __getstate__(self) -> int:
...
def __hash__(self) -> int:
...
def __index__(self) -> int:
...
def __init__(self, value: int) -> None:
...
def __int__(self) -> int:
...
def __ne__(self, other: typing.Any) -> bool:
...
def __repr__(self) -> str:
...
def __setstate__(self, state: int) -> None:
...
def __str__(self) -> str:
...
@property
def name(self) -> str:
...
@property
def value(self) -> int:
...
class World:
@typing.overload
def __init__(self) -> None:
...
@typing.overload
def __init__(self, name: str) -> None:
...
@typing.overload
def __init__(self) -> None:
...
@typing.overload
def __init__(self, name: str) -> None:
...
def addSimpleFrame(self, frame: dartpy.dynamics.SimpleFrame) -> str:
...
def addSkeleton(self, skeleton: dartpy.dynamics.Skeleton) -> str:
...
def bake(self) -> None:
...
@typing.overload
def checkCollision(self) -> bool:
...
@typing.overload
def checkCollision(self, option: dartpy.collision.CollisionOption) -> bool:
...
@typing.overload
def checkCollision(self, option: dartpy.collision.CollisionOption, result: dartpy.collision.CollisionResult) -> bool:
...
def clone(self) -> World:
...
def getConstraintSolver(self) -> dartpy.constraint.ConstraintSolver:
...
def getGravity(self) -> numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]:
...
def getIndex(self, index: int) -> int:
...
def getLastCollisionResult(self) -> dartpy.collision.CollisionResult:
...
def getCollisionDetector(self) -> dartpy.collision.CollisionDetector:
...
def getName(self) -> str:
...
def getNumSimpleFrames(self) -> int:
...
def getNumSkeletons(self) -> int:
...
def getSimFrames(self) -> int:
...
@typing.overload
def getSimpleFrame(self, index: int) -> dartpy.dynamics.SimpleFrame:
...
@typing.overload
def getSimpleFrame(self, name: str) -> dartpy.dynamics.SimpleFrame:
...
@typing.overload
def getSkeleton(self, index: int) -> dartpy.dynamics.Skeleton:
...
@typing.overload
def getSkeleton(self, name: str) -> dartpy.dynamics.Skeleton:
...
def getTime(self) -> float:
...
def getTimeStep(self) -> float:
...
def hasSkeleton(self, skeleton: dartpy.dynamics.Skeleton) -> bool:
...
def removeAllSimpleFrames(self) -> ...:
...
def removeAllSkeletons(self) -> ...:
...
def removeSimpleFrame(self, frame: dartpy.dynamics.SimpleFrame) -> None:
...
def removeSkeleton(self, skeleton: dartpy.dynamics.Skeleton) -> None:
...
def reset(self) -> None:
...
@typing.overload
def setGravity(self, gravity: numpy.ndarray[tuple[typing.Literal[3], typing.Literal[1]], numpy.dtype[numpy.float64]]) -> None:
...
@typing.overload
def setGravity(self, x: float, y: float, z: float) -> None:
...
def setName(self, newName: str) -> str:
...
@typing.overload
def setCollisionDetector(self, collisionDetector: dartpy.collision.CollisionDetector) -> None:
...
@typing.overload
def setCollisionDetector(self, collisionDetectorType: CollisionDetectorType) -> None:
...
def setTime(self, time: float) -> None:
...
def setTimeStep(self, timeStep: float) -> None:
...
@typing.overload
def step(self) -> None:
...
@typing.overload
def step(self, resetCommand: bool) -> None:
...
@property
def onNameChanged(self) -> ...:
...