Skip to content

Commit 9f6bd8f

Browse files
committed
add working examples
1 parent b5b689f commit 9f6bd8f

32 files changed

+12823
-33
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resize: # from https://stackoverflow.com/a/28221795/1560241
2929
update-doc: convert-rst
3030
python setup.py sdist upload
3131
preview:
32-
sphinx-autobuild docs docs/_build/html
32+
sphinx-autobuild --host 0.0.0.0 docs docs/_build/html
3333
docs:
3434
rm -rf docs/_build
3535
cd docs && make html

README

+9-9
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ mobile devices.
2424

2525
Our features include:
2626

27-
- light-weight and performant
28-
- VR and AR ready
29-
- Hackable and extensible
30-
- Open source, licensed under MIT
27+
- light-weight and performant
28+
- VR and AR ready
29+
- Hackable and extensible
30+
- Open source, licensed under MIT
3131

3232
Installation
3333
============
@@ -65,11 +65,11 @@ page.
6565
To get a quick overview of what you can do with ``vuer``, check out the
6666
following:
6767

68-
- take a look at the example gallery
69-
`here <https://docs.vuer.ai/en/latest/examples/01_trimesh.html>`__
70-
- or try to take a look at this demo with a Unitree Go1 robot in front
71-
of a flight of stairs
72-
`here <https://docs.vuer.ai/en/latest/tutorials/robotics/urdf_go1_stairs.html>`__
68+
- take a look at the example gallery
69+
`here <https://docs.vuer.ai/en/latest/examples/01_trimesh.html>`__
70+
- or try to take a look at this demo with a Unitree Go1 robot in front
71+
of a flight of stairs
72+
`here <https://docs.vuer.ai/en/latest/tutorials/robotics/urdf_go1_stairs.html>`__
7373

7474
For a comprehensive list of visualization components, please refer to
7575
the `API documentation on

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.36-rc8
1+
0.0.36-rc9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
- tag: Scene
2-
children:
3-
- tag: MuJoCo
4-
# src: https://docs.vuer.ai/tutorials/physics/mujoco_scenes/adhesion/mujoco.vuer.yml
5-
src: https://docs.vuer.ai/tutorials/physics/mujoco_scenes/adhesion/active_adhesion.mjcf.xml
6-
children: []
1+
tag: Scene
2+
children:
3+
- tag: MuJoCo
4+
src: https://docs.vuer.ai/en/latest/_static/mujoco_scenes/adhesion/active_adhesion.mjcf.xml
5+
children: []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
tag: Scene
2+
children:
3+
- tag: MuJoCo
4+
src: https://docs.vuer.ai/en/latest/_static/mujoco_scenes/agility_cassie/scene.mjcf
5+
assets:
6+
- cassie.xml
7+
- assets/achilles-rod.obj
8+
- assets/cassie-texture.png
9+
- assets/foot-crank.obj
10+
- assets/foot.obj
11+
- assets/heel-spring.obj
12+
- assets/hip-pitch.obj
13+
- assets/hip-roll.obj
14+
- assets/hip-yaw.obj
15+
- assets/knee-spring.obj
16+
- assets/knee.obj
17+
- assets/pelvis.obj
18+
- assets/plantar-rod.obj
19+
- assets/shin.obj
20+
- assets/tarsus.obj
21+
children: []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
tag: Scene
2+
children:
3+
- tag: MuJoCo
4+
src: https://docs.vuer.ai/en/latest/_static/mujoco_scenes/ballons/balloons.mjcf.xml
5+
assets:
6+
children: []

docs/_static/view.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from asyncio import sleep
2+
3+
from vuer import Vuer, VuerSession
4+
from vuer.schemas import MuJoCo
5+
6+
vuer = Vuer()
7+
8+
host = "http://localhost:8012/static"
9+
10+
@vuer.spawn(start=True)
11+
async def main(proxy: VuerSession):
12+
proxy.add @ MuJoCo(
13+
key="default-sim",
14+
# src=f"{host}/mujoco_scenes/adhesion/active_adhesion.mjcf.xml",
15+
src="https://docs.vuer.ai/en/latest/_static/mujoco_scenes/adhesion/active_adhesion.mjcf.xml",
16+
assets=[],
17+
)
18+
while True:
19+
await sleep(10)
+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
# Example Gallery
22

3-
- https://vuer.ai/editor?scene=https://docs.vuer.ai/assets/scenes/
3+
**Adhesion**
4+
5+
<iframe src="http://localhost:3000/editor?background=131416,fff&collapseMenu=true&scene=https://docs.vuer.ai/en/latest/_static/mujoco_scenes/adhesion/scene.vuer.yml" width="100%" height="400px" frameborder="0"></iframe>
6+
7+
**Agility Cassie**
8+
9+
<iframe src="http://localhost:3000/editor?background=131416,fff&collapseMenu=true&scene=https://docs.vuer.ai/en/latest/_static/mujoco_scenes/agility_cassie/scene.vuer.yml" width="100%" height="400px" frameborder="0"></iframe>
10+
11+
**Balloons**
12+
13+
<iframe src="http://localhost:3000/editor?background=131416,fff&collapseMenu=true&scene=https://docs.vuer.ai/en/latest/_static/mujoco_scenes/balloons/scene.vuer.yml" width="100%" height="400px" frameborder="0"></iframe>

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "vuer"
7-
version = "0.0.36rc8"
7+
version = "0.0.36rc9"
88
description = ""
99
readme = "README.md"
1010
license = { text = "MIT" }

vuer/client_build/404.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<body>
88
<div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><div style="height:calc(100vh - 100px);display:flex;justify-content:center;align-items:center"><p style="font-size:1.3em">Page not found.</p></div></div></div>
99
<script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/_error","routeParams":{},"data":"!undefined","pageProps":{"is404":true},"is404":true,"_isServerSideError":"!undefined"}</script>
10-
<script src="/assets/entries/entry-client-routing.wpvLVlkq.js" type="module" async></script>
10+
<script src="/assets/entries/entry-client-routing.DrFBcZnd.js" type="module" async></script>
1111
<link rel="modulepreload" href="/assets/entries/pages_error.DEGoJ3sf.js" as="script" type="text/javascript">
1212
<link rel="modulepreload" href="/assets/chunks/chunk-T_klmvss.js" as="script" type="text/javascript">
1313
<link rel="modulepreload" href="/assets/chunks/chunk-D7HrI6pR.js" as="script" type="text/javascript">

vuer/client_build/assets/chunks/chunk-BEp4p46r.js

+269
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-BEp4p46r.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-BKUjz6sm.js

+7,681
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-BKUjz6sm.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-Bilngqc7.js

+4,660
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-Bilngqc7.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-BxNLIi_y.js

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-BxNLIi_y.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-C5MS7uxj.js

+102
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/chunks/chunk-C5MS7uxj.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/entries/entry-client-routing.DrFBcZnd.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/entries/entry-client-routing.DrFBcZnd.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/entries/pages_editor.BFR1UFMD.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vuer/client_build/assets/entries/pages_editor.BFR1UFMD.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)