21#include <unordered_map>
23#include <boost/functional/hash/extensions.hpp>
24#include <rapidjson/document.h>
40 struct VectorHash : boost::hash<std::vector<SensorBooleanStatus>> {};
58 output <<
"LocalizationControllerConfig { " << std::endl
59 <<
"sensor_nodes: [ ";
61 for (
auto node :
c.sensor_nodes)
62 output << node <<
", ";
64 output <<
"] " << std::endl;
66 output <<
"sensor_fault_map: [ ";
68 for (
auto const& pair:
c.sensor_fault_map) {
71 for (
auto const& status : pair.first) {
72 output << static_cast<std::underlying_type<SensorBooleanStatus>::type>(status) <<
", ";
75 output <<
": " <<
static_cast<std::underlying_type<SensorAlertStatus>::type
>(pair.second) <<
" }" << std::endl;
78 output <<
"] " << std::endl
Stuct containing the algorithm configuration values for the BaseSubsystemController.
std::unordered_map< std::vector< SensorBooleanStatus >, SensorAlertStatus, VectorHash > sensor_fault_map
friend std::ostream & operator<<(std::ostream &output, const LocalizationControllerConfig &c)
std::vector< std::string > sensor_nodes
sensor_nodes