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