do_output.cpp
Go to the documentation of this file.
00001 #include "aubo_new_driver/do_output.h"
00002 
00003 void print_debug(std::string inp) {
00004 #ifdef ROS_BUILD
00005         ROS_DEBUG("%s", inp.c_str());
00006 #else
00007         printf("DEBUG: %s\n", inp.c_str());
00008 #endif
00009 }
00010 void print_info(std::string inp) {
00011 #ifdef ROS_BUILD
00012         ROS_INFO("%s", inp.c_str());
00013 #else
00014         printf("INFO: %s\n", inp.c_str());
00015 #endif
00016 }
00017 void print_warning(std::string inp) {
00018 #ifdef ROS_BUILD
00019         ROS_WARN("%s", inp.c_str());
00020 #else
00021         printf("WARNING: %s\n", inp.c_str());
00022 #endif
00023 }
00024 void print_error(std::string inp) {
00025 #ifdef ROS_BUILD
00026         ROS_ERROR("%s", inp.c_str());
00027 #else
00028         printf("ERROR: %s\n", inp.c_str());
00029 #endif
00030 }
00031 void print_fatal(std::string inp) {
00032 #ifdef ROS_BUILD
00033         ROS_FATAL("%s", inp.c_str());
00034         ros::shutdown();
00035 #else
00036         printf("FATAL: %s\n", inp.c_str());
00037         exit(1);
00038 #endif
00039 }


aubo_new_driver
Author(s): liuxin
autogenerated on Wed Sep 6 2017 03:06:44