srh_syntouch_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 SRH_SYNTOUCH_CONTROLLER_H
28 #define SRH_SYNTOUCH_CONTROLLER_H
29 
31 #include <sr_robot_msgs/JointControllerState.h>
34 
35 namespace controller
36 {
38  public SrController
39 {
40 public:
42 
44 
45  bool init(ros_ethercat_model::RobotStateInterface *robot, ros::NodeHandle &n);
46 
47  virtual void starting(const ros::Time &time);
48 
52  virtual void update(const ros::Time &time, const ros::Duration &period);
53 
54 private:
55  // publish our joint controller state
56  boost::scoped_ptr<realtime_tools::RealtimePublisher
57  <sr_robot_msgs::JointControllerState> > controller_state_publisher_;
58 
60 };
61 } // namespace controller
62 
63 /* For the emacs weenies in the crowd.
64 Local Variables:
65  c-basic-offset: 2
66 End:
67 */
68 
69 
70 #endif
boost::scoped_ptr< realtime_tools::RealtimePublisher< sr_robot_msgs::JointControllerState > > controller_state_publisher_
A generic controller for the Shadow Robot EtherCAT hand&#39;s joints.
virtual void update(const ros::Time &time, const ros::Duration &period)
Issues commands to the joint. Should be called at regular intervals.
sr_actuator::SrMotorActuator * actuator_
bool init(ros_ethercat_model::RobotStateInterface *robot, ros::NodeHandle &n)
virtual void starting(const ros::Time &time)


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