kinfamproperties.hpp
Go to the documentation of this file.
1 /******************************************************************************
2 * This file is part of the KDL project *
3 * *
4 * (C) 2010 Ruben Smits *
5 * 2010 Steven Bellens *
6 * ruben.smits@mech.kuleuven.be *
7 * steven.bellens@mech.kuleuven.be *
8 * Department of Mechanical Engineering, *
9 * Katholieke Universiteit Leuven, Belgium. *
10 * *
11 * You may redistribute this software and/or modify it under either the *
12 * terms of the GNU Lesser General Public License version 2.1 (LGPLv2.1 *
13 * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>) or (at your *
14 * discretion) of the Modified BSD License: *
15 * Redistribution and use in source and binary forms, with or without *
16 * modification, are permitted provided that the following conditions *
17 * are met: *
18 * 1. Redistributions of source code must retain the above copyright *
19 * notice, this list of conditions and the following disclaimer. *
20 * 2. Redistributions in binary form must reproduce the above copyright *
21 * notice, this list of conditions and the following disclaimer in the *
22 * documentation and/or other materials provided with the distribution. *
23 * 3. The name of the author may not be used to endorse or promote *
24 * products derived from this software without specific prior written *
25 * permission. *
26 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR *
27 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
28 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,*
30 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
31 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS *
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) *
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, *
34 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING *
35 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
36 * POSSIBILITY OF SUCH DAMAGE. *
37 * *
38 *******************************************************************************/
39 /* @Description:
40  * @brief KDL typekit for Orocos RTT
41  * @Author: Ruben Smits, Steven Bellens
42  */
43 
44 #ifndef JOINTPROPERTIES_HPP
45 #define JOINTPROPERTIES_HPP
46 
47 #include <kdl/joint.hpp>
48 #include <kdl/segment.hpp>
49 #include <kdl/kinfam_io.hpp>
50 #include <kdl/jacobian.hpp>
51 #include <kdl/jntarray.hpp>
52 
53 #include <rtt/PropertyBag.hpp>
54 
55 namespace RTT
56 {
57  using namespace KDL;
58 
59  void decomposeProperty(const Joint &joint, PropertyBag& target);
60  bool composeProperty(const PropertyBag& bag, Joint &joint);
61 
62  void decomposeProperty(const Segment &segment, PropertyBag& target);
63  bool composeProperty(const PropertyBag& bag, Segment &segment);
64 
65  void decomposeProperty(const Chain &chain, PropertyBag& target);
66  bool composeProperty(const PropertyBag& bag, Chain &chain);
67 
68  void decomposeProperty(const JntArray &jntarray, PropertyBag& target);
69  bool composeProperty(const PropertyBag& bag, JntArray &jntarray);
70 
71  void decomposeProperty(const Jacobian &jacobian, PropertyBag& target);
72  bool composeProperty(const PropertyBag& bag, Jacobian &jacobian);
73 
74 }
75 #endif
bool composeProperty(const PropertyBag &bag, Joint &joint)
void decomposeProperty(const Joint &joint, PropertyBag &targetbag)


kdl_typekit
Author(s): Steven Bellens, Ruben Smits
autogenerated on Wed Jul 3 2019 19:39:45