Check for valid lane
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user