|
@@ -63,12 +63,16 @@ public:
|
|
|
int lane;
|
|
|
};
|
|
|
|
|
|
-static bool LoadXODR(std::string strpath,OpenDrive & mxodr)
|
|
|
+static void LoadXODR(std::string & strpath,OpenDrive & mxodr)
|
|
|
{
|
|
|
OpenDriveXmlParser xp(&mxodr);
|
|
|
xp.ReadFile(strpath);
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
static int getmnfac(OpenDrive & mxodr,double & fmovex,double & fmovey)
|
|
|
{
|
|
|
int nrtn = 1;
|
|
@@ -179,10 +183,15 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
|
std::string strmapth;
|
|
|
strmapth = getenv("HOME");
|
|
|
- strmapth = strmapth + "/map/map.xodr";
|
|
|
+ strmapth = strmapth + std::string("/map/map.xodr");
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ std::cout<<"map path: "<<strmapth<<std::endl;
|
|
|
|
|
|
LoadXODR(strmapth,mxodr);
|
|
|
|
|
|
+
|
|
|
double fmovex,fmovey;
|
|
|
mnfac = getmnfac(mxodr,fmovex,fmovey);
|
|
|
|
|
@@ -196,6 +205,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
mnDefMoveX = mnMoveX;
|
|
|
mnDefMoveY = mnMoveY;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
// mnfac = 100;
|
|
|
// mnfac = 20;
|
|
|
|
|
@@ -244,6 +255,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
|
setWindowTitle("ADC OpenDrive View And Set Global Plan Destination");
|
|
|
|
|
|
+
|
|
|
+
|
|
|
mpasrc = iv::modulecomm::RegisterSend("xodrsrc",1000,1);
|
|
|
mpadst = iv::modulecomm::RegisterSend("xodrreq",1000,1);
|
|
|
|