tinysim 0.0.2__py3-none-any.whl → 0.0.3__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.
- tinysim/frogger/tk.py +6 -0
- tinysim/topdown_driving/widget.py +3 -4
- tinysim-0.0.3.dist-info/METADATA +80 -0
- {tinysim-0.0.2.dist-info → tinysim-0.0.3.dist-info}/RECORD +21 -9
- {tinysim-0.0.2.dist-info → tinysim-0.0.3.dist-info}/top_level.txt +1 -0
- tinysim_mujoco/__init__.py +0 -0
- tinysim_mujoco/unitree_a1/__init__.py +354 -0
- tinysim_mujoco/unitree_a1/unitree_a1/CHANGELOG.md +6 -0
- tinysim_mujoco/unitree_a1/unitree_a1/LICENSE +29 -0
- tinysim_mujoco/unitree_a1/unitree_a1/README.md +41 -0
- tinysim_mujoco/unitree_a1/unitree_a1/a1.xml +206 -0
- tinysim_mujoco/unitree_a1/unitree_a1/assets/calf.obj +141854 -0
- tinysim_mujoco/unitree_a1/unitree_a1/assets/hip.obj +53148 -0
- tinysim_mujoco/unitree_a1/unitree_a1/assets/thigh.obj +86609 -0
- tinysim_mujoco/unitree_a1/unitree_a1/assets/thigh_mirror.obj +89990 -0
- tinysim_mujoco/unitree_a1/unitree_a1/assets/trunk.obj +170318 -0
- tinysim_mujoco/unitree_a1/unitree_a1/scene.xml +23 -0
- tinysim_warp/cart_pole/__init__.py +2 -2
- tinysim_warp/quadruped/__init__.py +2 -2
- tinysim_warp/simple_quadruped/__init__.py +2 -2
- tinysim-0.0.2.dist-info/METADATA +0 -56
- {tinysim-0.0.2.dist-info → tinysim-0.0.3.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<mujoco model="a1 scene">
|
|
2
|
+
<include file="a1.xml"/>
|
|
3
|
+
|
|
4
|
+
<statistic center="0 0 0.1" extent="0.8"/>
|
|
5
|
+
|
|
6
|
+
<visual>
|
|
7
|
+
<headlight diffuse="0.6 0.6 0.6" ambient="0.3 0.3 0.3" specular="0 0 0"/>
|
|
8
|
+
<rgba haze="0.15 0.25 0.35 1"/>
|
|
9
|
+
<global azimuth="120" elevation="-20"/>
|
|
10
|
+
</visual>
|
|
11
|
+
|
|
12
|
+
<asset>
|
|
13
|
+
<texture type="skybox" builtin="gradient" rgb1="0.3 0.5 0.7" rgb2="0 0 0" width="512" height="3072"/>
|
|
14
|
+
<texture type="2d" name="groundplane" builtin="checker" mark="edge" rgb1="0.2 0.3 0.4" rgb2="0.1 0.2 0.3"
|
|
15
|
+
markrgb="0.8 0.8 0.8" width="300" height="300"/>
|
|
16
|
+
<material name="groundplane" texture="groundplane" texuniform="true" texrepeat="5 5" reflectance="0.2"/>
|
|
17
|
+
</asset>
|
|
18
|
+
|
|
19
|
+
<worldbody>
|
|
20
|
+
<light pos="0 0 1.5" dir="0 0 -1" directional="true"/>
|
|
21
|
+
<geom name="floor" size="0 0 0.05" type="plane" material="groundplane" contype="1" conaffinity="1"/>
|
|
22
|
+
</worldbody>
|
|
23
|
+
</mujoco>
|
|
@@ -23,7 +23,7 @@ def compute_env_offsets(num_envs, env_offset=(5.0, 0.0, 0.0)):
|
|
|
23
23
|
return env_offsets
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class CartPoleBaseEnv:
|
|
27
27
|
def __init__(self, use_cuda_graph=False, headless=False, num_envs=3):
|
|
28
28
|
self.actions = np.array([0.0, 0.5, -0.5])
|
|
29
29
|
self.num_envs = num_envs
|
|
@@ -215,7 +215,7 @@ if __name__ == "__main__":
|
|
|
215
215
|
import keyboard
|
|
216
216
|
|
|
217
217
|
with wp.ScopedDevice(args.device):
|
|
218
|
-
example =
|
|
218
|
+
example = CartPoleBaseEnv(use_cuda_graph=True)
|
|
219
219
|
|
|
220
220
|
terminated = False
|
|
221
221
|
check_terminated = True
|
|
@@ -24,7 +24,7 @@ def compute_env_offsets(num_envs, env_offset=(5.0, 0.0, 0.0)):
|
|
|
24
24
|
return env_offsets
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class RobotDogBaseEnv:
|
|
28
28
|
def __init__(self, use_cuda_graph=False, headless=False, num_envs=8):
|
|
29
29
|
articulation_builder = wp.sim.ModelBuilder()
|
|
30
30
|
rot_x = wp.quat_from_axis_angle(wp.vec3(1.0, 0.0, 0.0), -math.pi * 0.5)
|
|
@@ -158,7 +158,7 @@ if __name__ == "__main__":
|
|
|
158
158
|
args = parser.parse_known_args()[0]
|
|
159
159
|
|
|
160
160
|
with wp.ScopedDevice(args.device):
|
|
161
|
-
example =
|
|
161
|
+
example = RobotDogBaseEnv(num_envs=args.num_envs)
|
|
162
162
|
# [
|
|
163
163
|
# (front right leg out),
|
|
164
164
|
# (front right leg forward),
|
|
@@ -24,7 +24,7 @@ def compute_env_offsets(num_envs, env_offset=(5.0, 0.0, 0.0)):
|
|
|
24
24
|
return env_offsets
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
class
|
|
27
|
+
class SimpleRobotDogBaseEnv:
|
|
28
28
|
def __init__(self, use_cuda_graph=False, headless=False, num_envs=8):
|
|
29
29
|
articulation_builder = wp.sim.ModelBuilder()
|
|
30
30
|
rot_x = wp.quat_from_axis_angle(wp.vec3(1.0, 0.0, 0.0), -math.pi * 0.5)
|
|
@@ -159,7 +159,7 @@ if __name__ == "__main__":
|
|
|
159
159
|
args = parser.parse_known_args()[0]
|
|
160
160
|
|
|
161
161
|
with wp.ScopedDevice(args.device):
|
|
162
|
-
example =
|
|
162
|
+
example = SimpleRobotDogBaseEnv(num_envs=args.num_envs)
|
|
163
163
|
|
|
164
164
|
for frame in range(args.num_frames):
|
|
165
165
|
example.step(np.zeros(8).repeat(args.num_envs))
|
tinysim-0.0.2.dist-info/METADATA
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: tinysim
|
|
3
|
-
Version: 0.0.2
|
|
4
|
-
Summary: small modular simulation environments
|
|
5
|
-
Author-email: Matthew Taylor <matthew.taylor.andre@gmail.com>
|
|
6
|
-
Project-URL: Homepage, https://github.com/MatthewAndreTaylor/TinySim
|
|
7
|
-
Keywords: jupyter,simulation
|
|
8
|
-
Classifier: Framework :: Jupyter
|
|
9
|
-
Classifier: Framework :: Jupyter :: JupyterLab
|
|
10
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
11
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
|
|
12
|
-
Classifier: Programming Language :: Python
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
Requires-Python: >=3.9
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
Requires-Dist: numpy
|
|
22
|
-
Requires-Dist: anywidget
|
|
23
|
-
Requires-Dist: jupyter-ui-poll
|
|
24
|
-
Provides-Extra: warp
|
|
25
|
-
Requires-Dist: warp-lang==1.8.1; extra == "warp"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# TinySim
|
|
29
|
-
|
|
30
|
-
[](https://pypi.org/project/tinysim)
|
|
31
|
-
[](https://matthewandretaylor.github.io/TinySim/lab?path=example.ipynb)
|
|
32
|
-
|
|
33
|
-
The goal of this project is to create more minimal simulation environments for robotics and machine learning.
|
|
34
|
-
|
|
35
|
-
Existing solutions like [ROS 2](https://github.com/ros2) and [Gymnasium](https://gymnasium.farama.org/) come with many heavy dependencies.
|
|
36
|
-
|
|
37
|
-
Additionally they are usually difficult to get setup and may require domain specific knowledge to use.
|
|
38
|
-
Simulation environments should be able to run in any notebook environment and require fewer dependencies.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## Get Started 🚀
|
|
42
|
-
|
|
43
|
-
To use the baseline Python only simulation environments.
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
pip install tinysim
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
To use the [warp](https://github.com/NVIDIA/warp) simulation environments.
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
pip install tinysim[warp]
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
File without changes
|