|
| 1 | +# flatsys/__init__.py: flat systems package initialization file |
| 2 | +# |
| 3 | +# Copyright (c) 2019 by California Institute of Technology |
| 4 | +# All rights reserved. |
| 5 | +# |
| 6 | +# Redistribution and use in source and binary forms, with or without |
| 7 | +# modification, are permitted provided that the following conditions |
| 8 | +# are met: |
| 9 | +# |
| 10 | +# 1. Redistributions of source code must retain the above copyright |
| 11 | +# notice, this list of conditions and the following disclaimer. |
| 12 | +# |
| 13 | +# 2. Redistributions in binary form must reproduce the above copyright |
| 14 | +# notice, this list of conditions and the following disclaimer in the |
| 15 | +# documentation and/or other materials provided with the distribution. |
| 16 | +# |
| 17 | +# 3. Neither the name of the California Institute of Technology nor |
| 18 | +# the names of its contributors may be used to endorse or promote |
| 19 | +# products derived from this software without specific prior |
| 20 | +# written permission. |
| 21 | +# |
| 22 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 23 | +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 24 | +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 25 | +# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CALTECH |
| 26 | +# OR THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 27 | +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 28 | +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
| 29 | +# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 30 | +# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 31 | +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 32 | +# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 33 | +# SUCH DAMAGE. |
| 34 | +# |
| 35 | +# Author: Richard M. Murray |
| 36 | +# Date: 1 Jul 2019 |
| 37 | + |
| 38 | +r"""The :mod:`control.flatsys` package contains a set of classes and functions |
| 39 | +that can be used to compute trajectories for differentially flat systems. |
| 40 | +
|
| 41 | +A differentially flat system is defined by creating an object using the |
| 42 | +:class:`~control.flatsys.FlatSystem` class, which has member functions for |
| 43 | +mapping the system state and input into and out of flat coordinates. The |
| 44 | +:func:`~control.flatsys.point_to_point` function can be used to create a |
| 45 | +trajectory between two endpoints, written in terms of a set of basis functions |
| 46 | +defined using the :class:`~control.flatsys.BasisFamily` class. The resulting |
| 47 | +trajectory is return as a :class:`~control.flatsys.SystemTrajectory` object |
| 48 | +and can be evaluated using the :func:`~control.flatsys.SystemTrajectory.eval` |
| 49 | +member function. |
| 50 | +
|
| 51 | +""" |
| 52 | + |
| 53 | +# Basis function families |
| 54 | +from .basis import BasisFamily |
| 55 | +from .poly import PolyFamily |
| 56 | + |
| 57 | +# Classes |
| 58 | +from .systraj import SystemTrajectory |
| 59 | +from .flatsys import FlatSystem |
| 60 | +from .linflat import LinearFlatSystem |
| 61 | + |
| 62 | +# Package functions |
| 63 | +from .flatsys import point_to_point |
0 commit comments