inverse_differential_kinematics_solver.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
18 #ifndef COB_TWIST_CONTROLLER_INVERSE_DIFFERENTIAL_KINEMATICS_SOLVER_H
19 #define COB_TWIST_CONTROLLER_INVERSE_DIFFERENTIAL_KINEMATICS_SOLVER_H
20 
21 #include <kdl/chainjnttojacsolver.hpp>
22 #include <kdl/chainfksolvervel_recursive.hpp>
23 #include <Eigen/Core>
24 #include <Eigen/Geometry>
25 
32 
43 {
44 public:
53  params_(params),
54  limiter_params_(params_.limiter_params),
55  chain_(chain),
56  jac_(chain_.getNrOfJoints()),
59  callback_data_mediator_(data_mediator),
61  {
63  this->limiter_params_ = this->kinematic_extension_->adjustLimiterParams(this->limiter_params_);
64 
65  this->limiters_.reset(new LimiterContainer(this->limiter_params_));
66  this->limiters_->init();
67  }
68 
70  {
71  this->limiters_.reset();
72  this->kinematic_extension_.reset();
73  };
74 
76  virtual int CartToJnt(const JointStates& joint_states,
77  const KDL::Twist& v_in,
78  KDL::JntArray& qdot_out);
79 
80  bool resetAll(TwistControllerParams params);
81 
82 private:
93 
95 };
96 
97 #endif // COB_TWIST_CONTROLLER_INVERSE_DIFFERENTIAL_KINEMATICS_SOLVER_H
Container for limiters, implementing interface methods.
Definition: limiter.h:29
virtual int CartToJnt(const JointStates &joint_states, const KDL::Twist &v_in, KDL::JntArray &qdot_out)
boost::shared_ptr< KinematicExtensionBase > kinematic_extension_
static KinematicExtensionBase * createKinematicExtension(const TwistControllerParams &params)
Static class providing a single method for creation of damping method, solver and starting the solvin...
InverseDifferentialKinematicsSolver(const TwistControllerParams &params, const KDL::Chain &chain, CallbackDataMediator &data_mediator)
Represents a data pool for distribution of collected data from ROS callback.


cob_twist_controller
Author(s): Felix Messmer , Marco Bezzon , Christoph Mark , Francisco Moreno
autogenerated on Thu Apr 8 2021 02:40:00