@@ -26,18 +26,18 @@ using dynamicgraph::Vector;
2626using dynamicgraph::sot::MatrixHomogeneous;
2727
2828class Seqplay : public Entity {
29- Signal<Vector, int > postureSOUT_;
30- Signal<MatrixHomogeneous, int > leftAnkleSOUT_;
31- Signal<MatrixHomogeneous, int > rightAnkleSOUT_;
32- Signal<Vector, int > leftAnkleVelSOUT_;
33- Signal<Vector, int > rightAnkleVelSOUT_;
34- Signal<Vector, int > comSOUT_;
35- Signal<Vector, int > comdotSOUT_;
36- Signal<Vector, int > comddotSOUT_;
37- Signal<Vector, int > forceLeftFootSOUT_;
38- Signal<Vector, int > forceRightFootSOUT_;
39-
40- Signal<Vector, int > zmpSOUT_;
29+ Signal<Vector, sigtime_t > postureSOUT_;
30+ Signal<MatrixHomogeneous, sigtime_t > leftAnkleSOUT_;
31+ Signal<MatrixHomogeneous, sigtime_t > rightAnkleSOUT_;
32+ Signal<Vector, sigtime_t > leftAnkleVelSOUT_;
33+ Signal<Vector, sigtime_t > rightAnkleVelSOUT_;
34+ Signal<Vector, sigtime_t > comSOUT_;
35+ Signal<Vector, sigtime_t > comdotSOUT_;
36+ Signal<Vector, sigtime_t > comddotSOUT_;
37+ Signal<Vector, sigtime_t > forceLeftFootSOUT_;
38+ Signal<Vector, sigtime_t > forceRightFootSOUT_;
39+
40+ Signal<Vector, sigtime_t > zmpSOUT_;
4141
4242 DYNAMIC_GRAPH_ENTITY_DECL ();
4343 Seqplay (const std::string& name);
@@ -47,29 +47,32 @@ class Seqplay : public Entity {
4747 virtual std::string getDocString () const ;
4848
4949 private:
50- Vector& computePosture (Vector& pos, const int & t);
51- MatrixHomogeneous& computeLeftAnkle (MatrixHomogeneous& la, const int & t);
52- MatrixHomogeneous& computeRightAnkle (MatrixHomogeneous& ra, const int & t);
50+ Vector& computePosture (Vector& pos, const sigtime_t & t);
51+ MatrixHomogeneous& computeLeftAnkle (MatrixHomogeneous& la,
52+ const sigtime_t & t);
53+ MatrixHomogeneous& computeRightAnkle (MatrixHomogeneous& ra,
54+ const sigtime_t & t);
5355 Vector& computeAnkleVelocity (
5456 Vector& velocity, const std::vector<MatrixHomogeneous>& ankleVector,
55- const int & t);
56- Vector& computeLeftAnkleVel (Vector& velocity, const int & t);
57- Vector& computeRightAnkleVel (Vector& velocity, const int & t);
58- Vector& computeCom (Vector& com, const int & t);
59- Vector& computeComdot (Vector& comdot, const int & t);
60- Vector& computeComddot (Vector& comdot, const int & t);
61- Vector& computeZMP (Vector& comdot, const int & t);
62- Vector& computeForceFoot (Vector&, const std::vector<Vector>&, const int &);
63- Vector& computeForceLeftFoot (Vector& force, const int & t);
64- Vector& computeForceRightFoot (Vector& force, const int & t);
57+ const sigtime_t & t);
58+ Vector& computeLeftAnkleVel (Vector& velocity, const sigtime_t & t);
59+ Vector& computeRightAnkleVel (Vector& velocity, const sigtime_t & t);
60+ Vector& computeCom (Vector& com, const sigtime_t & t);
61+ Vector& computeComdot (Vector& comdot, const sigtime_t & t);
62+ Vector& computeComddot (Vector& comdot, const sigtime_t & t);
63+ Vector& computeZMP (Vector& comdot, const sigtime_t & t);
64+ Vector& computeForceFoot (Vector&, const std::vector<Vector>&,
65+ const sigtime_t &);
66+ Vector& computeForceLeftFoot (Vector& force, const sigtime_t & t);
67+ Vector& computeForceRightFoot (Vector& force, const sigtime_t & t);
6568
6669 void readAnkleFile (std::ifstream&, std::vector<MatrixHomogeneous>&,
6770 const std::string&);
6871 void readForceFile (std::ifstream&, std::vector<Vector>&, const std::string&);
6972 // 0: motion not started, 1: motion in progress, 2: motion finished
7073 unsigned int state_;
7174 unsigned int configId_;
72- int startTime_;
75+ sigtime_t startTime_;
7376
7477 std::vector<Vector> posture_;
7578 std::vector<MatrixHomogeneous> leftAnkle_;
0 commit comments