17 void outputLine(
double,
double,
double,
double,
double,
double,
double);
20 int main(
int argc ,
char** argv){
33 Vector grav(0.0,0.0,-9.81);
59 Add(tauHCG,C,tauHCGa);
60 Add(tauHCGa,G,tauHCG);
62 std::cout<<
"H= \n"<<H<<
"\n C = \n "<<C<<
"\n G= \n"<<G<<
" \n tau (with HCG)= \n"<< tauHCG <<
std::endl;
71 outPoseFile <<
"linenumber=experimentnr= "<< linenum <<
"\n";
72 outPoseFile << T <<
"\n \n";
81 outTauFile << setiosflags(std::ios::left) << setw(10) << linenum;
82 outTauFile << tau <<
"\n";
100 std::cout <<
"Give experiment number= line number in files \n ?";
113 std::cerr <<
"File q could not be opened \n";
118 std::cout << setiosflags(std::ios::left) << setw(15) <<
"_q(0)" << setw(15) <<
"_q(1)" << setw(15) <<
"_q(2)" << setw(15) <<
"_q(3)" << setw(15) <<
"_q(4)" << setw(15) <<
"_q(5)" << setw(15) <<
"_q(6)" <<
" \n" ;
120 while(!inQfile.
eof())
123 inQfile >> _q(0) >> _q(1) >> _q(2) >> _q(3) >> _q(4) >> _q(5) >> _q(6);
127 outputLine( _q(0), _q(1), _q(2), _q(3), _q(4), _q(5), _q(6));
138 std::ifstream inQdotfile(
"interpreteerbaar/qdot", std::ios::in);
142 std::cerr <<
"File qdot could not be opened \n";
147 std::cout << setiosflags(std::ios::left) << setw(15) <<
"_qdot(0)" << setw(15) <<
"_qdot(1)" << setw(15) <<
"_qdot(2)" << setw(15) <<
"_qdot(3)" << setw(15) <<
"_qdot(4)" << setw(15) <<
"_qdot(5)" << setw(15) <<
"_qdot(6)" <<
" \n" ;
149 while(!inQdotfile.
eof())
152 inQdotfile >> _qdot(0) >> _qdot(1) >> _qdot(2) >> _qdot(3) >> _qdot(4) >> _qdot(5) >> _qdot(6) ;
156 outputLine( _qdot(0), _qdot(1), _qdot(2), _qdot(3), _qdot(4), _qdot(5), _qdot(6));
167 std::ifstream inQdotdotfile(
"interpreteerbaar/qddot", std::ios::in);
171 std::cerr <<
"File qdotdot could not be opened \n";
176 std::cout << setiosflags(std::ios::left) << setw(15) <<
"_qdotdot(0)" << setw(15) <<
"_qdotdot(1)" << setw(15) <<
"_qdotdot(2)" << setw(15) <<
"_qdotdot(3)" << setw(15) <<
"_qdotdot(4)" << setw(15) <<
"_qdotdot(5)" << setw(15) <<
"_qdotdot(6)" <<
" \n" ;
178 while(!inQdotdotfile.
eof())
181 inQdotdotfile >> _qdotdot(0) >> _qdotdot(1) >> _qdotdot(2) >> _qdotdot(3) >> _qdotdot(4) >> _qdotdot(5) >> _qdotdot(6);
185 outputLine(_qdotdot(0), _qdotdot(1), _qdotdot(2), _qdotdot(3), _qdotdot(4), _qdotdot(5), _qdotdot(6) );
190 inQdotdotfile.
close();
195 void outputLine(
double x1,
double x2,
double x3,
double x4,
double x5,
double x6,
double x7)
197 std::cout << setiosflags(std::ios::left) << setiosflags(std::ios::fixed | std::ios::showpoint) <<setw(15)
198 << x1 << setw(15) << x2 <<setw(15) <<setw(15) << x3 <<setw(15) << x4 <<setw(15) << x5 <<setw(15) << x6 <<setw(15) << x7 <<
"\n";