g2o
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_)
 redefine this to do the action stuff. If successful, the action returns a pointer to itself More...
 
- 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)
 redefine this to do the action stuff. If successful, the action returns a pointer to itself More...
 
virtual ~HyperGraphElementAction ()
 destroyed actions release the memory More...
 
const std::string & typeName () const
 returns the typeid name of the action More...
 
const std::string & name () const
 returns the name of an action, e.g "draw" More...
 
void setTypeName (const std::string &typeName_)
 sets the type on which an action has to operate More...
 

Additional Inherited Members

- Public Types inherited from g2o::HyperGraphElementAction
typedef std::map< std::string, HyperGraphElementAction * > ActionMap
 
- 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 128 of file vertex_se3.h.

Constructor & Destructor Documentation

g2o::VertexSE3WriteGnuplotAction::VertexSE3WriteGnuplotAction ( )

Definition at line 66 of file vertex_se3.cpp.

66 : 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

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 68 of file vertex_se3.cpp.

References __PRETTY_FUNCTION__, g2o::HyperGraphElementAction::_typeName, g2o::OptimizableGraph::Vertex::cacheContainer(), g2o::opengl::drawArrow2D(), g2o::BaseVertex< D, T >::estimate(), g2o::HyperGraphElementAction::name(), g2o::WriteGnuplotAction::Parameters::os, POSE_VERTEX_COLOR, g2o::DrawAction::refreshPropertyPtrs(), g2o::internal::toVectorMQT(), and g2o::HyperGraph::DataContainer::userData().

68  {
69  if (typeid(*element).name()!=_typeName)
70  return 0;
71  WriteGnuplotAction::Parameters* params=static_cast<WriteGnuplotAction::Parameters*>(params_);
72  if (!params->os){
73  std::cerr << __PRETTY_FUNCTION__ << ": warning, no valid os specified" << std::endl;
74  return 0;
75  }
76 
77  VertexSE3* v = static_cast<VertexSE3*>(element);
78  Vector6d est=internal::toVectorMQT(v->estimate());
79  for (int i=0; i<6; i++)
80  *(params->os) << est[i] << " ";
81  *(params->os) << std::endl;
82  return this;
83  }
#define __PRETTY_FUNCTION__
Definition: macros.h:89
Vector6d toVectorMQT(const Isometry3D &t)
Eigen::Matrix< double, 6, 1 > Vector6d

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