5 {
"blue_cone", Color::BLUE}, {
"yellow_cone", Color::YELLOW},
6 {
"orange_cone", Color::ORANGE}, {
"large_orange_cone", Color::LARGE_ORANGE},
7 {
"unknown", Color::UNKNOWN},
11 {Color::BLUE,
"blue_cone"}, {Color::YELLOW,
"yellow_cone"},
12 {Color::ORANGE,
"orange_cone"}, {Color::LARGE_ORANGE,
"large_orange_cone"},
13 {Color::UNKNOWN,
"unknown"},
24bool operator==(
const Color& color,
const int& value) {
return static_cast<int>(color) == value; }
26bool operator==(
const int& value,
const Color& color) {
return static_cast<int>(color) == value; }
const std::map< Color, std::string > COLOR_TO_STRING
const std::map< std::string, Color, std::less<> > STRING_TO_COLOR
bool operator==(const Color &color, const int &value)
Color get_color_enum(const std::string &color)
std::string get_color_string(int color)