50 #include <visp/vpConfig.h>
51 #include <visp/vpDebug.h>
56 #include <visp/vpMath.h>
57 #include <visp/vpMatrix.h>
58 #include <visp/vpColVector.h>
59 #include <visp/vpRxyzVector.h>
60 #include <visp/vpTranslationVector.h>
61 #include <visp/vpRotationMatrix.h>
62 #include <visp/vpVelocityTwistMatrix.h>
63 #include <visp/vpParseArgv.h>
66 #define GETOPTARGS "h"
67 void usage(
const char *name,
const char *badparam);
68 bool getOptions(
int argc,
const char **argv);
75 void usage(
const char *name,
const char *badparam)
78 Tests some vpMatrix functionalities.\n\
89 fprintf(stdout,
"\nERROR: Bad parameter [%s]\n", badparam);
98 bool getOptions(
int argc,
const char **argv)
105 case 'h': usage(argv[0], NULL);
return false;
break;
108 usage(argv[0], optarg_);
113 if ((c == 1) || (c == -1)) {
115 usage(argv[0], NULL);
116 std::cerr <<
"ERROR: " << std::endl;
117 std::cerr <<
" Bad argument " << optarg_ << std::endl << std::endl;
126 main(
int argc,
const char ** argv)
130 if (getOptions(argc, argv) ==
false) {
134 vpTRACE(
"--------------------------");
135 vpTRACE(
"--- TEST vpVelocityTwistMatrix ---");
136 vpTRACE(
"--------------------------");
157 cVe.print (std::cout, 6);
171 ev.print (std::cout, 6);
179 cv.
print (std::cout, 6);
183 std::cout <<
"Catch an exception: " << e << std::endl;
error that can be emited by ViSP classes.
int print(std::ostream &s, unsigned int length, char const *intro=0)
static bool parse(int *argcPtr, const char **argv, vpArgvInfo *argTable, int flags)
The vpRotationMatrix considers the particular case of a rotation matrix.
Class that consider the particular case of twist transformation matrix that allows to transform a vel...
Class that provides a data structure for the column vectors as well as a set of operations on these v...
Class that consider the case of the Euler angle using the x-y-z convention, where are respectively ...
Class that consider the case of a translation vector.