45 #include <visp3/vs/vpServo.h> 47 #include <visp3/core/vpIoException.h> 48 #include <visp3/core/vpIoTools.h> 49 #include <visp3/vs/vpServoData.h> 59 sprintf(s,
"%s/vel.dat", directory);
61 sprintf(s,
"%s/error.dat", directory);
63 sprintf(s,
"%s/errornorm.dat", directory);
64 errorNormFile.open(s);
65 sprintf(s,
"%s/s.dat", directory);
67 sprintf(s,
"%s/sStar.dat", directory);
81 velocityFile << task.
q_dot.
t();
83 for (
unsigned int i = 0; i < 3; i++)
84 velocityFile << task.
q_dot[i] * 100 <<
" ";
85 for (
unsigned int i = 4; i < 6; i++)
87 velocityFile << std::endl;
90 errorNormFile << (task.
getError()).sumSquare() << std::endl;
94 sStarFile << task.
sStar.
t();
101 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)