3 #include <visp3/core/vpConfig.h>
4 #include <visp3/robot/vpRobotPioneer.h>
8 #ifdef VISP_HAVE_PIONEER
9 #if defined(ENABLE_VISP_NAMESPACE)
13 ArArgumentBuilder args;
15 #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
16 args.add(
"/dev/ttyUSB0");
21 ArSimpleConnector conn(&args);
25 if (!conn.connectRobot(&robot))
38 std::cout <<
"Measured vel: " << v_mes.
t() << std::endl;
42 robot.waitForRunExit();
45 std::cout <<
"Catch an exception: " << e << std::endl;
Implementation of column vector and the associated operations.
error that can be emitted by ViSP classes.
Interface for Pioneer mobile robots based on Aria 3rd party library.
void useSonar(bool usage)
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &velocity)
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel) VP_OVERRIDE
VISP_EXPORT int wait(double t0, double t)