vpROSRobotPioneer.h
Go to the documentation of this file.
00001 /****************************************************************************
00002  *
00003  * $Id: vpROSRobotPioneer.h 4574 2014-01-09 08:48:51Z fpasteau $
00004  *
00005  * This file is part of the ViSP software.
00006  * Copyright (C) 2005 - 2014 by INRIA. All rights reserved.
00007  *
00008  * This software is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * ("GPL") version 2 as published by the Free Software Foundation.
00011  * See the file LICENSE.txt at the root directory of this source
00012  * distribution for additional information about the GNU GPL.
00013  *
00014  * For using ViSP with software that can not be combined with the GNU
00015  * GPL, please contact INRIA about acquiring a ViSP Professional
00016  * Edition License.
00017  *
00018  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
00019  *
00020  * This software was developed at:
00021  * INRIA Rennes - Bretagne Atlantique
00022  * Campus Universitaire de Beaulieu
00023  * 35042 Rennes Cedex
00024  * France
00025  * http://www.irisa.fr/lagadic
00026  *
00027  * If you have questions regarding the use of this file, please contact
00028  * INRIA at visp@inria.fr
00029  *
00030  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00031  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00032  *
00033  *
00034  * Description:
00035  * Interface for Pioneer mobile robots based on ROS
00036  *
00037  * Authors:
00038  * Francois Pasteau
00039  *
00040  *****************************************************************************/
00041 #ifndef VPROSROBOTPIONEER_H
00042 #define VPROSROBOTPIONEER_H
00043 
00044 #include <visp/vpConfig.h>
00045 #include <visp/vpRobot.h>
00046 #include <visp/vpRobotException.h>
00047 #include <visp/vpPioneer.h>
00048 
00049 #include <visp_ros/vpROSRobot.h>
00050 
00064 class VISP_EXPORT vpROSRobotPioneer: public vpROSRobot, public vpPioneer
00065 {
00066   public:
00067     vpROSRobotPioneer();
00068     ~vpROSRobotPioneer();
00069 
00070     void disableMotors();
00071     void enableMotors();
00072 
00084     void get_eJe(vpMatrix & eJe)
00085     {
00086       eJe = vpUnicycle::get_eJe();
00087     }
00088 
00089     void getVelocity (const vpRobot::vpControlFrameType frame, vpColVector & velocity)
00090     {
00091       throw (vpRobotException(vpRobotException::notImplementedError, "getVelocity not implemented with ROS") );
00092     }
00093     vpColVector getVelocity (const vpRobot::vpControlFrameType frame)
00094     {
00095       throw (vpRobotException(vpRobotException::notImplementedError, "getVelocity not implemented with ROS") );
00096     }
00097 
00099     void init() ;
00100     void init(int argc, char **argv) ;
00101 
00102     void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel);
00103 
00107     void useSonar(bool usage)
00108     {
00109       throw (vpRobotException(vpRobotException::notImplementedError, "useSonar not implemented with ROS") );
00110     }
00111 
00112   private: /* Not allowed functions. */
00113 
00117     vpROSRobotPioneer(const vpROSRobotPioneer &robot);
00118 
00119   private: // Set as private since not implemented
00124     void get_fJe(vpMatrix & /*fJe*/) {} ;
00125 
00130     void setPosition(const vpRobot::vpControlFrameType /*frame*/, const vpColVector &/*q*/) {};
00131 
00132 };
00133 
00134 #endif // vpROSRobotPioneer_H
00135 


visp_ros
Author(s): Francois Pasteau, Fabien Spindler
autogenerated on Wed Aug 26 2015 16:44:33