Skip to content

Commit b60291e

Browse files
committed
Refresh docs for flattened dartpy API
1 parent 614dcf6 commit b60291e

File tree

21 files changed

+2857
-2873
lines changed

21 files changed

+2857
-2873
lines changed

docs/onboarding/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ graph TB
561561
- `dartpy` (top-level) - Core classes/functions (math, dynamics, collision, simulation, constraint, optimizer) exposed in snake_case
562562
- `dartpy.io` - File parsers (URDF, SDF, SKEL, MJCF) [alias for legacy `utils`]
563563
- `dartpy.gui` - 3D visualization with OSG and ImGui
564-
- Legacy `dartpy.common`/`math`/`dynamics`/`collision`/`simulation`/`constraint`/`optimizer`/`utils` remain importable in DART 7.x but emit `DeprecationWarning` and will be removed in DART 8.0.
564+
- Legacy `dartpy`/`math`/`dynamics`/`collision`/`simulation`/`constraint`/`optimizer`/`utils` remain importable in DART 7.x but emit `DeprecationWarning` and will be removed in DART 8.0.
565565

566566
**Key Files**:
567567

@@ -818,7 +818,7 @@ sequenceDiagram
818818
Python->>dartpy: world = dartpy.World()
819819
dartpy->>DART: World::create()
820820
821-
Python->>dartpy: skel = dartpy.dynamics.Skeleton.create()
821+
Python->>dartpy: skel = dartpy.Skeleton.create()
822822
dartpy->>DART: Skeleton::create()
823823
824824
Python->>dartpy: world.add_skeleton(skel)

docs/onboarding/python-bindings.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,9 @@ dartpy/
5656

5757
- Core classes/functions (dynamics, collision, math, simulation, constraint,
5858
optimizer) are promoted onto `dartpy` directly.
59-
- Legacy module paths (`dartpy.common`, `dartpy.math`, `dartpy.dynamics`,
60-
`dartpy.collision`, `dartpy.simulation`, `dartpy.constraint`,
61-
`dartpy.optimizer`, `dartpy.utils`) remain importable but emit
62-
`DeprecationWarning` in DART 7.x and are slated for removal in DART 8.0.
63-
Toggle with `DARTPY_WARN_ON_LEGACY_MODULES=0` (silence) or
64-
`DARTPY_ENABLE_LEGACY_MODULES=0` (opt out entirely).
59+
- Legacy submodules remain importable in DART 7.x but will be removed in DART
60+
8.0. Toggle deprecation handling with `DARTPY_WARN_ON_LEGACY_MODULES` or
61+
`DARTPY_ENABLE_LEGACY_MODULES`.
6562

6663
**Source**: See `python/dartpy/` directory for module implementations
6764

@@ -85,10 +82,10 @@ import dartpy as dart
8582
import numpy as np
8683

8784
# NumPy arrays automatically convert to Eigen types
88-
skel.setPositions(np.array([0.1, 0.2, 0.3]))
85+
skel.set_positions(np.array([0.1, 0.2, 0.3]))
8986

9087
# Eigen types automatically convert to NumPy arrays
91-
positions = skel.getPositions() # Returns ndarray
88+
positions = skel.get_positions() # Returns ndarray
9289
```
9390

9491
### OSG Bindings Design
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.collision
2-
================
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.collision
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:

docs/python_api/modules/common.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.common
2-
=============
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.common
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.constraint
2-
=================
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.constraint
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.dynamics
2-
===============
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.dynamics
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:

docs/python_api/modules/gui.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ dartpy.gui
33

44
.. automodule:: dartpy.gui
55
:members:
6-
:undoc-members:
7-
:show-inheritance:

docs/python_api/modules/math.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.math
2-
============
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.math
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.optimizer
2-
================
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.optimizer
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dartpy.simulation
2-
=================
1+
dartpy
2+
======
33

4-
.. automodule:: dartpy.simulation
4+
.. note:: Legacy submodules will be removed in DART 8.0; use top-level `dartpy`.
5+
6+
.. automodule:: dartpy
57
:members:
6-
:undoc-members:
7-
:show-inheritance:

0 commit comments

Comments
 (0)