19 #include "../../include/robotis_manipulator/robotis_manipulator_log.h" 23 #if defined(__OPENCR__) 32 printf(
"%s", str.c_str());
38 #if defined(__OPENCR__) 40 DEBUG.print(data, decimal_point);
48 printf(
"%s %.*lf", str.c_str(), decimal_point, data);
54 #if defined(__OPENCR__) 69 #if defined(__OPENCR__) 71 DEBUG.print(data, decimal_point);
79 printf(
"%s %.*lf", str, decimal_point, data);
87 #if defined(__OPENCR__) 96 printf(
"%s\n", str.c_str());
102 #if defined(__OPENCR__) 104 DEBUG.println(data, decimal_point);
112 printf(
"%s %.*lf\n", str.c_str(), decimal_point, data);
118 #if defined(__OPENCR__) 133 #if defined(__OPENCR__) 135 DEBUG.println(data, decimal_point);
143 printf(
"%s %.*lf\n", str, decimal_point, data);
150 #if defined(__OPENCR__) 151 DEBUG.print(
"[INFO] ");
154 printf(
"[INFO] %s\n", str.c_str());
159 #if defined(__OPENCR__) 160 DEBUG.print(
"[INFO] ");
162 DEBUG.println(data, decimal_point);
164 printf(
"[INFO] %s %.*lf\n", str.c_str(), decimal_point, data);
169 #if defined(__OPENCR__) 170 DEBUG.print(
"[INFO] ");
173 printf(
"[INFO] %s\n", str);
178 #if defined(__OPENCR__) 179 DEBUG.print(
"[INFO] ");
181 DEBUG.println(data, decimal_point);
183 printf(
"[INFO] %s %.*lf\n", str, decimal_point, data);
188 #if defined(__OPENCR__) 189 DEBUG.print(
"[WARN] ");
193 printf(
"[WARN] %s\n", str.c_str());
199 #if defined(__OPENCR__) 200 DEBUG.print(
"[WARN] ");
202 DEBUG.println(data, decimal_point);
205 printf(
"[WARN] %s %.*lf\n",str.c_str(), decimal_point, data);
211 #if defined(__OPENCR__) 212 DEBUG.print(
"[WARN] ");
216 printf(
"[WARN] %s\n", str);
222 #if defined(__OPENCR__) 223 DEBUG.print(
"[WARN] ");
225 DEBUG.println(data, decimal_point);
228 printf(
"[WARN] %s %.*lf\n", str, decimal_point, data);
234 #if defined(__OPENCR__) 235 DEBUG.print(
"[ERROR] ");
239 printf(
"[ERROR] %s\n", str.c_str());
245 #if defined(__OPENCR__) 246 DEBUG.print(
"[ERROR] ");
248 DEBUG.println(data, decimal_point);
251 printf(
"[ERROR] %s %.*lf\n", str.c_str(), decimal_point, data);
258 #if defined(__OPENCR__) 259 DEBUG.print(
"[ERROR] ");
263 printf(
"[ERROR] %s\n", str);
269 #if defined(__OPENCR__) 270 DEBUG.print(
"[ERROR] ");
272 DEBUG.println(data, decimal_point);
275 printf(
"[ERROR] %s %.*lf\n", str, decimal_point, data);
#define ANSI_COLOR_YELLOW
void println(STRING str, STRING color="DEFAULT")
void print(STRING str, STRING color="DEFAULT")
#define ANSI_COLOR_MAGENTA