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