$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/BaseGNSSModemStatus.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_BASEGNSSMODEMSTATUS_H 00003 #define APPLANIX_MSGS_MESSAGE_BASEGNSSMODEMSTATUS_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 BaseGNSSModemStatus_ { 00023 typedef BaseGNSSModemStatus_<ContainerAllocator> Type; 00024 00025 BaseGNSSModemStatus_() 00026 : td() 00027 , modem_response() 00028 , connection_status() 00029 , redials_per_disconnect(0) 00030 , max_redials_per_disconnect(0) 00031 , num_disconnects(0) 00032 , data_gap_length(0) 00033 , max_data_gap_length(0) 00034 { 00035 modem_response.assign(0); 00036 connection_status.assign(0); 00037 } 00038 00039 BaseGNSSModemStatus_(const ContainerAllocator& _alloc) 00040 : td(_alloc) 00041 , modem_response() 00042 , connection_status() 00043 , redials_per_disconnect(0) 00044 , max_redials_per_disconnect(0) 00045 , num_disconnects(0) 00046 , data_gap_length(0) 00047 , max_data_gap_length(0) 00048 { 00049 modem_response.assign(0); 00050 connection_status.assign(0); 00051 } 00052 00053 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00054 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00055 00056 typedef boost::array<uint8_t, 16> _modem_response_type; 00057 boost::array<uint8_t, 16> modem_response; 00058 00059 typedef boost::array<uint8_t, 48> _connection_status_type; 00060 boost::array<uint8_t, 48> connection_status; 00061 00062 typedef uint32_t _redials_per_disconnect_type; 00063 uint32_t redials_per_disconnect; 00064 00065 typedef uint32_t _max_redials_per_disconnect_type; 00066 uint32_t max_redials_per_disconnect; 00067 00068 typedef uint32_t _num_disconnects_type; 00069 uint32_t num_disconnects; 00070 00071 typedef uint32_t _data_gap_length_type; 00072 uint32_t data_gap_length; 00073 00074 typedef uint32_t _max_data_gap_length_type; 00075 uint32_t max_data_gap_length; 00076 00077 00078 ROS_DEPRECATED uint32_t get_modem_response_size() const { return (uint32_t)modem_response.size(); } 00079 ROS_DEPRECATED uint32_t get_connection_status_size() const { return (uint32_t)connection_status.size(); } 00080 private: 00081 static const char* __s_getDataType_() { return "applanix_msgs/BaseGNSSModemStatus"; } 00082 public: 00083 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00084 00085 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00086 00087 private: 00088 static const char* __s_getMD5Sum_() { return "00919adef7a8ce91b9d8181ce0e31f4b"; } 00089 public: 00090 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00091 00092 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00093 00094 private: 00095 static const char* __s_getMessageDefinition_() { return "# Groups 21, 22\n\ 00096 TimeDistance td\n\ 00097 \n\ 00098 uint8[16] modem_response\n\ 00099 uint8[48] connection_status\n\ 00100 \n\ 00101 uint32 redials_per_disconnect\n\ 00102 uint32 max_redials_per_disconnect\n\ 00103 uint32 num_disconnects\n\ 00104 uint32 data_gap_length\n\ 00105 uint32 max_data_gap_length\n\ 00106 \n\ 00107 ================================================================================\n\ 00108 MSG: applanix_msgs/TimeDistance\n\ 00109 float64 time1\n\ 00110 float64 time2\n\ 00111 float64 distance\n\ 00112 uint8 time_types\n\ 00113 uint8 distance_type\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, td); 00125 ros::serialization::serialize(stream, modem_response); 00126 ros::serialization::serialize(stream, connection_status); 00127 ros::serialization::serialize(stream, redials_per_disconnect); 00128 ros::serialization::serialize(stream, max_redials_per_disconnect); 00129 ros::serialization::serialize(stream, num_disconnects); 00130 ros::serialization::serialize(stream, data_gap_length); 00131 ros::serialization::serialize(stream, max_data_gap_length); 00132 return stream.getData(); 00133 } 00134 00135 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00136 { 00137 ros::serialization::IStream stream(read_ptr, 1000000000); 00138 ros::serialization::deserialize(stream, td); 00139 ros::serialization::deserialize(stream, modem_response); 00140 ros::serialization::deserialize(stream, connection_status); 00141 ros::serialization::deserialize(stream, redials_per_disconnect); 00142 ros::serialization::deserialize(stream, max_redials_per_disconnect); 00143 ros::serialization::deserialize(stream, num_disconnects); 00144 ros::serialization::deserialize(stream, data_gap_length); 00145 ros::serialization::deserialize(stream, max_data_gap_length); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint32_t serializationLength() const 00150 { 00151 uint32_t size = 0; 00152 size += ros::serialization::serializationLength(td); 00153 size += ros::serialization::serializationLength(modem_response); 00154 size += ros::serialization::serializationLength(connection_status); 00155 size += ros::serialization::serializationLength(redials_per_disconnect); 00156 size += ros::serialization::serializationLength(max_redials_per_disconnect); 00157 size += ros::serialization::serializationLength(num_disconnects); 00158 size += ros::serialization::serializationLength(data_gap_length); 00159 size += ros::serialization::serializationLength(max_data_gap_length); 00160 return size; 00161 } 00162 00163 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > Ptr; 00164 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> const> ConstPtr; 00165 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00166 }; // struct BaseGNSSModemStatus 00167 typedef ::applanix_msgs::BaseGNSSModemStatus_<std::allocator<void> > BaseGNSSModemStatus; 00168 00169 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus> BaseGNSSModemStatusPtr; 00170 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus const> BaseGNSSModemStatusConstPtr; 00171 00172 00173 template<typename ContainerAllocator> 00174 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> & v) 00175 { 00176 ros::message_operations::Printer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> >::stream(s, "", v); 00177 return s;} 00178 00179 } // namespace applanix_msgs 00180 00181 namespace ros 00182 { 00183 namespace message_traits 00184 { 00185 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > : public TrueType {}; 00186 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> const> : public TrueType {}; 00187 template<class ContainerAllocator> 00188 struct MD5Sum< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "00919adef7a8ce91b9d8181ce0e31f4b"; 00192 } 00193 00194 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); } 00195 static const uint64_t static_value1 = 0x00919adef7a8ce91ULL; 00196 static const uint64_t static_value2 = 0xb9d8181ce0e31f4bULL; 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct DataType< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "applanix_msgs/BaseGNSSModemStatus"; 00204 } 00205 00206 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); } 00207 }; 00208 00209 template<class ContainerAllocator> 00210 struct Definition< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > { 00211 static const char* value() 00212 { 00213 return "# Groups 21, 22\n\ 00214 TimeDistance td\n\ 00215 \n\ 00216 uint8[16] modem_response\n\ 00217 uint8[48] connection_status\n\ 00218 \n\ 00219 uint32 redials_per_disconnect\n\ 00220 uint32 max_redials_per_disconnect\n\ 00221 uint32 num_disconnects\n\ 00222 uint32 data_gap_length\n\ 00223 uint32 max_data_gap_length\n\ 00224 \n\ 00225 ================================================================================\n\ 00226 MSG: applanix_msgs/TimeDistance\n\ 00227 float64 time1\n\ 00228 float64 time2\n\ 00229 float64 distance\n\ 00230 uint8 time_types\n\ 00231 uint8 distance_type\n\ 00232 \n\ 00233 "; 00234 } 00235 00236 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); } 00237 }; 00238 00239 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > : public TrueType {}; 00240 } // namespace message_traits 00241 } // namespace ros 00242 00243 namespace ros 00244 { 00245 namespace serialization 00246 { 00247 00248 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > 00249 { 00250 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00251 { 00252 stream.next(m.td); 00253 stream.next(m.modem_response); 00254 stream.next(m.connection_status); 00255 stream.next(m.redials_per_disconnect); 00256 stream.next(m.max_redials_per_disconnect); 00257 stream.next(m.num_disconnects); 00258 stream.next(m.data_gap_length); 00259 stream.next(m.max_data_gap_length); 00260 } 00261 00262 ROS_DECLARE_ALLINONE_SERIALIZER; 00263 }; // struct BaseGNSSModemStatus_ 00264 } // namespace serialization 00265 } // namespace ros 00266 00267 namespace ros 00268 { 00269 namespace message_operations 00270 { 00271 00272 template<class ContainerAllocator> 00273 struct Printer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > 00274 { 00275 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> & v) 00276 { 00277 s << indent << "td: "; 00278 s << std::endl; 00279 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00280 s << indent << "modem_response[]" << std::endl; 00281 for (size_t i = 0; i < v.modem_response.size(); ++i) 00282 { 00283 s << indent << " modem_response[" << i << "]: "; 00284 Printer<uint8_t>::stream(s, indent + " ", v.modem_response[i]); 00285 } 00286 s << indent << "connection_status[]" << std::endl; 00287 for (size_t i = 0; i < v.connection_status.size(); ++i) 00288 { 00289 s << indent << " connection_status[" << i << "]: "; 00290 Printer<uint8_t>::stream(s, indent + " ", v.connection_status[i]); 00291 } 00292 s << indent << "redials_per_disconnect: "; 00293 Printer<uint32_t>::stream(s, indent + " ", v.redials_per_disconnect); 00294 s << indent << "max_redials_per_disconnect: "; 00295 Printer<uint32_t>::stream(s, indent + " ", v.max_redials_per_disconnect); 00296 s << indent << "num_disconnects: "; 00297 Printer<uint32_t>::stream(s, indent + " ", v.num_disconnects); 00298 s << indent << "data_gap_length: "; 00299 Printer<uint32_t>::stream(s, indent + " ", v.data_gap_length); 00300 s << indent << "max_data_gap_length: "; 00301 Printer<uint32_t>::stream(s, indent + " ", v.max_data_gap_length); 00302 } 00303 }; 00304 00305 00306 } // namespace message_operations 00307 } // namespace ros 00308 00309 #endif // APPLANIX_MSGS_MESSAGE_BASEGNSSMODEMSTATUS_H 00310