do_output.cpp
Go to the documentation of this file.
00001 /*
00002  * do_output.cpp
00003  *
00004  * Copyright 2015 Thomas Timm Andersen
00005  *
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  *
00010  *     http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #include "ur_modern_driver/do_output.h"
00020 
00021 void print_debug(std::string inp) {
00022 #ifdef ROS_BUILD
00023         ROS_DEBUG("%s", inp.c_str());
00024 #else
00025         printf("DEBUG: %s\n", inp.c_str());
00026 #endif
00027 }
00028 void print_info(std::string inp) {
00029 #ifdef ROS_BUILD
00030         ROS_INFO("%s", inp.c_str());
00031 #else
00032         printf("INFO: %s\n", inp.c_str());
00033 #endif
00034 }
00035 void print_warning(std::string inp) {
00036 #ifdef ROS_BUILD
00037         ROS_WARN("%s", inp.c_str());
00038 #else
00039         printf("WARNING: %s\n", inp.c_str());
00040 #endif
00041 }
00042 void print_error(std::string inp) {
00043 #ifdef ROS_BUILD
00044         ROS_ERROR("%s", inp.c_str());
00045 #else
00046         printf("ERROR: %s\n", inp.c_str());
00047 #endif
00048 }
00049 void print_fatal(std::string inp) {
00050 #ifdef ROS_BUILD
00051         ROS_FATAL("%s", inp.c_str());
00052         ros::shutdown();
00053 #else
00054         printf("FATAL: %s\n", inp.c_str());
00055         exit(1);
00056 #endif
00057 }


ur_modern_driver
Author(s): Thomas Timm Andersen
autogenerated on Wed Apr 3 2019 02:55:31