Skip to content

Commit

Permalink
Add API documentation scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Nov 24, 2023
1 parent 85ceccd commit faa73e2
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 4 deletions.
41 changes: 41 additions & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.. _api:

=================
API Documentation
=================

This is the detailed documentation of all public classes and functions.
You can also search for specific modules, classes, or functions in the
:ref:`genindex`.

.. contents:: :local:
:depth: 1


:mod:`movement_primitives.dmp`
==============================

.. automodule:: movement_primitives.dmp

.. autosummary::
:toctree: _apidoc/

~movement_primitives.dmp.DMPBase
~movement_primitives.dmp.WeightParametersMixin
~movement_primitives.dmp.DMP
~movement_primitives.dmp.DMPWithFinalVelocity
~movement_primitives.dmp.CartesianDMP
~movement_primitives.dmp.DualCartesianDMP
~movement_primitives.dmp.CouplingTermPos1DToPos1D
~movement_primitives.dmp.CouplingTermObstacleAvoidance2D
~movement_primitives.dmp.CouplingTermObstacleAvoidance3D
~movement_primitives.dmp.CouplingTermPos3DToPos3D
~movement_primitives.dmp.CouplingTermDualCartesianPose
~movement_primitives.dmp.CouplingTermObstacleAvoidance3D
~movement_primitives.dmp.CouplingTermDualCartesianDistance
~movement_primitives.dmp.CouplingTermDualCartesianTrajectory
~movement_primitives.dmp.dmp_transformation_system
~movement_primitives.dmp.canonical_system_alpha
~movement_primitives.dmp.phase
~movement_primitives.dmp.obstacle_avoidance_acceleration_2d
~movement_primitives.dmp.obstacle_avoidance_acceleration_3d
19 changes: 16 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
# ones.
extensions = [
"numpydoc",
"myst_parser"
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary"
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -48,6 +50,8 @@
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []

autosummary_generate = True


# -- Options for HTML output -------------------------------------------------

Expand All @@ -65,7 +69,7 @@
"navbar_links": [
("Readme", "README"),
#("Examples", "_auto_examples/index"),
#("API", "api"),
("API", "api"),
],
}

Expand All @@ -78,4 +82,13 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
html_show_sourcelink = False
html_show_sphinx = False

intersphinx_mapping = {
'python': ('https://docs.python.org/{.major}'.format(sys.version_info), None),
'numpy': ('https://numpy.org/doc/stable', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
'matplotlib': ('https://matplotlib.org/', None)
}
11 changes: 10 additions & 1 deletion movement_primitives/dmp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
"""Dynamical movement primitive variants."""
"""Dynamical Movement Primitive (DMP)
==================================
This module provides implementations of various DMP types. DMPs consist of
a goal-directed movement generated by the transformation system and a forcing
term that defines the shape of the trajectory. They are time-dependent and
usually converge to the goal after a constant execution time.
"""
from ._base import DMPBase, WeightParametersMixin
from ._dmp import DMP, dmp_transformation_system
from ._dmp_with_final_velocity import DMPWithFinalVelocity
from ._cartesian_dmp import CartesianDMP
Expand All @@ -14,6 +22,7 @@


__all__ = [
"DMPBase", "WeightParametersMixin",
"DMP", "dmp_transformation_system", "DMPWithFinalVelocity", "CartesianDMP",
"DualCartesianDMP", "CouplingTermPos1DToPos1D",
"CouplingTermObstacleAvoidance2D", "CouplingTermObstacleAvoidance3D",
Expand Down

0 comments on commit faa73e2

Please sign in to comment.