|
@@ -1473,7 +1473,7 @@ double Road::GetRoadRightWidth(double s_check)
|
|
|
LaneSection * pLS =&mLaneSectionsVector[0];
|
|
|
if(mLaneSectionsVector.size() > 1)
|
|
|
{
|
|
|
- unsigned int nLSCount = mLaneSectionsVector.size();
|
|
|
+ unsigned int nLSCount = static_cast<unsigned int>(mLaneSectionsVector.size()) ;
|
|
|
unsigned int i;
|
|
|
for(i=0;i<(nLSCount -1);i++)
|
|
|
{
|
|
@@ -1487,7 +1487,7 @@ double Road::GetRoadRightWidth(double s_check)
|
|
|
double Road::GetLaneOffsetValue(double s_check)
|
|
|
{
|
|
|
if(mLaneOffsetVector.size() == 0)return 0.0;
|
|
|
- unsigned int noffsetcount = mLaneOffsetVector.size();
|
|
|
+ unsigned int noffsetcount = static_cast<unsigned int >(mLaneOffsetVector.size()) ;
|
|
|
unsigned int i;
|
|
|
LaneOffset * pLO = NULL;
|
|
|
for(i=0;i<noffsetcount;i++)
|
|
@@ -2004,6 +2004,34 @@ void Road::ResetPriority()
|
|
|
if(mRoadPriorityVector.size()>0)mRoadPriorityVector.clear();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+double Road::GetDis(const double x,const double y, const double hdg, double & fRefDis, double & fHdgDiff, int & nlane,double & s,double & refx,double & refy,double & refhdg)
|
|
|
+{
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|