mujoco-react 8.9.1 → 8.9.2

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 CHANGED
@@ -32,7 +32,6 @@ export default defineConfig({
32
32
  mujocoReact({
33
33
  models: {
34
34
  franka: "models/panda/scene.xml",
35
- spot: "models/spot/scene.xml",
36
35
  },
37
36
  }),
38
37
  ],
@@ -57,15 +56,6 @@ const generatedRobotResources = {
57
56
  geoms: { floor: "floor" },
58
57
  keyframes: { home: "home" },
59
58
  },
60
- spot: {
61
- actuators: { fl_hx: "fl_hx", fl_hy: "fl_hy", fl_kn: "fl_kn" },
62
- sensors: {},
63
- bodies: { body: "body", fl_hip: "fl_hip", fl_uleg: "fl_uleg" },
64
- joints: { fl_hx: "fl_hx", fl_hy: "fl_hy", fl_kn: "fl_kn" },
65
- sites: {},
66
- geoms: { floor: "floor" },
67
- keyframes: { home: "home" },
68
- },
69
59
  };
70
60
 
71
61
  registerRobotResources(generatedRobotResources);
@@ -82,19 +72,10 @@ declare module "mujoco-react" {
82
72
  geoms: "floor";
83
73
  keyframes: "home";
84
74
  };
85
- spot: {
86
- actuators: "fl_hx" | "fl_hy" | "fl_kn";
87
- sensors: never;
88
- bodies: "body" | "fl_hip" | "fl_uleg";
89
- joints: "fl_hx" | "fl_hy" | "fl_kn";
90
- sites: never;
91
- geoms: "floor";
92
- keyframes: "home";
93
- };
94
75
  };
95
- actuators: "joint1" | "joint2" | "joint3" | "gripper" | "fl_hx" | "fl_hy" | "fl_kn";
76
+ actuators: "joint1" | "joint2" | "joint3" | "gripper";
96
77
  sensors: "force_sensor" | "torque_sensor";
97
- bodies: "link0" | "link1" | "hand" | "body" | "fl_hip" | "fl_uleg";
78
+ bodies: "link0" | "link1" | "hand";
98
79
  }
99
80
  }
100
81
  ```
@@ -104,7 +85,7 @@ Once generated, hooks like `useCtrl`, `useSensor`, `useBodyState`, and API metho
104
85
  Non-Vite projects can generate the same file with:
105
86
 
106
87
  ```bash
107
- npx mujoco-react codegen franka=models/panda/scene.xml spot=models/spot/scene.xml
88
+ npx mujoco-react codegen franka=models/panda/scene.xml
108
89
  ```
109
90
 
110
91
  ## Load a Model
@@ -6,7 +6,7 @@ import { generateMujocoRegister } from '../dist/vite.js';
6
6
  const usage = `
7
7
  Usage:
8
8
  mujoco-react codegen <scene.xml> [...more.xml] [--out src/mujoco-register.gen.ts] [--watch]
9
- mujoco-react codegen franka=models/panda/scene.xml spot=models/spot/scene.xml
9
+ mujoco-react codegen franka=models/panda/scene.xml
10
10
 
11
11
  Vite users usually do not need this command. Prefer:
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mujoco-react",
3
- "version": "8.9.1",
3
+ "version": "8.9.2",
4
4
  "description": "Composable React Three Fiber building blocks for MuJoCo WASM simulations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",