globalplan.h 844 B

1234567891011121314151617181920212223242526
  1. #ifndef GLOBALPLAN_H
  2. #define GLOBALPLAN_H
  3. #include "OpenDrive/OpenDrive.h"
  4. #include <vector>
  5. #include "xodrfunc.h"
  6. #include "xodrdijkstra.h"
  7. #include "planpoint.h"
  8. class LaneChangePoint
  9. {
  10. int nRoadID = -1;
  11. double mS = 0;
  12. };
  13. int GetNearPoint(const double x,const double y,OpenDrive * pxodr,Road ** pObjRoad,GeometryBlock ** pgeo, double & s,double & nearx,
  14. double & neary,double & nearhead,const double nearthresh);
  15. int MakePlan(xodrdijkstra * pxd,OpenDrive * pxodr,const double x_now,const double y_now,const double head,
  16. const double x_obj,const double y_obj,const double & obj_dis,
  17. const double srcnearthresh,const double dstnearthresh,
  18. const int nlanesel,std::vector<PlanPoint> & xPlan,const double fvehiclewidth = 2.0);
  19. #endif // GLOBALPLAN_H