16
16
17
17
/* Matrix */
18
18
#include < dynamic-graph/linear-algebra.h>
19
- namespace dg = dynamicgraph;
20
19
21
20
/* SOT */
22
21
#include " sot/core/api.hh"
@@ -137,20 +136,20 @@ public:
137
136
\par[in] time: The time at which the error is computed.
138
137
\return The vector res with the appropriate value.
139
138
*/
140
- virtual dg ::Vector &computeError (dg ::Vector &res, int time) = 0;
139
+ virtual dynamicgraph ::Vector &computeError (dynamicgraph ::Vector &res, int time) = 0;
141
140
142
141
/* ! \brief Compute the Jacobian of the error according the robot state.
143
142
144
143
\par[out] res: The matrix in which the error will be written.
145
144
\return The matrix res with the appropriate values.
146
145
*/
147
- virtual dg ::Matrix &computeJacobian (dg ::Matrix &res, int time) = 0;
146
+ virtual dynamicgraph ::Matrix &computeJacobian (dynamicgraph ::Matrix &res, int time) = 0;
148
147
149
148
// / Callback for signal errordotSOUT
150
149
// /
151
150
// / Copy components of the input signal errordotSIN defined by selection
152
151
// / flag selectionSIN.
153
- virtual dg ::Vector &computeErrorDot (dg ::Vector &res, int time);
152
+ virtual dynamicgraph ::Vector &computeErrorDot (dynamicgraph ::Vector &res, int time);
154
153
155
154
/* ! @} */
156
155
@@ -170,7 +169,7 @@ public:
170
169
SignalPtr<Flags, int > selectionSIN;
171
170
172
171
// / Derivative of the reference value.
173
- SignalPtr<dg ::Vector, int > errordotSIN;
172
+ SignalPtr<dynamicgraph ::Vector, int > errordotSIN;
174
173
175
174
/* ! @} */
176
175
@@ -179,15 +178,15 @@ public:
179
178
180
179
/* ! \brief This signal returns the error between the desired value and
181
180
the current value : \f$ E(t) = {\bf s}(t) - {\bf s}^*(t)\f$ */
182
- SignalTimeDependent<dg ::Vector, int > errorSOUT;
181
+ SignalTimeDependent<dynamicgraph ::Vector, int > errorSOUT;
183
182
184
183
/* ! \brief Derivative of the error with respect to time:
185
184
* \f$ \frac{\partial e}{\partial t} = - \frac{d{\bf s}^*}{dt} \f$ */
186
- SignalTimeDependent<dg ::Vector, int > errordotSOUT;
185
+ SignalTimeDependent<dynamicgraph ::Vector, int > errordotSOUT;
187
186
188
187
/* ! \brief Jacobian of the error wrt the robot state:
189
188
* \f$ J = \frac{\partial {\bf s}}{\partial {\bf q}}\f$ */
190
- SignalTimeDependent<dg ::Matrix, int > jacobianSOUT;
189
+ SignalTimeDependent<dynamicgraph ::Matrix, int > jacobianSOUT;
191
190
192
191
/* ! \brief Returns the dimension of the feature as an output signal. */
193
192
SignalTimeDependent<unsigned int , int > dimensionSOUT;
@@ -196,7 +195,7 @@ public:
196
195
FileName. */
197
196
virtual std::ostream &writeGraph (std::ostream &os) const ;
198
197
199
- virtual SignalTimeDependent<dg ::Vector, int > &getErrorDot () {
198
+ virtual SignalTimeDependent<dynamicgraph ::Vector, int > &getErrorDot () {
200
199
return errordotSOUT;
201
200
}
202
201
0 commit comments