Public Member Functions | Private Member Functions | Private Attributes | List of all members
grid_map_rviz_plugin::GridMapVisual Class Reference

#include <GridMapVisual.hpp>

Public Member Functions

void computeVisualization (float alpha, bool showGridLines, bool flatTerrain, std::string heightLayer, bool flatColor, bool noColor, Ogre::ColourValue meshColor, bool mapLayerColor, std::string colorLayer, bool useRainbow, bool invertRainbow, Ogre::ColourValue minColor, Ogre::ColourValue maxColor, bool autocomputeIntensity, float minIntensity, float maxIntensity)
 
std::vector< std::string > getLayerNames ()
 
 GridMapVisual (Ogre::SceneManager *sceneManager, Ogre::SceneNode *parentNode)
 
void setFrameOrientation (const Ogre::Quaternion &orientation)
 
void setFramePosition (const Ogre::Vector3 &position)
 
void setMessage (const grid_map_msgs::GridMap::ConstPtr &msg)
 
virtual ~GridMapVisual ()
 

Private Member Functions

Ogre::ColourValue getInterpolatedColor (float intensity, Ogre::ColourValue minColor, Ogre::ColourValue maxColor)
 
Ogre::ColourValue getRainbowColor (float intensity)
 
void normalizeIntensity (float &intensity, float minIntensity, float maxIntensity)
 

Private Attributes

Ogre::SceneNode * frameNode_
 
bool haveMap_
 
Ogre::ManualObject * manualObject_
 
grid_map::GridMap map_
 
Ogre::MaterialPtr material_
 
std::string materialName_
 
boost::shared_ptr< rviz::BillboardLinemeshLines_
 
Ogre::SceneManager * sceneManager_
 

Detailed Description

Definition at line 31 of file GridMapVisual.hpp.

Constructor & Destructor Documentation

grid_map_rviz_plugin::GridMapVisual::GridMapVisual ( Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parentNode 
)

Definition at line 27 of file GridMapVisual.cpp.

grid_map_rviz_plugin::GridMapVisual::~GridMapVisual ( )
virtual

Definition at line 38 of file GridMapVisual.cpp.

Member Function Documentation

void grid_map_rviz_plugin::GridMapVisual::computeVisualization ( float  alpha,
bool  showGridLines,
bool  flatTerrain,
std::string  heightLayer,
bool  flatColor,
bool  noColor,
Ogre::ColourValue  meshColor,
bool  mapLayerColor,
std::string  colorLayer,
bool  useRainbow,
bool  invertRainbow,
Ogre::ColourValue  minColor,
Ogre::ColourValue  maxColor,
bool  autocomputeIntensity,
float  minIntensity,
float  maxIntensity 
)

Definition at line 56 of file GridMapVisual.cpp.

Ogre::ColourValue grid_map_rviz_plugin::GridMapVisual::getInterpolatedColor ( float  intensity,
Ogre::ColourValue  minColor,
Ogre::ColourValue  maxColor 
)
private

Definition at line 275 of file GridMapVisual.cpp.

std::vector< std::string > grid_map_rviz_plugin::GridMapVisual::getLayerNames ( )

Definition at line 239 of file GridMapVisual.cpp.

Ogre::ColourValue grid_map_rviz_plugin::GridMapVisual::getRainbowColor ( float  intensity)
private

Definition at line 253 of file GridMapVisual.cpp.

void grid_map_rviz_plugin::GridMapVisual::normalizeIntensity ( float &  intensity,
float  minIntensity,
float  maxIntensity 
)
private

Definition at line 245 of file GridMapVisual.cpp.

void grid_map_rviz_plugin::GridMapVisual::setFrameOrientation ( const Ogre::Quaternion &  orientation)

Definition at line 234 of file GridMapVisual.cpp.

void grid_map_rviz_plugin::GridMapVisual::setFramePosition ( const Ogre::Vector3 position)

Definition at line 229 of file GridMapVisual.cpp.

void grid_map_rviz_plugin::GridMapVisual::setMessage ( const grid_map_msgs::GridMap::ConstPtr &  msg)

Definition at line 49 of file GridMapVisual.cpp.

Member Data Documentation

Ogre::SceneNode* grid_map_rviz_plugin::GridMapVisual::frameNode_
private

Definition at line 53 of file GridMapVisual.hpp.

bool grid_map_rviz_plugin::GridMapVisual::haveMap_
private

Definition at line 66 of file GridMapVisual.hpp.

Ogre::ManualObject* grid_map_rviz_plugin::GridMapVisual::manualObject_
private

Definition at line 57 of file GridMapVisual.hpp.

grid_map::GridMap grid_map_rviz_plugin::GridMapVisual::map_
private

Definition at line 65 of file GridMapVisual.hpp.

Ogre::MaterialPtr grid_map_rviz_plugin::GridMapVisual::material_
private

Definition at line 58 of file GridMapVisual.hpp.

std::string grid_map_rviz_plugin::GridMapVisual::materialName_
private

Definition at line 59 of file GridMapVisual.hpp.

boost::shared_ptr<rviz::BillboardLine> grid_map_rviz_plugin::GridMapVisual::meshLines_
private

Definition at line 62 of file GridMapVisual.hpp.

Ogre::SceneManager* grid_map_rviz_plugin::GridMapVisual::sceneManager_
private

Definition at line 54 of file GridMapVisual.hpp.


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


grid_map_rviz_plugin
Author(s): Philipp Krüsi, Péter Fankhauser
autogenerated on Tue Jun 25 2019 20:02:28