Skip to content

Commit

Permalink
Complete API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Nov 24, 2023
1 parent 861e04b commit 3c73a92
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 5 deletions.
90 changes: 90 additions & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ You can also search for specific modules, classes, or functions in the
~movement_primitives.promp.ProMP


:mod:`movement_primitives.io`
=============================

.. automodule:: movement_primitives.io

.. autosummary::
:toctree: _apidoc/

~movement_primitives.io.write_pickle
~movement_primitives.io.read_pickle
~movement_primitives.io.write_yaml
~movement_primitives.io.read_yaml
~movement_primitives.io.write_json
~movement_primitives.io.read_json


:mod:`movement_primitives.base`
===============================

Expand All @@ -68,3 +84,77 @@ You can also search for specific modules, classes, or functions in the
:template: class.rst

~movement_primitives.base.PointToPointMovement


:mod:`movement_primitives.data`
===============================

.. automodule:: movement_primitives.data

.. autosummary::
:toctree: _apidoc/

~movement_primitives.data.load_lasa
~movement_primitives.data.generate_minimum_jerk
~movement_primitives.data.generate_1d_trajectory_distribution


:mod:`movement_primitives.kinematics`
=====================================

.. automodule:: movement_primitives.kinematics

.. autosummary::
:toctree: _apidoc/
:template: class.rst

~movement_primitives.kinematics.Kinematics
~movement_primitives.kinematics.Chain


:mod:`movement_primitives.plot`
===============================

.. automodule:: movement_primitives.plot

.. autosummary::
:toctree: _apidoc/

~movement_primitives.plot.plot_trajectory_in_rows
~movement_primitives.plot.plot_distribution_in_rows


:mod:`movement_primitives.visualization`
========================================

.. automodule:: movement_primitives.visualization

.. autosummary::
:toctree: _apidoc/

~movement_primitives.visualization.plot_pointcloud
~movement_primitives.visualization.to_ellipsoid


:mod:`movement_primitives.dmp_potential_field`
==============================================

.. automodule:: movement_primitives.dmp_potential_field

.. autosummary::
:toctree: _apidoc/

~movement_primitives.dmp_potential_field.plot_potential_field_2d


:mod:`movement_primitives.spring_damper`
========================================

.. automodule:: movement_primitives.spring_damper

.. autosummary::
:toctree: _apidoc/
:template: class.rst

~movement_primitives.spring_damper.SpringDamper
~movement_primitives.spring_damper.SpringDamperOrientation
1 change: 0 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"body_max_width": "90%",
"navbar_links": [
("Readme", "README"),
#("Examples", "_auto_examples/index"),
("API", "api"),
],
}
Expand Down
5 changes: 4 additions & 1 deletion movement_primitives/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Base classes of movement primitives."""
"""Base Classes
============
Base classes of movement primitives."""
import abc
import numpy as np

Expand Down
6 changes: 5 additions & 1 deletion movement_primitives/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Tools for loading datasets."""
"""Data
====
Tools for loading datasets.
"""
from ._lasa import load_lasa
from ._minimum_jerk import generate_minimum_jerk
from ._toy_1d import generate_1d_trajectory_distribution
Expand Down
6 changes: 5 additions & 1 deletion movement_primitives/io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""Input and output from and to files of movement primitives."""
"""Input / Output
==============
Input and output from and to files of movement primitives.
"""
import inspect
import json
import pickle
Expand Down
8 changes: 7 additions & 1 deletion movement_primitives/kinematics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Forward kinematics and a simple implementation of inverse kinematics."""
"""Kinematics
==========
Forward kinematics and a simple implementation of inverse kinematics."""
import math
import numpy as np
import numba
Expand Down Expand Up @@ -133,6 +136,9 @@ def create_chain(self, joint_names, base_frame, ee_frame, verbose=0):
class Chain:
"""Kinematic chain.
You should not call this constructor manually. Use :class:`Kinematics` to
create a kinematic chain.
Parameters
----------
tm : FastUrdfTransformManager
Expand Down

0 comments on commit 3c73a92

Please sign in to comment.