00001 // Copyright (C) 2008 Ruben Smits <ruben dot smits at mech dot kuleuven dot be> 00002 00003 // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be> 00004 // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be> 00005 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License, or (at your option) any later version. 00010 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 00020 #include "Kuka361DWH.hpp" 00021 #include <rtt/TaskContext.hpp> 00022 #include <rtt/Ports.hpp> 00023 #include <ocl/OCL.hpp> 00024 00025 namespace OCL{ 00026 00027 class Kuka361DWHConvertor : public RTT::TaskContext 00028 { 00029 public: 00030 Kuka361DWHConvertor(const std::string& name); 00031 ~Kuka361DWHConvertor(){}; 00032 00033 virtual bool startHook(){return true;}; 00034 virtual void updateHook(); 00035 virtual void stopHook(){}; 00036 virtual void errorHook(); 00037 00038 private: 00039 std::vector<double> naxes_positions_local, geometric_positions_local, 00040 naxes_velocities_local, geometric_velocities_local; 00041 00042 RTT::DataPort<std::vector<double> > naxes_positions, geometric_positions, 00043 naxes_velocities, geometric_velocities; 00044 }; 00045 }