Skip to content

Commit c8540ce

Browse files
Merge pull request #12 from ihuicatl/main
Merge main
2 parents 6d2e1fc + d782dab commit c8540ce

File tree

7 files changed

+124
-1
lines changed

7 files changed

+124
-1
lines changed

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ recursive-include docs *.py
3636
recursive-include docs *.rst
3737
recursive-include docs *.txt
3838
recursive-include docs Makefile
39+
recursive-include docs *.json
40+
recursive-include docs *.ipynb
41+
recursive-include docs *.urdf
3942

4043
# Examples
4144
recursive-include examples *.STL

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'myst_parser',
3737
'sphinx.ext.autodoc',
3838
'sphinx.ext.napoleon',
39+
'jupyterlite_sphinx',
3940
]
4041

4142
# Add any paths that contain templates here, relative to this directory.
@@ -61,3 +62,8 @@
6162
# relative to this directory. They are copied after the builtin static files,
6263
# so a file named "default.css" will overwrite the builtin "default.css".
6364
# html_static_path = ['_static']
65+
66+
# JupyterLite
67+
jupyterlite_config = "jupyterlite_config.json"
68+
jupyterlite_contents = ["robot.urdf"]
69+
jupyterlite_dir = "."

docs/index.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,22 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to jupyterlab-urdf's documentation!
6+
Welcome to JupyterLab-URDF's documentation!
77
===========================================
88

99
With this JupyterLab extension, you can easily create and modify URDF files from the comfort of your web browser.
1010

1111
.. image:: _static/urdfOverview.gif
1212
:alt: Functionality of extension
1313

14+
Try it with JupyterLite!
15+
------------------------
16+
17+
.. image:: https://jupyterlite.rtfd.io/en/latest/_static/badge.svg
18+
:target: https://jupyterlab-urdf.readthedocs.io/en/latest/lite/lab
19+
20+
.. jupyterlite:: robot.urdf
21+
1422
.. toctree::
1523
:maxdepth: 2
1624
:caption: Contents:

docs/jupyter-lite.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"jupyter-config-data": {
3+
"fileTypes": {
4+
"urdf": {
5+
"extensions": [".urdf", ".xacro"],
6+
"fileFormat": "text",
7+
"mimeTypes": ["application/xml"],
8+
"name": "urdf"
9+
}
10+
}
11+
},
12+
"jupyter-lite-schema-version": 0
13+
}

docs/jupyterlite_config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"LiteBuildConfig": {
3+
"federated_extensions": [
4+
"https://files.pythonhosted.org/packages/10/0b/2aeea649807e7379351dfd798e51f9ee90975a10c400dec51d6ea0faf15c/jupyterlab_urdf-0.1.0a0-py3-none-any.whl"
5+
],
6+
"ignore_sys_prefix": true
7+
}
8+
}

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
myst_parser==0.18.0
2+
jupyterlite-sphinx
3+
sphinx

docs/robot.urdf

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?xml version="1.0"?>
2+
<robot name="robot">
3+
4+
<link name="base_link">
5+
<visual>
6+
<geometry>
7+
<sphere radius="0.5"/>
8+
</geometry>
9+
<origin rpy="0 0 0" xyz="0 0 0"/>
10+
<material name="blue"/>
11+
</visual>
12+
</link>
13+
14+
<joint name="shoulder" type="revolute">
15+
<parent link="base_link"/>
16+
<child link="humerus"/>
17+
<origin rpy="0 0 0" xyz="0 0 0"/>
18+
<axis xyz="1 0 0"/>
19+
<limit effort="1000.0" lower="-3.14" upper="3.14" velocity="0.5"/>
20+
</joint>
21+
22+
<link name="humerus">
23+
<visual>
24+
<geometry>
25+
<cylinder length="2.5" radius="0.25"/>
26+
</geometry>
27+
<origin rpy="0 0 0" xyz="0 0 1.25"/>
28+
<material name="purple"/>
29+
</visual>
30+
</link>
31+
32+
<joint name="elbow" type="revolute">
33+
<parent link="humerus"/>
34+
<child link="ulna"/>
35+
<origin rpy="0 0 0" xyz="0 0 0"/>
36+
<axis xyz="0 0 1"/>
37+
<limit effort="1000.0" lower="-3.14" upper="3.14" velocity="0.5"/>
38+
</joint>
39+
40+
<link name="ulna">
41+
<visual>
42+
<geometry>
43+
<cylinder length="0.6" radius="0.3"/>
44+
</geometry>
45+
<origin rpy="1.570796 0 0" xyz="0 0 2.5"/>
46+
<material name="pink"/>
47+
</visual>
48+
</link>
49+
50+
<joint name="wrist" type="prismatic">
51+
<parent link="ulna"/>
52+
<child link="ossa"/>
53+
<origin rpy="0 0 0" xyz="0 0 0"/>
54+
<axis xyz="0 1 0"/>
55+
<limit effort="1000.0" lower="-1.5" upper="1.5" velocity="0.5"/>
56+
</joint>
57+
58+
<link name="ossa">
59+
<visual>
60+
<geometry>
61+
<box size="0.25 3 0.25"/>
62+
</geometry>
63+
<origin rpy="0 0 0" xyz="0 0 2.5"/>
64+
<material name="yellow"/>
65+
</visual>
66+
</link>
67+
68+
<material name="yellow">
69+
<color rgba="1 0.83 0 1"/>
70+
</material>
71+
72+
<material name="blue">
73+
<color rgba="0.18 0.16 0.31 1"/>
74+
</material>
75+
76+
<material name="pink">
77+
<color rgba="0.85 0.01 0.41 1"/>
78+
</material>
79+
80+
<material name="purple">
81+
<color rgba="0.51 0.01 0.39 1"/>
82+
</material>
83+
</robot>

0 commit comments

Comments
 (0)