#include <iostream>
#include <visp3/core/vpConfig.h>
#include <visp3/robot/vpRobotPioneer.h>
int main()
{
#ifdef VISP_HAVE_PIONEER
#if defined(ENABLE_VISP_NAMESPACE)
#endif
try {
ArArgumentBuilder args;
args.add("-rp");
#if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__)))
args.add("/dev/ttyUSB0");
#else
args.add("COM3");
#endif
ArSimpleConnector conn(&args);
if (!conn.connectRobot(&robot))
return EXIT_FAILURE;
v = 0;
v[0] = 0.10;
std::cout <<
"Measured vel: " << v_mes.
t() << std::endl;
robot.stopRunning();
robot.waitForRunExit();
}
std::cout << "Catch an exception: " << e << std::endl;
}
#endif
}
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)