decition_voter.cpp 805 B

12345678910111213141516171819202122
  1. #include <decition/decition_voter.h>
  2. iv::decition::DecitionVoter::DecitionVoter()
  3. {
  4. }
  5. iv::decition::DecitionVoter::~DecitionVoter()
  6. {
  7. }
  8. void iv::decition::DecitionVoter::decideFromAll(iv::decition::Decition & decition_final, iv::decition::Decition & decition_lidar, iv::decition::Decition & decition_radar, iv::decition::Decition & decition_camera, iv::decition::Decition & decition_gps, iv::decition::Decition & decition_localmap)
  9. {
  10. //todo 按照优先级决定采用谁的决策 或融合采用
  11. if (decition_gps != NULL) {
  12. decition_final->speed = decition_gps->speed;
  13. decition_final->wheel_angle = decition_gps->wheel_angle;
  14. decition_final->accelerator = decition_gps->accelerator;
  15. decition_final->brake = decition_gps->brake;
  16. }
  17. }