Esempio n. 1
0
    def __init__(self, capture, sampled, **kwargs):
        """
        Initialise splined marker trajectory.

        @param capture: Parent L{SplinedMarkerCapture}.
        @param sampled: L{Marker6DOF} with sampled data.
        @param kwargs: Keyword arguments for spline trajectory constructors.
        """
        SplinedMarker3DOF.__init__(self, capture, sampled, **kwargs)
        SplinedRotationTrajectory.__init__(self, sampled, **kwargs)
    def __init__(self, capture, sampled, **kwargs):
        """
        Initialise splined marker trajectory.

        @param capture: Parent L{SplinedMarkerCapture}.
        @param sampled: L{Marker6DOF} with sampled data.
        @param kwargs: Keyword arguments for spline trajectory constructors.
        """
        SplinedMarker3DOF.__init__(self, capture, sampled, **kwargs)
        SplinedRotationTrajectory.__init__(self, sampled, **kwargs)
Esempio n. 3
0
    def __init__(self, parent, sampled, **kwargs):
        """
        Initialise splined joint.

        @param sampled: the L{SampledJoint} from which to generate splined
            trajectories
        @param parent: the parent joint in the body model hierarchy
        """
        Joint.__init__(self, parent, sampled.name, sampled.positionOffset)
        OffsetTrajectory.__init__(self, parent, sampled.positionOffset)
        SplinedRotationTrajectory.__init__(self, sampled, **kwargs)
        self.children = [
                (SplinedJoint(self, child, **kwargs) if child.isJoint
                else PointTrajectory(self, child.name, child.positionOffset))
                for child in sampled.children]
    def __init__(self, parent, sampled, **kwargs):
        """
        Initialise splined joint.

        @param sampled: the L{SampledJoint} from which to generate splined
            trajectories
        @param parent: the parent joint in the body model hierarchy
        """
        Joint.__init__(self, parent, sampled.name, sampled.positionOffset)
        OffsetTrajectory.__init__(self, parent, sampled.positionOffset)
        SplinedRotationTrajectory.__init__(self, sampled, **kwargs)
        self.children = [
            (SplinedJoint(self, child, **kwargs) if child.isJoint else
             PointTrajectory(self, child.name, child.positionOffset))
            for child in sampled.children
        ]
Esempio n. 5
0
 def __init__(self, t):
     sampled = SampledTrajectory(None, TimeSeries(t, randomRotationSequence(t)))
     SplinedRotationTrajectory.__init__(self, sampled)