Skip to content

Commit c2118a2

Browse files
awoll-bdaiexploy-bot
authored andcommitted
Update documentation (#23)
GitOrigin-RevId: 18533671ca7c4d6c5f7b3ea26719fe019946f965
1 parent 9bdd388 commit c2118a2

14 files changed

Lines changed: 264 additions & 191 deletions

docs/api/cpp/index.rst

Lines changed: 148 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,151 @@
1-
C++ API Reference
1+
C++ Controller API
22
==================
33

4-
This section contains the C++ API documentation generated from the source code.
4+
High-performance C++ controller for real-time policy execution with ONNX Runtime.
55

6-
.. doxygenindex::
7-
:project: Exporter
6+
Overview
7+
--------
8+
9+
The C++ controller provides a real-time inference system for deploying RL policies
10+
exported to ONNX format. It features:
11+
12+
* **ONNX Runtime Integration** - Efficient model execution
13+
* **Extensible Interface Design** - Easy integration with different robot platforms
14+
* **Component-Based Architecture** - Modular input/output handling
15+
* **Automatic Component Matching** - Maps ONNX model I/O to robot interfaces
16+
17+
Core Classes
18+
------------
19+
20+
Controller
21+
~~~~~~~~~~
22+
23+
.. doxygenclass:: exploy::control::OnnxRLController
24+
:members:
25+
:undoc-members:
26+
27+
Context Management
28+
~~~~~~~~~~~~~~~~~~
29+
30+
.. doxygenclass:: exploy::control::OnnxContext
31+
:members:
32+
:undoc-members:
33+
34+
ONNX Runtime
35+
~~~~~~~~~~~~
36+
37+
.. doxygenclass:: exploy::control::OnnxRuntime
38+
:members:
39+
:undoc-members:
40+
41+
Interfaces
42+
----------
43+
44+
These abstract interfaces define the contract for robot integration.
45+
46+
State Interface
47+
~~~~~~~~~~~~~~~
48+
49+
.. doxygenclass:: exploy::control::RobotStateInterface
50+
:members:
51+
:undoc-members:
52+
53+
Command Interface
54+
~~~~~~~~~~~~~~~~~
55+
56+
.. doxygenclass:: exploy::control::CommandInterface
57+
:members:
58+
:undoc-members:
59+
60+
Data Collection Interface
61+
~~~~~~~~~~~~~~~~~~~~~~~~~
62+
63+
.. doxygenclass:: exploy::control::DataCollectionInterface
64+
:members:
65+
:undoc-members:
66+
67+
Components
68+
----------
69+
70+
Input and output components for data flow management.
71+
72+
.. doxygenstruct:: exploy::control::Input
73+
:members:
74+
:undoc-members:
75+
76+
.. doxygenstruct:: exploy::control::Output
77+
:members:
78+
:undoc-members:
79+
80+
Data Types
81+
----------
82+
83+
Core data structures used throughout the controller.
84+
85+
.. doxygenstruct:: exploy::control::Position
86+
:members:
87+
88+
.. doxygenstruct:: exploy::control::Quaternion
89+
:members:
90+
91+
.. doxygenstruct:: exploy::control::LinearVelocity
92+
:members:
93+
94+
.. doxygenstruct:: exploy::control::AngularVelocity
95+
:members:
96+
97+
.. doxygenstruct:: exploy::control::SE2Velocity
98+
:members:
99+
100+
.. doxygenstruct:: exploy::control::SE3Pose
101+
:members:
102+
103+
.. doxygenstruct:: exploy::control::HeightScan
104+
:members:
105+
106+
Configuration
107+
-------------
108+
109+
.. doxygenstruct:: exploy::control::OnnxRuntimeOptions
110+
:members:
111+
112+
.. doxygenstruct:: exploy::control::SE2VelocityConfig
113+
:members:
114+
115+
.. doxygenstruct:: exploy::control::SE2VelocityRanges
116+
:members:
117+
118+
Metadata
119+
--------
120+
121+
Metadata structures for component configuration.
122+
123+
.. doxygenstruct:: exploy::control::JointMetadata
124+
:members:
125+
126+
.. doxygenstruct:: exploy::control::JointOutputMetadata
127+
:members:
128+
129+
.. doxygenstruct:: exploy::control::SE2VelocityCommandMetadata
130+
:members:
131+
132+
.. doxygenstruct:: exploy::control::HeightScanMetadata
133+
:members:
134+
135+
.. doxygenstruct:: exploy::control::RangeImageMetadata
136+
:members:
137+
138+
.. doxygenstruct:: exploy::control::DepthImageMetadata
139+
:members:
140+
141+
Matchers
142+
--------
143+
144+
Component matchers for automatic ONNX I/O mapping.
145+
146+
.. doxygenclass:: exploy::control::Matcher
147+
:members:
148+
:undoc-members:
149+
150+
.. doxygenstruct:: exploy::control::Match
151+
:members:

docs/api/exporter/components.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Components
22
==========
33

4+
Core building blocks for environment export.
5+
6+
This module defines the component abstractions (``Input``, ``Output``, ``Memory``, ``Group``, ``Connection``)
7+
used to structure and manage data flow during policy export.
8+
49
.. automodule:: exporter.components
510
:members:
611
:undoc-members:

docs/api/exporter/context_manager.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Context Manager
22
===============
33

4+
Manages components for environment export.
5+
6+
The ``ContextManager`` class organizes and manages all inputs, outputs, memory components,
7+
and connections needed during the ONNX export process.
8+
49
.. automodule:: exporter.context_manager
510
:members:
611
:undoc-members:

docs/api/exporter/evaluator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Evaluator
22
=========
33

4+
Validation and testing utilities for exported ONNX models.
5+
6+
This module provides the ``evaluate`` function to compare ONNX model outputs
7+
against the original environment and PyTorch policy for correctness verification.
8+
49
.. automodule:: exporter.evaluator
510
:members:
611
:undoc-members:

docs/api/exporter/exporter.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
Exporter
2-
========
1+
Exporter Module
2+
===============
3+
4+
Core ONNX export functionality for RL policies.
5+
6+
This module provides the main entry point for exporting trained policies to ONNX format,
7+
including the ``export_environment_as_onnx`` function and the ``OnnxEnvironmentExporter`` class.
38

49
.. automodule:: exporter.exporter
510
:members:

docs/api/exporter/session_wrapper.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Session Wrapper
22
===============
33

4+
ONNX Runtime inference session management.
5+
6+
The ``SessionWrapper`` class provides a convenient interface for loading and running
7+
ONNX models with ONNX Runtime, managing input/output handling and session configuration.
8+
49
.. automodule:: exporter.session_wrapper
510
:members:
611
:undoc-members:

docs/api/exporter/tensor_proxy.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Tensor Proxy
22
============
33

4+
Tensor list abstraction for improved ONNX export.
5+
6+
The ``TensorProxy`` class manages lists of tensors and exposes them as a single stacked tensor,
7+
improving the structure of exported computational graphs.
8+
49
.. automodule:: exporter.tensor_proxy
510
:members:
611
:undoc-members:

docs/api/frameworks/isaaclab.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Isaac Lab Framework
22
===================
33

4+
Isaac Lab integration for RL policy export.
5+
6+
This module provides the ``IsaacLabExportableEnvironment`` class and utilities
7+
for exporting policies trained in NVIDIA Isaac Lab to ONNX format.
8+
49
.. automodule:: exporter_frameworks.isaaclab
510
:members:
611
:undoc-members:

docs/api/index.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
API Reference
22
=============
33

4-
This section contains detailed API documentation for the Exporter project.
4+
This section contains detailed API documentation for Exploy.
55

6-
Exporter Core
7-
-------------
6+
Python Exporter API
7+
-------------------
88

9-
The core exporter functionality for ONNX export.
9+
Core functionality for exporting RL policies to ONNX format.
1010

1111
.. toctree::
1212
:maxdepth: 2
1313

14+
exporter/exporter
1415
exporter/components
1516
exporter/context_manager
1617
exporter/evaluator
17-
exporter/exporter
1818
exporter/session_wrapper
1919
exporter/tensor_proxy
2020

21-
Exporter Frameworks
22-
-------------------
21+
Framework Integration
22+
---------------------
2323

24-
Framework-specific implementations.
24+
Framework-specific implementations for different RL environments.
2525

2626
.. toctree::
2727
:maxdepth: 2
2828

2929
frameworks/isaaclab
3030

31-
C++ API
32-
-------
31+
C++ Controller API
32+
------------------
3333

34-
C++ controller implementation with ONNX Runtime.
34+
High-performance C++ controller for real-time policy execution.
3535

3636
.. toctree::
3737
:maxdepth: 2

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __getattr__(cls, name):
5353
"sphinx.ext.intersphinx",
5454
"sphinx_autodoc_typehints",
5555
"breathe",
56+
"myst_parser",
5657
]
5758

5859
# Breathe configuration for C++ documentation

0 commit comments

Comments
 (0)