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__)))
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;
Implementation of column vector and the associated operations.
error that can be emited by ViSP classes.
Interface for Pioneer mobile robots based on Aria 3rd party library.
void useSonar(bool usage)
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &velocity)
VISP_EXPORT int wait(double t0, double t)