-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaterial_color.hpp
279 lines (274 loc) · 11.8 KB
/
material_color.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
#ifndef MATERIAL_COLOR_HPP_
#define MATERIAL_COLOR_HPP_
#include <iostream>
#include <string>
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/color_rgba.hpp"
namespace material_color
{
std::string md_red_50 = "#FFEBEE";
std::string md_red_100 = "#FFCDD2";
std::string md_red_200 = "#EF9A9A";
std::string md_red_300 = "#E57373";
std::string md_red_400 = "#EF5350";
std::string md_red_500 = "#F44336";
std::string md_red_600 = "#E53935";
std::string md_red_700 = "#D32F2F";
std::string md_red_800 = "#C62828";
std::string md_red_900 = "#B71C1C";
std::string md_red_A100 = "#FF8A80";
std::string md_red_A200 = "#FF5252";
std::string md_red_A400 = "#FF1744";
std::string md_red_A700 = "#D50000";
std::string md_pink_50 = "#FCE4EC";
std::string md_pink_100 = "#F8BBD0";
std::string md_pink_200 = "#F48FB1";
std::string md_pink_300 = "#F06292";
std::string md_pink_400 = "#EC407A";
std::string md_pink_500 = "#E91E63";
std::string md_pink_600 = "#D81B60";
std::string md_pink_700 = "#C2185B";
std::string md_pink_800 = "#AD1457";
std::string md_pink_900 = "#880E4F";
std::string md_pink_A100 = "#FF80AB";
std::string md_pink_A200 = "#FF4081";
std::string md_pink_A400 = "#F50057";
std::string md_pink_A700 = "#C51162";
std::string md_purple_50 = "#F3E5F5";
std::string md_purple_100 = "#E1BEE7";
std::string md_purple_200 = "#CE93D8";
std::string md_purple_300 = "#BA68C8";
std::string md_purple_400 = "#AB47BC";
std::string md_purple_500 = "#9C27B0";
std::string md_purple_600 = "#8E24AA";
std::string md_purple_700 = "#7B1FA2";
std::string md_purple_800 = "#6A1B9A";
std::string md_purple_900 = "#4A148C";
std::string md_purple_A100 = "#EA80FC";
std::string md_purple_A200 = "#E040FB";
std::string md_purple_A400 = "#D500F9";
std::string md_purple_A700 = "#AA00FF";
std::string md_deep_purple_50 = "#EDE7F6";
std::string md_deep_purple_100 = "#D1C4E9";
std::string md_deep_purple_200 = "#B39DDB";
std::string md_deep_purple_300 = "#9575CD";
std::string md_deep_purple_400 = "#7E57C2";
std::string md_deep_purple_500 = "#673AB7";
std::string md_deep_purple_600 = "#5E35B1";
std::string md_deep_purple_700 = "#512DA8";
std::string md_deep_purple_800 = "#4527A0";
std::string md_deep_purple_900 = "#311B92";
std::string md_deep_purple_A100 = "#B388FF";
std::string md_deep_purple_A200 = "#7C4DFF";
std::string md_deep_purple_A400 = "#651FFF";
std::string md_deep_purple_A700 = "#6200EA";
std::string md_indigo_50 = "#E8EAF6";
std::string md_indigo_100 = "#C5CAE9";
std::string md_indigo_200 = "#9FA8DA";
std::string md_indigo_300 = "#7986CB";
std::string md_indigo_400 = "#5C6BC0";
std::string md_indigo_500 = "#3F51B5";
std::string md_indigo_600 = "#3949AB";
std::string md_indigo_700 = "#303F9F";
std::string md_indigo_800 = "#283593";
std::string md_indigo_900 = "#1A237E";
std::string md_indigo_A100 = "#8C9EFF";
std::string md_indigo_A200 = "#536DFE";
std::string md_indigo_A400 = "#3D5AFE";
std::string md_indigo_A700 = "#304FFE";
std::string md_blue_50 = "#E3F2FD";
std::string md_blue_100 = "#BBDEFB";
std::string md_blue_200 = "#90CAF9";
std::string md_blue_300 = "#64B5F6";
std::string md_blue_400 = "#42A5F5";
std::string md_blue_500 = "#2196F3";
std::string md_blue_600 = "#1E88E5";
std::string md_blue_700 = "#1976D2";
std::string md_blue_800 = "#1565C0";
std::string md_blue_900 = "#0D47A1";
std::string md_blue_A100 = "#82B1FF";
std::string md_blue_A200 = "#448AFF";
std::string md_blue_A400 = "#2979FF";
std::string md_blue_A700 = "#2962FF";
std::string md_light_blue_50 = "#E1F5FE";
std::string md_light_blue_100 = "#B3E5FC";
std::string md_light_blue_200 = "#81D4fA";
std::string md_light_blue_300 = "#4fC3F7";
std::string md_light_blue_400 = "#29B6FC";
std::string md_light_blue_500 = "#03A9F4";
std::string md_light_blue_600 = "#039BE5";
std::string md_light_blue_700 = "#0288D1";
std::string md_light_blue_800 = "#0277BD";
std::string md_light_blue_900 = "#01579B";
std::string md_light_blue_A100 = "#80D8FF";
std::string md_light_blue_A200 = "#40C4FF";
std::string md_light_blue_A400 = "#00B0FF";
std::string md_light_blue_A700 = "#0091EA";
std::string md_cyan_50 = "#E0F7FA";
std::string md_cyan_100 = "#B2EBF2";
std::string md_cyan_200 = "#80DEEA";
std::string md_cyan_300 = "#4DD0E1";
std::string md_cyan_400 = "#26C6DA";
std::string md_cyan_500 = "#00BCD4";
std::string md_cyan_600 = "#00ACC1";
std::string md_cyan_700 = "#0097A7";
std::string md_cyan_800 = "#00838F";
std::string md_cyan_900 = "#006064";
std::string md_cyan_A100 = "#84FFFF";
std::string md_cyan_A200 = "#18FFFF";
std::string md_cyan_A400 = "#00E5FF";
std::string md_cyan_A700 = "#00B8D4";
std::string md_teal_50 = "#E0F2F1";
std::string md_teal_100 = "#B2DFDB";
std::string md_teal_200 = "#80CBC4";
std::string md_teal_300 = "#4DB6AC";
std::string md_teal_400 = "#26A69A";
std::string md_teal_500 = "#009688";
std::string md_teal_600 = "#00897B";
std::string md_teal_700 = "#00796B";
std::string md_teal_800 = "#00695C";
std::string md_teal_900 = "#004D40";
std::string md_teal_A100 = "#A7FFEB";
std::string md_teal_A200 = "#64FFDA";
std::string md_teal_A400 = "#1DE9B6";
std::string md_teal_A700 = "#00BFA5";
std::string md_green_50 = "#E8F5E9";
std::string md_green_100 = "#C8E6C9";
std::string md_green_200 = "#A5D6A7";
std::string md_green_300 = "#81C784";
std::string md_green_400 = "#66BB6A";
std::string md_green_500 = "#4CAF50";
std::string md_green_600 = "#43A047";
std::string md_green_700 = "#388E3C";
std::string md_green_800 = "#2E7D32";
std::string md_green_900 = "#1B5E20";
std::string md_green_A100 = "#B9F6CA";
std::string md_green_A200 = "#69F0AE";
std::string md_green_A400 = "#00E676";
std::string md_green_A700 = "#00C853";
std::string md_light_green_50 = "#F1F8E9";
std::string md_light_green_100 = "#DCEDC8";
std::string md_light_green_200 = "#C5E1A5";
std::string md_light_green_300 = "#AED581";
std::string md_light_green_400 = "#9CCC65";
std::string md_light_green_500 = "#8BC34A";
std::string md_light_green_600 = "#7CB342";
std::string md_light_green_700 = "#689F38";
std::string md_light_green_800 = "#558B2F";
std::string md_light_green_900 = "#33691E";
std::string md_light_green_A100 = "#CCFF90";
std::string md_light_green_A200 = "#B2FF59";
std::string md_light_green_A400 = "#76FF03";
std::string md_light_green_A700 = "#64DD17";
std::string md_lime_50 = "#F9FBE7";
std::string md_lime_100 = "#F0F4C3";
std::string md_lime_200 = "#E6EE9C";
std::string md_lime_300 = "#DCE775";
std::string md_lime_400 = "#D4E157";
std::string md_lime_500 = "#CDDC39";
std::string md_lime_600 = "#C0CA33";
std::string md_lime_700 = "#A4B42B";
std::string md_lime_800 = "#9E9D24";
std::string md_lime_900 = "#827717";
std::string md_lime_A100 = "#F4FF81";
std::string md_lime_A200 = "#EEFF41";
std::string md_lime_A400 = "#C6FF00";
std::string md_lime_A700 = "#AEEA00";
std::string md_yellow_50 = "#FFFDE7";
std::string md_yellow_100 = "#FFF9C4";
std::string md_yellow_200 = "#FFF590";
std::string md_yellow_300 = "#FFF176";
std::string md_yellow_400 = "#FFEE58";
std::string md_yellow_500 = "#FFEB3B";
std::string md_yellow_600 = "#FDD835";
std::string md_yellow_700 = "#FBC02D";
std::string md_yellow_800 = "#F9A825";
std::string md_yellow_900 = "#F57F17";
std::string md_yellow_A100 = "#FFFF82";
std::string md_yellow_A200 = "#FFFF00";
std::string md_yellow_A400 = "#FFEA00";
std::string md_yellow_A700 = "#FFD600";
std::string md_amber_50 = "#FFF8E1";
std::string md_amber_100 = "#FFECB3";
std::string md_amber_200 = "#FFE082";
std::string md_amber_300 = "#FFD54F";
std::string md_amber_400 = "#FFCA28";
std::string md_amber_500 = "#FFC107";
std::string md_amber_600 = "#FFB300";
std::string md_amber_700 = "#FFA000";
std::string md_amber_800 = "#FF8F00";
std::string md_amber_900 = "#FF6F00";
std::string md_amber_A100 = "#FFE57F";
std::string md_amber_A200 = "#FFD740";
std::string md_amber_A400 = "#FFC400";
std::string md_amber_A700 = "#FFAB00";
std::string md_orange_50 = "#FFF3E0";
std::string md_orange_100 = "#FFE0B2";
std::string md_orange_200 = "#FFCC80";
std::string md_orange_300 = "#FFB74D";
std::string md_orange_400 = "#FFA726";
std::string md_orange_500 = "#FF9800";
std::string md_orange_600 = "#FB8C00";
std::string md_orange_700 = "#F57C00";
std::string md_orange_800 = "#EF6C00";
std::string md_orange_900 = "#E65100";
std::string md_orange_A100 = "#FFD180";
std::string md_orange_A200 = "#FFAB40";
std::string md_orange_A400 = "#FF9100";
std::string md_orange_A700 = "#FF6D00";
std::string md_deep_orange_50 = "#FBE9A7";
std::string md_deep_orange_100 = "#FFCCBC";
std::string md_deep_orange_200 = "#FFAB91";
std::string md_deep_orange_300 = "#FF8A65";
std::string md_deep_orange_400 = "#FF7043";
std::string md_deep_orange_500 = "#FF5722";
std::string md_deep_orange_600 = "#F4511E";
std::string md_deep_orange_700 = "#E64A19";
std::string md_deep_orange_800 = "#D84315";
std::string md_deep_orange_900 = "#BF360C";
std::string md_deep_orange_A100 = "#FF9E80";
std::string md_deep_orange_A200 = "#FF6E40";
std::string md_deep_orange_A400 = "#FF3D00";
std::string md_deep_orange_A700 = "#DD2600";
std::string md_brown_50 = "#EFEBE9";
std::string md_brown_100 = "#D7CCC8";
std::string md_brown_200 = "#BCAAA4";
std::string md_brown_300 = "#A1887F";
std::string md_brown_400 = "#8D6E63";
std::string md_brown_500 = "#795548";
std::string md_brown_600 = "#6D4C41";
std::string md_brown_700 = "#5D4037";
std::string md_brown_800 = "#4E342E";
std::string md_brown_900 = "#3E2723";
std::string md_grey_50 = "#FAFAFA";
std::string md_grey_100 = "#F5F5F5";
std::string md_grey_200 = "#EEEEEE";
std::string md_grey_300 = "#E0E0E0";
std::string md_grey_400 = "#BDBDBD";
std::string md_grey_500 = "#9E9E9E";
std::string md_grey_600 = "#757575";
std::string md_grey_700 = "#616161";
std::string md_grey_800 = "#424242";
std::string md_grey_900 = "#212121";
std::string md_black_1000 = "#000000";
std::string md_white_1000 = "#ffffff";
std::string md_blue_grey_50 = "#ECEFF1";
std::string md_blue_grey_100 = "#CFD8DC";
std::string md_blue_grey_200 = "#B0BBC5";
std::string md_blue_grey_300 = "#90A4AE";
std::string md_blue_grey_400 = "#78909C";
std::string md_blue_grey_500 = "#607D8B";
std::string md_blue_grey_600 = "#546E7A";
std::string md_blue_grey_700 = "#455A64";
std::string md_blue_grey_800 = "#37474F";
std::string md_blue_grey_900 = "#263238";
std_msgs::msg::ColorRGBA hex_to_ros(std::string hex_string){
std_msgs::msg::ColorRGBA color;
color.r = float(stoi(hex_string.substr(1,2), 0, 16)) / 255.;
color.g = float(stoi(hex_string.substr(3,2), 0, 16)) / 255.;
color.b = float(stoi(hex_string.substr(5,2), 0, 16)) / 255.;
//std::cout << hex_string << " r:" << color.r << " g:" << color.g << " b:" << color.b << "\n";
return(color);
}
} // namespace material_color
#endif // material_color_HPP_