Skip to content

Commit fc54598

Browse files
authored
Improve API reference detail and coverage (#252)
1 parent 72b5bb9 commit fc54598

15 files changed

Lines changed: 377 additions & 27 deletions

docs/source/api_reference/embodichain/embodichain.agents.rl.algo.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@
33

44
.. automodule:: embodichain.agents.rl.algo
55

6+
Overview
7+
--------
8+
9+
Algorithm registry and algorithm-construction helpers for RL training.
10+
611

712
.. rubric:: Functions
813

914
.. autosummary::
1015

1116
build_algo
1217
get_registered_algo_names
18+
19+
.. automodule:: embodichain.agents.rl.algo
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:
1323

docs/source/api_reference/embodichain/embodichain.agents.rl.buffer.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,35 @@
33

44
.. automodule:: embodichain.agents.rl.buffer
55

6+
Overview
7+
--------
8+
9+
The ``buffer`` package provides rollout and replay buffer structures used by
10+
RL algorithms.
11+
12+
.. rubric:: Submodules
13+
14+
.. autosummary::
15+
16+
standard_buffer
17+
utils
18+
19+
.. currentmodule:: embodichain.agents.rl.buffer
20+
21+
Rollout Buffer Classes
22+
----------------------
23+
24+
.. automodule:: embodichain.agents.rl.buffer.standard_buffer
25+
:members:
26+
:undoc-members:
27+
:show-inheritance:
28+
29+
Buffer Utilities
30+
----------------
31+
32+
.. automodule:: embodichain.agents.rl.buffer.utils
33+
:members:
34+
:undoc-members:
35+
:show-inheritance:
36+
637

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
embodichain.agents.rl.collector
2+
================================
3+
4+
.. automodule:: embodichain.agents.rl.collector
5+
6+
Overview
7+
--------
8+
9+
Collectors are responsible for interacting with vectorized environments and
10+
assembling rollout data into a preallocated ``TensorDict`` layout.
11+
12+
.. rubric:: Classes
13+
14+
.. autosummary::
15+
16+
BaseCollector
17+
SyncCollector
18+
19+
.. currentmodule:: embodichain.agents.rl.collector
20+
21+
BaseCollector
22+
-------------
23+
24+
.. autoclass:: BaseCollector
25+
:members:
26+
:show-inheritance:
27+
28+
SyncCollector
29+
-------------
30+
31+
.. autoclass:: SyncCollector
32+
:members:
33+
:show-inheritance:

docs/source/api_reference/embodichain/embodichain.agents.rl.models.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
.. automodule:: embodichain.agents.rl.models
55

6+
Overview
7+
--------
8+
9+
Policy-network registration and model construction APIs for RL agents.
10+
611

712
.. rubric:: Functions
813

@@ -13,4 +18,9 @@
1318
get_policy_class
1419
get_registered_policy_names
1520
register_policy
21+
22+
.. automodule:: embodichain.agents.rl.models
23+
:members:
24+
:undoc-members:
25+
:show-inheritance:
1626

docs/source/api_reference/embodichain/embodichain.agents.rl.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@ embodichain.agents.rl
33

44
.. automodule:: embodichain.agents.rl
55

6+
Overview
7+
--------
8+
9+
The ``embodichain.agents.rl`` package contains algorithm registries, rollout
10+
collection logic, policy/model builders, and training entry points.
11+
612
.. rubric:: Submodules
713

814
.. autosummary::
915
:toctree: .
1016

1117
algo
1218
buffer
19+
collector
1320
models
1421
train
1522
utils
@@ -30,6 +37,14 @@ Rollout Buffer
3037
:undoc-members:
3138
:show-inheritance:
3239

40+
Collectors
41+
----------
42+
43+
.. automodule:: embodichain.agents.rl.collector
44+
:members:
45+
:undoc-members:
46+
:show-inheritance:
47+
3348
Policy Models
3449
-------------
3550

docs/source/api_reference/embodichain/embodichain.agents.rl.train.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
.. automodule:: embodichain.agents.rl.train
55

6+
Overview
7+
--------
8+
9+
Training entry points and command-line helpers for launching RL experiments.
10+
611

712
.. rubric:: Functions
813

@@ -11,4 +16,9 @@
1116
main
1217
parse_args
1318
train_from_config
19+
20+
.. automodule:: embodichain.agents.rl.train
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
1424

docs/source/api_reference/embodichain/embodichain.agents.rl.utils.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,42 @@
33

44
.. automodule:: embodichain.agents.rl.utils
55

6+
Overview
7+
--------
8+
9+
The ``utils`` package contains helper utilities for RL configuration,
10+
data conversion, and training orchestration.
11+
12+
.. rubric:: Submodules
13+
14+
.. autosummary::
15+
16+
config
17+
helper
18+
trainer
19+
20+
Configuration Helpers
21+
---------------------
22+
23+
.. automodule:: embodichain.agents.rl.utils.config
24+
:members:
25+
:undoc-members:
26+
:show-inheritance:
27+
28+
General Helpers
29+
---------------
30+
31+
.. automodule:: embodichain.agents.rl.utils.helper
32+
:members:
33+
:undoc-members:
34+
:show-inheritance:
35+
36+
Trainer Utilities
37+
-----------------
38+
39+
.. automodule:: embodichain.agents.rl.utils.trainer
40+
:members:
41+
:undoc-members:
42+
:show-inheritance:
43+
644

docs/source/api_reference/embodichain/embodichain.agents.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Reinforcement Learning
4848

4949
algo
5050
buffer
51+
collector
5152
models
5253
train
5354
utils
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
embodichain.data
2+
================
3+
4+
.. automodule:: embodichain.data
5+
6+
Data Package Overview
7+
---------------------
8+
9+
The ``embodichain.data`` package centralizes dataset resolution and asset download
10+
helpers used by simulation tasks and training pipelines.
11+
12+
.. rubric:: Submodules
13+
14+
.. autosummary::
15+
16+
constants
17+
dataset
18+
download
19+
enum
20+
21+
Constants
22+
---------
23+
24+
.. automodule:: embodichain.data.constants
25+
:members:
26+
:undoc-members:
27+
:show-inheritance:
28+
29+
Dataset Resolution
30+
------------------
31+
32+
.. automodule:: embodichain.data.dataset
33+
:members:
34+
:undoc-members:
35+
:show-inheritance:
36+
37+
Asset Download CLI
38+
------------------
39+
40+
.. automodule:: embodichain.data.download
41+
:members:
42+
:undoc-members:
43+
:show-inheritance:
44+
45+
Enums
46+
-----
47+
48+
.. automodule:: embodichain.data.enum
49+
:members:
50+
:undoc-members:
51+
:show-inheritance:

docs/source/api_reference/embodichain/embodichain.lab.sim.robots.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,23 @@
33

44
.. automodule:: embodichain.lab.sim.robots
55

6+
Overview
7+
--------
8+
9+
This module exposes robot-specific configuration presets for simulation scenes.
10+
11+
.. rubric:: Classes
12+
13+
.. autosummary::
14+
15+
CobotMagicCfg
16+
17+
.. currentmodule:: embodichain.lab.sim.robots
18+
19+
.. autoclass:: CobotMagicCfg
20+
:members:
21+
:inherited-members:
22+
:show-inheritance:
23+
:exclude-members: __init__, copy, replace, to_dict, validate
24+
625

0 commit comments

Comments
 (0)