3 #include <visp3/robot/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();
40 std::cout <<
"Catch an exception: " << e << std::endl;
VISP_EXPORT int wait(double t0, double t)
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.
Implementation of column vector and the associated operations.
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &velocity)