test_controllers.hpp
Go to the documentation of this file.
1 /*
2 * Copyright 2011 Shadow Robot Company Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation version 2 of the License.
7 *
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 
27 #ifndef _SR_TEST_CONTROLLERS_HPP_
28 #define _SR_TEST_CONTROLLERS_HPP_
29 
31 #include <boost/smart_ptr.hpp>
32 
33 #include <control_toolbox/pid.h>
34 #include <pr2_hardware_interface/hardware_interface.h>
35 #include <pr2_mechanism_model/robot.h>
36 #include <tinyxml2.h>
38 
40 {
41 public:
43 
44  virtual ~TestControllers();
45 
46  void init();
47 
48  virtual void init_controller() = 0;
49 
50  virtual double compute_output(double input, double current_position) = 0;
51 
58  pr2_mechanism_model::JointState *joint_state;
59 };
60 
61 
62 /* For the emacs weenies in the crowd.
63  Local Variables:
64  c-basic-offset: 2
65  End:
66 */
67 
68 #endif
pr2_mechanism_model::JointState * joint_state
A generic controller for the Shadow Robot EtherCAT hand&#39;s joints.
boost::shared_ptr< controller::SrController > controller
boost::shared_ptr< tinyxml2::XMLDocument > model
boost::shared_ptr< pr2_mechanism_model::Robot > robot
virtual double compute_output(double input, double current_position)=0
boost::shared_ptr< pr2_mechanism_model::RobotState > robot_state
virtual ~TestControllers()
virtual void init_controller()=0
boost::shared_ptr< sr_actuator::SrMotorActuator > actuator
boost::shared_ptr< pr2_hardware_interface::HardwareInterface > hw


sr_mechanism_controllers
Author(s): Ugo Cupcic
autogenerated on Mon Feb 28 2022 23:52:31