cubic-interpolation.hh
Go to the documentation of this file.
1 //
2 // Copyright (C) 2012 LAAS-CNRS
3 //
4 // Author: Florent Lamiraux
5 //
6 
7 #ifndef SOT_TOOLS_CUBIC_INTERPOLATION_HH
8 #define SOT_TOOLS_CUBIC_INTERPOLATION_HH
9 
10 #include <dynamic-graph/entity.h>
14 
15 namespace dynamicgraph {
16 namespace sot {
17 namespace tools {
18 class CubicInterpolation : public Entity {
20 
21  public:
22  virtual ~CubicInterpolation();
23  CubicInterpolation(const std::string& name);
25  void start(const double& duration);
27  void reset();
29  virtual std::string getDocString() const;
31  void setSamplingPeriod(const double& period);
32 
33  protected:
34  virtual void doStart(const double& duration);
39 
40  Vector& computeSout(Vector& sout, const int& inTime);
41  Vector& computeSoutdot(Vector& sout, const int& inTime);
42 
45  double duration_;
46  // 0: motion not started, 1: motion in progress, 2: motion finished
47  unsigned state_;
48 
53 }; // class CubicInterpolation
54 } // namespace tools
55 } // namespace sot
56 } // namespace dynamicgraph
57 
58 #endif // SOT_TOOLS_CUBIC_INTERPOLATION_SE3_HH
virtual void doStart(const double &duration)
dynamicgraph::Signal< Vector, int > soutSOUT_
void reset()
Reset state to 0 before starting a new motion.
void start(const double &duration)
Start tracking.
void setSamplingPeriod(const double &period)
Set sampling period of control discretization.
dynamicgraph::SignalPtr< Vector, int > goalSIN_
Vector & computeSoutdot(Vector &sout, const int &inTime)
dynamicgraph::SignalPtr< Vector, int > initSIN_
dynamicgraph::Signal< Vector, int > soutdotSOUT_
virtual std::string getDocString() const
Documentation.
Vector & computeSout(Vector &sout, const int &inTime)


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