Skip to content

Commit 7644b00

Browse files
chore: release v0.8.0
1 parent cd586fd commit 7644b00

74 files changed

Lines changed: 8452 additions & 201 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

api_md/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# motrixsim Agent API
2+
3+
## Modules
4+
5+
- [`motrixsim`](./modules/motrixsim.md)
6+
- [`motrixsim.ik`](./modules/motrixsim.ik.md)
7+
- [`motrixsim.osc`](./modules/motrixsim.osc.md)
8+
- [`motrixsim.render`](./modules/motrixsim.render.md)
9+
- [`motrixsim.render.widgets`](./modules/motrixsim.render.widgets.md)
10+
- [`motrixsim.usd`](./modules/motrixsim.usd.md)
11+
- [`motrixsim.viewer`](./modules/motrixsim.viewer.md)

api_md/modules/motrixsim.ik.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# motrixsim.ik
2+
3+
## Classes
4+
5+
- [`DlsSolver`](../symbols/motrixsim.ik.DlsSolver.md) - Use Damped Least Squares (DLS) method to solve inverse kinematics problem.
6+
- [`GaussNewtonSolver`](../symbols/motrixsim.ik.GaussNewtonSolver.md) - Use gauss newton iterative method to solve inverse kinematics problem.
7+
- [`IkChain`](../symbols/motrixsim.ik.IkChain.md) - Represents a kinematic chain for inverse kinematics (IK) solving.

api_md/modules/motrixsim.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# motrixsim
2+
3+
## Classes
4+
5+
- [`Actuator`](../symbols/motrixsim.Actuator.md) - The base Actuator class provides access to common actuator properties and control.
6+
- [`AdhesionActuator`](../symbols/motrixsim.AdhesionActuator.md) - Adhesion actuator (MJCF ``<adhesion>``). Generates adhesion force on contact surfaces.
7+
- [`Body`](../symbols/motrixsim.Body.md) - The Body object represents a rigid body in the scene.
8+
- [`Camera`](../symbols/motrixsim.Camera.md) - The Camera object in the scene.
9+
- [`CameraMgr`](../symbols/motrixsim.CameraMgr.md)
10+
- [`ContactQuery`](../symbols/motrixsim.ContactQuery.md)
11+
- [`DisjointIndices`](../symbols/motrixsim.DisjointIndices.md)
12+
- [`FloatingBase`](../symbols/motrixsim.FloatingBase.md) - The FloatingBase object represents a floating base in the scene.
13+
- [`GeneralActuator`](../symbols/motrixsim.GeneralActuator.md) - General actuator (MJCF ``<general>``).
14+
- [`Geom`](../symbols/motrixsim.Geom.md) - The Geom object represents a geometry in the scene.
15+
- [`HField`](../symbols/motrixsim.HField.md) - The HField object represents a height field terrain in the scene.
16+
- [`Joint`](../symbols/motrixsim.Joint.md) - The Joint object represents a joint in the scene.
17+
- [`Keyframe`](../symbols/motrixsim.Keyframe.md) - The Keyframe object represents a keyframe in the scene.
18+
- [`Link`](../symbols/motrixsim.Link.md) - The Link object represents a kinematic link in the scene.
19+
- [`Mocap`](../symbols/motrixsim.Mocap.md) - The Mocap object represents a motion capture body in the scene. it can will participate in the
20+
- [`MotorActuator`](../symbols/motrixsim.MotorActuator.md) - Motor actuator (MJCF ``<motor>``). Direct torque/force control with fixed gain = 1.0.
21+
- [`Options`](../symbols/motrixsim.Options.md) - The Options object represents the simulation options.
22+
- [`PositionActuator`](../symbols/motrixsim.PositionActuator.md) - Position actuator (MJCF ``<position>``).
23+
- [`SceneData`](../symbols/motrixsim.SceneData.md) - The SceneData object represents the simulation state.
24+
- [`SceneModel`](../symbols/motrixsim.SceneModel.md) - The SceneModel object represents the entire simulation world.
25+
- [`Shape`](../symbols/motrixsim.Shape.md) - The shape type of a collider.
26+
- [`Site`](../symbols/motrixsim.Site.md) - The Site object represents a reference point or marker in the scene.
27+
- [`VelocityActuator`](../symbols/motrixsim.VelocityActuator.md) - Velocity actuator (MJCF ``<velocity>``).
28+
29+
## Functions
30+
31+
### forward_kinematic
32+
33+
```python
34+
def forward_kinematic(model: SceneModel, data: SceneData) -> None
35+
```
36+
37+
Run forward kinematic only.
38+
39+
Args:
40+
model: The scene model.
41+
data: The scene data.
42+
43+
### load_mjcf_str
44+
45+
```python
46+
def load_mjcf_str(mjcf: str) -> SceneModel
47+
```
48+
49+
Load a model from a string containing MJCF data.
50+
51+
Args:
52+
mjcf: The MJCF data as a string.
53+
54+
Returns:
55+
SceneModel: The loaded scene model.
56+
57+
### load_model
58+
59+
```python
60+
def load_model(path: str) -> SceneModel
61+
```
62+
63+
Load a model from the given file path.
64+
65+
Args:
66+
path: The path to the model file.
67+
currently mjcf and urdf are supported.
68+
69+
Returns:
70+
SceneModel: The loaded scene model.
71+
72+
### load_usd
73+
74+
```python
75+
def load_usd(usd_path: str | Path, deduplicate_vertices: bool = True) -> SceneModel
76+
```
77+
78+
Load a USD file and return a SceneModel ready for simulation.
79+
80+
Args:
81+
usd_path: Path to the USD file (.usd, .usda, .usdc, .usdz).
82+
deduplicate_vertices: If True (default), merge vertices with identical attributes.
83+
84+
### step
85+
86+
```python
87+
def step(model: SceneModel, data: SceneData) -> None
88+
```
89+
90+
Advance the simulation by one step.
91+
92+
Args:
93+
model: The scene model.
94+
data: The scene data.

api_md/modules/motrixsim.osc.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# motrixsim.osc
2+
3+
## Classes
4+
5+
- [`OscSolver`](../symbols/motrixsim.osc.OscSolver.md) - Operational Space Controller Solver.

api_md/modules/motrixsim.render.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# motrixsim.render
2+
3+
## Classes
4+
5+
- [`CameraViewport`](../symbols/motrixsim.render.CameraViewport.md)
6+
- [`CaptureTask`](../symbols/motrixsim.render.CaptureTask.md)
7+
- [`Color`](../symbols/motrixsim.render.Color.md) - A color in RGBA format, where each component is a float in the range [0.0, 1.0].
8+
- [`Image`](../symbols/motrixsim.render.Image.md)
9+
- [`ImageWidget`](../symbols/motrixsim.render.ImageWidget.md)
10+
- [`Input`](../symbols/motrixsim.render.Input.md) - The Input object represents the input events of the render app.
11+
- [`InvalidArgumentError`](../symbols/motrixsim.render.InvalidArgumentError.md)
12+
- [`InvalidFileError`](../symbols/motrixsim.render.InvalidFileError.md)
13+
- [`Layout`](../symbols/motrixsim.render.Layout.md) - Layout configuration for camera viewport widgets.
14+
- [`OtherRenderError`](../symbols/motrixsim.render.OtherRenderError.md)
15+
- [`RenderApp`](../symbols/motrixsim.render.RenderApp.md) - The RenderApp class is responsible for rendering the simulation scene.
16+
- [`RenderCamera`](../symbols/motrixsim.render.RenderCamera.md)
17+
- [`RenderClosedError`](../symbols/motrixsim.render.RenderClosedError.md)
18+
- [`RenderError`](../symbols/motrixsim.render.RenderError.md)
19+
- [`RenderGizmos`](../symbols/motrixsim.render.RenderGizmos.md) - Gizmos module for rendering simple shapes in immediate mode.
20+
- [`RenderOpt`](../symbols/motrixsim.render.RenderOpt.md) - The RenderOpt object represents the options of the render app.
21+
- [`RenderSettings`](../symbols/motrixsim.render.RenderSettings.md) - The global render settings for render app.
22+
- [`RenderUI`](../symbols/motrixsim.render.RenderUI.md) - The RenderUI object represents the user interface of the render app.
23+
- [`RenderWidgets`](../symbols/motrixsim.render.RenderWidgets.md) - Widgets module for creating UI widgets in the render window.
24+
- [`SystemCamera`](../symbols/motrixsim.render.SystemCamera.md)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# motrixsim.render.widgets
2+
3+
## Classes
4+
5+
- [`CameraViewport`](../symbols/motrixsim.render.widgets.CameraViewport.md)
6+
- [`ImageWidget`](../symbols/motrixsim.render.widgets.ImageWidget.md)

api_md/modules/motrixsim.usd.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# motrixsim.usd
2+
3+
## Functions
4+
5+
### load_usd
6+
7+
```python
8+
def load_usd(usd_path: str | Path, deduplicate_vertices: bool = True) -> SceneModel
9+
```
10+
11+
Load a USD file and return a SceneModel ready for simulation.
12+
13+
Args:
14+
usd_path: Path to the USD file (.usd, .usda, .usdc, .usdz).
15+
deduplicate_vertices: If True (default), merge vertices with identical attributes.

api_md/modules/motrixsim.viewer.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# motrixsim.viewer
2+
3+
## Functions
4+
5+
### launch
6+
7+
```python
8+
def launch(model: Optional[SceneModel] = None, data: Optional[Any] = None, callback: Optional[Any] = None) -> None
9+
```
10+
11+
Launch a managed viewer with optional model and data.
12+
13+
This function provides a simplified interface similar to MuJoCo's managed viewer.
14+
It blocks until the viewer window is closed, automatically handling the physics
15+
simulation loop and rendering.
16+
17+
Args:
18+
model: The scene model to simulate and visualize.
19+
If not provided, loads a default sample model.
20+
data: The scene data containing the initial state.
21+
If not provided, creates default data from the model.
22+
callback: A callback function called at each physics step.

0 commit comments

Comments
 (0)