hpp::manipulation::srdf::PositionFactory Class Reference

Build a fcl::Transform. More...

#include <hpp/manipulation/srdf/factories/position.hh>

Inheritance diagram for hpp::manipulation::srdf::PositionFactory:
[legend]
Collaboration diagram for hpp::manipulation::srdf::PositionFactory:
[legend]

Public Member Functions

 PositionFactory (ObjectFactory *parent, const parser::XMLElement *element)
 
Transform3f position () const
 
- Public Member Functions inherited from hpp::manipulation::parser::SequenceFactory< float >
 SequenceFactory (ObjectFactory *parent, const XMLElement *element, const unsigned int nbValue=0)
 
virtual void addTextChild (const XMLText *text)
 Add Text child. More...
 
const OutTypevalues () const
 
- Public Member Functions inherited from hpp::manipulation::parser::ObjectFactory
 ObjectFactory (ObjectFactory *parent=NULL, const XMLElement *element=NULL)
 
virtual ~ObjectFactory ()
 
void name (const std::string &n)
 Set the name. More...
 
void name (const char *n)
 See name(const std::string&) More...
 
template<typename T >
T * as ()
 Cast this class to any child class. More...
 
virtual bool init ()
 Called when the object is created. More...
 
void setAttribute (const XMLAttribute *attr)
 Called for each attribute. More...
 
virtual bool finishAttributes ()
 Called when all the attributes have been processed. More...
 
virtual void finishTags ()
 Called when all the child tags have been processed. More...
 
virtual void finishFile ()
 Called when parsing is finished. More...
 
std::string tagName () const
 Return tag name of the element is any. More...
 
std::string name () const
 Return the content of the attribute name, or an empty string. More...
 
bool hasAttribute (const std::string &attr) const
 Check if an attribute was set. More...
 
std::string getAttribute (const std::string &attr) const
 Return a given attributes. More...
 
ObjectFactoryList getChildrenOfType (std::string type)
 Get a list of ObjectFactory whose tag name is type. More...
 
bool getChildOfType (std::string type, ObjectFactory *&o)
 Get the ObjectFactory whose tag name is type. More...
 

Additional Inherited Members

- Public Types inherited from hpp::manipulation::parser::SequenceFactory< float >
typedef std::vector< float > OutType
 
- Public Types inherited from hpp::manipulation::parser::ObjectFactory
typedef std::list< ObjectFactory * > ObjectFactoryList
 
- Protected Member Functions inherited from hpp::manipulation::parser::ObjectFactory
 ObjectFactory (RootFactory *root)
 
ObjectFactoryparent ()
 
RootFactoryroot ()
 
bool hasParent () const
 
const XMLElementXMLelement ()
 
virtual void impl_setAttribute (const XMLAttribute *attr)
 
void addChild (ObjectFactory *child)
 
virtual std::ostream & print (std::ostream &os) const
 

Detailed Description

Build a fcl::Transform.

The sequence of number in the XML text must:

  • be of length 7;
  • begin with the translation (3 coordinates);
  • end with a quaternion (4 coordinates).

Constructor & Destructor Documentation

hpp::manipulation::srdf::PositionFactory::PositionFactory ( ObjectFactory parent,
const parser::XMLElement element 
)
inline

References position().

Member Function Documentation

Transform3f hpp::manipulation::srdf::PositionFactory::position ( ) const

Referenced by PositionFactory().