Check for valid lane

This commit is contained in:
2023-01-05 10:39:48 +01:00
parent 7175b68abe
commit ff7634e0b0
5 changed files with 31 additions and 8 deletions
@@ -6,4 +6,14 @@ IntersectionHandler::IntersectionHandler(/* args */)
IntersectionHandler::~IntersectionHandler()
{
}
const bool IntersectionHandler::foundLane(const FrameData& data)
{
return data.boundingBoxes.size();
}
const bool IntersectionHandler::foundIntersection(const FrameData& data)
{
return data.boundingBoxes.size()>1;
}
@@ -1,11 +1,14 @@
#pragma once
#include <utils.h>
class IntersectionHandler
{
private:
/* data */
public:
IntersectionHandler(/* args */);
~IntersectionHandler();
const bool foundLane(const FrameData& data);
const bool foundIntersection(const FrameData& data);
};