treefksolverpos_recursive.hpp 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (C) 2007 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  2. // Copyright (C) 2008 Julia Jesse
  3. // Version: 1.0
  4. // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  5. // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  6. // URL: http://www.orocos.org/kdl
  7. // This library is free software; you can redistribute it and/or
  8. // modify it under the terms of the GNU Lesser General Public
  9. // License as published by the Free Software Foundation; either
  10. // version 2.1 of the License, or (at your option) any later version.
  11. // This library is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. // Lesser General Public License for more details.
  15. // You should have received a copy of the GNU Lesser General Public
  16. // License along with this library; if not, write to the Free Software
  17. // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. #ifndef KDLTREEFKSOLVERPOS_RECURSIVE_HPP
  19. #define KDLTREEFKSOLVERPOS_RECURSIVE_HPP
  20. #include "treefksolver.hpp"
  21. namespace KDL {
  22. /**
  23. * Implementation of a recursive forward position kinematics
  24. * algorithm to calculate the position transformation from joint
  25. * space to Cartesian space of a general kinematic tree (KDL::Tree).
  26. *
  27. * @ingroup KinematicFamily
  28. */
  29. class TreeFkSolverPos_recursive : public TreeFkSolverPos
  30. {
  31. public:
  32. TreeFkSolverPos_recursive(const Tree& tree);
  33. ~TreeFkSolverPos_recursive();
  34. virtual int JntToCart(const JntArray& q_in, Frame& p_out, const std::string& segmentName, const std::string& baseName);
  35. private:
  36. const Tree tree;
  37. Frame recursiveFk(const JntArray& q_in, SegmentMap::value_type const* it, SegmentMap::value_type const* baseit);
  38. };
  39. }
  40. #endif