cubic-interpolation-se3.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_SE3_HH
8 #define SOT_TOOLS_CUBIC_INTERPOLATION_SE3_HH
9 
10 #include <dynamic-graph/entity.h>
13 
15 
16 namespace dynamicgraph {
17 namespace sot {
18 namespace tools {
19 class CubicInterpolationSE3 : public Entity {
21 
22  public:
23  virtual ~CubicInterpolationSE3();
24  CubicInterpolationSE3(const std::string& name);
26  void start(const double& duration);
28  void reset();
30  virtual std::string getDocString() const;
32  void setSamplingPeriod(const double& period);
33 
34  protected:
35  virtual void doStart(const double& duration);
40 
41  MatrixHomogeneous& computeSout(MatrixHomogeneous& 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 
56 }; // class CubicInterpolationSE3
57 } // namespace tools
58 } // namespace sot
59 } // namespace dynamicgraph
60 
61 #endif // SOT_TOOLS_CUBIC_INTERPOLATION_SE3_HH
void setSamplingPeriod(const double &period)
Set sampling period of control discretization.
Eigen::Transform< double, 3, Eigen::Affine > SOT_CORE_EXPORT MatrixHomogeneous
void reset()
Reset state to 0 before starting a new motion.
MatrixHomogeneous & computeSout(MatrixHomogeneous &sout, const int &inTime)
dynamicgraph::Signal< MatrixHomogeneous, int > soutSOUT_
dynamicgraph::SignalPtr< MatrixHomogeneous, int > goalSIN_
dynamicgraph::Signal< Vector, int > soutdotSOUT_
dynamicgraph::SignalPtr< MatrixHomogeneous, int > initSIN_
virtual std::string getDocString() const
Documentation.
void start(const double &duration)
Start tracking.


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