Skip to content
Snippets Groups Projects
Commit fafa2d33 authored by Projekt Robbie's avatar Projekt Robbie
Browse files

dont paint contrast border arround error points

parent 08845a12
Branches
Tags
1 merge request!4Recent changes
...@@ -306,6 +306,10 @@ void OccupancyMap::insertRanges(vector<RangeMeasurement> ranges, ...@@ -306,6 +306,10 @@ void OccupancyMap::insertRanges(vector<RangeMeasurement> ranges,
{ {
continue; continue;
} }
if(ranges[i].range <= m_FreeReadingDistance)
{
continue;
}
Eigen::Vector2i endPixel = map_pixel[i]; Eigen::Vector2i endPixel = map_pixel[i];
for (int y = endPixel.y() - 2; y <= endPixel.y() + 2; y++) for (int y = endPixel.y() - 2; y <= endPixel.y() + 2; y++)
...@@ -704,7 +708,8 @@ void OccupancyMap::drawLine(Eigen::Vector2i& startPixel, ...@@ -704,7 +708,8 @@ void OccupancyMap::drawLine(Eigen::Vector2i& startPixel,
{ {
continue; continue;
} }
if (m_MapPoints[index].CurrentChange == NO_CHANGE) if (m_MapPoints[index].CurrentChange == ::NO_CHANGE||
m_MapPoints[index].CurrentChange == ::FREE)
{ {
m_MapPoints[index].CurrentChange = value; m_MapPoints[index].CurrentChange = value;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment