1616
1717/* Matrix */
1818#include < dynamic-graph/linear-algebra.h>
19- namespace dg = dynamicgraph;
2019
2120/* SOT */
2221#include " sot/core/api.hh"
@@ -137,20 +136,20 @@ public:
137136 \par[in] time: The time at which the error is computed.
138137 \return The vector res with the appropriate value.
139138 */
140- virtual dg ::Vector &computeError (dg ::Vector &res, int time) = 0;
139+ virtual dynamicgraph ::Vector &computeError (dynamicgraph ::Vector &res, int time) = 0;
141140
142141 /* ! \brief Compute the Jacobian of the error according the robot state.
143142
144143 \par[out] res: The matrix in which the error will be written.
145144 \return The matrix res with the appropriate values.
146145 */
147- virtual dg ::Matrix &computeJacobian (dg ::Matrix &res, int time) = 0;
146+ virtual dynamicgraph ::Matrix &computeJacobian (dynamicgraph ::Matrix &res, int time) = 0;
148147
149148 // / Callback for signal errordotSOUT
150149 // /
151150 // / Copy components of the input signal errordotSIN defined by selection
152151 // / flag selectionSIN.
153- virtual dg ::Vector &computeErrorDot (dg ::Vector &res, int time);
152+ virtual dynamicgraph ::Vector &computeErrorDot (dynamicgraph ::Vector &res, int time);
154153
155154 /* ! @} */
156155
@@ -170,7 +169,7 @@ public:
170169 SignalPtr<Flags, int > selectionSIN;
171170
172171 // / Derivative of the reference value.
173- SignalPtr<dg ::Vector, int > errordotSIN;
172+ SignalPtr<dynamicgraph ::Vector, int > errordotSIN;
174173
175174 /* ! @} */
176175
@@ -179,15 +178,15 @@ public:
179178
180179 /* ! \brief This signal returns the error between the desired value and
181180 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;
183182
184183 /* ! \brief Derivative of the error with respect to time:
185184 * \f$ \frac{\partial e}{\partial t} = - \frac{d{\bf s}^*}{dt} \f$ */
186- SignalTimeDependent<dg ::Vector, int > errordotSOUT;
185+ SignalTimeDependent<dynamicgraph ::Vector, int > errordotSOUT;
187186
188187 /* ! \brief Jacobian of the error wrt the robot state:
189188 * \f$ J = \frac{\partial {\bf s}}{\partial {\bf q}}\f$ */
190- SignalTimeDependent<dg ::Matrix, int > jacobianSOUT;
189+ SignalTimeDependent<dynamicgraph ::Matrix, int > jacobianSOUT;
191190
192191 /* ! \brief Returns the dimension of the feature as an output signal. */
193192 SignalTimeDependent<unsigned int , int > dimensionSOUT;
@@ -196,7 +195,7 @@ public:
196195 FileName. */
197196 virtual std::ostream &writeGraph (std::ostream &os) const ;
198197
199- virtual SignalTimeDependent<dg ::Vector, int > &getErrorDot () {
198+ virtual SignalTimeDependent<dynamicgraph ::Vector, int > &getErrorDot () {
200199 return errordotSOUT;
201200 }
202201
0 commit comments