35 #ifndef DWB_CORE__ILLEGAL_TRAJECTORY_TRACKER_HPP_
36 #define DWB_CORE__ILLEGAL_TRAJECTORY_TRACKER_HPP_
41 #include "dwb_core/exceptions.hpp"
42 #include "nav2_core/controller_exceptions.hpp"
50 : legal_count_(0), illegal_count_(0) {}
53 void addLegalTrajectory();
55 std::map<std::pair<std::string, std::string>,
double> getPercentages()
const;
57 std::string getMessage()
const;
60 std::map<std::pair<std::string, std::string>,
unsigned int> counts_;
61 unsigned int legal_count_, illegal_count_;
73 : ControllerException(tracker.getMessage()),
Thrown when one of the critics encountered a fatal error.
Thrown when all the trajectories explored are illegal.