45 #include <visp3/vs/vpServo.h>
47 #include <visp3/vs/vpServoData.h>
48 #include <visp3/core/vpIoException.h>
49 #include <visp3/core/vpIoTools.h>
59 char s[FILENAME_MAX] ;
61 sprintf(s,
"%s/vel.dat",directory) ;
62 velocityFile.open(s) ;
63 sprintf(s,
"%s/error.dat",directory) ;
65 sprintf(s,
"%s/errornorm.dat",directory) ;
66 errorNormFile.open(s) ;
67 sprintf(s,
"%s/s.dat",directory) ;
69 sprintf(s,
"%s/sStar.dat",directory) ;
90 if (cmDeg==
false) velocityFile << task.
q_dot.
t() ;
93 for (
unsigned int i=0 ; i < 3 ; i++)
94 velocityFile << task.
q_dot[i]*100 <<
" " ;
95 for (
unsigned int i=4 ; i < 6 ; i++)
97 velocityFile << std::endl ;
99 errorFile << ( task.
getError() ).t() ;
100 errorNormFile << ( task.
getError() ).sumSquare() << std::endl ;
104 sStarFile << task.
sStar.
t();
111 velocityFile.close() ;
113 errorNormFile.close() ;
void open(const char *baseDirectory)
void save(const vpServo &task)
void setCmDeg()
velocity output in cm and deg
vpColVector q_dot
Articular velocity.
vpColVector getError() const
static double deg(double rad)
void setMeterRad()
velocity output in meter and deg (default)