@@ -48,17 +48,17 @@ namespace dynamicgraph {
48
48
public:
49
49
static const std::string CLASS_NAME;
50
50
virtual const std::string& getClassName (void ) const {
51
- return CLASS_NAME;
51
+ return CLASS_NAME;
52
52
}
53
-
53
+
54
54
enum ForceSignalSource
55
55
{
56
- FORCE_SIGNAL_RLEG,
57
- FORCE_SIGNAL_LLEG,
58
- FORCE_SIGNAL_RARM,
59
- FORCE_SIGNAL_LARM
56
+ FORCE_SIGNAL_RLEG,
57
+ FORCE_SIGNAL_LLEG,
58
+ FORCE_SIGNAL_RARM,
59
+ FORCE_SIGNAL_LARM
60
60
};
61
-
61
+
62
62
protected:
63
63
ml::Vector state_;
64
64
ml::Vector velocity_;
@@ -69,24 +69,24 @@ namespace dynamicgraph {
69
69
PeriodicCall periodicCallBefore_;
70
70
PeriodicCall periodicCallAfter_;
71
71
public:
72
-
72
+
73
73
/* --- CONSTRUCTION --- */
74
74
Device (const std::string& name);
75
75
/* --- DESTRUCTION --- */
76
76
virtual ~Device ();
77
-
78
- void setStateSize (const unsigned int & size);
79
- void setState (const ml::Vector& st);
77
+
78
+ virtual void setStateSize (const unsigned int & size);
79
+ virtual void setState (const ml::Vector& st);
80
80
void setVelocitySize (const unsigned int & size);
81
- void setVelocity (const ml::Vector & vel);
82
- void setSecondOrderIntegration ();
83
- void increment (const double & dt = 5e-2 );
84
-
81
+ virtual void setVelocity (const ml::Vector & vel);
82
+ virtual void setSecondOrderIntegration ();
83
+ virtual void increment (const double & dt = 5e-2 );
84
+
85
85
public: /* --- DISPLAY --- */
86
86
virtual void display (std::ostream& os) const ;
87
87
SOT_CORE_EXPORT friend std::ostream&
88
- operator <<(std::ostream& os,const Device& r) {
89
- r.display (os); return os;
88
+ operator <<(std::ostream& os,const Device& r) {
89
+ r.display (os); return os;
90
90
}
91
91
92
92
public: /* --- SIGNALS --- */
@@ -110,11 +110,11 @@ namespace dynamicgraph {
110
110
111
111
public: /* --- COMMANDS --- */
112
112
void commandLine (const std::string&, std::istringstream&,
113
- std::ostream&){}
113
+ std::ostream&){}
114
114
protected:
115
115
// / Compute roll pitch yaw angles of freeflyer joint.
116
116
void integrateRollPitchYaw (ml::Vector& state, const ml::Vector& control,
117
- double dt);
117
+ double dt);
118
118
// / Store Position of free flyer joint
119
119
MatrixHomogeneous ffPose_;
120
120
// / Compute the new position, from the current control.
@@ -123,8 +123,8 @@ namespace dynamicgraph {
123
123
// / Get freeflyer pose
124
124
const MatrixHomogeneous& freeFlyerPose () const ;
125
125
public:
126
- void setRoot ( const ml::Matrix & root );
127
- void setRoot ( const MatrixHomogeneous & worldMwaist );
126
+ virtual void setRoot ( const ml::Matrix & root );
127
+ virtual void setRoot ( const MatrixHomogeneous & worldMwaist );
128
128
private:
129
129
// Intermediate variable to avoid dynamic allocation
130
130
ml::Vector forceZero6;
@@ -134,7 +134,3 @@ namespace dynamicgraph {
134
134
135
135
136
136
#endif /* #ifndef SOT_DEVICE_HH */
137
-
138
-
139
-
140
-
0 commit comments