From ff438826af220cd4d7c289a98d30b6fd2fe8fe76 Mon Sep 17 00:00:00 2001 From: Josh Faust Date: Thu, 10 Dec 2009 00:51:25 +0000 Subject: [PATCH] Remove auto-filling of timestamps (#1892) --- core/genmsg_cpp/genmsg.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/core/genmsg_cpp/genmsg.cpp b/core/genmsg_cpp/genmsg.cpp index f6dc9cc6..afd5a61c 100644 --- a/core/genmsg_cpp/genmsg.cpp +++ b/core/genmsg_cpp/genmsg.cpp @@ -1187,20 +1187,7 @@ void msg_spec::emit_cpp_class(FILE *f, bool for_srv, const string &service_name) { fputs(" roslib::Header _ser_header = header;\n", f); fprintf(f, " bool __reset_seq = (header.seq == 0);\n" \ - " if (__reset_seq) _ser_header.seq = seq;\n" \ - " bool __reset_timestamp = header.stamp.is_zero();\n" \ - " if (__reset_timestamp) {\n" \ - "#if ROS_BREAK_ON_MESSAGE_TIMESTAMP_AUTOFILL\n" \ - " ROS_BREAK();\n" - "#endif\n" \ - " static uint32_t counter = 100;\n" \ - " if (counter %% 100 == 0) {\n" \ - " std::string bt = ros::debug::getBacktrace();\n" \ - " ROS_WARN(\"Automatic-filling of header timestamps is deprecated. In future versions this time will be passed through as 0. Set the ROS_BREAK_ON_MESSAGE_TIMESTAMP_AUTOFILL define to force a break at this location. (message type = [%s/%s])\\n%%s\", bt.c_str());\n" \ - " }\n" \ - " ++counter;\n" \ - " _ser_header.stamp = ros::Time::now();\n" \ - " }\n", package.c_str(), g_name.c_str()); + " if (__reset_seq) _ser_header.seq = seq;\n"); } for (vector::iterator v = vars.begin(); v != vars.end(); ++v)