00001
00002 #ifndef NXT_MSGS_MESSAGE_CONTACT_H
00003 #define NXT_MSGS_MESSAGE_CONTACT_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 nxt_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct Contact_ : public ros::Message
00019 {
00020 typedef Contact_<ContainerAllocator> Type;
00021
00022 Contact_()
00023 : header()
00024 , contact(false)
00025 {
00026 }
00027
00028 Contact_(const ContainerAllocator& _alloc)
00029 : header(_alloc)
00030 , contact(false)
00031 {
00032 }
00033
00034 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00035 ::std_msgs::Header_<ContainerAllocator> header;
00036
00037 typedef uint8_t _contact_type;
00038 uint8_t contact;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "nxt_msgs/Contact"; }
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 "771b237034839b48d5de401dc68aaf43"; }
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 bool contact\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, contact);
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, contact);
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(contact);
00104 return size;
00105 }
00106
00107 typedef boost::shared_ptr< ::nxt_msgs::Contact_<ContainerAllocator> > Ptr;
00108 typedef boost::shared_ptr< ::nxt_msgs::Contact_<ContainerAllocator> const> ConstPtr;
00109 };
00110 typedef ::nxt_msgs::Contact_<std::allocator<void> > Contact;
00111
00112 typedef boost::shared_ptr< ::nxt_msgs::Contact> ContactPtr;
00113 typedef boost::shared_ptr< ::nxt_msgs::Contact const> ContactConstPtr;
00114
00115
00116 template<typename ContainerAllocator>
00117 std::ostream& operator<<(std::ostream& s, const ::nxt_msgs::Contact_<ContainerAllocator> & v)
00118 {
00119 ros::message_operations::Printer< ::nxt_msgs::Contact_<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< ::nxt_msgs::Contact_<ContainerAllocator> > {
00130 static const char* value()
00131 {
00132 return "771b237034839b48d5de401dc68aaf43";
00133 }
00134
00135 static const char* value(const ::nxt_msgs::Contact_<ContainerAllocator> &) { return value(); }
00136 static const uint64_t static_value1 = 0x771b237034839b48ULL;
00137 static const uint64_t static_value2 = 0xd5de401dc68aaf43ULL;
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct DataType< ::nxt_msgs::Contact_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "nxt_msgs/Contact";
00145 }
00146
00147 static const char* value(const ::nxt_msgs::Contact_<ContainerAllocator> &) { return value(); }
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct Definition< ::nxt_msgs::Contact_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "Header header\n\
00155 bool contact\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 ::nxt_msgs::Contact_<ContainerAllocator> &) { return value(); }
00179 };
00180
00181 template<class ContainerAllocator> struct HasHeader< ::nxt_msgs::Contact_<ContainerAllocator> > : public TrueType {};
00182 template<class ContainerAllocator> struct HasHeader< const ::nxt_msgs::Contact_<ContainerAllocator> > : public TrueType {};
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace serialization
00189 {
00190
00191 template<class ContainerAllocator> struct Serializer< ::nxt_msgs::Contact_<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.contact);
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< ::nxt_msgs::Contact_<ContainerAllocator> >
00211 {
00212 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nxt_msgs::Contact_<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 << "contact: ";
00218 Printer<uint8_t>::stream(s, indent + " ", v.contact);
00219 }
00220 };
00221
00222
00223 }
00224 }
00225
00226 #endif // NXT_MSGS_MESSAGE_CONTACT_H
00227