Skip to content
Snippets Groups Projects
Verified Commit 3c46e8dc authored by Antoine Lima's avatar Antoine Lima
Browse files

[Grid] Unknown is transparent now

parent 3165f1c7
No related branches found
No related tags found
No related merge requests found
......@@ -237,11 +237,12 @@ void PerceptionsDisplay::processMessage(const multiception::Perceptions::ConstPt
for(size_t i=0; i<gridmapmsg->data[0].data.size(); i++)
{
gridmapmsg->data[0].data[i] = gridmapmsg->data[1].data[i] - gridmapmsg->data[2].data[i];
gridmapmsg->data[3].data[i] = (gridmapmsg->data[3].data[i]<0.999) ? gridmapmsg->data[3].data[i] : NAN;
}
gridVisual->setMessage(gridmapmsg);
const float gridAlpha = alpha_property_->getFloat() * grid_alpha_property_->getFloat();
gridVisual->computeVisualization(gridAlpha, false, false, "o,O", false, false, Ogre::ColourValue(0.8, 0.8, 0.8), false, "", "default", true, false, Ogre::ColourValue(0, 0, 0), Ogre::ColourValue(), false, -1, 1, 0.1, 1);
gridVisual->computeVisualization(gridAlpha, false, true, "o,O", false, false, Ogre::ColourValue(0.8, 0.8, 0.8), false, "", "default", true, false, Ogre::ColourValue(0, 0, 0), Ogre::ColourValue(), false, -1, 1, 0.1, 1);
grid_visuals_.push_back(gridVisual);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment