| 174 | } |
| 175 | |
| 176 | void 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 | |
| 202 | void GridMapDisplay::processMessage(const grid_map_msgs::GridMap::ConstPtr& msg) |
| 203 | { |
nothing calls this directly
no test coverage detected