org.robokind.api.motion.blending
Class NaiveMotionFrameAverager<Id,PosMap extends JointPositionMap<Id,org.robokind.api.common.position.NormalizedDouble>>
java.lang.Object
org.robokind.api.motion.blending.NaiveMotionFrameAverager<Id,PosMap>
- All Implemented Interfaces:
- FrameCombiner<MotionFrame<PosMap>,FrameSource<PosMap>,PosMap>
public class NaiveMotionFrameAverager<Id,PosMap extends JointPositionMap<Id,org.robokind.api.common.position.NormalizedDouble>>
- extends Object
- implements FrameCombiner<MotionFrame<PosMap>,FrameSource<PosMap>,PosMap>
- Author:
- Matthew Stevenson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaiveMotionFrameAverager
public NaiveMotionFrameAverager(org.robokind.api.common.utils.Factory<PosMap> posMapFact)
combineFrames
public PosMap combineFrames(long time,
long interval,
PosMap curPos,
Map<? extends MotionFrame<PosMap>,? extends FrameSource<PosMap>> frames)
- Returns a JointPositionMap, averaging the goal positions from the given
MotionFrames.
- Specified by:
combineFrames
in interface FrameCombiner<MotionFrame<PosMap extends JointPositionMap<Id,org.robokind.api.common.position.NormalizedDouble>>,FrameSource<PosMap extends JointPositionMap<Id,org.robokind.api.common.position.NormalizedDouble>>,PosMap extends JointPositionMap<Id,org.robokind.api.common.position.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:
- JointPositionMap, averaging the goal positions from the given
MotionFrames
Copyright © 2011. All Rights Reserved.