| 12345678910111213141516171819202122 |
- #include <decition/decition_voter.h>
- iv::decition::DecitionVoter::DecitionVoter()
- {
- }
- iv::decition::DecitionVoter::~DecitionVoter()
- {
- }
- 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)
- {
- //todo 按照优先级决定采用谁的决策 或融合采用
- if (decition_gps != NULL) {
- decition_final->speed = decition_gps->speed;
- decition_final->wheel_angle = decition_gps->wheel_angle;
- decition_final->accelerator = decition_gps->accelerator;
- decition_final->brake = decition_gps->brake;
- }
- }
|