Skip to content

Commit

Permalink
fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
Vittorio Caggiano committed May 5, 2023
1 parent c45a733 commit a8a64a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist/mujoco_wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ export enum mjtLRMode {
export interface Model {
new (filename : string) : Model;
load_from_xml(str: string): Model;
/** Free the memory associated with the model */
free(): void;
/** Retrive various parameters of the current simulation */
getOptions(): any;
// MODEL_INTERFACE
Expand Down Expand Up @@ -1413,15 +1415,19 @@ export interface Model {

export interface State {
new (model : Model) : State;
/** Free the memory associated with the state */
free(): void;
}

export interface Simulation {
new (model : Model, state : State) : Simulation;
state() : State;
model() : Model;
/** Free the memory associated with both the model and the state in the simulation */
free() : void;
/** Apply cartesian force and torque (outside xfrc_applied mechanism) */
applyForce(fx: number, fy: number, fz: number, tx: number, ty: number, tz: number, px: number, py: number, pz: number, body_id: number): void;

/** sets perturb pos,quat in d->mocap when selected body is mocap, and in d->qpos otherwise
* d->qpos written only if flg_paused and subtree root for selected body has free joint */
applyPose(bodyID: number,
Expand Down
Binary file modified dist/mujoco_wasm.wasm
Binary file not shown.

0 comments on commit a8a64a2

Please sign in to comment.