00001
00002 #ifndef PING_MESSAGE_PONG_H
00003 #define PING_MESSAGE_PONG_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 ping
00015 {
00016 template <class ContainerAllocator>
00017 struct Pong_ : public ros::Message
00018 {
00019 typedef Pong_<ContainerAllocator> Type;
00020
00021 Pong_()
00022 : stamp()
00023 , hash(0)
00024 {
00025 }
00026
00027 Pong_(const ContainerAllocator& _alloc)
00028 : stamp()
00029 , hash(0)
00030 {
00031 }
00032
00033 typedef ros::Time _stamp_type;
00034 ros::Time stamp;
00035
00036 typedef uint32_t _hash_type;
00037 uint32_t hash;
00038
00039
00040 private:
00041 static const char* __s_getDataType_() { return "ping/Pong"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "cae5104cf50168b02c919fb7acc6c70e"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "time stamp\n\
00056 uint32 hash\n\
00057 "; }
00058 public:
00059 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00060
00061 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00062
00063 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00064 {
00065 ros::serialization::OStream stream(write_ptr, 1000000000);
00066 ros::serialization::serialize(stream, stamp);
00067 ros::serialization::serialize(stream, hash);
00068 return stream.getData();
00069 }
00070
00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00072 {
00073 ros::serialization::IStream stream(read_ptr, 1000000000);
00074 ros::serialization::deserialize(stream, stamp);
00075 ros::serialization::deserialize(stream, hash);
00076 return stream.getData();
00077 }
00078
00079 ROS_DEPRECATED virtual uint32_t serializationLength() const
00080 {
00081 uint32_t size = 0;
00082 size += ros::serialization::serializationLength(stamp);
00083 size += ros::serialization::serializationLength(hash);
00084 return size;
00085 }
00086
00087 typedef boost::shared_ptr< ::ping::Pong_<ContainerAllocator> > Ptr;
00088 typedef boost::shared_ptr< ::ping::Pong_<ContainerAllocator> const> ConstPtr;
00089 };
00090 typedef ::ping::Pong_<std::allocator<void> > Pong;
00091
00092 typedef boost::shared_ptr< ::ping::Pong> PongPtr;
00093 typedef boost::shared_ptr< ::ping::Pong const> PongConstPtr;
00094
00095
00096 template<typename ContainerAllocator>
00097 std::ostream& operator<<(std::ostream& s, const ::ping::Pong_<ContainerAllocator> & v)
00098 {
00099 ros::message_operations::Printer< ::ping::Pong_<ContainerAllocator> >::stream(s, "", v);
00100 return s;}
00101
00102 }
00103
00104 namespace ros
00105 {
00106 namespace message_traits
00107 {
00108 template<class ContainerAllocator>
00109 struct MD5Sum< ::ping::Pong_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "cae5104cf50168b02c919fb7acc6c70e";
00113 }
00114
00115 static const char* value(const ::ping::Pong_<ContainerAllocator> &) { return value(); }
00116 static const uint64_t static_value1 = 0xcae5104cf50168b0ULL;
00117 static const uint64_t static_value2 = 0x2c919fb7acc6c70eULL;
00118 };
00119
00120 template<class ContainerAllocator>
00121 struct DataType< ::ping::Pong_<ContainerAllocator> > {
00122 static const char* value()
00123 {
00124 return "ping/Pong";
00125 }
00126
00127 static const char* value(const ::ping::Pong_<ContainerAllocator> &) { return value(); }
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct Definition< ::ping::Pong_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "time stamp\n\
00135 uint32 hash\n\
00136 ";
00137 }
00138
00139 static const char* value(const ::ping::Pong_<ContainerAllocator> &) { return value(); }
00140 };
00141
00142 template<class ContainerAllocator> struct IsFixedSize< ::ping::Pong_<ContainerAllocator> > : public TrueType {};
00143 }
00144 }
00145
00146 namespace ros
00147 {
00148 namespace serialization
00149 {
00150
00151 template<class ContainerAllocator> struct Serializer< ::ping::Pong_<ContainerAllocator> >
00152 {
00153 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00154 {
00155 stream.next(m.stamp);
00156 stream.next(m.hash);
00157 }
00158
00159 ROS_DECLARE_ALLINONE_SERIALIZER;
00160 };
00161 }
00162 }
00163
00164 namespace ros
00165 {
00166 namespace message_operations
00167 {
00168
00169 template<class ContainerAllocator>
00170 struct Printer< ::ping::Pong_<ContainerAllocator> >
00171 {
00172 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ping::Pong_<ContainerAllocator> & v)
00173 {
00174 s << indent << "stamp: ";
00175 Printer<ros::Time>::stream(s, indent + " ", v.stamp);
00176 s << indent << "hash: ";
00177 Printer<uint32_t>::stream(s, indent + " ", v.hash);
00178 }
00179 };
00180
00181
00182 }
00183 }
00184
00185 #endif // PING_MESSAGE_PONG_H
00186