constraint_app
/home/jbrooksh/drc/software/perception/constraint_app/src/test/mytreefksolverpos_recursive.hpp
Go to the documentation of this file.
00001 // Copyright  (C)  2007  Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00002 // Copyright  (C)  2008 Julia Jesse
00003 
00004 // Version: 1.0
00005 // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00006 // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
00007 // URL: http://www.orocos.org/kdl
00008 
00009 // This library is free software; you can redistribute it and/or
00010 // modify it under the terms of the GNU Lesser General Public
00011 // License as published by the Free Software Foundation; either
00012 // version 2.1 of the License, or (at your option) any later version.
00013 
00014 // This library is distributed in the hope that it will be useful,
00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017 // Lesser General Public License for more details.
00018 
00019 // You should have received a copy of the GNU Lesser General Public
00020 // License along with this library; if not, write to the Free Software
00021 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00022 
00023 #ifndef MYKDLTREEFKSOLVERPOS_RECURSIVE_HPP
00024 #define MYKDLTREEFKSOLVERPOS_RECURSIVE_HPP
00025 
00026 #include <kdl/treefksolver.hpp>
00027 #include <map>
00028 #include <string>
00029 
00037 class MyTreeFkSolverPos_recursive
00038 {
00039 public:
00040   typedef std::map<std::string, KDL::Frame> SegmentToPoseMap;
00041   MyTreeFkSolverPos_recursive(const KDL::Tree& tree);
00042   ~MyTreeFkSolverPos_recursive();
00043   
00044   virtual int JntToCart(const KDL::JntArray& q_in, SegmentToPoseMap& result);
00045   
00046 private:
00047   const KDL::Tree tree;
00048   
00049   void addFrameToMap(const KDL::JntArray& q_in,
00050                      const KDL::SegmentMap::const_iterator thisSegment,
00051                      const KDL::Frame& previousFrame,
00052                      SegmentToPoseMap& result );
00053   //KDL::Frame recursiveFk(const KDL::JntArray& q_in, const KDL::SegmentMap::const_iterator& it);
00054 };
00055 
00056 #endif
 All Classes Files Functions Variables Typedefs