adcapollompc_impl.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef ADCAPOLLOMPC_IMPL_H
  2. #define ADCAPOLLOMPC_IMPL_H
  3. #include "modules/control/controller/mpc_controller.h"
  4. #include "cyber/common/file.h"
  5. #include "cyber/common/log.h"
  6. #include "gmock/gmock.h"
  7. #include "gtest/gtest.h"
  8. #include "cyber/time/clock.h"
  9. #include "modules/common/vehicle_state/vehicle_state_provider.h"
  10. #include "modules/control/common/control_gflags.h"
  11. #include "modules/control/proto/control_conf.pb.h"
  12. #include "modules/localization/common/localization_gflags.h"
  13. #include "modules/planning/proto/planning.pb.h"
  14. #include "modules/common/configs/config_gflags.h"
  15. #include "modulecomm.h"
  16. #include "gpsimu.pb.h"
  17. class adcapollompc_impl
  18. {
  19. public:
  20. adcapollompc_impl(std::string strconfpath);
  21. private:
  22. apollo::common::VehicleStateProvider * mvehicle_state;
  23. apollo::control::MPCController mMPCController;
  24. private:
  25. void UpdateGPSIMU(const char * strdata,const unsigned int nSize,const unsigned int index,const QDateTime * dt,const char * strmemname);
  26. private:
  27. void * mpagpsimu;
  28. apollo::localization::LocalizationEstimate mapollolocalize;
  29. double mfLat0 = 39;
  30. double mfLon0 = 117;
  31. double mfX0 = 0;
  32. double mfY0 = 0;
  33. };
  34. #endif // ADCAPOLLOMPC_IMPL_H