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