# Path: imusim/trajectories/base.py
# class StaticTrajectory(ConstantPositionTrajectory, ConstantRotationTrajectory):
#     """
#     Represents the trajectory of a static object.
#     """
# 
#     def __init__(self, position=None, rotation=None):
#         """
#         Construct static trajectory.
# 
#         @param position: the constant position of the object (3x1 L{np.ndarray})
#         @param rotation: the constant rotation of the object (L{Quaternion})
#         """
#         ConstantPositionTrajectory.__init__(self, position)
#         ConstantRotationTrajectory.__init__(self, rotation)
# 
#     @property
#     def startTime(self):
#         return 0
# 
#     @property
#     def endTime(self):
#         return np.inf


from imusim.trajectories.base import StaticTrajectory
from imusim.testing.random_data import randomPosition, randomRotation
from numpy.testing import assert_equal
from imusim.maths.vectors import vector
from imusim.maths.quaternions import QuaternionArray
import numpy as np
"""
Tests for static trajectories
"""
# Copyright (C) 2009-2011 University of Edinburgh
#
# This file is part of IMUSim.
#
# IMUSim is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IMUSim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with IMUSim.  If not, see <http://www.gnu.org/licenses/>.


def testStaticTrajectory():
    p = randomPosition()
    r = randomRotation()

# Path: imusim/trajectories/base.py
# class StaticTrajectory(ConstantPositionTrajectory, ConstantRotationTrajectory):
#     """
#     Represents the trajectory of a static object.
#     """
# 
#     def __init__(self, position=None, rotation=None):
#         """
#         Construct static trajectory.
# 
#         @param position: the constant position of the object (3x1 L{np.ndarray})
#         @param rotation: the constant rotation of the object (L{Quaternion})
#         """
#         ConstantPositionTrajectory.__init__(self, position)
#         ConstantRotationTrajectory.__init__(self, rotation)
# 
#     @property
#     def startTime(self):
#         return 0
# 
#     @property
#     def endTime(self):
#         return np.inf


# Path: imusim/tests/trajectories/static_test.py
from imusim.trajectories.base import StaticTrajectory
from imusim.testing.random_data import randomPosition, randomRotation
from numpy.testing import assert_equal
from imusim.maths.vectors import vector
from imusim.maths.quaternions import QuaternionArray
import numpy as np

"""
Tests for static trajectories
"""
# Copyright (C) 2009-2011 University of Edinburgh
#
# This file is part of IMUSim.
#
# IMUSim is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IMUSim is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with IMUSim.  If not, see <http://www.gnu.org/licenses/>.


def testStaticTrajectory():
    p = randomPosition()
    r = randomRotation()

    s = StaticTrajectory(p, r)