Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
color.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5
11enum class Color { BLUE = 0, YELLOW, ORANGE, LARGE_ORANGE, UNKNOWN };
12bool operator==(const Color& color, const int& value);
13bool operator==(const int& value, const Color& color);
14extern const std::map<std::string, Color, std::less<>> STRING_COLOR_MAP;
15extern const std::map<Color, std::string> COLOR_STRING_MAP;
16std::string get_color_string(int color);
17std::string get_color_string(Color color);
18Color get_color_enum(const std::string& color);
19} // namespace common_lib::competition_logic
bool operator==(const Color &color, const int &value)
Definition color.cpp:24
Color get_color_enum(const std::string &color)
Definition color.cpp:22
std::string get_color_string(int color)
Definition color.cpp:16
const std::map< Color, std::string > COLOR_STRING_MAP
const std::map< std::string, Color, std::less<> > STRING_COLOR_MAP