advanced_chainfksolver_recursive.hpp
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 ADVANCED_CHAINFKSOLVERPOS_RECURSIVE_H_
19 #define ADVANCED_CHAINFKSOLVERPOS_RECURSIVE_H_
20 
21 #include <kdl/chainfksolver.hpp>
22 #include <vector>
23 #include <stdint.h>
24 
25 typedef std::vector<KDL::Frame> FrameVector_t;
26 typedef std::vector<KDL::FrameVel> FrameVelVector_t;
27 
36 {
37  public:
40 
47  virtual int JntToCart(const KDL::JntArray& q_in, KDL::Frame& p_out, int seg_nr = -1);
48 
53  KDL::Frame getFrameAtSegment(uint16_t seg_idx) const;
54 
55  void dumpAllSegmentPostures() const;
56 
57  private:
60 
61 };
62 
63 
72 {
73  public:
76 
83  virtual int JntToCart(const KDL::JntArrayVel& q_in, KDL::FrameVel& out, int seg_nr = -1);
84  virtual int JntToCart(const KDL::JntArrayVel& q_in, std::vector<KDL::FrameVel>& out, int segmentNr = -1);
85 
90  KDL::FrameVel getFrameVelAtSegment(uint16_t seg_idx) const;
91  virtual void updateInternalDataStructures(){};
92 
93  private:
94  const KDL::Chain& chain_;
96 
97 };
98 
99 
100 #endif /* ADVANCED_CHAINFKSOLVERPOS_RECURSIVE_H_ */
KDL::Frame getFrameAtSegment(uint16_t seg_idx) const
virtual int JntToCart(const KDL::JntArray &q_in, KDL::Frame &p_out, int seg_nr=-1)
std::vector< KDL::Frame > FrameVector_t
std::vector< KDL::FrameVel > FrameVelVector_t


cob_obstacle_distance
Author(s): Marco Bezzon
autogenerated on Thu Apr 8 2021 02:39:47