motionproperties.hpp
Go to the documentation of this file.
1 /******************************************************************************
2 * This file is part of the KDL project *
3 * *
4 * (C) 2004 Peter Soetens *
5 * peter.soetens@mech.kuleuven.be *
6 * Department of Mechanical Engineering, *
7 * Katholieke Universiteit Leuven, Belgium. *
8 * *
9 * You may redistribute this software and/or modify it under either the *
10 * terms of the GNU Lesser General Public License version 2.1 (LGPLv2.1 *
11 * <http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html>) or (at your *
12 * discretion) of the Modified BSD License: *
13 * Redistribution and use in source and binary forms, with or without *
14 * modification, are permitted provided that the following conditions *
15 * are met: *
16 * 1. Redistributions of source code must retain the above copyright *
17 * notice, this list of conditions and the following disclaimer. *
18 * 2. Redistributions in binary form must reproduce the above copyright *
19 * notice, this list of conditions and the following disclaimer in the *
20 * documentation and/or other materials provided with the distribution. *
21 * 3. The name of the author may not be used to endorse or promote *
22 * products derived from this software without specific prior written *
23 * permission. *
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR *
25 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
26 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE *
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,*
28 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
29 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS *
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) *
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, *
32 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING *
33 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
34 * POSSIBILITY OF SUCH DAMAGE. *
35 * *
36 *******************************************************************************/
37 /* @Description:
38  * @brief KDL typekit for Orocos RTT
39  * @Author: Peter Soetens
40  */
41 
42 #ifndef MOTIONPROPERTIES_HPP
43 #define MOTIONPROPERTIES_HPP
44 
45 #include <kdl/frames.hpp>
46 #include <rtt/PropertyBag.hpp>
47 
48 namespace RTT
49 {
50  using namespace KDL;
51 // /**
52 // * Additional functionality for handling a Property<JntArray>
53 // */
54 // void decomposeProperty(const JntArray &v, PropertyBag& targetbag );
55 //
56 // /**
57 // * Aim of this kind of functions : given a Property<PropertyBag> with one of the
58 // * properties being a bag containing a JntArray, fill the given non primitive Property<T>.
59 // */
60 // bool composeProperty(const PropertyBag& bag, JntArray &v);
61 //
62 
66  void decomposeProperty(const Vector &v, PropertyBag& targetbag );
67 
72  bool composeProperty(const PropertyBag& bag, Vector &v);
73 
74 
78  void decomposeProperty(const Rotation &b, PropertyBag& targetbag);
79 
84  bool composeProperty(const PropertyBag& bag, Rotation &r);
85 
95  void decomposeProperty(const KDL::Twist &t, PropertyBag& targetbag);
96 
101  bool composeProperty(const PropertyBag& bag, KDL::Twist &t);
102 
112  void decomposeProperty( const KDL::Wrench &b, PropertyBag& targetbag);
113 
118  bool composeProperty(const PropertyBag& bag, KDL::Wrench &w);
119 
129  void decomposeProperty(const KDL::Frame &f, PropertyBag& target);
130 
135  bool composeProperty(const PropertyBag& bag, KDL::Frame &f);
136 }
137 
138 #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