Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions op_planner/include/op_planner/RoadNetwork.h
Original file line number Diff line number Diff line change
Expand Up @@ -1273,6 +1273,7 @@ class PlanningParams
bool enableTrafficLightBehavior;
bool enableStopSignBehavior;
bool enableTimeOutAvoidance;
bool enableFinalLocalPathUpdate;
double avoidanceTimeOut;

bool enabTrajectoryVelocities;
Expand Down Expand Up @@ -1319,6 +1320,7 @@ class PlanningParams
enableLaneChange = false;
enableStopSignBehavior = false;
enabTrajectoryVelocities = false;
enableFinalLocalPathUpdate = true;
minIndicationDistance = 15;

enableTimeOutAvoidance = false;
Expand Down
4 changes: 2 additions & 2 deletions op_planner/src/DecisionMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void DecisionMaker::InitBehaviorStates()

if((currIndex > index_limit
|| preCalcPrams->bRePlan
|| preCalcPrams->bNewGlobalPath) && !preCalcPrams->bFinalLocalTrajectory && m_iSinceLastReplan > m_params.nReliableCount)
|| preCalcPrams->bNewGlobalPath) && (!preCalcPrams->bFinalLocalTrajectory || m_params.enableFinalLocalPathUpdate) && m_iSinceLastReplan > m_params.nReliableCount)
{
m_iSinceLastReplan = 0;
return true;
Expand All @@ -558,7 +558,7 @@ void DecisionMaker::InitBehaviorStates()

if((currIndex > index_limit
|| preCalcPrams->bRePlan
|| preCalcPrams->bNewGlobalPath) && !preCalcPrams->bFinalLocalTrajectory && m_iSinceLastReplan > m_params.nReliableCount)
|| preCalcPrams->bNewGlobalPath) && (!preCalcPrams->bFinalLocalTrajectory || m_params.enableFinalLocalPathUpdate) && m_iSinceLastReplan > m_params.nReliableCount)
{
//Debug
//std::cout << "New Local Plan !! " << currIndex << ", "<< preCalcPrams->bRePlan << ", " << preCalcPrams->bNewGlobalPath << ", " << m_TotalPath.at(0).size() << ", PrevLocal: " << m_Path.size();
Expand Down