simpleseqplay.hh
Go to the documentation of this file.
1 //
2 // Copyright (C) 2012, 2013 LAAS-CNRS
3 //
4 // From Author: Florent Lamiraux, Mehdi Benallegue,
5 // Author: Olivier Stasse
6 // Simple sequence player just playing back a set of poses.
7 //
8 
9 #ifndef SOT_TOOLS_SIMPLE_SEQPLAY_HH
10 #define SOT_TOOLS_SIMPLE_SEQPLAY_HH
11 
12 #include <dynamic-graph/entity.h>
13 #include <dynamic-graph/factory.h>
17 
18 #include <fstream>
19 #include <iostream>
21 #include <sstream>
22 
23 namespace dynamicgraph {
24 namespace sot {
25 namespace tools {
26 namespace dg = dynamicgraph;
27 
28 class SimpleSeqPlay : public dg::Entity {
29  public:
30  typedef int Dummy;
33 
35 
37  SimpleSeqPlay(const std::string& name);
38 
39  void load(const std::string& filename);
40  void start();
41  virtual std::string getDocString() const;
42 
43  bool waiting() const;
44  bool initializing() const;
45  bool executing() const;
46  bool finished() const;
47 
48  private:
50  // 0: motion not started,
51  // 1: going to the current position to the first position.
52  // 2: motion in progress, 3: motion finished
53  unsigned int state_;
55 
56  std::vector<dg::Vector> posture_;
58 
59  std::vector<double> time_;
60  double dt_;
63  // Number of iterations performed in state1.
65 
66 }; // class SimpleSeqPlay
67 } // namespace tools
68 } // namespace sot
69 } // namespace dynamicgraph
70 
71 #endif // SOT_TOOLS_SIMPLESEQPLAY_HH
Eigen::VectorXd Vector
std::vector< dg::Vector > posture_
virtual std::string getDocString() const
dg::SignalTimeDependent< dg::Vector, int > postureSOUT_
void load(const std::string &filename)
dg::SignalPtr< dg::Vector, int > currentPostureSIN_
Transform3f t
SimpleSeqPlay(const std::string &name)
dg::Vector & computePosture(dg::Vector &pos, int t)
dg::SignalTimeDependent< Dummy, int > firstSINTERN


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