$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/RawData.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_RAWDATA_H 00003 #define APPLANIX_MSGS_MESSAGE_RAWDATA_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 "applanix_msgs/TimeDistance.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct RawData_ { 00023 typedef RawData_<ContainerAllocator> Type; 00024 00025 RawData_() 00026 : td() 00027 , receiver_type(0) 00028 , reserved(0) 00029 , message() 00030 { 00031 } 00032 00033 RawData_(const ContainerAllocator& _alloc) 00034 : td(_alloc) 00035 , receiver_type(0) 00036 , reserved(0) 00037 , message(_alloc) 00038 { 00039 } 00040 00041 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00042 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00043 00044 typedef uint16_t _receiver_type_type; 00045 uint16_t receiver_type; 00046 00047 typedef uint32_t _reserved_type; 00048 uint32_t reserved; 00049 00050 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _message_type; 00051 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > message; 00052 00053 00054 ROS_DEPRECATED uint32_t get_message_size() const { return (uint32_t)message.size(); } 00055 ROS_DEPRECATED void set_message_size(uint32_t size) { message.resize((size_t)size); } 00056 ROS_DEPRECATED void get_message_vec(std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) const { vec = this->message; } 00057 ROS_DEPRECATED void set_message_vec(const std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > & vec) { this->message = vec; } 00058 private: 00059 static const char* __s_getDataType_() { return "applanix_msgs/RawData"; } 00060 public: 00061 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00062 00063 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00064 00065 private: 00066 static const char* __s_getMD5Sum_() { return "4422a864e3d230d8a0aeaca79366f060"; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00069 00070 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00071 00072 private: 00073 static const char* __s_getMessageDefinition_() { return "# Groups 23, 24, 10001, 10007, 10008, 10011, 10012\n\ 00074 TimeDistance td\n\ 00075 \n\ 00076 uint16 receiver_type\n\ 00077 uint32 reserved\n\ 00078 \n\ 00079 uint8[] message\n\ 00080 \n\ 00081 ================================================================================\n\ 00082 MSG: applanix_msgs/TimeDistance\n\ 00083 float64 time1\n\ 00084 float64 time2\n\ 00085 float64 distance\n\ 00086 uint8 time_types\n\ 00087 uint8 distance_type\n\ 00088 \n\ 00089 "; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00092 00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00094 00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00096 { 00097 ros::serialization::OStream stream(write_ptr, 1000000000); 00098 ros::serialization::serialize(stream, td); 00099 ros::serialization::serialize(stream, receiver_type); 00100 ros::serialization::serialize(stream, reserved); 00101 ros::serialization::serialize(stream, message); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00106 { 00107 ros::serialization::IStream stream(read_ptr, 1000000000); 00108 ros::serialization::deserialize(stream, td); 00109 ros::serialization::deserialize(stream, receiver_type); 00110 ros::serialization::deserialize(stream, reserved); 00111 ros::serialization::deserialize(stream, message); 00112 return stream.getData(); 00113 } 00114 00115 ROS_DEPRECATED virtual uint32_t serializationLength() const 00116 { 00117 uint32_t size = 0; 00118 size += ros::serialization::serializationLength(td); 00119 size += ros::serialization::serializationLength(receiver_type); 00120 size += ros::serialization::serializationLength(reserved); 00121 size += ros::serialization::serializationLength(message); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::applanix_msgs::RawData_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::applanix_msgs::RawData_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct RawData 00129 typedef ::applanix_msgs::RawData_<std::allocator<void> > RawData; 00130 00131 typedef boost::shared_ptr< ::applanix_msgs::RawData> RawDataPtr; 00132 typedef boost::shared_ptr< ::applanix_msgs::RawData const> RawDataConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::RawData_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::applanix_msgs::RawData_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace applanix_msgs 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawData_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::RawData_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::applanix_msgs::RawData_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "4422a864e3d230d8a0aeaca79366f060"; 00154 } 00155 00156 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x4422a864e3d230d8ULL; 00158 static const uint64_t static_value2 = 0xa0aeaca79366f060ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::applanix_msgs::RawData_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "applanix_msgs/RawData"; 00166 } 00167 00168 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::applanix_msgs::RawData_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "# Groups 23, 24, 10001, 10007, 10008, 10011, 10012\n\ 00176 TimeDistance td\n\ 00177 \n\ 00178 uint16 receiver_type\n\ 00179 uint32 reserved\n\ 00180 \n\ 00181 uint8[] message\n\ 00182 \n\ 00183 ================================================================================\n\ 00184 MSG: applanix_msgs/TimeDistance\n\ 00185 float64 time1\n\ 00186 float64 time2\n\ 00187 float64 distance\n\ 00188 uint8 time_types\n\ 00189 uint8 distance_type\n\ 00190 \n\ 00191 "; 00192 } 00193 00194 static const char* value(const ::applanix_msgs::RawData_<ContainerAllocator> &) { return value(); } 00195 }; 00196 00197 } // namespace message_traits 00198 } // namespace ros 00199 00200 namespace ros 00201 { 00202 namespace serialization 00203 { 00204 00205 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::RawData_<ContainerAllocator> > 00206 { 00207 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00208 { 00209 stream.next(m.td); 00210 stream.next(m.receiver_type); 00211 stream.next(m.reserved); 00212 stream.next(m.message); 00213 } 00214 00215 ROS_DECLARE_ALLINONE_SERIALIZER; 00216 }; // struct RawData_ 00217 } // namespace serialization 00218 } // namespace ros 00219 00220 namespace ros 00221 { 00222 namespace message_operations 00223 { 00224 00225 template<class ContainerAllocator> 00226 struct Printer< ::applanix_msgs::RawData_<ContainerAllocator> > 00227 { 00228 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::RawData_<ContainerAllocator> & v) 00229 { 00230 s << indent << "td: "; 00231 s << std::endl; 00232 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00233 s << indent << "receiver_type: "; 00234 Printer<uint16_t>::stream(s, indent + " ", v.receiver_type); 00235 s << indent << "reserved: "; 00236 Printer<uint32_t>::stream(s, indent + " ", v.reserved); 00237 s << indent << "message[]" << std::endl; 00238 for (size_t i = 0; i < v.message.size(); ++i) 00239 { 00240 s << indent << " message[" << i << "]: "; 00241 Printer<uint8_t>::stream(s, indent + " ", v.message[i]); 00242 } 00243 } 00244 }; 00245 00246 00247 } // namespace message_operations 00248 } // namespace ros 00249 00250 #endif // APPLANIX_MSGS_MESSAGE_RAWDATA_H 00251