$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-image_transport_plugins/doc_stacks/2013-03-01_15-44-54.247898/image_transport_plugins/theora_image_transport/msg/Packet.msg */ 00002 #ifndef THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_H 00003 #define THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_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 theora_image_transport 00020 { 00021 template <class ContainerAllocator> 00022 struct Packet_ { 00023 typedef Packet_<ContainerAllocator> Type; 00024 00025 Packet_() 00026 : header() 00027 , data() 00028 , b_o_s(0) 00029 , e_o_s(0) 00030 , granulepos(0) 00031 , packetno(0) 00032 { 00033 } 00034 00035 Packet_(const ContainerAllocator& _alloc) 00036 : header(_alloc) 00037 , data(_alloc) 00038 , b_o_s(0) 00039 , e_o_s(0) 00040 , granulepos(0) 00041 , packetno(0) 00042 { 00043 } 00044 00045 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00046 ::std_msgs::Header_<ContainerAllocator> header; 00047 00048 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _data_type; 00049 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > data; 00050 00051 typedef int32_t _b_o_s_type; 00052 int32_t b_o_s; 00053 00054 typedef int32_t _e_o_s_type; 00055 int32_t e_o_s; 00056 00057 typedef int64_t _granulepos_type; 00058 int64_t granulepos; 00059 00060 typedef int64_t _packetno_type; 00061 int64_t packetno; 00062 00063 00064 ROS_DEPRECATED uint32_t get_data_size() const { return (uint32_t)data.size(); } 00065 ROS_DEPRECATED void set_data_size(uint32_t size) { data.resize((size_t)size); } 00066 ROS_DEPRECATED void get_data_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->data; } 00067 ROS_DEPRECATED void set_data_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->data = vec; } 00068 private: 00069 static const char* __s_getDataType_() { return "theora_image_transport/Packet"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "33ac4e14a7cff32e7e0d65f18bb410f3"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# ROS message adaptation of the ogg_packet struct from libogg,\n\ 00084 # see http://www.xiph.org/ogg/doc/libogg/ogg_packet.html.\n\ 00085 \n\ 00086 Header header # Original sensor_msgs/Image header\n\ 00087 uint8[] data # Raw Theora packet data (combines packet and bytes fields from ogg_packet)\n\ 00088 int32 b_o_s # Flag indicating whether this packet begins a logical bitstream\n\ 00089 int32 e_o_s # Flag indicating whether this packet ends a bitstream\n\ 00090 int64 granulepos # A number indicating the position of this packet in the decoded data\n\ 00091 int64 packetno # Sequential number of this packet in the ogg bitstream\n\ 00092 \n\ 00093 ================================================================================\n\ 00094 MSG: std_msgs/Header\n\ 00095 # Standard metadata for higher-level stamped data types.\n\ 00096 # This is generally used to communicate timestamped data \n\ 00097 # in a particular coordinate frame.\n\ 00098 # \n\ 00099 # sequence ID: consecutively increasing ID \n\ 00100 uint32 seq\n\ 00101 #Two-integer timestamp that is expressed as:\n\ 00102 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00103 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00104 # time-handling sugar is provided by the client library\n\ 00105 time stamp\n\ 00106 #Frame this data is associated with\n\ 00107 # 0: no frame\n\ 00108 # 1: global frame\n\ 00109 string frame_id\n\ 00110 \n\ 00111 "; } 00112 public: 00113 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00114 00115 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00116 00117 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00118 { 00119 ros::serialization::OStream stream(write_ptr, 1000000000); 00120 ros::serialization::serialize(stream, header); 00121 ros::serialization::serialize(stream, data); 00122 ros::serialization::serialize(stream, b_o_s); 00123 ros::serialization::serialize(stream, e_o_s); 00124 ros::serialization::serialize(stream, granulepos); 00125 ros::serialization::serialize(stream, packetno); 00126 return stream.getData(); 00127 } 00128 00129 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00130 { 00131 ros::serialization::IStream stream(read_ptr, 1000000000); 00132 ros::serialization::deserialize(stream, header); 00133 ros::serialization::deserialize(stream, data); 00134 ros::serialization::deserialize(stream, b_o_s); 00135 ros::serialization::deserialize(stream, e_o_s); 00136 ros::serialization::deserialize(stream, granulepos); 00137 ros::serialization::deserialize(stream, packetno); 00138 return stream.getData(); 00139 } 00140 00141 ROS_DEPRECATED virtual uint32_t serializationLength() const 00142 { 00143 uint32_t size = 0; 00144 size += ros::serialization::serializationLength(header); 00145 size += ros::serialization::serializationLength(data); 00146 size += ros::serialization::serializationLength(b_o_s); 00147 size += ros::serialization::serializationLength(e_o_s); 00148 size += ros::serialization::serializationLength(granulepos); 00149 size += ros::serialization::serializationLength(packetno); 00150 return size; 00151 } 00152 00153 typedef boost::shared_ptr< ::theora_image_transport::Packet_<ContainerAllocator> > Ptr; 00154 typedef boost::shared_ptr< ::theora_image_transport::Packet_<ContainerAllocator> const> ConstPtr; 00155 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00156 }; // struct Packet 00157 typedef ::theora_image_transport::Packet_<std::allocator<void> > Packet; 00158 00159 typedef boost::shared_ptr< ::theora_image_transport::Packet> PacketPtr; 00160 typedef boost::shared_ptr< ::theora_image_transport::Packet const> PacketConstPtr; 00161 00162 00163 template<typename ContainerAllocator> 00164 std::ostream& operator<<(std::ostream& s, const ::theora_image_transport::Packet_<ContainerAllocator> & v) 00165 { 00166 ros::message_operations::Printer< ::theora_image_transport::Packet_<ContainerAllocator> >::stream(s, "", v); 00167 return s;} 00168 00169 } // namespace theora_image_transport 00170 00171 namespace ros 00172 { 00173 namespace message_traits 00174 { 00175 template<class ContainerAllocator> struct IsMessage< ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {}; 00176 template<class ContainerAllocator> struct IsMessage< ::theora_image_transport::Packet_<ContainerAllocator> const> : public TrueType {}; 00177 template<class ContainerAllocator> 00178 struct MD5Sum< ::theora_image_transport::Packet_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "33ac4e14a7cff32e7e0d65f18bb410f3"; 00182 } 00183 00184 static const char* value(const ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 00185 static const uint64_t static_value1 = 0x33ac4e14a7cff32eULL; 00186 static const uint64_t static_value2 = 0x7e0d65f18bb410f3ULL; 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct DataType< ::theora_image_transport::Packet_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "theora_image_transport/Packet"; 00194 } 00195 00196 static const char* value(const ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct Definition< ::theora_image_transport::Packet_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "# ROS message adaptation of the ogg_packet struct from libogg,\n\ 00204 # see http://www.xiph.org/ogg/doc/libogg/ogg_packet.html.\n\ 00205 \n\ 00206 Header header # Original sensor_msgs/Image header\n\ 00207 uint8[] data # Raw Theora packet data (combines packet and bytes fields from ogg_packet)\n\ 00208 int32 b_o_s # Flag indicating whether this packet begins a logical bitstream\n\ 00209 int32 e_o_s # Flag indicating whether this packet ends a bitstream\n\ 00210 int64 granulepos # A number indicating the position of this packet in the decoded data\n\ 00211 int64 packetno # Sequential number of this packet in the ogg bitstream\n\ 00212 \n\ 00213 ================================================================================\n\ 00214 MSG: std_msgs/Header\n\ 00215 # Standard metadata for higher-level stamped data types.\n\ 00216 # This is generally used to communicate timestamped data \n\ 00217 # in a particular coordinate frame.\n\ 00218 # \n\ 00219 # sequence ID: consecutively increasing ID \n\ 00220 uint32 seq\n\ 00221 #Two-integer timestamp that is expressed as:\n\ 00222 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00223 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00224 # time-handling sugar is provided by the client library\n\ 00225 time stamp\n\ 00226 #Frame this data is associated with\n\ 00227 # 0: no frame\n\ 00228 # 1: global frame\n\ 00229 string frame_id\n\ 00230 \n\ 00231 "; 00232 } 00233 00234 static const char* value(const ::theora_image_transport::Packet_<ContainerAllocator> &) { return value(); } 00235 }; 00236 00237 template<class ContainerAllocator> struct HasHeader< ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {}; 00238 template<class ContainerAllocator> struct HasHeader< const ::theora_image_transport::Packet_<ContainerAllocator> > : public TrueType {}; 00239 } // namespace message_traits 00240 } // namespace ros 00241 00242 namespace ros 00243 { 00244 namespace serialization 00245 { 00246 00247 template<class ContainerAllocator> struct Serializer< ::theora_image_transport::Packet_<ContainerAllocator> > 00248 { 00249 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00250 { 00251 stream.next(m.header); 00252 stream.next(m.data); 00253 stream.next(m.b_o_s); 00254 stream.next(m.e_o_s); 00255 stream.next(m.granulepos); 00256 stream.next(m.packetno); 00257 } 00258 00259 ROS_DECLARE_ALLINONE_SERIALIZER; 00260 }; // struct Packet_ 00261 } // namespace serialization 00262 } // namespace ros 00263 00264 namespace ros 00265 { 00266 namespace message_operations 00267 { 00268 00269 template<class ContainerAllocator> 00270 struct Printer< ::theora_image_transport::Packet_<ContainerAllocator> > 00271 { 00272 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::theora_image_transport::Packet_<ContainerAllocator> & v) 00273 { 00274 s << indent << "header: "; 00275 s << std::endl; 00276 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00277 s << indent << "data[]" << std::endl; 00278 for (size_t i = 0; i < v.data.size(); ++i) 00279 { 00280 s << indent << " data[" << i << "]: "; 00281 Printer<uint8_t>::stream(s, indent + " ", v.data[i]); 00282 } 00283 s << indent << "b_o_s: "; 00284 Printer<int32_t>::stream(s, indent + " ", v.b_o_s); 00285 s << indent << "e_o_s: "; 00286 Printer<int32_t>::stream(s, indent + " ", v.e_o_s); 00287 s << indent << "granulepos: "; 00288 Printer<int64_t>::stream(s, indent + " ", v.granulepos); 00289 s << indent << "packetno: "; 00290 Printer<int64_t>::stream(s, indent + " ", v.packetno); 00291 } 00292 }; 00293 00294 00295 } // namespace message_operations 00296 } // namespace ros 00297 00298 #endif // THEORA_IMAGE_TRANSPORT_MESSAGE_PACKET_H 00299