MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / updateVisualization

Method updateVisualization

grid_map_rviz_plugin/src/GridMapDisplay.cpp:176–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void GridMapDisplay::updateVisualization()
177{
178 float alpha = alphaProperty_->getFloat();
179 bool showGridLines = showGridLinesProperty_->getBool();
180 bool flatTerrain = heightModeProperty_->getOptionInt() == 1;
181 std::string heightLayer = heightTransformerProperty_->getStdString();
182 bool mapLayerColor = colorModeProperty_->getOptionInt() == 1;
183 bool flatColor = colorModeProperty_->getOptionInt() == 2;
184 bool noColor = colorModeProperty_->getOptionInt() == 3;
185 Ogre::ColourValue meshColor = colorProperty_->getOgreColor();
186 std::string colorLayer = colorTransformerProperty_->getStdString();
187 bool useRainbow = useRainbowProperty_->getBool();
188 bool invertRainbow = invertRainbowProperty_->getBool();
189 Ogre::ColourValue minColor = minColorProperty_->getOgreColor();
190 Ogre::ColourValue maxColor = maxColorProperty_->getOgreColor();
191 bool autocomputeIntensity = autocomputeIntensityBoundsProperty_->getBool();
192 float minIntensity = minIntensityProperty_->getFloat();
193 float maxIntensity = maxIntensityProperty_->getFloat();
194
195 for (size_t i = 0; i < visuals_.size(); i++) {
196 visuals_[i]->computeVisualization(alpha, showGridLines, flatTerrain, heightLayer, flatColor, noColor, meshColor,
197 mapLayerColor, colorLayer, useRainbow, invertRainbow, minColor, maxColor,
198 autocomputeIntensity, minIntensity, maxIntensity);
199 }
200}
201
202void GridMapDisplay::processMessage(const grid_map_msgs::GridMap::ConstPtr& msg)
203{

Callers

nothing calls this directly

Calls 1

computeVisualizationMethod · 0.80

Tested by

no test coverage detected