00001
00002 #ifndef CLEARPATH_BASE_MESSAGE_PLATFORMINFO_H
00003 #define CLEARPATH_BASE_MESSAGE_PLATFORMINFO_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 #include "std_msgs/Header.h"
00014
00015 namespace clearpath_base
00016 {
00017 template <class ContainerAllocator>
00018 struct PlatformInfo_ : public ros::Message
00019 {
00020 typedef PlatformInfo_<ContainerAllocator> Type;
00021
00022 PlatformInfo_()
00023 : header()
00024 , model()
00025 , revision(0)
00026 , serial(0)
00027 {
00028 }
00029
00030 PlatformInfo_(const ContainerAllocator& _alloc)
00031 : header(_alloc)
00032 , model(_alloc)
00033 , revision(0)
00034 , serial(0)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _model_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > model;
00043
00044 typedef int8_t _revision_type;
00045 int8_t revision;
00046
00047 typedef uint32_t _serial_type;
00048 uint32_t serial;
00049
00050
00051 private:
00052 static const char* __s_getDataType_() { return "clearpath_base/PlatformInfo"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00055
00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00057
00058 private:
00059 static const char* __s_getMD5Sum_() { return "ff95c25c6ef78f06bbb7ef85aad5735e"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "Header header\n\
00067 string model\n\
00068 int8 revision\n\
00069 uint32 serial\n\
00070 \n\
00071 ================================================================================\n\
00072 MSG: std_msgs/Header\n\
00073 # Standard metadata for higher-level stamped data types.\n\
00074 # This is generally used to communicate timestamped data \n\
00075 # in a particular coordinate frame.\n\
00076 # \n\
00077 # sequence ID: consecutively increasing ID \n\
00078 uint32 seq\n\
00079 #Two-integer timestamp that is expressed as:\n\
00080 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00081 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00082 # time-handling sugar is provided by the client library\n\
00083 time stamp\n\
00084 #Frame this data is associated with\n\
00085 # 0: no frame\n\
00086 # 1: global frame\n\
00087 string frame_id\n\
00088 \n\
00089 "; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00092
00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00094
00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00096 {
00097 ros::serialization::OStream stream(write_ptr, 1000000000);
00098 ros::serialization::serialize(stream, header);
00099 ros::serialization::serialize(stream, model);
00100 ros::serialization::serialize(stream, revision);
00101 ros::serialization::serialize(stream, serial);
00102 return stream.getData();
00103 }
00104
00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00106 {
00107 ros::serialization::IStream stream(read_ptr, 1000000000);
00108 ros::serialization::deserialize(stream, header);
00109 ros::serialization::deserialize(stream, model);
00110 ros::serialization::deserialize(stream, revision);
00111 ros::serialization::deserialize(stream, serial);
00112 return stream.getData();
00113 }
00114
00115 ROS_DEPRECATED virtual uint32_t serializationLength() const
00116 {
00117 uint32_t size = 0;
00118 size += ros::serialization::serializationLength(header);
00119 size += ros::serialization::serializationLength(model);
00120 size += ros::serialization::serializationLength(revision);
00121 size += ros::serialization::serializationLength(serial);
00122 return size;
00123 }
00124
00125 typedef boost::shared_ptr< ::clearpath_base::PlatformInfo_<ContainerAllocator> > Ptr;
00126 typedef boost::shared_ptr< ::clearpath_base::PlatformInfo_<ContainerAllocator> const> ConstPtr;
00127 };
00128 typedef ::clearpath_base::PlatformInfo_<std::allocator<void> > PlatformInfo;
00129
00130 typedef boost::shared_ptr< ::clearpath_base::PlatformInfo> PlatformInfoPtr;
00131 typedef boost::shared_ptr< ::clearpath_base::PlatformInfo const> PlatformInfoConstPtr;
00132
00133
00134 template<typename ContainerAllocator>
00135 std::ostream& operator<<(std::ostream& s, const ::clearpath_base::PlatformInfo_<ContainerAllocator> & v)
00136 {
00137 ros::message_operations::Printer< ::clearpath_base::PlatformInfo_<ContainerAllocator> >::stream(s, "", v);
00138 return s;}
00139
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_traits
00145 {
00146 template<class ContainerAllocator>
00147 struct MD5Sum< ::clearpath_base::PlatformInfo_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "ff95c25c6ef78f06bbb7ef85aad5735e";
00151 }
00152
00153 static const char* value(const ::clearpath_base::PlatformInfo_<ContainerAllocator> &) { return value(); }
00154 static const uint64_t static_value1 = 0xff95c25c6ef78f06ULL;
00155 static const uint64_t static_value2 = 0xbbb7ef85aad5735eULL;
00156 };
00157
00158 template<class ContainerAllocator>
00159 struct DataType< ::clearpath_base::PlatformInfo_<ContainerAllocator> > {
00160 static const char* value()
00161 {
00162 return "clearpath_base/PlatformInfo";
00163 }
00164
00165 static const char* value(const ::clearpath_base::PlatformInfo_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator>
00169 struct Definition< ::clearpath_base::PlatformInfo_<ContainerAllocator> > {
00170 static const char* value()
00171 {
00172 return "Header header\n\
00173 string model\n\
00174 int8 revision\n\
00175 uint32 serial\n\
00176 \n\
00177 ================================================================================\n\
00178 MSG: std_msgs/Header\n\
00179 # Standard metadata for higher-level stamped data types.\n\
00180 # This is generally used to communicate timestamped data \n\
00181 # in a particular coordinate frame.\n\
00182 # \n\
00183 # sequence ID: consecutively increasing ID \n\
00184 uint32 seq\n\
00185 #Two-integer timestamp that is expressed as:\n\
00186 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00187 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00188 # time-handling sugar is provided by the client library\n\
00189 time stamp\n\
00190 #Frame this data is associated with\n\
00191 # 0: no frame\n\
00192 # 1: global frame\n\
00193 string frame_id\n\
00194 \n\
00195 ";
00196 }
00197
00198 static const char* value(const ::clearpath_base::PlatformInfo_<ContainerAllocator> &) { return value(); }
00199 };
00200
00201 template<class ContainerAllocator> struct HasHeader< ::clearpath_base::PlatformInfo_<ContainerAllocator> > : public TrueType {};
00202 template<class ContainerAllocator> struct HasHeader< const ::clearpath_base::PlatformInfo_<ContainerAllocator> > : public TrueType {};
00203 }
00204 }
00205
00206 namespace ros
00207 {
00208 namespace serialization
00209 {
00210
00211 template<class ContainerAllocator> struct Serializer< ::clearpath_base::PlatformInfo_<ContainerAllocator> >
00212 {
00213 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00214 {
00215 stream.next(m.header);
00216 stream.next(m.model);
00217 stream.next(m.revision);
00218 stream.next(m.serial);
00219 }
00220
00221 ROS_DECLARE_ALLINONE_SERIALIZER;
00222 };
00223 }
00224 }
00225
00226 namespace ros
00227 {
00228 namespace message_operations
00229 {
00230
00231 template<class ContainerAllocator>
00232 struct Printer< ::clearpath_base::PlatformInfo_<ContainerAllocator> >
00233 {
00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::clearpath_base::PlatformInfo_<ContainerAllocator> & v)
00235 {
00236 s << indent << "header: ";
00237 s << std::endl;
00238 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00239 s << indent << "model: ";
00240 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.model);
00241 s << indent << "revision: ";
00242 Printer<int8_t>::stream(s, indent + " ", v.revision);
00243 s << indent << "serial: ";
00244 Printer<uint32_t>::stream(s, indent + " ", v.serial);
00245 }
00246 };
00247
00248
00249 }
00250 }
00251
00252 #endif // CLEARPATH_BASE_MESSAGE_PLATFORMINFO_H
00253