3 #include <visp/vpRobotPioneer.h>
7 #ifdef VISP_HAVE_PIONEER
9 ArArgumentBuilder args;
11 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) // UNIX
12 args.add(
"/dev/ttyUSB0");
17 ArSimpleConnector conn(&args);
21 if (!conn.connectRobot(&robot))
34 std::cout <<
"Measured vel: " << v_mes.
t() << std::endl;
38 robot.waitForRunExit();
41 std::cout <<
"Catch an exception: " << e << std::endl;
void useSonar(bool usage)
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
error that can be emited by ViSP classes.
Interface for Pioneer mobile robots based on Aria 3rd party library.
static int wait(double t0, double t)
vpRowVector t() const
transpose of Vector
Class that provides a data structure for the column vectors as well as a set of operations on these v...
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &velocity)