V-ART
naturalinterpolator.h
Go to the documentation of this file.
1 // The NaturalInterpolator has been replaced with NoisyDofMover
5 
6 #ifndef VART_NATURALINTERPOLATOR_H
7 #define VART_NATURALINTERPOLATOR_H
8 
10 #include <list>
11 
12 namespace VART {
19  public:
20  // PUBLIC METHODS
23  NaturalInterpolator(float offsetLevel, float overshootLevel);
24  virtual float GetValue(float linearIndex, float initialValue, float range) const;
25  void SetOffset(float value) { offset = value; }
26  float GetOffset() { return offset; }
27  void SetOvershoot(float value) { overshoot = value; }
28  float GetOvershoot() { return overshoot; }
29  void SetNoise(float newNoiseAmplitude, float newNoiseWaveLenght);
30  protected:
31  // PROTECTED METHODS
32  // PROTECTED ATTRIBUTES
37  float offset;
42  float overshoot;
46  float peakTime;
48  float noiseAmplitude; // in DOF position range
53  // STATIC PROTECTED ATTRIBUTES
54  private:
55  std::list<float> noisePositionPeaks;
56  std::list<float> noiseAmplitudePeaks;
57  std::list<float>::iterator nextPeakItr;
58  std::list<float>::iterator prevPeakItr;
59  }; // end class declaration
60 } // end namespace
61 #endif
NaturalInterpolator()
Creates an unitialized natural interpolator.
Smooth (sine function) interpolator.
void SetOvershoot(float value)
virtual float GetValue(float linearIndex, float initialValue, float range) const
Evaluates a goal position for DOF interpolation.
Header file for V-ART class "SineInterpolator".
float noiseWaveLenght
Noise wave length.
float offset
how much to miss the target
An interpolator for natural joint movement.
float overshoot
how much to pass the target before correction
float peakTime
Overshoot time.
float noiseAmplitude
Noise amplitude (noise level)
void SetNoise(float newNoiseAmplitude, float newNoiseWaveLenght)