bus_adapter.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef BUS_ADAPTER_H
  2. #define BUS_ADAPTER_H
  3. #include <gps_type.h>
  4. #include <decition_type.h>
  5. #include <obstacle_type.h>
  6. #include <vector>
  7. #include <gnss_coordinate_convert.h>
  8. #include <adc_adapter/base_adapter.h>
  9. #include <adc_tools/transfer.h>
  10. //#include <decide_gps_00.h>
  11. namespace iv {
  12. namespace decition {
  13. class BusAdapter: public BaseAdapter {
  14. public:
  15. float lastTorque;
  16. float lastBrake;
  17. int lastDangWei=0;
  18. BusAdapter();
  19. ~BusAdapter();
  20. iv::decition::Decition getAdapterDeciton(GPS_INS now_gps_ins, std::vector<Point2D> trace , float dSpeed, float obsDistacne ,
  21. float obsSpeed,float acc,float accNow ,bool changingDangWei,Decition *decition);
  22. float limitBrake(float realSpeed, float controlBrake,float dSpeed,float obsDistance , float ttc);
  23. float limitSpeed(float realSpeed, float controlBrake,float dSpeed,float controlSpeed );
  24. private:
  25. int seizingCount=0;
  26. };
  27. }
  28. }
  29. #endif // BUS_ADAPTER_H