@@ -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
-
77
+
78
78
virtual void setStateSize (const unsigned int & size);
79
79
virtual void setState (const ml::Vector& st);
80
80
void setVelocitySize (const unsigned int & size);
81
81
virtual void setVelocity (const ml::Vector & vel);
82
82
virtual void setSecondOrderIntegration ();
83
83
virtual void increment (const double & dt = 5e-2 );
84
-
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.
0 commit comments