oscillator.hh
Go to the documentation of this file.
1 //
2 // Copyright (C) 2012 LAAS-CNRS
3 //
4 // Author: Florent Lamiraux,
5 // Mehdi Benallegue <mehdi@benallegue.com>
6 //
7 
8 #ifndef SOT_TOOLS_OSCILLATOR_HH
9 #define SOT_TOOLS_OSCILLATOR_HH
10 
15 #include <dynamic-graph/command.h>
16 #include <dynamic-graph/entity.h>
17 #include <dynamic-graph/factory.h>
20 
21 namespace dynamicgraph {
22 namespace sot {
23 namespace tools {
24 
25 class Oscillator : public Entity {
27 
28  public:
29  Oscillator(const std::string name);
30 
31  protected:
32  double& computeSignal(double& sout, const int& t);
34  const int& t);
35  double value(double dt, double time, double omega, double phase,
36  double amplitude, double bias);
37 
44 
45  double epsilon_;
46  bool started_;
48  double dt_;
49  double lastValue_;
50 }; // class Oscillator
51 
52 } // namespace tools
53 } // namespace sot
54 } // namespace dynamicgraph
55 
56 #endif // SOT_TOOLS_OSCILLATOR_HH
double value(double dt, double time, double omega, double phase, double amplitude, double bias)
Definition: oscillator.cc:100
SignalPtr< double, int > biasSIN_
Definition: oscillator.hh:41
Eigen::VectorXd Vector
SignalPtr< double, int > angularFrequencySIN_
Definition: oscillator.hh:38
SignalPtr< double, int > phaseSIN_
Definition: oscillator.hh:40
SignalTimeDependent< dynamicgraph::Vector, int > vectorSoutSOUT_
Definition: oscillator.hh:43
SignalPtr< double, int > magnitudeSIN_
Definition: oscillator.hh:39
dynamicgraph::Vector & computeVectorSignal(dynamicgraph::Vector &vsout, const int &t)
Definition: oscillator.cc:106
float dt
MotionTpl< Scalar, Options > bias(const JointDataTpl< Scalar, Options, JointCollectionTpl > &jdata)
SignalTimeDependent< double, int > soutSOUT_
Definition: oscillator.hh:42
Transform3f t
Oscillator(const std::string name)
Definition: oscillator.cc:22
double & computeSignal(double &sout, const int &t)
Definition: oscillator.cc:113


sot-tools
Author(s): Mehdi Benallegue, Francois Keith, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Jorrit T'Hooft
autogenerated on Sun Jun 25 2023 02:10:08