00001
00002 #ifndef ROSGRAPH_MSGS_MESSAGE_CLOCK_H
00003 #define ROSGRAPH_MSGS_MESSAGE_CLOCK_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace rosgraph_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct Clock_ : public ros::Message
00018 {
00019 typedef Clock_<ContainerAllocator> Type;
00020
00021 Clock_()
00022 : clock()
00023 {
00024 }
00025
00026 Clock_(const ContainerAllocator& _alloc)
00027 : clock()
00028 {
00029 }
00030
00031 typedef ros::Time _clock_type;
00032 ros::Time clock;
00033
00034
00035 private:
00036 static const char* __s_getDataType_() { return "rosgraph_msgs/Clock"; }
00037 public:
00038 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00039
00040 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00041
00042 private:
00043 static const char* __s_getMD5Sum_() { return "a9c97c1d230cfc112e270351a944ee47"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00046
00047 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00048
00049 private:
00050 static const char* __s_getMessageDefinition_() { return "# roslib/Clock is used for publishing simulated time in ROS. \n\
00051 # This message simply communicates the current time.\n\
00052 # For more information, see http://www.ros.org/wiki/Clock\n\
00053 time clock\n\
00054 \n\
00055 "; }
00056 public:
00057 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00058
00059 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00060
00061 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00062 {
00063 ros::serialization::OStream stream(write_ptr, 1000000000);
00064 ros::serialization::serialize(stream, clock);
00065 return stream.getData();
00066 }
00067
00068 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00069 {
00070 ros::serialization::IStream stream(read_ptr, 1000000000);
00071 ros::serialization::deserialize(stream, clock);
00072 return stream.getData();
00073 }
00074
00075 ROS_DEPRECATED virtual uint32_t serializationLength() const
00076 {
00077 uint32_t size = 0;
00078 size += ros::serialization::serializationLength(clock);
00079 return size;
00080 }
00081
00082 typedef boost::shared_ptr< ::rosgraph_msgs::Clock_<ContainerAllocator> > Ptr;
00083 typedef boost::shared_ptr< ::rosgraph_msgs::Clock_<ContainerAllocator> const> ConstPtr;
00084 };
00085 typedef ::rosgraph_msgs::Clock_<std::allocator<void> > Clock;
00086
00087 typedef boost::shared_ptr< ::rosgraph_msgs::Clock> ClockPtr;
00088 typedef boost::shared_ptr< ::rosgraph_msgs::Clock const> ClockConstPtr;
00089
00090
00091 template<typename ContainerAllocator>
00092 std::ostream& operator<<(std::ostream& s, const ::rosgraph_msgs::Clock_<ContainerAllocator> & v)
00093 {
00094 ros::message_operations::Printer< ::rosgraph_msgs::Clock_<ContainerAllocator> >::stream(s, "", v);
00095 return s;}
00096
00097 }
00098
00099 namespace ros
00100 {
00101 namespace message_traits
00102 {
00103 template<class ContainerAllocator>
00104 struct MD5Sum< ::rosgraph_msgs::Clock_<ContainerAllocator> > {
00105 static const char* value()
00106 {
00107 return "a9c97c1d230cfc112e270351a944ee47";
00108 }
00109
00110 static const char* value(const ::rosgraph_msgs::Clock_<ContainerAllocator> &) { return value(); }
00111 static const uint64_t static_value1 = 0xa9c97c1d230cfc11ULL;
00112 static const uint64_t static_value2 = 0x2e270351a944ee47ULL;
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct DataType< ::rosgraph_msgs::Clock_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "rosgraph_msgs/Clock";
00120 }
00121
00122 static const char* value(const ::rosgraph_msgs::Clock_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 template<class ContainerAllocator>
00126 struct Definition< ::rosgraph_msgs::Clock_<ContainerAllocator> > {
00127 static const char* value()
00128 {
00129 return "# roslib/Clock is used for publishing simulated time in ROS. \n\
00130 # This message simply communicates the current time.\n\
00131 # For more information, see http://www.ros.org/wiki/Clock\n\
00132 time clock\n\
00133 \n\
00134 ";
00135 }
00136
00137 static const char* value(const ::rosgraph_msgs::Clock_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator> struct IsFixedSize< ::rosgraph_msgs::Clock_<ContainerAllocator> > : public TrueType {};
00141 }
00142 }
00143
00144 namespace ros
00145 {
00146 namespace serialization
00147 {
00148
00149 template<class ContainerAllocator> struct Serializer< ::rosgraph_msgs::Clock_<ContainerAllocator> >
00150 {
00151 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00152 {
00153 stream.next(m.clock);
00154 }
00155
00156 ROS_DECLARE_ALLINONE_SERIALIZER;
00157 };
00158 }
00159 }
00160
00161 namespace ros
00162 {
00163 namespace message_operations
00164 {
00165
00166 template<class ContainerAllocator>
00167 struct Printer< ::rosgraph_msgs::Clock_<ContainerAllocator> >
00168 {
00169 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::rosgraph_msgs::Clock_<ContainerAllocator> & v)
00170 {
00171 s << indent << "clock: ";
00172 Printer<ros::Time>::stream(s, indent + " ", v.clock);
00173 }
00174 };
00175
00176
00177 }
00178 }
00179
00180 #endif // ROSGRAPH_MSGS_MESSAGE_CLOCK_H
00181