42 #include <std_srvs/Empty.h>    43 #include <visp/vpConfig.h>    44 #include <visp/vpMath.h>    45 #include <visp/vpRobotException.h>   100     throw( vpRobotException( vpRobotException::notInitialized, 
"ROS robot pioneer is not initialized" ) );
   103   if ( vel.size() != 2 )
   105     throw( vpRobotException( vpRobotException::dimensionError, 
"Velocity vector is not a 2 dimension vector" ) );
   108   vpColVector vel_max( 2 );
   110   vpColVector vel_robot( 6 );
   112   if ( frame == vpRobot::REFERENCE_FRAME )
   114     vel_max[0] = getMaxTranslationVelocity();
   115     vel_max[1] = getMaxRotationVelocity();
   117     vel_sat      = vpRobot::saturateVelocities( vel, vel_max, 
true );
   118     vel_robot[0] = vel_sat[0];
   123     vel_robot[5] = vel_sat[1];
   128     throw vpRobotException( vpRobotException::wrongStateError,
   129                             "Cannot send the robot velocity in the specified control frame" );
   138   if ( !client.
call( srv ) )
   149   if ( !client.
call( srv ) )
 void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
ServiceClient serviceClient(const std::string &service_name, bool persistent=false, const M_string &header_values=M_string())
void init()
basic initialization 
bool call(MReq &req, MRes &res)
void init()
basic initialization 
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
~vpROSRobotPioneer()
destructor