org.robokind.api.motion.blending
Class VelocityCombiner<Id,PosMap extends JointPositionMap<Id,NormalizedDouble>>
java.lang.Object
org.robokind.api.motion.blending.VelocityCombiner<Id,PosMap>
- Type Parameters:
Id - type of id used in the PositionMaps being combinedPosMap - type of PositionMaps being combined
- All Implemented Interfaces:
- FrameCombiner<MotionFrame<PosMap>,FrameSource<PosMap>,PosMap>
public class VelocityCombiner<Id,PosMap extends JointPositionMap<Id,NormalizedDouble>>
- extends Object
- implements FrameCombiner<MotionFrame<PosMap>,FrameSource<PosMap>,PosMap>
Blends Frames by combining the velocities contributed from each MotionFrame.
- Author:
- Matthew Stevenson
|
Constructor Summary |
VelocityCombiner(org.jflux.api.core.Source<PosMap> posMapFact)
Creates a new VelocityCombiner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityCombiner
public VelocityCombiner(org.jflux.api.core.Source<PosMap> posMapFact)
- Creates a new VelocityCombiner.
- Parameters:
posMapFact - factory for creating new PositionMaps
combineFrames
public PosMap combineFrames(long time,
long interval,
PosMap curPos,
Map<? extends MotionFrame<PosMap>,? extends FrameSource<PosMap>> frames)
- Description copied from interface:
FrameCombiner
- Combines Frames from FrameSources into a map of Joint positions.
- Specified by:
combineFrames in interface FrameCombiner<MotionFrame<PosMap extends JointPositionMap<Id,NormalizedDouble>>,FrameSource<PosMap extends JointPositionMap<Id,NormalizedDouble>>,PosMap extends JointPositionMap<Id,NormalizedDouble>>
- Parameters:
time - time of the move requestinterval - time since last move requestcurPos - set of current Joint positionsframes - map of Frames and their originating FrameSources
- Returns:
- a map of Joint positions
Copyright © 2011-2012. All Rights Reserved.