42 #include <visp/vpConfig.h>
43 #include <visp/vpMath.h>
44 #include <visp/vpRobotException.h>
45 #include <visp/vpRobotPioneer.h>
47 #ifdef VISP_HAVE_PIONEER
65 std::cout <<
"Ending robot thread..." << std::endl;
122 this->setVel(vel_sat[0]*1000.);
134 this->setVel2(vel_sat[0]*1000., vel_sat[1]*1000.);
140 "Cannot send the robot velocity in the specified control frame");
158 this->runAsync(
true);
160 this->enableMotors();
193 velocity[0] = this->getLeftVel() / 1000.;
194 velocity[1] = this->getRightVel() / 1000;
200 velocity[0] = this->getVel() / 1000.;
206 "Cannot get the robot volocity in the specified control frame");
Error that can be emited by the vpRobot class and its derivates.
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
double getMaxTranslationVelocity(void) const
static vpColVector saturateVelocities(const vpColVector &v_in, const vpColVector &v_max, bool verbose=false)
double getMaxRotationVelocity(void) const
unsigned int size() const
virtual ~vpRobotPioneer()
Generic functions for Pioneer mobile robots.
static double rad(double deg)
static double deg(double rad)
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)
void resize(const unsigned int i, const bool flagNullify=true)