motrixlab 0.4.0__py3-none-any.whl

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.
motrixlab/__init__.py ADDED
@@ -0,0 +1,4 @@
1
+ # Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """MotrixLab installation and command-line integration package."""
motrixlab/cli.py ADDED
@@ -0,0 +1,40 @@
1
+ # Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ """Unified command entry point; component packages own command behavior."""
5
+
6
+ import argparse
7
+ import sys
8
+ from importlib import import_module
9
+ from importlib.metadata import version
10
+
11
+ _COMMANDS = {
12
+ "train": "motrix_rl.commands.train",
13
+ "play": "motrix_rl.commands.play",
14
+ "view": "motrixlab.commands.view",
15
+ "export-onnx": "motrix_rl.commands.export_onnx",
16
+ "export-deploy": "motrix_rl.commands.export_deploy",
17
+ "deploy": "motrix_deploy.cli",
18
+ }
19
+
20
+
21
+ def main() -> int | None:
22
+ parser = argparse.ArgumentParser(prog="mxlab", description="MotrixLab training and deployment tools.")
23
+ parser.add_argument("--version", action="version", version=f"%(prog)s {version('motrixlab')}")
24
+ parser.add_argument("command", choices=tuple(_COMMANDS), help="command to run; use COMMAND --help for details")
25
+ if sys.argv[1:2] and sys.argv[1] in _COMMANDS:
26
+ command = sys.argv[1]
27
+ else:
28
+ parser.parse_args(sys.argv[1:] or ["--help"])
29
+ return None
30
+
31
+ original_argv = sys.argv
32
+ sys.argv = [f"mxlab {command}", *original_argv[2:]]
33
+ try:
34
+ return import_module(_COMMANDS[command]).main()
35
+ finally:
36
+ sys.argv = original_argv
37
+
38
+
39
+ if __name__ == "__main__":
40
+ raise SystemExit(main())
@@ -0,0 +1,2 @@
1
+ # Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+ # SPDX-License-Identifier: Apache-2.0
@@ -0,0 +1,244 @@
1
+ # Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ import argparse
5
+ import time
6
+ from dataclasses import dataclass
7
+ from pathlib import Path
8
+ from typing import TYPE_CHECKING, cast
9
+
10
+ import gymnasium as gym
11
+ import hydra
12
+ import motrixsim as mtx
13
+ import numpy as np
14
+ from hydra.core.config_store import ConfigStore
15
+ from motrixsim.render import RenderApp, RenderClosedError, RenderSettings
16
+ from omegaconf import DictConfig, OmegaConf
17
+
18
+ from motrix_env_core import registry
19
+ from motrix_env_core.array.env import ArrayEnv
20
+ from motrix_env_core.base import ABEnv
21
+ from motrix_env_core.config import SimCfg, configclass
22
+ from motrix_env_core.config.scene.base import RobotCfg, SceneCfg, SceneObjsCfg, SceneVisualCfg, SystemCameraCfg
23
+ from motrix_env_core.config.scene.geometry import FlatTerrainCfg
24
+ from motrix_env_core.config.scene.light import LightCfg
25
+ from motrix_env_core.renderer import RenderConfig, create_renderer
26
+ from motrix_env_motrixsim.compiler import build_scene_model
27
+
28
+ if TYPE_CHECKING:
29
+ from motrix_env_motrixsim.torch_env import TorchEnv
30
+
31
+ DEFAULT_ENV_NAME = "cartpole"
32
+ ROBOT_VIEW_FPS = 60
33
+
34
+
35
+ @dataclass
36
+ class ViewConfig:
37
+ """Top-level schema for environment and robot viewing."""
38
+
39
+ env: str | None = None
40
+ robot: str | None = None
41
+ sim: str | None = None
42
+ num_envs: int = 1
43
+
44
+
45
+ def _sample_random_action_np(env: ABEnv) -> np.ndarray:
46
+ action_space = env.action_space
47
+ if isinstance(action_space, gym.spaces.Box):
48
+ size = (env.num_envs, *action_space.shape)
49
+ low = action_space.low
50
+ high = action_space.high
51
+ low = np.where(np.isneginf(low), -1e6, low)
52
+ high = np.where(np.isposinf(high), 1e6, high)
53
+ return np.random.uniform(low=low, high=high, size=size).astype(action_space.dtype)
54
+ else:
55
+ raise NotImplementedError("Only Box action space is supported")
56
+
57
+
58
+ def _run_np(env: ArrayEnv):
59
+ renderer = create_renderer(env, RenderConfig())
60
+ env_dt = env.cfg.ctrl_dt
61
+ while True:
62
+ t0 = time.monotonic()
63
+ actions = _sample_random_action_np(env)
64
+ env.step(actions)
65
+ renderer.render()
66
+ real_dt = time.monotonic() - t0
67
+ sleep_dt = env_dt - real_dt
68
+ if sleep_dt > 0:
69
+ time.sleep(sleep_dt)
70
+
71
+
72
+ @configclass
73
+ class _RobotViewObjsCfg(SceneObjsCfg):
74
+ floor: FlatTerrainCfg = FlatTerrainCfg()
75
+ sun: LightCfg = LightCfg(color=(0.7, 0.7, 0.7), illuminance=10_000.0)
76
+
77
+
78
+ def _make_robot_scene(robot_cfg: RobotCfg) -> SceneCfg:
79
+ camera = SystemCameraCfg(lookat=(0.0, 0.0, 0.75), distance=3.0, elevation=-20.0, azimuth=180.0)
80
+ return SceneCfg(
81
+ system_camera=camera,
82
+ visual=SceneVisualCfg(
83
+ ambient_light_color=(0.3, 0.3, 0.3),
84
+ ambient_light_brightness=1_000.0,
85
+ head_light_color=(0.6, 0.6, 0.6),
86
+ head_light_luminous_power=1_000.0,
87
+ haze=(0.1, 0.1, 0.1, 1.0),
88
+ tone_mapping="none",
89
+ ),
90
+ objs=_RobotViewObjsCfg(robot=robot_cfg),
91
+ )
92
+
93
+
94
+ def _run_robot_motrixsim(scene: SceneCfg) -> None:
95
+ camera = scene.system_camera
96
+ model = build_scene_model(scene)
97
+ data = mtx.SceneData(model, batch=[1])
98
+ data.reset(model)
99
+ model.forward_kinematic(data)
100
+
101
+ settings = RenderSettings.performance()
102
+ settings.enable_shadow = True
103
+ renderer = RenderApp()
104
+ try:
105
+ renderer.launch(
106
+ model,
107
+ batch=1,
108
+ render_offset=[[0.0, 0.0, 0.0]],
109
+ render_settings=settings,
110
+ )
111
+ renderer.system_camera.set_view(
112
+ camera.lookat,
113
+ camera.distance,
114
+ camera.elevation,
115
+ camera.azimuth,
116
+ )
117
+ renderer.system_camera.active = True
118
+ while not renderer.is_closed:
119
+ renderer.sync(data=data)
120
+ time.sleep(1.0 / ROBOT_VIEW_FPS)
121
+ except RenderClosedError:
122
+ pass
123
+ finally:
124
+ renderer.__exit__(None, None, None)
125
+
126
+
127
+ def _run_robot_mujoco(scene: SceneCfg) -> None:
128
+ try:
129
+ import mujoco as mj
130
+ import mujoco.viewer as mj_viewer
131
+
132
+ from motrix_env_mujoco.compiler import MuJoCoSceneCompiler
133
+ except ModuleNotFoundError as exc:
134
+ if exc.name == "mujoco":
135
+ raise ModuleNotFoundError(
136
+ "MuJoCo robot viewing requires the optional dependency; install motrix-env-mujoco"
137
+ ) from exc
138
+ raise
139
+
140
+ model = MuJoCoSceneCompiler().compile(scene, SimCfg())
141
+ data = mj.MjData(model)
142
+ mj.mj_forward(model, data)
143
+
144
+ camera = scene.system_camera
145
+ with mj_viewer.launch_passive(model, data) as viewer:
146
+ with viewer.lock():
147
+ if camera.lookat is not None:
148
+ viewer.cam.lookat[:] = camera.lookat
149
+ viewer.cam.distance = camera.distance
150
+ viewer.cam.elevation = camera.elevation
151
+ viewer.cam.azimuth = camera.azimuth
152
+ while viewer.is_running():
153
+ viewer.sync()
154
+ time.sleep(1.0 / ROBOT_VIEW_FPS)
155
+
156
+
157
+ def _run_robot(robot_cfg: RobotCfg, sim: str | None = None) -> None:
158
+ scene = _make_robot_scene(robot_cfg)
159
+ backend = "motrixsim" if sim is None else sim
160
+ if backend == "motrixsim":
161
+ _run_robot_motrixsim(scene)
162
+ elif backend == "mujoco":
163
+ _run_robot_mujoco(scene)
164
+ else:
165
+ raise ValueError(f"Unsupported robot view sim {backend!r}; expected 'motrixsim' or 'mujoco'")
166
+
167
+
168
+ def _run_torch(env: "TorchEnv"):
169
+ import torch
170
+
171
+ renderer = create_renderer(env, RenderConfig())
172
+ env.init_state()
173
+ env_dt = env.cfg.ctrl_dt
174
+ action_space = env.action_space
175
+ if not isinstance(action_space, gym.spaces.Box):
176
+ raise NotImplementedError("Only Box action space is supported")
177
+ low = torch.as_tensor(np.where(np.isneginf(action_space.low), -1e6, action_space.low))
178
+ high = torch.as_tensor(np.where(np.isposinf(action_space.high), 1e6, action_space.high))
179
+ while True:
180
+ t0 = time.monotonic()
181
+ actions = low + torch.rand((env.num_envs, *action_space.shape)) * (high - low)
182
+ env.step(actions)
183
+ renderer.render()
184
+ real_dt = time.monotonic() - t0
185
+ sleep_dt = env_dt - real_dt
186
+ if sleep_dt > 0:
187
+ time.sleep(sleep_dt)
188
+
189
+
190
+ def _torch_frontend_missing(env_name: str) -> ModuleNotFoundError:
191
+ return ModuleNotFoundError(
192
+ f"Environment '{env_name}' uses the torch frontend, but PyTorch is not installed; install torch "
193
+ f"(for example `uv sync --all-packages`) or view a NumPy-frontend environment such as '{DEFAULT_ENV_NAME}'"
194
+ )
195
+
196
+
197
+ def run(cfg: ViewConfig) -> None:
198
+ if cfg.env is not None and cfg.robot is not None:
199
+ raise ValueError("env and robot are mutually exclusive; set only one")
200
+
201
+ if cfg.robot is not None:
202
+ if cfg.num_envs != 1:
203
+ raise ValueError("num_envs must be 1 when viewing a robot")
204
+ _run_robot(registry.make_robot_config(cfg.robot), cfg.sim)
205
+ return
206
+
207
+ env_name = cfg.env or DEFAULT_ENV_NAME
208
+ try:
209
+ env = registry.make(env_name, num_envs=cfg.num_envs)
210
+ except ModuleNotFoundError as exc:
211
+ # Torch-frontend environments import torch when their factory resolves the env class.
212
+ if exc.name == "torch":
213
+ raise _torch_frontend_missing(env_name) from exc
214
+ raise
215
+
216
+ if isinstance(env, ArrayEnv):
217
+ _run_np(env)
218
+ return
219
+
220
+ try:
221
+ from motrix_env_motrixsim.torch_env import TorchEnv
222
+ except ModuleNotFoundError as exc:
223
+ if exc.name == "torch":
224
+ raise _torch_frontend_missing(env_name) from exc
225
+ raise
226
+
227
+ if isinstance(env, TorchEnv):
228
+ _run_torch(env)
229
+ else:
230
+ raise TypeError(f"Unsupported environment type '{type(env).__name__}'.")
231
+
232
+
233
+ def _hydra_main(cfg: DictConfig) -> None:
234
+ run(cast(ViewConfig, OmegaConf.to_object(cfg)))
235
+
236
+
237
+ def main() -> None:
238
+ ConfigStore.instance().store(name="view_schema", node=ViewConfig)
239
+ parser = argparse.ArgumentParser(add_help=False, allow_abbrev=False)
240
+ parser.add_argument("--config-dir")
241
+ args, _ = parser.parse_known_args()
242
+ config_dir = Path(args.config_dir) if args.config_dir is not None else Path.cwd() / "configs"
243
+ config_path = str(config_dir.resolve()) if (config_dir / "view.yaml").is_file() else "../configs"
244
+ hydra.main(version_base=None, config_path=config_path, config_name="view")(_hydra_main)()
@@ -0,0 +1,2 @@
1
+ # Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+ # SPDX-License-Identifier: Apache-2.0
@@ -0,0 +1,15 @@
1
+ defaults:
2
+ - view_schema
3
+ - _self_
4
+ # Console logging only; don't drop a <job>.log file in the working dir.
5
+ - override hydra/job_logging: stdout
6
+
7
+ hydra:
8
+ output_subdir: null
9
+ run:
10
+ dir: .
11
+ sweep:
12
+ dir: .
13
+ subdir: ${hydra.job.num}
14
+ job:
15
+ chdir: false
@@ -0,0 +1,98 @@
1
+ Metadata-Version: 2.4
2
+ Name: motrixlab
3
+ Version: 0.4.0
4
+ Summary: MotrixLab framework with built-in reinforcement learning and the MotrixSim backend.
5
+ Author-email: Motphys <developers@motphys.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/Motphys/MotrixLab
8
+ Project-URL: Documentation, https://motrixlab.readthedocs.io
9
+ Project-URL: Repository, https://github.com/Motphys/MotrixLab
10
+ Project-URL: Issues, https://github.com/Motphys/MotrixLab/issues
11
+ Project-URL: Changelog, https://github.com/Motphys/MotrixLab/releases
12
+ Keywords: reinforcement-learning,robotics,simulation
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
20
+ Requires-Python: <3.14,>=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: gymnasium==1.1.1
24
+ Requires-Dist: hydra-core<1.4,>=1.3
25
+ Requires-Dist: motrixsim==0.10.1
26
+ Requires-Dist: numpy>=1.26
27
+ Requires-Dist: omegaconf<2.4,>=2.3
28
+ Requires-Dist: motrix-env-core==0.4.0
29
+ Requires-Dist: motrix-deploy==0.4.0
30
+ Requires-Dist: motrix-rl==0.4.0
31
+ Requires-Dist: motrix-rl-builtin==0.4.0
32
+ Requires-Dist: motrix-env-motrixsim==0.4.0
33
+ Dynamic: license-file
34
+
35
+ # MotrixLab
36
+
37
+ MotrixLab is a reinforcement learning framework for robotics. This application integration package
38
+ provides the unified `mxlab` command, environment and robot visualization, and a single installation entry point
39
+ for the backend-neutral environment framework, policy deployment runtime, RL control plane, built-in FastSAC
40
+ provider, and MotrixSim simulation backend.
41
+
42
+ ## Installation
43
+
44
+ Use Python 3.10–3.13:
45
+
46
+ ```bash
47
+ python -m pip install motrixlab
48
+ ```
49
+
50
+ For a beta release, add `--pre`. All five component packages are pinned to the
51
+ same release version. The MotrixSim backend installs `motrixsim` from public PyPI.
52
+ PyTorch and its dependencies are installed through the component packages;
53
+ GPU-specific wheel selection and driver setup remain environment-specific.
54
+
55
+ ## Usage and scope
56
+
57
+ `mxlab` is the command-line entry point for training, playback, environment and robot visualization, export, and deployment:
58
+
59
+ ```bash
60
+ mxlab --help
61
+ mxlab --version
62
+ mxlab train --help
63
+ mxlab play --help
64
+ mxlab view --help
65
+ mxlab export-onnx --help
66
+ mxlab export-deploy --help
67
+ mxlab deploy --help
68
+ mxlab deploy inspect artifact=/path/to/policy.deploy
69
+ ```
70
+
71
+ With the selected environment or robot package installed, inspect an environment with random actions or a robot in its default pose:
72
+
73
+ ```bash
74
+ mxlab view env=<env-id>
75
+ mxlab view robot=<robot-id>
76
+ ```
77
+
78
+ Subcommands preserve their component's parameter syntax, including Hydra `key=value`
79
+ overrides and configuration-directory options. `export-deploy` creates an artifact;
80
+ `deploy` runs it. `mxlab --version` is the sole version operation. Install this package
81
+ for the CLI; the standalone component packages retain their Python APIs and internal
82
+ callable command adapters, not independent CLI entry points.
83
+
84
+ The CLI imports only the selected command; top-level help and version do not load
85
+ Torch or a simulator. Environment and robot visualization belongs to this application package;
86
+ its `view.yaml` configuration is packaged in `motrixlab.configs`. Training, playback, export, and deployment
87
+ implementations remain in their component packages. Public Python APIs remain in `motrix_env_core`,
88
+ `motrix_deploy`, `motrix_rl`, `motrix_rl_builtin`, and `motrix_env_motrixsim`; the integration package does not re-export them.
89
+ The built-in RL provider and MotrixSim backend are discovered via package entry points.
90
+
91
+ This installation does **not** include the repository's task environments, robot
92
+ assets, SKRL/RSLRL providers, or deployment backend plugins. Running a task requires
93
+ installing or supplying its environment and assets separately. For the full
94
+ repository task collection and GPU-aware source installation, follow the
95
+ [repository quick start](https://github.com/Motphys/MotrixLab#-quick-start).
96
+
97
+ See the [user documentation](https://motrixlab.readthedocs.io) for framework and
98
+ training usage.
@@ -0,0 +1,12 @@
1
+ motrixlab/__init__.py,sha256=2nhTFAA7mN4ly7a0WLbzlJ9ip3YlqMtmmK5nOX99_dk,158
2
+ motrixlab/cli.py,sha256=LFAhDEoE6JofbWuJ9FSDaR1m3dxCoiLIJ1OmSMtNYQg,1321
3
+ motrixlab/commands/__init__.py,sha256=xasklKJBlBJR36B2v3M-VDoo_k7hwV0hzvBLtbtWlxc,90
4
+ motrixlab/commands/view.py,sha256=4ygXNO2tD0N3AjvSrNjjjyVwLZAyfKgdQATZOjL4plg,8316
5
+ motrixlab/configs/__init__.py,sha256=xasklKJBlBJR36B2v3M-VDoo_k7hwV0hzvBLtbtWlxc,90
6
+ motrixlab/configs/view.yaml,sha256=A6bjJNoCMx7tztWm2jIbfBio_r3dfkxEArks4ODfPro,271
7
+ motrixlab-0.4.0.dist-info/licenses/LICENSE,sha256=xD6_HmWZUoVu8Em-wSIqGdIFKtMnxZQRLtXXhFzIQyI,10854
8
+ motrixlab-0.4.0.dist-info/METADATA,sha256=E7v8rT2NdXSRHHJjwXPAIm4vj_HeUZ990fb1cMsN4wA,4263
9
+ motrixlab-0.4.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
10
+ motrixlab-0.4.0.dist-info/entry_points.txt,sha256=lZ3a2NbKusI7qDEUwxPLmjR5t5wTGpJkILk9gje2PR8,45
11
+ motrixlab-0.4.0.dist-info/top_level.txt,sha256=9R_JMVLq5q8tQE1IOEiBSHq8FRs5uo1QY6pfb_2TTOs,10
12
+ motrixlab-0.4.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ mxlab = motrixlab.cli:main
@@ -0,0 +1,204 @@
1
+ Copyright Motphys Technology Co., Ltd. 2025, 2026
2
+
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
@@ -0,0 +1 @@
1
+ motrixlab