flab-rsl-rl 0.1.0__tar.gz
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.
- flab_rsl_rl-0.1.0/LICENSE +30 -0
- flab_rsl_rl-0.1.0/PKG-INFO +24 -0
- flab_rsl_rl-0.1.0/README.md +0 -0
- flab_rsl_rl-0.1.0/flab_rsl_rl.egg-info/PKG-INFO +24 -0
- flab_rsl_rl-0.1.0/flab_rsl_rl.egg-info/SOURCES.txt +17 -0
- flab_rsl_rl-0.1.0/flab_rsl_rl.egg-info/dependency_links.txt +1 -0
- flab_rsl_rl-0.1.0/flab_rsl_rl.egg-info/requires.txt +8 -0
- flab_rsl_rl-0.1.0/flab_rsl_rl.egg-info/top_level.txt +1 -0
- flab_rsl_rl-0.1.0/pyproject.toml +93 -0
- flab_rsl_rl-0.1.0/rsl_rl/__init__.py +6 -0
- flab_rsl_rl-0.1.0/rsl_rl/algorithms/__init__.py +11 -0
- flab_rsl_rl-0.1.0/rsl_rl/env/__init__.py +10 -0
- flab_rsl_rl-0.1.0/rsl_rl/modules/__init__.py +20 -0
- flab_rsl_rl-0.1.0/rsl_rl/networks/__init__.py +10 -0
- flab_rsl_rl-0.1.0/rsl_rl/runners/__init__.py +11 -0
- flab_rsl_rl-0.1.0/rsl_rl/storage/__init__.py +10 -0
- flab_rsl_rl-0.1.0/rsl_rl/utils/__init__.py +9 -0
- flab_rsl_rl-0.1.0/setup.cfg +4 -0
- flab_rsl_rl-0.1.0/setup.py +8 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Copyright (c) 2025, ETH Zurich
|
|
2
|
+
Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
+
this list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
16
|
+
may be used to endorse or promote products derived from this software without
|
|
17
|
+
specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
20
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
21
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
23
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
24
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
25
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
26
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
|
|
30
|
+
See licenses/dependencies for license information of dependencies of this package.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flab-rsl-rl
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fast and simple RL algorithms implemented in PyTorch
|
|
5
|
+
Author-email: Flab developers <stevedong9@gmail.com>
|
|
6
|
+
Maintainer-email: Flab developers <stevedong9@gmail.com>
|
|
7
|
+
License: BSD-3-Clause
|
|
8
|
+
Project-URL: Homepage, https://github.com/leggedrobotics/rsl_rl
|
|
9
|
+
Project-URL: Issues, https://github.com/leggedrobotics/rsl_rl/issues
|
|
10
|
+
Keywords: reinforcement-learning,isaac,leggedrobotics,rl-pytorch
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: torch>=2.6.0
|
|
17
|
+
Requires-Dist: torchvision>=0.5.0
|
|
18
|
+
Requires-Dist: tensordict>=0.7.0
|
|
19
|
+
Requires-Dist: numpy>=1.16.4
|
|
20
|
+
Requires-Dist: GitPython
|
|
21
|
+
Requires-Dist: onnx
|
|
22
|
+
Requires-Dist: python-jose
|
|
23
|
+
Requires-Dist: requests
|
|
24
|
+
Dynamic: license-file
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flab-rsl-rl
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Fast and simple RL algorithms implemented in PyTorch
|
|
5
|
+
Author-email: Flab developers <stevedong9@gmail.com>
|
|
6
|
+
Maintainer-email: Flab developers <stevedong9@gmail.com>
|
|
7
|
+
License: BSD-3-Clause
|
|
8
|
+
Project-URL: Homepage, https://github.com/leggedrobotics/rsl_rl
|
|
9
|
+
Project-URL: Issues, https://github.com/leggedrobotics/rsl_rl/issues
|
|
10
|
+
Keywords: reinforcement-learning,isaac,leggedrobotics,rl-pytorch
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: torch>=2.6.0
|
|
17
|
+
Requires-Dist: torchvision>=0.5.0
|
|
18
|
+
Requires-Dist: tensordict>=0.7.0
|
|
19
|
+
Requires-Dist: numpy>=1.16.4
|
|
20
|
+
Requires-Dist: GitPython
|
|
21
|
+
Requires-Dist: onnx
|
|
22
|
+
Requires-Dist: python-jose
|
|
23
|
+
Requires-Dist: requests
|
|
24
|
+
Dynamic: license-file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
flab_rsl_rl.egg-info/PKG-INFO
|
|
6
|
+
flab_rsl_rl.egg-info/SOURCES.txt
|
|
7
|
+
flab_rsl_rl.egg-info/dependency_links.txt
|
|
8
|
+
flab_rsl_rl.egg-info/requires.txt
|
|
9
|
+
flab_rsl_rl.egg-info/top_level.txt
|
|
10
|
+
rsl_rl/__init__.py
|
|
11
|
+
rsl_rl/algorithms/__init__.py
|
|
12
|
+
rsl_rl/env/__init__.py
|
|
13
|
+
rsl_rl/modules/__init__.py
|
|
14
|
+
rsl_rl/networks/__init__.py
|
|
15
|
+
rsl_rl/runners/__init__.py
|
|
16
|
+
rsl_rl/storage/__init__.py
|
|
17
|
+
rsl_rl/utils/__init__.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rsl_rl
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "flab-rsl-rl"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
keywords = ["reinforcement-learning", "isaac", "leggedrobotics", "rl-pytorch"]
|
|
9
|
+
maintainers = [
|
|
10
|
+
{ name="Flab developers", email="stevedong9@gmail.com" },
|
|
11
|
+
]
|
|
12
|
+
authors = [
|
|
13
|
+
{ name="Flab developers", email="stevedong9@gmail.com" },
|
|
14
|
+
]
|
|
15
|
+
description = "Fast and simple RL algorithms implemented in PyTorch"
|
|
16
|
+
readme = { file = "README.md", content-type = "text/markdown"}
|
|
17
|
+
license = { text = "BSD-3-Clause" }
|
|
18
|
+
|
|
19
|
+
requires-python = ">=3.8"
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Operating System :: OS Independent",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"torch>=2.6.0",
|
|
26
|
+
"torchvision>=0.5.0",
|
|
27
|
+
"tensordict>=0.7.0",
|
|
28
|
+
"numpy>=1.16.4",
|
|
29
|
+
"GitPython",
|
|
30
|
+
"onnx",
|
|
31
|
+
"python-jose",
|
|
32
|
+
"requests",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://github.com/leggedrobotics/rsl_rl"
|
|
37
|
+
Issues = "https://github.com/leggedrobotics/rsl_rl/issues"
|
|
38
|
+
|
|
39
|
+
[tool.setuptools.packages.find]
|
|
40
|
+
where = ["."]
|
|
41
|
+
include = ["rsl_rl*"]
|
|
42
|
+
|
|
43
|
+
[tool.setuptools.package-data]
|
|
44
|
+
"rsl_rl" = ["config/*", "licenses/*"]
|
|
45
|
+
|
|
46
|
+
[tool.isort]
|
|
47
|
+
|
|
48
|
+
py_version = 38
|
|
49
|
+
line_length = 120
|
|
50
|
+
group_by_package = true
|
|
51
|
+
|
|
52
|
+
# Files to skip
|
|
53
|
+
skip_glob = [".vscode/*"]
|
|
54
|
+
|
|
55
|
+
# Order of imports
|
|
56
|
+
sections = [
|
|
57
|
+
"FUTURE",
|
|
58
|
+
"STDLIB",
|
|
59
|
+
"THIRDPARTY",
|
|
60
|
+
"FIRSTPARTY",
|
|
61
|
+
"LOCALFOLDER",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
# Extra standard libraries considered as part of python (permissive licenses)
|
|
65
|
+
extra_standard_library = [
|
|
66
|
+
"numpy",
|
|
67
|
+
"torch",
|
|
68
|
+
"tensordict",
|
|
69
|
+
"warp",
|
|
70
|
+
"typing_extensions",
|
|
71
|
+
"git",
|
|
72
|
+
]
|
|
73
|
+
# Imports from this repository
|
|
74
|
+
known_first_party = "rsl_rl"
|
|
75
|
+
|
|
76
|
+
[tool.pyright]
|
|
77
|
+
|
|
78
|
+
include = ["rsl_rl"]
|
|
79
|
+
|
|
80
|
+
typeCheckingMode = "basic"
|
|
81
|
+
pythonVersion = "3.8"
|
|
82
|
+
pythonPlatform = "Linux"
|
|
83
|
+
enableTypeIgnoreComments = true
|
|
84
|
+
|
|
85
|
+
# This is required as the CI pre-commit does not download the module (i.e. numpy, torch, prettytable)
|
|
86
|
+
# Therefore, we have to ignore missing imports
|
|
87
|
+
reportMissingImports = "none"
|
|
88
|
+
# This is required to ignore for type checks of modules with stubs missing.
|
|
89
|
+
reportMissingModuleSource = "none" # -> most common: prettytable in mdp managers
|
|
90
|
+
|
|
91
|
+
reportGeneralTypeIssues = "none" # -> raises 218 errors (usage of literal MISSING in dataclasses)
|
|
92
|
+
reportOptionalMemberAccess = "warning" # -> raises 8 errors
|
|
93
|
+
reportPrivateUsage = "warning"
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Copyright (c) 2021-2025, ETH Zurich and NVIDIA CORPORATION
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
|
|
6
|
+
"""Implementation of different RL agents."""
|
|
7
|
+
|
|
8
|
+
from .distillation import Distillation
|
|
9
|
+
from .ppo import PPO
|
|
10
|
+
|
|
11
|
+
__all__ = ["PPO", "Distillation"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Copyright (c) 2021-2025, ETH Zurich and NVIDIA CORPORATION
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
|
|
6
|
+
"""Definitions for neural-network components for RL-agents."""
|
|
7
|
+
|
|
8
|
+
from .actor_critic import ActorCritic
|
|
9
|
+
from .actor_critic_recurrent import ActorCriticRecurrent
|
|
10
|
+
from .rnd import *
|
|
11
|
+
from .student_teacher import StudentTeacher
|
|
12
|
+
from .student_teacher_recurrent import StudentTeacherRecurrent
|
|
13
|
+
from .symmetry import *
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
"ActorCritic",
|
|
17
|
+
"ActorCriticRecurrent",
|
|
18
|
+
"StudentTeacher",
|
|
19
|
+
"StudentTeacherRecurrent",
|
|
20
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Copyright (c) 2021-2025, ETH Zurich and NVIDIA CORPORATION
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
|
|
6
|
+
"""Definitions for components of modules."""
|
|
7
|
+
|
|
8
|
+
from .memory import Memory
|
|
9
|
+
from .mlp import MLP
|
|
10
|
+
from .normalization import EmpiricalDiscountedVariationNormalization, EmpiricalNormalization
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Copyright (c) 2021-2025, ETH Zurich and NVIDIA CORPORATION
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
|
|
6
|
+
"""Implementation of runners for environment-agent interaction."""
|
|
7
|
+
|
|
8
|
+
from .on_policy_runner import OnPolicyRunner # isort:skip
|
|
9
|
+
from .distillation_runner import DistillationRunner
|
|
10
|
+
|
|
11
|
+
__all__ = ["OnPolicyRunner", "DistillationRunner"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Copyright (c) 2021-2025, ETH Zurich and NVIDIA CORPORATION
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
+
|
|
6
|
+
"""Implementation of transitions storage for RL-agent."""
|
|
7
|
+
|
|
8
|
+
from .rollout_storage import RolloutStorage
|
|
9
|
+
|
|
10
|
+
__all__ = ["RolloutStorage"]
|