26 #include "../../include/robotis_manipulator/robotis_manipulator_log.h" 30 #if defined(__OPENCR__) 39 printf(
"%s", str.c_str());
45 #if defined(__OPENCR__) 47 DEBUG.print(data, decimal_point);
55 printf(
"%s %.*lf", str.c_str(), decimal_point, data);
61 #if defined(__OPENCR__) 76 #if defined(__OPENCR__) 78 DEBUG.print(data, decimal_point);
86 printf(
"%s %.*lf", str, decimal_point, data);
94 #if defined(__OPENCR__) 103 printf(
"%s\n", str.c_str());
109 #if defined(__OPENCR__) 111 DEBUG.println(data, decimal_point);
119 printf(
"%s %.*lf\n", str.c_str(), decimal_point, data);
125 #if defined(__OPENCR__) 140 #if defined(__OPENCR__) 142 DEBUG.println(data, decimal_point);
150 printf(
"%s %.*lf\n", str, decimal_point, data);
157 #if defined(__OPENCR__) 158 DEBUG.print(
"[INFO] ");
161 printf(
"[INFO] %s\n", str.c_str());
166 #if defined(__OPENCR__) 167 DEBUG.print(
"[INFO] ");
169 DEBUG.println(data, decimal_point);
171 printf(
"[INFO] %s %.*lf\n", str.c_str(), decimal_point, data);
176 #if defined(__OPENCR__) 177 DEBUG.print(
"[INFO] ");
180 printf(
"[INFO] %s\n", str);
185 #if defined(__OPENCR__) 186 DEBUG.print(
"[INFO] ");
188 DEBUG.println(data, decimal_point);
190 printf(
"[INFO] %s %.*lf\n", str, decimal_point, data);
195 #if defined(__OPENCR__) 196 DEBUG.print(
"[WARN] ");
200 printf(
"[WARN] %s\n", str.c_str());
206 #if defined(__OPENCR__) 207 DEBUG.print(
"[WARN] ");
209 DEBUG.println(data, decimal_point);
212 printf(
"[WARN] %s %.*lf\n",str.c_str(), decimal_point, data);
218 #if defined(__OPENCR__) 219 DEBUG.print(
"[WARN] ");
223 printf(
"[WARN] %s\n", str);
229 #if defined(__OPENCR__) 230 DEBUG.print(
"[WARN] ");
232 DEBUG.println(data, decimal_point);
235 printf(
"[WARN] %s %.*lf\n", str, decimal_point, data);
241 #if defined(__OPENCR__) 242 DEBUG.print(
"[ERROR] ");
246 printf(
"[ERROR] %s\n", str.c_str());
252 #if defined(__OPENCR__) 253 DEBUG.print(
"[ERROR] ");
255 DEBUG.println(data, decimal_point);
258 printf(
"[ERROR] %s %.*lf\n", str.c_str(), decimal_point, data);
265 #if defined(__OPENCR__) 266 DEBUG.print(
"[ERROR] ");
270 printf(
"[ERROR] %s\n", str);
276 #if defined(__OPENCR__) 277 DEBUG.print(
"[ERROR] ");
279 DEBUG.println(data, decimal_point);
282 printf(
"[ERROR] %s %.*lf\n", str, decimal_point, data);
void info(STRING str)
info
#define ANSI_COLOR_YELLOW
void println(STRING str, STRING color="DEFAULT")
println
void print(STRING str, STRING color="DEFAULT")
print
void error(STRING str)
error
void warn(STRING str)
warn
#define ANSI_COLOR_MAGENTA