mujoco-react 8.9.2 → 8.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/chunk-KGFRKPLS.js +186 -0
- package/dist/chunk-KGFRKPLS.js.map +1 -0
- package/dist/index.d.ts +37 -735
- package/dist/index.js +41 -19
- package/dist/index.js.map +1 -1
- package/dist/spark.d.ts +32 -0
- package/dist/spark.js +150 -0
- package/dist/spark.js.map +1 -0
- package/dist/types-FFW7ykBu.d.ts +817 -0
- package/dist/vite.d.ts +9 -0
- package/dist/vite.js +4 -0
- package/dist/vite.js.map +1 -1
- package/package.json +15 -2
- package/src/components/VisualScenario.tsx +229 -0
- package/src/hooks/useSceneLights.ts +49 -18
- package/src/index.ts +23 -0
- package/src/spark.tsx +202 -0
- package/src/types.ts +92 -1
- package/src/vite.ts +8 -0
|
@@ -0,0 +1,817 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import { CanvasProps, ThreeElements } from '@react-three/fiber';
|
|
3
|
+
import * as THREE from 'three';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @license
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Module augmentation interface for type-safe resource names.
|
|
12
|
+
*
|
|
13
|
+
* Declare your model's resource names via module augmentation:
|
|
14
|
+
* ```ts
|
|
15
|
+
* declare module 'mujoco-react' {
|
|
16
|
+
* interface Register {
|
|
17
|
+
* robots: {
|
|
18
|
+
* panda: {
|
|
19
|
+
* actuators: 'joint1' | 'joint2' | 'gripper';
|
|
20
|
+
* sensors: 'force_sensor' | 'torque_sensor';
|
|
21
|
+
* bodies: 'link0' | 'link1' | 'hand';
|
|
22
|
+
* };
|
|
23
|
+
* };
|
|
24
|
+
* actuators: 'joint1' | 'joint2' | 'gripper';
|
|
25
|
+
* sensors: 'force_sensor' | 'torque_sensor';
|
|
26
|
+
* bodies: 'link0' | 'link1' | 'hand';
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* When no augmentation is declared, all names fall back to `string`.
|
|
32
|
+
*/
|
|
33
|
+
interface Register {
|
|
34
|
+
}
|
|
35
|
+
type RegisteredRobotMap = Register extends {
|
|
36
|
+
robots: infer T extends Record<string, Record<string, string>>;
|
|
37
|
+
} ? T : never;
|
|
38
|
+
type Robots = [RegisteredRobotMap] extends [never] ? string : Extract<keyof RegisteredRobotMap, string>;
|
|
39
|
+
type RobotResource<TRobot extends string, TKey extends string> = [
|
|
40
|
+
RegisteredRobotMap
|
|
41
|
+
] extends [never] ? string : TRobot extends keyof RegisteredRobotMap ? TKey extends keyof RegisteredRobotMap[TRobot] ? RegisteredRobotMap[TRobot][TKey] : string : never;
|
|
42
|
+
type RegisterResourceKey = 'actuators' | 'sensors' | 'bodies' | 'joints' | 'sites' | 'geoms' | 'keyframes';
|
|
43
|
+
type RobotResourceObject<TRobot extends string, TKey extends RegisterResourceKey> = string extends RobotResource<TRobot, TKey> ? Record<string, string> : {
|
|
44
|
+
readonly [K in RobotResource<TRobot, TKey>]: K;
|
|
45
|
+
};
|
|
46
|
+
type RobotResourceCategory<TKey extends RegisterResourceKey> = string extends Robots ? Record<string, Record<string, string>> : {
|
|
47
|
+
readonly [TRobot in Robots]: RobotResourceObject<TRobot, TKey>;
|
|
48
|
+
};
|
|
49
|
+
type RobotResourceRegistry = string extends Robots ? Record<string, Record<RegisterResourceKey, Record<string, string>>> : {
|
|
50
|
+
readonly [TRobot in Robots]: {
|
|
51
|
+
readonly [TKey in RegisterResourceKey]: RobotResourceObject<TRobot, TKey>;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
type RuntimeRobotResourceRegistration = Readonly<Record<string, Readonly<Record<RegisterResourceKey, Readonly<Record<string, string>>>>>>;
|
|
55
|
+
declare function registerRobotResources(resources: RuntimeRobotResourceRegistration): void;
|
|
56
|
+
declare const RobotResources: RobotResourceRegistry;
|
|
57
|
+
type RobotActuators<TRobot extends string> = RobotResource<TRobot, 'actuators'>;
|
|
58
|
+
declare const RobotActuators: RobotResourceCategory<'actuators'>;
|
|
59
|
+
type RobotSensors<TRobot extends string> = RobotResource<TRobot, 'sensors'>;
|
|
60
|
+
declare const RobotSensors: RobotResourceCategory<'sensors'>;
|
|
61
|
+
type RobotBodies<TRobot extends string> = RobotResource<TRobot, 'bodies'>;
|
|
62
|
+
declare const RobotBodies: RobotResourceCategory<'bodies'>;
|
|
63
|
+
type RobotJoints<TRobot extends string> = RobotResource<TRobot, 'joints'>;
|
|
64
|
+
declare const RobotJoints: RobotResourceCategory<'joints'>;
|
|
65
|
+
type RobotSites<TRobot extends string> = RobotResource<TRobot, 'sites'>;
|
|
66
|
+
declare const RobotSites: RobotResourceCategory<'sites'>;
|
|
67
|
+
type RobotGeoms<TRobot extends string> = RobotResource<TRobot, 'geoms'>;
|
|
68
|
+
declare const RobotGeoms: RobotResourceCategory<'geoms'>;
|
|
69
|
+
type RobotKeyframes<TRobot extends string> = RobotResource<TRobot, 'keyframes'>;
|
|
70
|
+
declare const RobotKeyframes: RobotResourceCategory<'keyframes'>;
|
|
71
|
+
type Actuators = Register extends {
|
|
72
|
+
actuators: infer T extends string;
|
|
73
|
+
} ? T : string;
|
|
74
|
+
type Sensors = Register extends {
|
|
75
|
+
sensors: infer T extends string;
|
|
76
|
+
} ? T : string;
|
|
77
|
+
type Bodies = Register extends {
|
|
78
|
+
bodies: infer T extends string;
|
|
79
|
+
} ? T : string;
|
|
80
|
+
type Joints = Register extends {
|
|
81
|
+
joints: infer T extends string;
|
|
82
|
+
} ? T : string;
|
|
83
|
+
type Sites = Register extends {
|
|
84
|
+
sites: infer T extends string;
|
|
85
|
+
} ? T : string;
|
|
86
|
+
type Geoms = Register extends {
|
|
87
|
+
geoms: infer T extends string;
|
|
88
|
+
} ? T : string;
|
|
89
|
+
type Keyframes = Register extends {
|
|
90
|
+
keyframes: infer T extends string;
|
|
91
|
+
} ? T : string;
|
|
92
|
+
/**
|
|
93
|
+
* A single MuJoCo contact from the WASM module.
|
|
94
|
+
* Accessed via `data.contact.get(i)`.
|
|
95
|
+
*/
|
|
96
|
+
interface MujocoContact {
|
|
97
|
+
geom1: number;
|
|
98
|
+
geom2: number;
|
|
99
|
+
pos: Float64Array;
|
|
100
|
+
frame: Float64Array;
|
|
101
|
+
dist: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* WASM contact array — supports indexed access via `.get(i)`.
|
|
105
|
+
*/
|
|
106
|
+
interface MujocoContactArray {
|
|
107
|
+
get(i: number): MujocoContact | undefined;
|
|
108
|
+
delete?: () => void;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Read a single contact from an already-acquired WASM contact array.
|
|
112
|
+
* Returns undefined if the access fails (WASM heap issue, bad index, etc.).
|
|
113
|
+
*/
|
|
114
|
+
declare function getContact(contacts: MujocoContactArray, i: number): MujocoContact | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Minimal interface for MuJoCo Model to avoid 'any'.
|
|
117
|
+
*/
|
|
118
|
+
interface MujocoModel {
|
|
119
|
+
nbody: number;
|
|
120
|
+
ngeom: number;
|
|
121
|
+
nsite: number;
|
|
122
|
+
nu: number;
|
|
123
|
+
njnt: number;
|
|
124
|
+
nq: number;
|
|
125
|
+
nv: number;
|
|
126
|
+
nkey: number;
|
|
127
|
+
nsensor: number;
|
|
128
|
+
nsensordata: number;
|
|
129
|
+
nlight: number;
|
|
130
|
+
ntendon: number;
|
|
131
|
+
nflex: number;
|
|
132
|
+
nmesh: number;
|
|
133
|
+
nmat: number;
|
|
134
|
+
names: Int8Array;
|
|
135
|
+
name_bodyadr: Int32Array;
|
|
136
|
+
name_jntadr: Int32Array;
|
|
137
|
+
name_geomadr: Int32Array;
|
|
138
|
+
name_siteadr: Int32Array;
|
|
139
|
+
name_actuatoradr: Int32Array;
|
|
140
|
+
name_keyadr: Int32Array;
|
|
141
|
+
name_sensoradr: Int32Array;
|
|
142
|
+
name_tendonadr: Int32Array;
|
|
143
|
+
body_mass: Float64Array;
|
|
144
|
+
body_parentid: Int32Array;
|
|
145
|
+
body_jntnum: Int32Array;
|
|
146
|
+
body_jntadr: Int32Array;
|
|
147
|
+
body_pos: Float64Array;
|
|
148
|
+
body_quat: Float64Array;
|
|
149
|
+
body_geomnum: Int32Array;
|
|
150
|
+
body_geomadr: Int32Array;
|
|
151
|
+
body_inertia: Float64Array;
|
|
152
|
+
qpos0: Float64Array;
|
|
153
|
+
jnt_qposadr: Int32Array;
|
|
154
|
+
jnt_dofadr: Int32Array;
|
|
155
|
+
jnt_type: Int32Array;
|
|
156
|
+
jnt_range: Float64Array;
|
|
157
|
+
jnt_bodyid: Int32Array;
|
|
158
|
+
jnt_pos: Float64Array;
|
|
159
|
+
jnt_axis: Float64Array;
|
|
160
|
+
jnt_limited: Uint8Array;
|
|
161
|
+
geom_group: Int32Array;
|
|
162
|
+
geom_type: Int32Array;
|
|
163
|
+
geom_size: Float64Array;
|
|
164
|
+
geom_pos: Float64Array;
|
|
165
|
+
geom_quat: Float64Array;
|
|
166
|
+
geom_matid: Int32Array;
|
|
167
|
+
geom_rgba: Float32Array;
|
|
168
|
+
geom_dataid: Int32Array;
|
|
169
|
+
geom_bodyid: Int32Array;
|
|
170
|
+
geom_contype: Int32Array;
|
|
171
|
+
geom_conaffinity: Int32Array;
|
|
172
|
+
geom_friction: Float64Array;
|
|
173
|
+
mat_rgba: Float32Array;
|
|
174
|
+
mesh_vertadr: Int32Array;
|
|
175
|
+
mesh_vertnum: Int32Array;
|
|
176
|
+
mesh_faceadr: Int32Array;
|
|
177
|
+
mesh_facenum: Int32Array;
|
|
178
|
+
mesh_vert: Float32Array;
|
|
179
|
+
mesh_face: Int32Array;
|
|
180
|
+
mesh_normal: Float32Array;
|
|
181
|
+
site_bodyid: Int32Array;
|
|
182
|
+
actuator_trnid: Int32Array;
|
|
183
|
+
actuator_ctrlrange: Float64Array;
|
|
184
|
+
actuator_trntype: Int32Array;
|
|
185
|
+
actuator_gainprm: Float64Array;
|
|
186
|
+
actuator_biasprm: Float64Array;
|
|
187
|
+
sensor_type: Int32Array;
|
|
188
|
+
sensor_dim: Int32Array;
|
|
189
|
+
sensor_adr: Int32Array;
|
|
190
|
+
sensor_objtype: Int32Array;
|
|
191
|
+
sensor_objid: Int32Array;
|
|
192
|
+
key_qpos: Float64Array;
|
|
193
|
+
key_ctrl: Float64Array;
|
|
194
|
+
key_time: Float64Array;
|
|
195
|
+
key_qvel: Float64Array;
|
|
196
|
+
light_pos: Float64Array;
|
|
197
|
+
light_dir: Float64Array;
|
|
198
|
+
light_diffuse: Float32Array;
|
|
199
|
+
light_specular: Float32Array;
|
|
200
|
+
light_type: Int32Array;
|
|
201
|
+
light_active: Uint8Array;
|
|
202
|
+
light_castshadow: Uint8Array;
|
|
203
|
+
light_attenuation: Float32Array;
|
|
204
|
+
light_cutoff: Float32Array;
|
|
205
|
+
light_exponent: Float32Array;
|
|
206
|
+
light_intensity: Float32Array;
|
|
207
|
+
ten_wrapadr: Int32Array;
|
|
208
|
+
ten_wrapnum: Int32Array;
|
|
209
|
+
ten_range: Float64Array;
|
|
210
|
+
ten_rgba: Float32Array;
|
|
211
|
+
ten_width: Float64Array;
|
|
212
|
+
flex_vertadr: Int32Array;
|
|
213
|
+
flex_vertnum: Int32Array;
|
|
214
|
+
flex_faceadr: Int32Array;
|
|
215
|
+
flex_facenum: Int32Array;
|
|
216
|
+
flex_face: Int32Array;
|
|
217
|
+
flex_rgba: Float32Array;
|
|
218
|
+
opt: {
|
|
219
|
+
timestep: number;
|
|
220
|
+
gravity: Float64Array;
|
|
221
|
+
integrator: number;
|
|
222
|
+
[key: string]: unknown;
|
|
223
|
+
};
|
|
224
|
+
delete: () => void;
|
|
225
|
+
[key: string]: unknown;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Minimal interface for MuJoCo Data to avoid 'any'.
|
|
229
|
+
*/
|
|
230
|
+
interface MujocoData {
|
|
231
|
+
time: number;
|
|
232
|
+
qpos: Float64Array;
|
|
233
|
+
qvel: Float64Array;
|
|
234
|
+
ctrl: Float64Array;
|
|
235
|
+
act: Float64Array;
|
|
236
|
+
xpos: Float64Array;
|
|
237
|
+
xquat: Float64Array;
|
|
238
|
+
xfrc_applied: Float64Array;
|
|
239
|
+
qfrc_applied: Float64Array;
|
|
240
|
+
qfrc_bias: Float64Array;
|
|
241
|
+
site_xpos: Float64Array;
|
|
242
|
+
site_xmat: Float64Array;
|
|
243
|
+
sensordata: Float64Array;
|
|
244
|
+
ncon: number;
|
|
245
|
+
contact: MujocoContactArray;
|
|
246
|
+
cvel: Float64Array;
|
|
247
|
+
cfrc_ext: Float64Array;
|
|
248
|
+
ten_length: Float64Array;
|
|
249
|
+
wrap_xpos: Float64Array;
|
|
250
|
+
ten_wrapadr: Int32Array;
|
|
251
|
+
flexvert_xpos: Float64Array;
|
|
252
|
+
geom_xpos: Float64Array;
|
|
253
|
+
geom_xmat: Float64Array;
|
|
254
|
+
delete: () => void;
|
|
255
|
+
[key: string]: unknown;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Minimal interface for the MuJoCo WASM Module.
|
|
259
|
+
*/
|
|
260
|
+
interface MujocoModule {
|
|
261
|
+
MjModel: {
|
|
262
|
+
from_xml_path?: (path: string) => MujocoModel;
|
|
263
|
+
from_xml_string?: (xml: string, vfs?: unknown) => MujocoModel;
|
|
264
|
+
loadFromXML?: (path: string) => MujocoModel;
|
|
265
|
+
[key: string]: unknown;
|
|
266
|
+
};
|
|
267
|
+
MjData: new (model: MujocoModel) => MujocoData;
|
|
268
|
+
MjvOption: new () => {
|
|
269
|
+
delete: () => void;
|
|
270
|
+
[key: string]: unknown;
|
|
271
|
+
};
|
|
272
|
+
mj_forward: (m: MujocoModel, d: MujocoData) => void;
|
|
273
|
+
mj_step: (m: MujocoModel, d: MujocoData) => void;
|
|
274
|
+
mj_resetData: (m: MujocoModel, d: MujocoData) => void;
|
|
275
|
+
mj_step1: (m: MujocoModel, d: MujocoData) => void;
|
|
276
|
+
mj_step2: (m: MujocoModel, d: MujocoData) => void;
|
|
277
|
+
mj_applyFT: (model: MujocoModel, data: MujocoData, force: Float64Array, torque: Float64Array, point: Float64Array, bodyId: number, qfrc_target: Float64Array) => void;
|
|
278
|
+
mj_ray: (model: MujocoModel, data: MujocoData, pnt: Float64Array, vec: Float64Array, geomgroup: Uint8Array | null, flg_static: number, bodyexclude: number, geomid: Int32Array) => number;
|
|
279
|
+
mj_name2id: (model: MujocoModel, type: number, name: string) => number;
|
|
280
|
+
mjtObj: Record<string, number>;
|
|
281
|
+
mjtGeom: Record<string, number | {
|
|
282
|
+
value: number;
|
|
283
|
+
}>;
|
|
284
|
+
mjtJoint: Record<string, number | {
|
|
285
|
+
value: number;
|
|
286
|
+
}>;
|
|
287
|
+
mjtSensor: Record<string, number | {
|
|
288
|
+
value: number;
|
|
289
|
+
}>;
|
|
290
|
+
FS: {
|
|
291
|
+
writeFile: (path: string, content: string | Uint8Array) => void;
|
|
292
|
+
readFile: (path: string, opts?: {
|
|
293
|
+
encoding: string;
|
|
294
|
+
}) => string | Uint8Array;
|
|
295
|
+
mkdir: (path: string) => void;
|
|
296
|
+
unmount: (path: string) => void;
|
|
297
|
+
};
|
|
298
|
+
[key: string]: unknown;
|
|
299
|
+
}
|
|
300
|
+
interface SceneObject {
|
|
301
|
+
name: string;
|
|
302
|
+
type: 'box' | 'sphere' | 'cylinder';
|
|
303
|
+
size: [number, number, number];
|
|
304
|
+
position: [number, number, number];
|
|
305
|
+
rgba: [number, number, number, number];
|
|
306
|
+
mass?: number;
|
|
307
|
+
freejoint?: boolean;
|
|
308
|
+
friction?: string;
|
|
309
|
+
solref?: string;
|
|
310
|
+
solimp?: string;
|
|
311
|
+
condim?: number;
|
|
312
|
+
}
|
|
313
|
+
interface XmlPatch {
|
|
314
|
+
target: string;
|
|
315
|
+
inject?: string;
|
|
316
|
+
injectAfter?: string;
|
|
317
|
+
replace?: [string, string];
|
|
318
|
+
}
|
|
319
|
+
type LocalMujocoFile = File;
|
|
320
|
+
interface LoadFromFilesOptions {
|
|
321
|
+
/** Entry MJCF/URDF file. Inferred from scene.xml, model.xml, robot.xml, or the first XML/URDF file when omitted. */
|
|
322
|
+
sceneFile?: string;
|
|
323
|
+
homeJoints?: number[];
|
|
324
|
+
xmlPatches?: XmlPatch[];
|
|
325
|
+
sceneObjects?: SceneObject[];
|
|
326
|
+
onReset?: (model: MujocoModel, data: MujocoData) => void;
|
|
327
|
+
}
|
|
328
|
+
interface SceneConfig {
|
|
329
|
+
/** Base URL for fetching model files. The loader fetches `src + sceneFile` and follows dependencies. */
|
|
330
|
+
src: string;
|
|
331
|
+
/** Entry MJCF XML or URDF file name, e.g. 'scene.xml' or 'robot.urdf'. */
|
|
332
|
+
sceneFile: string;
|
|
333
|
+
/** Browser-selected files for local MJCF/URDF loading. Preserves webkitRelativePath when available. */
|
|
334
|
+
files?: readonly LocalMujocoFile[];
|
|
335
|
+
sceneObjects?: SceneObject[];
|
|
336
|
+
homeJoints?: number[];
|
|
337
|
+
xmlPatches?: XmlPatch[];
|
|
338
|
+
onReset?: (model: MujocoModel, data: MujocoData) => void;
|
|
339
|
+
}
|
|
340
|
+
type ResourceSelector<TInfo, TName extends string = string> = TName | readonly TName[] | RegExp | ((info: TInfo) => boolean);
|
|
341
|
+
interface IkConfig {
|
|
342
|
+
/** MuJoCo site name for IK target. */
|
|
343
|
+
siteName: Sites;
|
|
344
|
+
/**
|
|
345
|
+
* Explicit joints for IK. When omitted, the controller infers scalar hinge/slide
|
|
346
|
+
* joints by walking from the site body to the model root.
|
|
347
|
+
*/
|
|
348
|
+
joints?: ResourceSelector<JointInfo, Joints>;
|
|
349
|
+
/** Explicit actuators for IK control output. */
|
|
350
|
+
actuators?: ResourceSelector<ActuatorInfo, Actuators>;
|
|
351
|
+
/**
|
|
352
|
+
* Number of joints to solve for, assuming legacy contiguous qpos/ctrl layout
|
|
353
|
+
* starting at index 0. Prefer inferred IK or `joints`/`actuators`.
|
|
354
|
+
*/
|
|
355
|
+
numJoints?: number;
|
|
356
|
+
/** Custom IK solver. When omitted, uses built-in Damped Least-Squares solver. */
|
|
357
|
+
ikSolveFn?: IKSolveFn;
|
|
358
|
+
/** DLS damping. Default: 0.01. */
|
|
359
|
+
damping?: number;
|
|
360
|
+
/** Max solver iterations. Default: 50. */
|
|
361
|
+
maxIterations?: number;
|
|
362
|
+
}
|
|
363
|
+
interface IkContextValue {
|
|
364
|
+
ikEnabledRef: React__default.RefObject<boolean>;
|
|
365
|
+
ikCalculatingRef: React__default.RefObject<boolean>;
|
|
366
|
+
ikTargetRef: React__default.RefObject<THREE.Group>;
|
|
367
|
+
siteIdRef: React__default.RefObject<number>;
|
|
368
|
+
setIkEnabled: (enabled: boolean) => void;
|
|
369
|
+
moveTarget: (pos: THREE.Vector3, duration?: number) => void;
|
|
370
|
+
syncTargetToSite: () => void;
|
|
371
|
+
solveIK: (pos: THREE.Vector3, quat: THREE.Quaternion, currentQ: number[]) => number[] | null;
|
|
372
|
+
getGizmoStats: () => {
|
|
373
|
+
pos: THREE.Vector3;
|
|
374
|
+
rot: THREE.Euler;
|
|
375
|
+
} | null;
|
|
376
|
+
}
|
|
377
|
+
interface SceneMarker {
|
|
378
|
+
id: number;
|
|
379
|
+
position: THREE.Vector3;
|
|
380
|
+
label: string;
|
|
381
|
+
}
|
|
382
|
+
interface PhysicsConfig {
|
|
383
|
+
gravity?: [number, number, number];
|
|
384
|
+
timestep?: number;
|
|
385
|
+
substeps?: number;
|
|
386
|
+
paused?: boolean;
|
|
387
|
+
speed?: number;
|
|
388
|
+
}
|
|
389
|
+
type IKSolveFn = (pos: THREE.Vector3, quat: THREE.Quaternion, currentQ: number[], context?: IKSolveContext) => number[] | null;
|
|
390
|
+
interface IKSolveContext {
|
|
391
|
+
model: MujocoModel;
|
|
392
|
+
data: MujocoData;
|
|
393
|
+
siteId: number;
|
|
394
|
+
controlGroup: ControlGroupInfo;
|
|
395
|
+
}
|
|
396
|
+
type PhysicsStepCallback = (model: MujocoModel, data: MujocoData) => void;
|
|
397
|
+
interface StateSnapshot {
|
|
398
|
+
time: number;
|
|
399
|
+
qpos: Float64Array;
|
|
400
|
+
qvel: Float64Array;
|
|
401
|
+
ctrl: Float64Array;
|
|
402
|
+
act: Float64Array;
|
|
403
|
+
qfrc_applied: Float64Array;
|
|
404
|
+
}
|
|
405
|
+
interface BodyInfo {
|
|
406
|
+
id: number;
|
|
407
|
+
name: string;
|
|
408
|
+
mass: number;
|
|
409
|
+
parentId: number;
|
|
410
|
+
}
|
|
411
|
+
interface JointInfo {
|
|
412
|
+
id: number;
|
|
413
|
+
name: string;
|
|
414
|
+
type: number;
|
|
415
|
+
typeName: string;
|
|
416
|
+
range: [number, number];
|
|
417
|
+
limited: boolean;
|
|
418
|
+
bodyId: number;
|
|
419
|
+
qposAdr: number;
|
|
420
|
+
dofAdr: number;
|
|
421
|
+
}
|
|
422
|
+
interface GeomInfo {
|
|
423
|
+
id: number;
|
|
424
|
+
name: string;
|
|
425
|
+
type: number;
|
|
426
|
+
typeName: string;
|
|
427
|
+
size: [number, number, number];
|
|
428
|
+
bodyId: number;
|
|
429
|
+
}
|
|
430
|
+
interface SiteInfo {
|
|
431
|
+
id: number;
|
|
432
|
+
name: string;
|
|
433
|
+
bodyId: number;
|
|
434
|
+
}
|
|
435
|
+
interface ActuatorInfo {
|
|
436
|
+
id: number;
|
|
437
|
+
name: string;
|
|
438
|
+
range: [number, number];
|
|
439
|
+
}
|
|
440
|
+
interface ActuatedJointInfo extends JointInfo {
|
|
441
|
+
actuatorId: number;
|
|
442
|
+
actuatorName: string;
|
|
443
|
+
ctrlAdr: number;
|
|
444
|
+
ctrlRange: [number, number];
|
|
445
|
+
}
|
|
446
|
+
interface ControlJointInfo extends JointInfo {
|
|
447
|
+
actuatorId: number | null;
|
|
448
|
+
actuatorName: string | null;
|
|
449
|
+
ctrlAdr: number | null;
|
|
450
|
+
ctrlRange: [number, number] | null;
|
|
451
|
+
}
|
|
452
|
+
interface ControlGroupSelector {
|
|
453
|
+
/** Infer a kinematic chain from a MuJoCo site. */
|
|
454
|
+
siteName?: Sites;
|
|
455
|
+
/** Infer a kinematic chain from a body. */
|
|
456
|
+
bodyName?: Bodies;
|
|
457
|
+
/** Select joints by name, names, regex, or predicate. */
|
|
458
|
+
joints?: ResourceSelector<JointInfo, Joints>;
|
|
459
|
+
/** Select actuators by name, names, regex, or predicate. */
|
|
460
|
+
actuators?: ResourceSelector<ActuatorInfo, Actuators>;
|
|
461
|
+
}
|
|
462
|
+
interface ControlGroupInfo {
|
|
463
|
+
/** Joints in solve/control order. */
|
|
464
|
+
joints: ControlJointInfo[];
|
|
465
|
+
/** Actuators in control output order. */
|
|
466
|
+
actuators: ActuatorInfo[];
|
|
467
|
+
/** qpos addresses for scalar hinge/slide joints. */
|
|
468
|
+
qposAdr: number[];
|
|
469
|
+
/** dof addresses for scalar hinge/slide joints. */
|
|
470
|
+
dofAdr: number[];
|
|
471
|
+
/** ctrl addresses matching writable actuators. */
|
|
472
|
+
ctrlAdr: number[];
|
|
473
|
+
readQpos(data: MujocoData): Float64Array;
|
|
474
|
+
readCtrl(data: MujocoData): Float64Array;
|
|
475
|
+
writeQpos(data: MujocoData, values: ArrayLike<number>): void;
|
|
476
|
+
writeCtrl(data: MujocoData, values: ArrayLike<number>): void;
|
|
477
|
+
}
|
|
478
|
+
interface SensorInfo {
|
|
479
|
+
id: number;
|
|
480
|
+
name: string;
|
|
481
|
+
type: number;
|
|
482
|
+
typeName: string;
|
|
483
|
+
dim: number;
|
|
484
|
+
adr: number;
|
|
485
|
+
}
|
|
486
|
+
interface ContactInfo {
|
|
487
|
+
geom1: number;
|
|
488
|
+
geom1Name: string;
|
|
489
|
+
geom2: number;
|
|
490
|
+
geom2Name: string;
|
|
491
|
+
pos: [number, number, number];
|
|
492
|
+
depth: number;
|
|
493
|
+
}
|
|
494
|
+
interface RayHit {
|
|
495
|
+
point: THREE.Vector3;
|
|
496
|
+
bodyId: number;
|
|
497
|
+
geomId: number;
|
|
498
|
+
distance: number;
|
|
499
|
+
}
|
|
500
|
+
interface ModelOptions {
|
|
501
|
+
timestep: number;
|
|
502
|
+
gravity: [number, number, number];
|
|
503
|
+
integrator: number;
|
|
504
|
+
}
|
|
505
|
+
interface TrajectoryFrame {
|
|
506
|
+
time: number;
|
|
507
|
+
qpos: Float64Array;
|
|
508
|
+
qvel?: Float64Array;
|
|
509
|
+
ctrl?: Float64Array;
|
|
510
|
+
sensordata?: Float64Array;
|
|
511
|
+
}
|
|
512
|
+
interface TrajectoryData {
|
|
513
|
+
frames: TrajectoryFrame[];
|
|
514
|
+
fps: number;
|
|
515
|
+
}
|
|
516
|
+
type PlaybackState = 'idle' | 'playing' | 'paused' | 'completed';
|
|
517
|
+
interface KeyBinding {
|
|
518
|
+
actuator: Actuators;
|
|
519
|
+
delta?: number;
|
|
520
|
+
toggle?: [number, number];
|
|
521
|
+
set?: number;
|
|
522
|
+
}
|
|
523
|
+
interface KeyboardTeleopConfig {
|
|
524
|
+
bindings: Record<string, KeyBinding>;
|
|
525
|
+
enabled?: boolean;
|
|
526
|
+
}
|
|
527
|
+
interface PolicyConfig {
|
|
528
|
+
frequency: number;
|
|
529
|
+
onObservation: (model: MujocoModel, data: MujocoData) => Float32Array | Float64Array | number[];
|
|
530
|
+
onAction: (action: Float32Array | Float64Array | number[], model: MujocoModel, data: MujocoData) => void;
|
|
531
|
+
}
|
|
532
|
+
type ObservationOutput = 'float32' | 'float64';
|
|
533
|
+
interface ObservationConfig {
|
|
534
|
+
/** Include scalar simulation time. */
|
|
535
|
+
time?: boolean;
|
|
536
|
+
/** Include all qpos values. */
|
|
537
|
+
qpos?: boolean;
|
|
538
|
+
/** Include all qvel values. */
|
|
539
|
+
qvel?: boolean;
|
|
540
|
+
/** Include all ctrl values. */
|
|
541
|
+
ctrl?: boolean;
|
|
542
|
+
/** Include all actuator activation values. */
|
|
543
|
+
act?: boolean;
|
|
544
|
+
/** Include all raw sensordata values. */
|
|
545
|
+
sensordata?: boolean;
|
|
546
|
+
/** Include named sensor values in the configured order. */
|
|
547
|
+
sensors?: readonly Sensors[];
|
|
548
|
+
/** Include named site world positions in the configured order. */
|
|
549
|
+
sites?: readonly Sites[];
|
|
550
|
+
/** Include world gravity projected into each named body's local frame. */
|
|
551
|
+
projectedGravity?: Bodies | readonly Bodies[];
|
|
552
|
+
/** Output array type. Defaults to Float32Array. */
|
|
553
|
+
output?: ObservationOutput;
|
|
554
|
+
}
|
|
555
|
+
interface ObservationLayoutItem {
|
|
556
|
+
name: string;
|
|
557
|
+
start: number;
|
|
558
|
+
size: number;
|
|
559
|
+
}
|
|
560
|
+
interface ObservationResult {
|
|
561
|
+
values: Float32Array | Float64Array;
|
|
562
|
+
layout: ObservationLayoutItem[];
|
|
563
|
+
}
|
|
564
|
+
interface ObservationHandle {
|
|
565
|
+
/** Read a fresh observation from the current live MuJoCo model/data refs. */
|
|
566
|
+
read(): ObservationResult;
|
|
567
|
+
/** Read just the vector values for policy inference. */
|
|
568
|
+
readValues(): Float32Array | Float64Array;
|
|
569
|
+
}
|
|
570
|
+
interface DebugProps {
|
|
571
|
+
showGeoms?: boolean;
|
|
572
|
+
showSites?: boolean;
|
|
573
|
+
showJoints?: boolean;
|
|
574
|
+
showContacts?: boolean;
|
|
575
|
+
showCOM?: boolean;
|
|
576
|
+
showInertia?: boolean;
|
|
577
|
+
showTendons?: boolean;
|
|
578
|
+
}
|
|
579
|
+
interface IkGizmoProps {
|
|
580
|
+
controller: IkContextValue;
|
|
581
|
+
siteName?: string;
|
|
582
|
+
scale?: number;
|
|
583
|
+
onDrag?: (position: THREE.Vector3, quaternion: THREE.Quaternion) => void;
|
|
584
|
+
}
|
|
585
|
+
interface DragInteractionProps {
|
|
586
|
+
stiffness?: number;
|
|
587
|
+
showArrow?: boolean;
|
|
588
|
+
}
|
|
589
|
+
interface SceneLightsProps {
|
|
590
|
+
/** Override intensity for all MJCF lights. Default: 1.0. */
|
|
591
|
+
intensity?: number;
|
|
592
|
+
}
|
|
593
|
+
type ScenarioLightingPreset = 'studio' | 'warehouse' | 'low-light' | 'splat';
|
|
594
|
+
type SplatFormat = 'spz' | 'ply' | 'splat';
|
|
595
|
+
type SplatRendererKind = 'spark' | 'custom';
|
|
596
|
+
type SplatCollisionPrimitive = 'plane' | 'box' | 'sphere' | 'capsule' | 'mesh';
|
|
597
|
+
interface ScenarioCameraConfig {
|
|
598
|
+
jitter?: number;
|
|
599
|
+
exposure?: number;
|
|
600
|
+
noise?: number;
|
|
601
|
+
blur?: number;
|
|
602
|
+
}
|
|
603
|
+
interface SplatAssetConfig {
|
|
604
|
+
src: string;
|
|
605
|
+
/** Common browser-friendly splat format. Renderer-specific loaders may accept more. */
|
|
606
|
+
format?: SplatFormat;
|
|
607
|
+
/** Optional renderer hint. The library does not import renderer-specific code. */
|
|
608
|
+
renderer?: SplatRendererKind;
|
|
609
|
+
}
|
|
610
|
+
interface SplatScenarioConfig {
|
|
611
|
+
enabled: boolean;
|
|
612
|
+
/** Common browser-friendly splat format. Renderer-specific loaders may accept more. */
|
|
613
|
+
format?: SplatFormat;
|
|
614
|
+
src?: string;
|
|
615
|
+
requiresCollisionProxy?: boolean;
|
|
616
|
+
collisionProxy?: SplatCollisionProxyConfig;
|
|
617
|
+
}
|
|
618
|
+
interface SplatCollisionProxyConfig {
|
|
619
|
+
/** MJCF/XML file or artifact path that provides physics collision for the visual splat. */
|
|
620
|
+
xmlPath?: string;
|
|
621
|
+
/** Human-readable status for authoring and validation flows. */
|
|
622
|
+
status?: 'missing' | 'planned' | 'generated' | 'validated';
|
|
623
|
+
/** Primitive proxy shapes expected in the MJCF collision proxy. */
|
|
624
|
+
primitives?: SplatCollisionPrimitive[];
|
|
625
|
+
/** Optional notes that should travel with scene variants and rollout metadata. */
|
|
626
|
+
notes?: string[];
|
|
627
|
+
}
|
|
628
|
+
interface PairedSplatEnvironmentConfig {
|
|
629
|
+
id: string;
|
|
630
|
+
label: string;
|
|
631
|
+
description?: string;
|
|
632
|
+
/** Visual-only Gaussian splat asset. */
|
|
633
|
+
splat: SplatAssetConfig;
|
|
634
|
+
/** MJCF/XML contact geometry paired with the visual splat. */
|
|
635
|
+
collisionProxy: SplatCollisionProxyConfig & {
|
|
636
|
+
xmlPath: string;
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
interface SplatEnvironmentMetadataInput {
|
|
640
|
+
environment?: PairedSplatEnvironmentConfig;
|
|
641
|
+
src?: string;
|
|
642
|
+
format?: SplatFormat;
|
|
643
|
+
collisionProxy?: SplatCollisionProxyConfig;
|
|
644
|
+
}
|
|
645
|
+
interface SplatEnvironmentMetadata {
|
|
646
|
+
src?: string;
|
|
647
|
+
format: SplatFormat;
|
|
648
|
+
collisionProxy?: SplatCollisionProxyConfig;
|
|
649
|
+
userData: Record<string, unknown>;
|
|
650
|
+
}
|
|
651
|
+
interface VisualScenarioConfig {
|
|
652
|
+
id?: string;
|
|
653
|
+
label?: string;
|
|
654
|
+
seed?: number;
|
|
655
|
+
lighting?: ScenarioLightingPreset;
|
|
656
|
+
environment?: string;
|
|
657
|
+
camera?: ScenarioCameraConfig;
|
|
658
|
+
splat?: SplatScenarioConfig;
|
|
659
|
+
}
|
|
660
|
+
interface ScenarioLightingProps {
|
|
661
|
+
preset?: ScenarioLightingPreset;
|
|
662
|
+
intensity?: number;
|
|
663
|
+
castShadow?: boolean;
|
|
664
|
+
}
|
|
665
|
+
interface SplatEnvironmentProps extends Omit<ThreeElements['group'], 'ref'> {
|
|
666
|
+
environment?: PairedSplatEnvironmentConfig;
|
|
667
|
+
src?: string;
|
|
668
|
+
format?: SplatFormat;
|
|
669
|
+
collisionProxy?: ReactNode;
|
|
670
|
+
collisionProxyMetadata?: SplatCollisionProxyConfig;
|
|
671
|
+
showPlaceholder?: boolean;
|
|
672
|
+
}
|
|
673
|
+
type TrajectoryInput = TrajectoryFrame[] | number[][];
|
|
674
|
+
interface TrajectoryPlayerProps {
|
|
675
|
+
trajectory: TrajectoryInput;
|
|
676
|
+
fps?: number;
|
|
677
|
+
speed?: number;
|
|
678
|
+
loop?: boolean;
|
|
679
|
+
playing?: boolean;
|
|
680
|
+
mode?: 'kinematic' | 'physics';
|
|
681
|
+
onFrame?: (frameIdx: number) => void;
|
|
682
|
+
onComplete?: () => void;
|
|
683
|
+
onStateChange?: (state: PlaybackState) => void;
|
|
684
|
+
}
|
|
685
|
+
interface ContactListenerProps {
|
|
686
|
+
body: Bodies;
|
|
687
|
+
onContactEnter?: (info: ContactInfo) => void;
|
|
688
|
+
onContactExit?: (info: ContactInfo) => void;
|
|
689
|
+
}
|
|
690
|
+
interface BodyProps {
|
|
691
|
+
name: Bodies;
|
|
692
|
+
type: 'box' | 'sphere' | 'cylinder';
|
|
693
|
+
size: [number, number, number];
|
|
694
|
+
position?: [number, number, number];
|
|
695
|
+
rgba?: [number, number, number, number];
|
|
696
|
+
mass?: number;
|
|
697
|
+
freejoint?: boolean;
|
|
698
|
+
friction?: string;
|
|
699
|
+
solref?: string;
|
|
700
|
+
solimp?: string;
|
|
701
|
+
condim?: number;
|
|
702
|
+
children?: ReactNode;
|
|
703
|
+
}
|
|
704
|
+
interface MujocoSimAPI {
|
|
705
|
+
readonly status: 'loading' | 'ready' | 'error';
|
|
706
|
+
readonly config: SceneConfig;
|
|
707
|
+
reset(): void;
|
|
708
|
+
setSpeed(multiplier: number): void;
|
|
709
|
+
togglePause(): boolean;
|
|
710
|
+
setPaused(paused: boolean): void;
|
|
711
|
+
step(n?: number): void;
|
|
712
|
+
getTime(): number;
|
|
713
|
+
getTimestep(): number;
|
|
714
|
+
applyKeyframe(nameOrIndex: Keyframes | number): void;
|
|
715
|
+
saveState(): StateSnapshot;
|
|
716
|
+
restoreState(snapshot: StateSnapshot): void;
|
|
717
|
+
setQpos(values: Float64Array | number[]): void;
|
|
718
|
+
setQvel(values: Float64Array | number[]): void;
|
|
719
|
+
getQpos(): Float64Array;
|
|
720
|
+
getQvel(): Float64Array;
|
|
721
|
+
setCtrl(nameOrValues: Actuators | Record<Actuators, number>, value?: number): void;
|
|
722
|
+
getCtrl(): Float64Array;
|
|
723
|
+
getControlMap(): ControlGroupInfo;
|
|
724
|
+
getActuatedJoints(): ActuatedJointInfo[];
|
|
725
|
+
resolveControlGroup(selector: ControlGroupSelector): ControlGroupInfo | null;
|
|
726
|
+
applyForce(bodyName: Bodies, force: THREE.Vector3, point?: THREE.Vector3): void;
|
|
727
|
+
applyTorque(bodyName: Bodies, torque: THREE.Vector3): void;
|
|
728
|
+
setExternalForce(bodyName: Bodies, force: THREE.Vector3, torque: THREE.Vector3): void;
|
|
729
|
+
applyGeneralizedForce(values: Float64Array | number[]): void;
|
|
730
|
+
getSensorData(name: Sensors): Float64Array | null;
|
|
731
|
+
getContacts(): ContactInfo[];
|
|
732
|
+
getBodies(): BodyInfo[];
|
|
733
|
+
getJoints(): JointInfo[];
|
|
734
|
+
getGeoms(): GeomInfo[];
|
|
735
|
+
getSites(): SiteInfo[];
|
|
736
|
+
getActuators(): ActuatorInfo[];
|
|
737
|
+
getSensors(): SensorInfo[];
|
|
738
|
+
getModelOption(): ModelOptions;
|
|
739
|
+
setGravity(g: [number, number, number]): void;
|
|
740
|
+
setTimestep(dt: number): void;
|
|
741
|
+
raycast(origin: THREE.Vector3, direction: THREE.Vector3, maxDist?: number): RayHit | null;
|
|
742
|
+
getKeyframeNames(): string[];
|
|
743
|
+
getKeyframeCount(): number;
|
|
744
|
+
loadScene(newConfig: SceneConfig): Promise<void>;
|
|
745
|
+
loadFromFiles(files: FileList | readonly LocalMujocoFile[], options?: LoadFromFilesOptions): Promise<void>;
|
|
746
|
+
addBody(body: SceneObject): Promise<void>;
|
|
747
|
+
removeBody(name: Bodies): Promise<void>;
|
|
748
|
+
recompile(patches?: XmlPatch[]): Promise<void>;
|
|
749
|
+
getCanvasSnapshot(width?: number, height?: number, mimeType?: string): string;
|
|
750
|
+
project2DTo3D(x: number, y: number, cameraPos: THREE.Vector3, lookAt: THREE.Vector3): {
|
|
751
|
+
point: THREE.Vector3;
|
|
752
|
+
bodyId: number;
|
|
753
|
+
geomId: number;
|
|
754
|
+
} | null;
|
|
755
|
+
setBodyMass(name: Bodies, mass: number): void;
|
|
756
|
+
setGeomFriction(name: Geoms, friction: [number, number, number]): void;
|
|
757
|
+
setGeomSize(name: Geoms, size: [number, number, number]): void;
|
|
758
|
+
readonly mjModelRef: React__default.RefObject<MujocoModel | null>;
|
|
759
|
+
readonly mjDataRef: React__default.RefObject<MujocoData | null>;
|
|
760
|
+
}
|
|
761
|
+
type MujocoCanvasProps = Omit<CanvasProps, 'onError'> & {
|
|
762
|
+
config: SceneConfig;
|
|
763
|
+
onReady?: (api: MujocoSimAPI) => void;
|
|
764
|
+
onError?: (error: Error) => void;
|
|
765
|
+
onStep?: (time: number) => void;
|
|
766
|
+
onSelection?: (bodyId: number, name: string) => void;
|
|
767
|
+
gravity?: [number, number, number];
|
|
768
|
+
timestep?: number;
|
|
769
|
+
substeps?: number;
|
|
770
|
+
paused?: boolean;
|
|
771
|
+
speed?: number;
|
|
772
|
+
interpolate?: boolean;
|
|
773
|
+
};
|
|
774
|
+
interface SitePositionResult {
|
|
775
|
+
position: React__default.RefObject<THREE.Vector3>;
|
|
776
|
+
quaternion: React__default.RefObject<THREE.Quaternion>;
|
|
777
|
+
}
|
|
778
|
+
interface MujocoContextValue {
|
|
779
|
+
mujoco: MujocoModule | null;
|
|
780
|
+
status: 'loading' | 'ready' | 'error';
|
|
781
|
+
error: string | null;
|
|
782
|
+
}
|
|
783
|
+
/** @deprecated Use `SensorHandle` instead. */
|
|
784
|
+
interface SensorResult {
|
|
785
|
+
value: React__default.RefObject<Float64Array>;
|
|
786
|
+
size: number;
|
|
787
|
+
}
|
|
788
|
+
interface CtrlHandle {
|
|
789
|
+
/** Read the current ctrl value. */
|
|
790
|
+
read(): number;
|
|
791
|
+
/** Write a ctrl value (goes directly to data.ctrl). */
|
|
792
|
+
write(value: number): void;
|
|
793
|
+
/** Actuator name. */
|
|
794
|
+
name: Actuators;
|
|
795
|
+
/** Actuator control range [min, max]. */
|
|
796
|
+
range: [number, number];
|
|
797
|
+
}
|
|
798
|
+
interface SensorHandle {
|
|
799
|
+
/** Read the current sensor data. */
|
|
800
|
+
read(): Float64Array;
|
|
801
|
+
/** Sensor dimensionality. */
|
|
802
|
+
dim: number;
|
|
803
|
+
/** Sensor name. */
|
|
804
|
+
name: Sensors;
|
|
805
|
+
}
|
|
806
|
+
interface BodyStateResult {
|
|
807
|
+
position: React__default.RefObject<THREE.Vector3>;
|
|
808
|
+
quaternion: React__default.RefObject<THREE.Quaternion>;
|
|
809
|
+
linearVelocity: React__default.RefObject<THREE.Vector3>;
|
|
810
|
+
angularVelocity: React__default.RefObject<THREE.Vector3>;
|
|
811
|
+
}
|
|
812
|
+
interface JointStateResult {
|
|
813
|
+
position: React__default.RefObject<number | Float64Array>;
|
|
814
|
+
velocity: React__default.RefObject<number | Float64Array>;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export { type BodyInfo as $, type ActuatedJointInfo as A, type BodyProps as B, type ControlGroupInfo as C, type DragInteractionProps as D, type SensorHandle as E, type SensorInfo as F, type GeomInfo as G, type JointStateResult as H, type IkConfig as I, type Joints as J, type Bodies as K, type BodyStateResult as L, type MujocoContextValue as M, type Actuators as N, type ObservationConfig as O, type PhysicsStepCallback as P, type CtrlHandle as Q, type ContactInfo as R, type SceneConfig as S, type TrajectoryPlayerProps as T, type KeyboardTeleopConfig as U, type VisualScenarioConfig as V, type PolicyConfig as W, type ObservationHandle as X, type TrajectoryInput as Y, type PlaybackState as Z, type TrajectoryFrame as _, type MujocoCanvasProps as a, type ControlJointInfo as a0, type Geoms as a1, type IKSolveFn as a2, type JointInfo as a3, type KeyBinding as a4, type Keyframes as a5, type ModelOptions as a6, type MujocoContact as a7, type MujocoContactArray as a8, type ObservationLayoutItem as a9, getContact as aA, registerRobotResources as aB, type ObservationOutput as aa, type PhysicsConfig as ab, type RayHit as ac, type Register as ad, type RegisteredRobotMap as ae, type ResourceSelector as af, RobotActuators as ag, RobotBodies as ah, RobotGeoms as ai, RobotJoints as aj, RobotKeyframes as ak, type RobotResource as al, RobotResources as am, RobotSensors as an, RobotSites as ao, type Robots as ap, type ScenarioCameraConfig as aq, type SceneMarker as ar, type SceneObject as as, type SensorResult as at, type SiteInfo as au, type SplatAssetConfig as av, type SplatScenarioConfig as aw, type StateSnapshot as ax, type TrajectoryData as ay, type XmlPatch as az, type MujocoSimAPI as b, type MujocoModule as c, type MujocoModel as d, type MujocoData as e, type ControlGroupSelector as f, type ObservationResult as g, type IkContextValue as h, type IkGizmoProps as i, type SceneLightsProps as j, type ScenarioLightingProps as k, type SplatEnvironmentProps as l, type PairedSplatEnvironmentConfig as m, type SplatFormat as n, type SplatCollisionProxyConfig as o, type SplatRendererKind as p, type SplatCollisionPrimitive as q, type ScenarioLightingPreset as r, type SplatEnvironmentMetadataInput as s, type SplatEnvironmentMetadata as t, type DebugProps as u, type ContactListenerProps as v, type ActuatorInfo as w, type Sites as x, type SitePositionResult as y, type Sensors as z };
|