hpp-manipulation-urdf  4.9.0
Implementation of a parser for hpp-manipulation.
handle.hh
Go to the documentation of this file.
1 // Copyright (c) 2014, LAAS-CNRS
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 // This file is part of hpp-manipulation-urdf.
5 // hpp-manipulation-urdf is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // hpp-manipulation-urdf is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // hpp-manipulation-urdf. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef HPP_MANIPULATION_SRDF_FACTORIES_HANDLE_HH
18 # define HPP_MANIPULATION_SRDF_FACTORIES_HANDLE_HH
19 
20 # include <pinocchio/spatial/se3.hpp>
21 
22 # include <hpp/manipulation/fwd.hh>
23 
25 
26 namespace hpp {
27  namespace manipulation {
28  namespace srdf {
31 
32  using parser::ObjectFactory;
33  using parser::XMLElement;
34  using parser::XMLDocument;
36  using parser::XMLNode;
37  using parser::XMLText;
38 
40  class HandleFactory : public ObjectFactory {
41  public:
43  ObjectFactory (parent, element) {}
44 
45  virtual void finishTags ();
46 
47  HandlePtr_t handle () const;
48 
49  protected:
50  HandlePtr_t handle_;
51 
54  std::string linkName_;
55  };
56 
58  } // namespace srdf
59  } // namespace manipulation
60 } // namespace hpp
61 
62 #endif // HPP_MANIPULATION_SRDF_FACTORIES_HANDLE_HH
TiXmlElement XMLElement
Definition: parser.hh:31
Transform3f localPosition_
The element required to build the handle.
Definition: handle.hh:53
TiXmlAttribute XMLAttribute
Definition: parser.hh:33
std::string linkName_
Definition: handle.hh:54
TiXmlText XMLText
Definition: parser.hh:35
Build an object of type hpp::manipulation::Handle.
Definition: handle.hh:40
HandleFactory(ObjectFactory *parent, const XMLElement *element)
Definition: handle.hh:42
HandlePtr_t handle_
Definition: handle.hh:50
TiXmlNode XMLNode
Definition: parser.hh:34
pinocchio::Transform3f Transform3f
TiXmlDocument XMLDocument
Definition: parser.hh:32
Class that catch XML Parser events for a specific tag and build the corresponding Object...
Definition: parser.hh:73
virtual void finishTags()
Called when all the child tags have been processed.