scenario_simulator_v2 C++ API
color_utils.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
20 #ifndef TRAFFIC_SIMULATOR__COLOR_UTILS__COLOR_UTILS_HPP_
21 #define TRAFFIC_SIMULATOR__COLOR_UTILS__COLOR_UTILS_HPP_
22 
23 #include <cassert>
24 #include <cstdio>
25 #include <map>
26 #include <std_msgs/msg/color_rgba.hpp>
27 #include <string>
28 
29 namespace color_utils
30 {
31 void printRed(const std::string & text);
32 void printGreen(const std::string & text);
33 void printYellow(const std::string & text);
34 void printBlue(const std::string & text);
35 void printMagenta(const std::string & text);
36 void printCyan(const std::string & text);
37 void printWhite(const std::string & text);
38 
39 const std_msgs::msg::ColorRGBA fromRgba(double r, double g, double b, double alpha = 1.0);
40 } // namespace color_utils
41 
42 #endif // TRAFFIC_SIMULATOR__COLOR_UTILS__COLOR_UTILS_HPP_
Definition: color_utils.hpp:30
void printCyan(const std::string &text)
Definition: color_utils.cpp:52
void printGreen(const std::string &text)
Definition: color_utils.cpp:28
void printWhite(const std::string &text)
Definition: color_utils.cpp:58
void printYellow(const std::string &text)
Definition: color_utils.cpp:34
void printMagenta(const std::string &text)
Definition: color_utils.cpp:46
const std_msgs::msg::ColorRGBA fromRgba(double r, double g, double b, double alpha=1.0)
generate std_msgs::msg::ColorRGBA message from rgb values
Definition: color_utils.cpp:72
void printRed(const std::string &text)
Definition: color_utils.cpp:22
void printBlue(const std::string &text)
Definition: color_utils.cpp:40
std::string string
Definition: junit5.hpp:26