$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_common/doc_stacks/2013-03-02_13-44-44.967682/srs_common/srs_object_database_msgs/msg/img.msg */ 00002 #ifndef SRS_OBJECT_DATABASE_MSGS_MESSAGE_IMG_H 00003 #define SRS_OBJECT_DATABASE_MSGS_MESSAGE_IMG_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 "sensor_msgs/Image.h" 00018 00019 namespace srs_object_database_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct img_ { 00023 typedef img_<ContainerAllocator> Type; 00024 00025 img_() 00026 : objectId(0) 00027 , description() 00028 , image() 00029 { 00030 } 00031 00032 img_(const ContainerAllocator& _alloc) 00033 : objectId(0) 00034 , description(_alloc) 00035 , image(_alloc) 00036 { 00037 } 00038 00039 typedef int32_t _objectId_type; 00040 int32_t objectId; 00041 00042 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _description_type; 00043 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > description; 00044 00045 typedef ::sensor_msgs::Image_<ContainerAllocator> _image_type; 00046 ::sensor_msgs::Image_<ContainerAllocator> image; 00047 00048 00049 private: 00050 static const char* __s_getDataType_() { return "srs_object_database_msgs/img"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "9da746f1baa4582f8aa96ba1de78088c"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "int32 objectId\n\ 00065 string description\n\ 00066 sensor_msgs/Image image\n\ 00067 ================================================================================\n\ 00068 MSG: sensor_msgs/Image\n\ 00069 # This message contains an uncompressed image\n\ 00070 # (0, 0) is at top-left corner of image\n\ 00071 #\n\ 00072 \n\ 00073 Header header # Header timestamp should be acquisition time of image\n\ 00074 # Header frame_id should be optical frame of camera\n\ 00075 # origin of frame should be optical center of cameara\n\ 00076 # +x should point to the right in the image\n\ 00077 # +y should point down in the image\n\ 00078 # +z should point into to plane of the image\n\ 00079 # If the frame_id here and the frame_id of the CameraInfo\n\ 00080 # message associated with the image conflict\n\ 00081 # the behavior is undefined\n\ 00082 \n\ 00083 uint32 height # image height, that is, number of rows\n\ 00084 uint32 width # image width, that is, number of columns\n\ 00085 \n\ 00086 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00087 # If you want to standardize a new string format, join\n\ 00088 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00089 \n\ 00090 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00091 # taken from the list of strings in src/image_encodings.cpp\n\ 00092 \n\ 00093 uint8 is_bigendian # is this data bigendian?\n\ 00094 uint32 step # Full row length in bytes\n\ 00095 uint8[] data # actual matrix data, size is (step * rows)\n\ 00096 \n\ 00097 ================================================================================\n\ 00098 MSG: std_msgs/Header\n\ 00099 # Standard metadata for higher-level stamped data types.\n\ 00100 # This is generally used to communicate timestamped data \n\ 00101 # in a particular coordinate frame.\n\ 00102 # \n\ 00103 # sequence ID: consecutively increasing ID \n\ 00104 uint32 seq\n\ 00105 #Two-integer timestamp that is expressed as:\n\ 00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00108 # time-handling sugar is provided by the client library\n\ 00109 time stamp\n\ 00110 #Frame this data is associated with\n\ 00111 # 0: no frame\n\ 00112 # 1: global frame\n\ 00113 string frame_id\n\ 00114 \n\ 00115 "; } 00116 public: 00117 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00118 00119 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00122 { 00123 ros::serialization::OStream stream(write_ptr, 1000000000); 00124 ros::serialization::serialize(stream, objectId); 00125 ros::serialization::serialize(stream, description); 00126 ros::serialization::serialize(stream, image); 00127 return stream.getData(); 00128 } 00129 00130 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00131 { 00132 ros::serialization::IStream stream(read_ptr, 1000000000); 00133 ros::serialization::deserialize(stream, objectId); 00134 ros::serialization::deserialize(stream, description); 00135 ros::serialization::deserialize(stream, image); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint32_t serializationLength() const 00140 { 00141 uint32_t size = 0; 00142 size += ros::serialization::serializationLength(objectId); 00143 size += ros::serialization::serializationLength(description); 00144 size += ros::serialization::serializationLength(image); 00145 return size; 00146 } 00147 00148 typedef boost::shared_ptr< ::srs_object_database_msgs::img_<ContainerAllocator> > Ptr; 00149 typedef boost::shared_ptr< ::srs_object_database_msgs::img_<ContainerAllocator> const> ConstPtr; 00150 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00151 }; // struct img 00152 typedef ::srs_object_database_msgs::img_<std::allocator<void> > img; 00153 00154 typedef boost::shared_ptr< ::srs_object_database_msgs::img> imgPtr; 00155 typedef boost::shared_ptr< ::srs_object_database_msgs::img const> imgConstPtr; 00156 00157 00158 template<typename ContainerAllocator> 00159 std::ostream& operator<<(std::ostream& s, const ::srs_object_database_msgs::img_<ContainerAllocator> & v) 00160 { 00161 ros::message_operations::Printer< ::srs_object_database_msgs::img_<ContainerAllocator> >::stream(s, "", v); 00162 return s;} 00163 00164 } // namespace srs_object_database_msgs 00165 00166 namespace ros 00167 { 00168 namespace message_traits 00169 { 00170 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::img_<ContainerAllocator> > : public TrueType {}; 00171 template<class ContainerAllocator> struct IsMessage< ::srs_object_database_msgs::img_<ContainerAllocator> const> : public TrueType {}; 00172 template<class ContainerAllocator> 00173 struct MD5Sum< ::srs_object_database_msgs::img_<ContainerAllocator> > { 00174 static const char* value() 00175 { 00176 return "9da746f1baa4582f8aa96ba1de78088c"; 00177 } 00178 00179 static const char* value(const ::srs_object_database_msgs::img_<ContainerAllocator> &) { return value(); } 00180 static const uint64_t static_value1 = 0x9da746f1baa4582fULL; 00181 static const uint64_t static_value2 = 0x8aa96ba1de78088cULL; 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct DataType< ::srs_object_database_msgs::img_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "srs_object_database_msgs/img"; 00189 } 00190 00191 static const char* value(const ::srs_object_database_msgs::img_<ContainerAllocator> &) { return value(); } 00192 }; 00193 00194 template<class ContainerAllocator> 00195 struct Definition< ::srs_object_database_msgs::img_<ContainerAllocator> > { 00196 static const char* value() 00197 { 00198 return "int32 objectId\n\ 00199 string description\n\ 00200 sensor_msgs/Image image\n\ 00201 ================================================================================\n\ 00202 MSG: sensor_msgs/Image\n\ 00203 # This message contains an uncompressed image\n\ 00204 # (0, 0) is at top-left corner of image\n\ 00205 #\n\ 00206 \n\ 00207 Header header # Header timestamp should be acquisition time of image\n\ 00208 # Header frame_id should be optical frame of camera\n\ 00209 # origin of frame should be optical center of cameara\n\ 00210 # +x should point to the right in the image\n\ 00211 # +y should point down in the image\n\ 00212 # +z should point into to plane of the image\n\ 00213 # If the frame_id here and the frame_id of the CameraInfo\n\ 00214 # message associated with the image conflict\n\ 00215 # the behavior is undefined\n\ 00216 \n\ 00217 uint32 height # image height, that is, number of rows\n\ 00218 uint32 width # image width, that is, number of columns\n\ 00219 \n\ 00220 # The legal values for encoding are in file src/image_encodings.cpp\n\ 00221 # If you want to standardize a new string format, join\n\ 00222 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\ 00223 \n\ 00224 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\ 00225 # taken from the list of strings in src/image_encodings.cpp\n\ 00226 \n\ 00227 uint8 is_bigendian # is this data bigendian?\n\ 00228 uint32 step # Full row length in bytes\n\ 00229 uint8[] data # actual matrix data, size is (step * rows)\n\ 00230 \n\ 00231 ================================================================================\n\ 00232 MSG: std_msgs/Header\n\ 00233 # Standard metadata for higher-level stamped data types.\n\ 00234 # This is generally used to communicate timestamped data \n\ 00235 # in a particular coordinate frame.\n\ 00236 # \n\ 00237 # sequence ID: consecutively increasing ID \n\ 00238 uint32 seq\n\ 00239 #Two-integer timestamp that is expressed as:\n\ 00240 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00241 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00242 # time-handling sugar is provided by the client library\n\ 00243 time stamp\n\ 00244 #Frame this data is associated with\n\ 00245 # 0: no frame\n\ 00246 # 1: global frame\n\ 00247 string frame_id\n\ 00248 \n\ 00249 "; 00250 } 00251 00252 static const char* value(const ::srs_object_database_msgs::img_<ContainerAllocator> &) { return value(); } 00253 }; 00254 00255 } // namespace message_traits 00256 } // namespace ros 00257 00258 namespace ros 00259 { 00260 namespace serialization 00261 { 00262 00263 template<class ContainerAllocator> struct Serializer< ::srs_object_database_msgs::img_<ContainerAllocator> > 00264 { 00265 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00266 { 00267 stream.next(m.objectId); 00268 stream.next(m.description); 00269 stream.next(m.image); 00270 } 00271 00272 ROS_DECLARE_ALLINONE_SERIALIZER; 00273 }; // struct img_ 00274 } // namespace serialization 00275 } // namespace ros 00276 00277 namespace ros 00278 { 00279 namespace message_operations 00280 { 00281 00282 template<class ContainerAllocator> 00283 struct Printer< ::srs_object_database_msgs::img_<ContainerAllocator> > 00284 { 00285 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_object_database_msgs::img_<ContainerAllocator> & v) 00286 { 00287 s << indent << "objectId: "; 00288 Printer<int32_t>::stream(s, indent + " ", v.objectId); 00289 s << indent << "description: "; 00290 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.description); 00291 s << indent << "image: "; 00292 s << std::endl; 00293 Printer< ::sensor_msgs::Image_<ContainerAllocator> >::stream(s, indent + " ", v.image); 00294 } 00295 }; 00296 00297 00298 } // namespace message_operations 00299 } // namespace ros 00300 00301 #endif // SRS_OBJECT_DATABASE_MSGS_MESSAGE_IMG_H 00302