Skip to content

Commit ab42291

Browse files
committed
add inheritance diagrams to robot package
1 parent 7685dce commit ab42291

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

docs/tutorial.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ Tutorial
1010
tutorial/meshes
1111
tutorial/volmeshes
1212
tutorial/robots
13-
tutorial/rhino
14-
tutorial/grasshopper
15-
tutorial/blender
1613
tutorial/rpc
1714
tutorial/geomaps
1815
tutorial/serialization

src/compas/robots/__init__.py

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,15 @@
55
66
.. currentmodule:: compas.robots
77
8-
This package provides basic structures and data exchange mechanisms that are
9-
building blocks for robotics support.
10-
11-
The primary data representation for robot models is based on the Unified Robot Description Format
12-
(`URDF`_).
13-
14-
.. note::
15-
16-
A detailed description of the model is available on the `URDF Model wiki`_.
17-
This package parses URDF v1.0 according to the `URDF XSD Schema`_.
18-
19-
* `URDF`_
20-
* `URDF Model wiki`_
21-
* `URDF XSD Schema`_
22-
23-
24-
.. _URDF: http://wiki.ros.org/urdf
25-
.. _URDF Model wiki: http://wiki.ros.org/urdf/XML/model
26-
.. _URDF XSD Schema: https://github.com/ros/urdfdom/blob/master/xsd/urdf.xsd
27-
288
299
Model
3010
=====
3111
12+
.. rst-class:: figure
13+
14+
.. inheritance-diagram:: RobotModel Joint Link ToolModel
15+
:parts: 1
16+
3217
The root of the model is the :class:`RobotModel` class, which
3318
describes a robot consisting of a set of link elements, and a set of joint
3419
elements connecting the links together.
@@ -46,6 +31,11 @@
4631
Geometric description
4732
=====================
4833
34+
.. rst-class:: figure
35+
36+
.. inheritance-diagram:: Origin Geometry Box Cylinder Sphere Capsule MeshDescriptor Material Texture Color
37+
:parts: 1
38+
4939
The robot itself as well as its links can be geometrically described
5040
using the following classes.
5141
@@ -68,6 +58,11 @@
6858
Link
6959
====
7060
61+
.. rst-class:: figure
62+
63+
.. inheritance-diagram:: Visual Collision Inertial Mass Inertia
64+
:parts: 1
65+
7166
The link is described as a rigid body with inertial, visual and collision values.
7267
7368
.. autosummary::
@@ -84,6 +79,11 @@
8479
Joint
8580
=====
8681
82+
.. rst-class:: figure
83+
84+
.. inheritance-diagram:: ParentLink ChildLink Calibration Dynamics Limit Axis Mimic SafetyController
85+
:parts: 1
86+
8787
The joint describes the kinematics and dynamics of the robot's joint.
8888
8989
.. autosummary::
@@ -103,6 +103,11 @@
103103
Resources
104104
=========
105105
106+
.. rst-class:: figure
107+
108+
.. inheritance-diagram:: AbstractMeshLoader DefaultMeshLoader GithubPackageMeshLoader LocalPackageMeshLoader
109+
:parts: 1
110+
106111
Model descriptions usually do not contain embedded geometry information but only
107112
descriptions, filenames or URLs for externally hosted resources.
108113
For that purpose, this package provides various loader classes that help automate

0 commit comments

Comments
 (0)