Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > Ptr;
00079 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> const> ConstPtr;
00080 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00081 };
00082 typedef ::applanix_msgs::BaseGNSSModemStatus_<std::allocator<void> > BaseGNSSModemStatus;
00083
00084 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus> BaseGNSSModemStatusPtr;
00085 typedef boost::shared_ptr< ::applanix_msgs::BaseGNSSModemStatus const> BaseGNSSModemStatusConstPtr;
00086
00087
00088 template<typename ContainerAllocator>
00089 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> & v)
00090 {
00091 ros::message_operations::Printer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> >::stream(s, "", v);
00092 return s;}
00093
00094 }
00095
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "00919adef7a8ce91b9d8181ce0e31f4b";
00107 }
00108
00109 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); }
00110 static const uint64_t static_value1 = 0x00919adef7a8ce91ULL;
00111 static const uint64_t static_value2 = 0xb9d8181ce0e31f4bULL;
00112 };
00113
00114 template<class ContainerAllocator>
00115 struct DataType< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > {
00116 static const char* value()
00117 {
00118 return "applanix_msgs/BaseGNSSModemStatus";
00119 }
00120
00121 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); }
00122 };
00123
00124 template<class ContainerAllocator>
00125 struct Definition< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > {
00126 static const char* value()
00127 {
00128 return "# Groups 21, 22\n\
00129 TimeDistance td\n\
00130 \n\
00131 uint8[16] modem_response\n\
00132 uint8[48] connection_status\n\
00133 \n\
00134 uint32 redials_per_disconnect\n\
00135 uint32 max_redials_per_disconnect\n\
00136 uint32 num_disconnects\n\
00137 uint32 data_gap_length\n\
00138 uint32 max_data_gap_length\n\
00139 \n\
00140 ================================================================================\n\
00141 MSG: applanix_msgs/TimeDistance\n\
00142 float64 time1\n\
00143 float64 time2\n\
00144 float64 distance\n\
00145 uint8 time_types\n\
00146 uint8 distance_type\n\
00147 \n\
00148 ";
00149 }
00150
00151 static const char* value(const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> &) { return value(); }
00152 };
00153
00154 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> > : public TrueType {};
00155 }
00156 }
00157
00158 namespace ros
00159 {
00160 namespace serialization
00161 {
00162
00163 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> >
00164 {
00165 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00166 {
00167 stream.next(m.td);
00168 stream.next(m.modem_response);
00169 stream.next(m.connection_status);
00170 stream.next(m.redials_per_disconnect);
00171 stream.next(m.max_redials_per_disconnect);
00172 stream.next(m.num_disconnects);
00173 stream.next(m.data_gap_length);
00174 stream.next(m.max_data_gap_length);
00175 }
00176
00177 ROS_DECLARE_ALLINONE_SERIALIZER;
00178 };
00179 }
00180 }
00181
00182 namespace ros
00183 {
00184 namespace message_operations
00185 {
00186
00187 template<class ContainerAllocator>
00188 struct Printer< ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> >
00189 {
00190 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::BaseGNSSModemStatus_<ContainerAllocator> & v)
00191 {
00192 s << indent << "td: ";
00193 s << std::endl;
00194 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td);
00195 s << indent << "modem_response[]" << std::endl;
00196 for (size_t i = 0; i < v.modem_response.size(); ++i)
00197 {
00198 s << indent << " modem_response[" << i << "]: ";
00199 Printer<uint8_t>::stream(s, indent + " ", v.modem_response[i]);
00200 }
00201 s << indent << "connection_status[]" << std::endl;
00202 for (size_t i = 0; i < v.connection_status.size(); ++i)
00203 {
00204 s << indent << " connection_status[" << i << "]: ";
00205 Printer<uint8_t>::stream(s, indent + " ", v.connection_status[i]);
00206 }
00207 s << indent << "redials_per_disconnect: ";
00208 Printer<uint32_t>::stream(s, indent + " ", v.redials_per_disconnect);
00209 s << indent << "max_redials_per_disconnect: ";
00210 Printer<uint32_t>::stream(s, indent + " ", v.max_redials_per_disconnect);
00211 s << indent << "num_disconnects: ";
00212 Printer<uint32_t>::stream(s, indent + " ", v.num_disconnects);
00213 s << indent << "data_gap_length: ";
00214 Printer<uint32_t>::stream(s, indent + " ", v.data_gap_length);
00215 s << indent << "max_data_gap_length: ";
00216 Printer<uint32_t>::stream(s, indent + " ", v.max_data_gap_length);
00217 }
00218 };
00219
00220
00221 }
00222 }
00223
00224 #endif // APPLANIX_MSGS_MESSAGE_BASEGNSSMODEMSTATUS_H
00225