This commit is contained in:
matlabbe
2020-08-06 09:15:28 -04:00
parent 2806baee55
commit e96f72d4ab
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -754,7 +754,9 @@ void OdometryROS::processData(const SensorData & data, const ros::Time & stamp)
for(std::map<int, cv::Point3f>::const_iterator iter=info.localMap.begin(); iter!=info.localMap.end(); ++iter)
{
bool inlier = info.words.find(iter->first) != info.words.end();
pcl::PointXYZRGB pt(inlier?0:255, 255, 0);
pcl::PointXYZRGB pt;
pt.r = inlier?0:255;
pt.g = 255;
pt.x = iter->second.x;
pt.y = iter->second.y;
pt.z = iter->second.z;