g2o
Loading...
Searching...
No Matches
Public Member Functions | List of all members
g2o::VertexSE3WriteGnuplotAction Class Reference

write the vertex to some Gnuplot data file More...

#include <vertex_se3.h>

Inheritance diagram for g2o::VertexSE3WriteGnuplotAction:
Inheritance graph
[legend]
Collaboration diagram for g2o::VertexSE3WriteGnuplotAction:
Collaboration graph
[legend]

Public Member Functions

 VertexSE3WriteGnuplotAction ()
 
virtual HyperGraphElementActionoperator() (HyperGraph::HyperGraphElement *element, HyperGraphElementAction::Parameters *params_)
 
- Public Member Functions inherited from g2o::WriteGnuplotAction
 WriteGnuplotAction (const std::string &typeName_)
 
- Public Member Functions inherited from g2o::HyperGraphElementAction
 HyperGraphElementAction (const std::string &typeName_="")
 
virtual HyperGraphElementActionoperator() (const HyperGraph::HyperGraphElement *element, Parameters *parameters)
 
virtual ~HyperGraphElementAction ()
 
const std::string & typeName () const
 returns the typeid name of the action
 
const std::string & name () const
 returns the name of an action, e.g "draw"
 
void setTypeName (const std::string &typeName_)
 sets the type on which an action has to operate
 

Additional Inherited Members

- Public Types inherited from g2o::HyperGraphElementAction
typedef std::shared_ptr< HyperGraphElementActionHyperGraphElementActionPtr
 
typedef std::map< std::string, HyperGraphElementActionPtrActionMap
 
- Protected Attributes inherited from g2o::HyperGraphElementAction
std::string _typeName
 
std::string _name
 

Detailed Description

write the vertex to some Gnuplot data file

Definition at line 127 of file vertex_se3.h.

Constructor & Destructor Documentation

◆ VertexSE3WriteGnuplotAction()

g2o::VertexSE3WriteGnuplotAction::VertexSE3WriteGnuplotAction ( )

Definition at line 57 of file vertex_se3.cpp.

58 : WriteGnuplotAction(typeid(VertexSE3).name()) {}
const std::string & name() const
returns the name of an action, e.g "draw"
WriteGnuplotAction(const std::string &typeName_)

Member Function Documentation

◆ operator()()

HyperGraphElementAction * g2o::VertexSE3WriteGnuplotAction::operator() ( HyperGraph::HyperGraphElement element,
HyperGraphElementAction::Parameters parameters 
)
virtual

redefine this to do the action stuff. If successful, the action returns a pointer to itself

Reimplemented from g2o::HyperGraphElementAction.

Definition at line 60 of file vertex_se3.cpp.

62 {
63 if (typeid(*element).name() != _typeName) return nullptr;
64 WriteGnuplotAction::Parameters* params =
65 static_cast<WriteGnuplotAction::Parameters*>(params_);
66 if (!params->os) {
67 return nullptr;
68 }
69
70 VertexSE3* v = static_cast<VertexSE3*>(element);
71 Vector6 est = internal::toVectorMQT(v->estimate());
72 for (int i = 0; i < 6; i++) *(params->os) << est[i] << " ";
73 *(params->os) << std::endl;
74 return this;
75}
Vector6 toVectorMQT(const Isometry3 &t)
VectorN< 6 > Vector6
Definition eigen_types.h:53

References g2o::HyperGraphElementAction::_typeName, g2o::BaseVertex< D, T >::estimate(), g2o::WriteGnuplotAction::Parameters::os, and g2o::internal::toVectorMQT().


The documentation for this class was generated from the following files: