50 #include "visp/vpConfig.h"
51 #include "visp/vpRobotCycab.h"
52 #include "visp/vpMath.h"
54 #ifdef VISP_HAVE_CYCAB
61 double x_min=2000, x_max=0, y_min=2000, y_max=0;
65 std::cout <<
"Send the command v: " << v <<
" m/s and phi: "
69 robot.setCommand(v, phi);
70 robot.getJoystickPosition(x, y);
72 if (x < x_min) x_min = x;
73 if (y < y_min) y_min = y;
74 if (x > x_max) x_max = x;
75 if (y > y_max) y_max = y;
76 std::cout <<
"x_min: " << x_min <<
" x_max: " << x_max
77 <<
" y_min: " << y_min <<
" y_max: " << y_max
84 std::cerr <<
"An exception was catched" << std::endl;
92 #else // VISP_HAVE_CYCAB
95 std::cout <<
"Sorry, you don't have access to the Cycab car-like mobile robot."
98 #endif // VISP_HAVE_CYCAB
Interface for the car-like Cycab mobile robot.
static double rad(double deg)
static double deg(double rad)