00001 /**************************************************************** 00002 * 00003 * Copyright 2016 Intelligent Industrial Robotics (IIROB) Group, 00004 * Institute for Anthropomatics and Robotics (IAR) - 00005 * Intelligent Process Control and Robotics (IPR), 00006 * Karlsruhe Institute of Technology 00007 * 00008 * Maintainers: Denis Štogl, email: denis.stogl@kit.edu 00009 * Florian Heller 00010 * Vanessa Streuer 00011 * 00012 * Date of update: 2014-2016 00013 * 00014 * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00015 * 00016 * Redistribution and use in source and binary forms, with or without 00017 * modification, are permitted provided that the following conditions are met: 00018 * 00019 * * Redistributions of source code must retain the above copyright 00020 * notice, this list of conditions and the following disclaimer. 00021 * * Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in the 00023 * documentation and/or other materials provided with the distribution. 00024 * * Neither the name of the copyright holder nor the names of its 00025 * contributors may be used to endorse or promote products derived from 00026 * this software without specific prior written permission. 00027 * 00028 * This program is free software: you can redistribute it and/or modify 00029 * it under the terms of the GNU Lesser General Public License LGPL as 00030 * published by the Free Software Foundation, either version 3 of the 00031 * License, or (at your option) any later version. 00032 * 00033 * This program is distributed in the hope that it will be useful, 00034 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00035 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00036 * GNU Lesser General Public License LGPL for more details. 00037 * 00038 * You should have received a copy of the GNU Lesser General Public 00039 * License LGPL along with this program. 00040 * If not, see <http://www.gnu.org/licenses/>. 00041 * 00042 ****************************************************************/ 00043 #include <hardware_interface/force_torque_sensor_interface.h> 00044 #include <ati_force_torque/force_torque_sensor.h> 00045 00046 class ForceTorqueSensorHandle : public ForceTorqueSensor, public hardware_interface::ForceTorqueSensorHandle 00047 { 00048 public: 00049 00050 ForceTorqueSensorHandle(ros::NodeHandle &nh, std::string sensor_name, std::string output_frame); 00051 00052 private: 00053 void updateFTData(const ros::TimerEvent &event); 00054 00055 // Arrays for hardware_interface 00056 double interface_force_[3]; 00057 double interface_torque_[3]; 00058 };