ik_solver_base.h
Go to the documentation of this file.
1 // -- BEGIN LICENSE BLOCK ----------------------------------------------
2 // Copyright 2021 FZI Forschungszentrum Informatik
3 // Created on behalf of Universal Robots A/S
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 // -- END LICENSE BLOCK ------------------------------------------------
17 
18 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
26 
27 #pragma once
28 
29 #include <kdl/jntarray.hpp>
30 #include <kdl/frames.hpp>
31 #include <kdl/chain.hpp>
32 #include <ros/ros.h>
33 
35 {
46 class IKSolver
47 {
48 public:
49  IKSolver(){};
50  virtual ~IKSolver(){};
51 
64  virtual bool init(const KDL::Chain& robot_chain, ros::NodeHandle& root_nh, ros::NodeHandle& controller_nh) = 0;
65 
75  virtual int cartToJnt(const KDL::JntArray& q_init, const KDL::Frame& goal, KDL::JntArray& q_out) = 0;
76 };
77 
78 } // namespace ros_controllers_cartesian
ros_controllers_cartesian
ros.h
ros_controllers_cartesian::IKSolver::init
virtual bool init(const KDL::Chain &robot_chain, ros::NodeHandle &root_nh, ros::NodeHandle &controller_nh)=0
Initialize the solver.
ros_controllers_cartesian::IKSolver::cartToJnt
virtual int cartToJnt(const KDL::JntArray &q_init, const KDL::Frame &goal, KDL::JntArray &q_out)=0
Compute Inverse Kinematics.
ros_controllers_cartesian::IKSolver::~IKSolver
virtual ~IKSolver()
Definition: ik_solver_base.h:50
ros_controllers_cartesian::IKSolver
Base class for Inverse Kinematics (IK) solvers.
Definition: ik_solver_base.h:46
ros_controllers_cartesian::IKSolver::IKSolver
IKSolver()
Definition: ik_solver_base.h:49
ros::NodeHandle


cartesian_trajectory_controller
Author(s):
autogenerated on Tue Oct 15 2024 02:09:16