#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::BillboardLine > | meshLines_ |
Ogre::SceneManager * | sceneManager_ |
Definition at line 31 of file GridMapVisual.hpp.
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.
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.
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.
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.