Classes | Public Types | Public Member Functions | Protected Member Functions | Private Types | Static Private Member Functions | Private Attributes
urdf2graspit::markerselector::MarkerSelector Class Reference

Runs a viewer using the Inventor package and allows to select and save markers on the model. More...

#include <MarkerSelector.h>

Inheritance diagram for urdf2graspit::markerselector::MarkerSelector:
Inheritance graph
[legend]

List of all members.

Classes

class  Marker
 represents a marker with x/y/z coordinates and a normal, associated with a link (and visual). More...

Public Types

typedef std::map< std::string,
std::vector< Marker > > 
MarkerMap

Public Member Functions

MarkerMap getMarkers ()
 MarkerSelector (float _marker_size, bool _faces_ccw)
 MarkerSelector (const MarkerSelector &o)
std::string toString ()
bool writeResults (const std::string &outputFile)
 ~MarkerSelector ()

Protected Member Functions

virtual void onClickModel (const SoPickedPoint *pickPoint)
virtual void onMouseBtnClick (SoEventCallback *pNode)

Private Types

typedef std::map< int, SoNode * > MarkerNodeMap

Static Private Member Functions

static bool sortMarker (const Marker &i, const Marker &j)
static bool writeToFile (const std::string &content, const std::string &filename)

Private Attributes

float marker_size
MarkerNodeMap markerParentNodes
std::vector< Markermarkers

Detailed Description

Runs a viewer using the Inventor package and allows to select and save markers on the model.

Author:
Jennifer Buehler
Date:
last edited October 2015

Definition at line 43 of file MarkerSelector.h.


Member Typedef Documentation

typedef std::map<std::string, std::vector<Marker> > urdf2graspit::markerselector::MarkerSelector::MarkerMap

Definition at line 102 of file MarkerSelector.h.

typedef std::map<int, SoNode*> urdf2graspit::markerselector::MarkerSelector::MarkerNodeMap [private]

Definition at line 147 of file MarkerSelector.h.


Constructor & Destructor Documentation

urdf2graspit::markerselector::MarkerSelector::MarkerSelector ( float  _marker_size,
bool  _faces_ccw 
) [inline, explicit]
Parameters:
_marker_sizethe size of the points displayed where marker is put
_faces_ccwfaces are to be treated as counter-clockwise. Needed for normal calculations.

Definition at line 109 of file MarkerSelector.h.

Definition at line 113 of file MarkerSelector.h.

Definition at line 115 of file MarkerSelector.h.


Member Function Documentation

returns the map of markers which have been generated during running runViewer(). the entries for each link name will be ordered by the visual numbers.

Definition at line 118 of file MarkerSelector.cpp.

void MarkerSelector::onClickModel ( const SoPickedPoint *  pickPoint) [protected, virtual]

Reimplemented from urdf_viewer::InventorViewer.

Definition at line 272 of file MarkerSelector.cpp.

virtual void urdf2graspit::markerselector::MarkerSelector::onMouseBtnClick ( SoEventCallback *  pNode) [inline, protected, virtual]

Reimplemented from urdf_viewer::InventorViewer.

Definition at line 136 of file MarkerSelector.h.

bool MarkerSelector::sortMarker ( const Marker i,
const Marker j 
) [static, private]

Definition at line 155 of file MarkerSelector.cpp.

std::string MarkerSelector::toString ( )

Definition at line 136 of file MarkerSelector.cpp.

bool MarkerSelector::writeResults ( const std::string &  outputFile)

Writes all markers selected while execution runViewer() in the following format, for all links with markers subsequently: link-name {newline} number-of-markers {newline} visual_number x y z nx ny nz{newline} (coordinates and normal, repeated for all number-of-markers markers)

Definition at line 84 of file MarkerSelector.cpp.

bool MarkerSelector::writeToFile ( const std::string &  content,
const std::string &  filename 
) [static, private]

Definition at line 160 of file MarkerSelector.cpp.


Member Data Documentation

Definition at line 152 of file MarkerSelector.h.

Definition at line 149 of file MarkerSelector.h.

Definition at line 144 of file MarkerSelector.h.


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


urdf2graspit
Author(s): Jennifer Buehler
autogenerated on Wed May 8 2019 02:53:45