vpROSRobotPioneer.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * $Id: vpROSRobotPioneer.h 4574 2014-01-09 08:48:51Z fpasteau $
4  *
5  * This file is part of the ViSP software.
6  * Copyright (C) 2005 - 2014 by INRIA. All rights reserved.
7  *
8  * This software is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * ("GPL") version 2 as published by the Free Software Foundation.
11  * See the file LICENSE.txt at the root directory of this source
12  * distribution for additional information about the GNU GPL.
13  *
14  * For using ViSP with software that can not be combined with the GNU
15  * GPL, please contact INRIA about acquiring a ViSP Professional
16  * Edition License.
17  *
18  * See http://www.irisa.fr/lagadic/visp/visp.html for more information.
19  *
20  * This software was developed at:
21  * INRIA Rennes - Bretagne Atlantique
22  * Campus Universitaire de Beaulieu
23  * 35042 Rennes Cedex
24  * France
25  * http://www.irisa.fr/lagadic
26  *
27  * If you have questions regarding the use of this file, please contact
28  * INRIA at visp@inria.fr
29  *
30  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
31  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
32  *
33  *
34  * Description:
35  * Interface for Pioneer mobile robots based on ROS
36  *
37  * Authors:
38  * Francois Pasteau
39  *
40  *****************************************************************************/
41 #ifndef VPROSROBOTPIONEER_H
42 #define VPROSROBOTPIONEER_H
43 
44 #include <visp/vpConfig.h>
45 #include <visp/vpPioneer.h>
46 #include <visp/vpRobot.h>
47 #include <visp/vpRobotException.h>
48 
49 #include <visp_ros/vpROSRobot.h>
50 
64 class VISP_EXPORT vpROSRobotPioneer : public vpROSRobot, public vpPioneer
65 {
66 public:
69 
70  void disableMotors();
71  void enableMotors();
72 
84  void get_eJe( vpMatrix &eJe ) { eJe = vpUnicycle::get_eJe(); }
85 
86  void getVelocity( const vpRobot::vpControlFrameType frame, vpColVector &velocity )
87  {
88  throw( vpRobotException( vpRobotException::notImplementedError, "getVelocity not implemented with ROS" ) );
89  }
90  vpColVector getVelocity( const vpRobot::vpControlFrameType frame )
91  {
92  throw( vpRobotException( vpRobotException::notImplementedError, "getVelocity not implemented with ROS" ) );
93  }
94 
96  void init();
97  void init( int argc, char **argv );
98 
99  void setVelocity( const vpRobot::vpControlFrameType frame, const vpColVector &vel );
100 
104  void useSonar( bool usage )
105  {
106  throw( vpRobotException( vpRobotException::notImplementedError, "useSonar not implemented with ROS" ) );
107  }
108 
109 private: /* Not allowed functions. */
113  vpROSRobotPioneer( const vpROSRobotPioneer &robot );
114 
115 private: // Set as private since not implemented
120  void get_fJe( vpMatrix & /*fJe*/ ){};
121 
126  void setPosition( const vpRobot::vpControlFrameType /*frame*/, const vpColVector & /*q*/ ){};
127 };
128 
129 #endif // vpROSRobotPioneer_H
vpROSRobotPioneer::getVelocity
vpColVector getVelocity(const vpRobot::vpControlFrameType frame)
Definition: vpROSRobotPioneer.h:90
vpROSRobotPioneer::get_fJe
void get_fJe(vpMatrix &)
Definition: vpROSRobotPioneer.h:120
vpROSRobot::init
void init()
basic initialization
Definition: vpROSRobot.cpp:113
vpROSRobot::setVelocity
void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)
Definition: vpROSRobot.cpp:149
vpROSRobot
Interface for robots based on ROS.
Definition: vpROSRobot.h:62
vpROSRobotPioneer::setPosition
void setPosition(const vpRobot::vpControlFrameType, const vpColVector &)
Definition: vpROSRobotPioneer.h:126
vpROSRobotPioneer
Interface for Pioneer mobile robots based on ROS.
Definition: vpROSRobotPioneer.h:64
vpROSRobotPioneer::useSonar
void useSonar(bool usage)
Definition: vpROSRobotPioneer.h:104
vpROSRobotPioneer::get_eJe
void get_eJe(vpMatrix &eJe)
Definition: vpROSRobotPioneer.h:84
vpROSRobot.h
vpRobot implementation for ROS middleware.
vpROSRobotPioneer::getVelocity
void getVelocity(const vpRobot::vpControlFrameType frame, vpColVector &velocity)
Definition: vpROSRobotPioneer.h:86


visp_ros
Author(s): Francois Pasteau, Fabien Spindler, Gatien Gaumerais, Alexander Oliva
autogenerated on Wed Mar 2 2022 01:13:33