00001
00002 #ifndef SENSOR_MSGS_MESSAGE_NAVSATSTATUS_H
00003 #define SENSOR_MSGS_MESSAGE_NAVSATSTATUS_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
00018 namespace sensor_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct NavSatStatus_ {
00022 typedef NavSatStatus_<ContainerAllocator> Type;
00023
00024 NavSatStatus_()
00025 : status(0)
00026 , service(0)
00027 {
00028 }
00029
00030 NavSatStatus_(const ContainerAllocator& _alloc)
00031 : status(0)
00032 , service(0)
00033 {
00034 }
00035
00036 typedef int8_t _status_type;
00037 int8_t status;
00038
00039 typedef uint16_t _service_type;
00040 uint16_t service;
00041
00042 enum { STATUS_NO_FIX = -1 };
00043 enum { STATUS_FIX = 0 };
00044 enum { STATUS_SBAS_FIX = 1 };
00045 enum { STATUS_GBAS_FIX = 2 };
00046 enum { SERVICE_GPS = 1 };
00047 enum { SERVICE_GLONASS = 2 };
00048 enum { SERVICE_COMPASS = 4 };
00049 enum { SERVICE_GALILEO = 8 };
00050
00051 private:
00052 static const char* __s_getDataType_() { return "sensor_msgs/NavSatStatus"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00055
00056 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00057
00058 private:
00059 static const char* __s_getMD5Sum_() { return "331cdbddfa4bc96ffc3b9ad98900a54c"; }
00060 public:
00061 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00062
00063 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00064
00065 private:
00066 static const char* __s_getMessageDefinition_() { return "# Navigation Satellite fix status for any Global Navigation Satellite System\n\
00067 \n\
00068 # Whether to output an augmented fix is determined by both the fix\n\
00069 # type and the last time differential corrections were received. A\n\
00070 # fix is valid when status >= STATUS_FIX.\n\
00071 \n\
00072 int8 STATUS_NO_FIX = -1 # unable to fix position\n\
00073 int8 STATUS_FIX = 0 # unaugmented fix\n\
00074 int8 STATUS_SBAS_FIX = 1 # with satellite-based augmentation\n\
00075 int8 STATUS_GBAS_FIX = 2 # with ground-based augmentation\n\
00076 \n\
00077 int8 status\n\
00078 \n\
00079 # Bits defining which Global Navigation Satellite System signals were\n\
00080 # used by the receiver.\n\
00081 \n\
00082 uint16 SERVICE_GPS = 1\n\
00083 uint16 SERVICE_GLONASS = 2\n\
00084 uint16 SERVICE_COMPASS = 4 # includes BeiDou.\n\
00085 uint16 SERVICE_GALILEO = 8\n\
00086 \n\
00087 uint16 service\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, status);
00099 ros::serialization::serialize(stream, service);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00104 {
00105 ros::serialization::IStream stream(read_ptr, 1000000000);
00106 ros::serialization::deserialize(stream, status);
00107 ros::serialization::deserialize(stream, service);
00108 return stream.getData();
00109 }
00110
00111 ROS_DEPRECATED virtual uint32_t serializationLength() const
00112 {
00113 uint32_t size = 0;
00114 size += ros::serialization::serializationLength(status);
00115 size += ros::serialization::serializationLength(service);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::sensor_msgs::NavSatStatus_<ContainerAllocator> const> ConstPtr;
00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00122 };
00123 typedef ::sensor_msgs::NavSatStatus_<std::allocator<void> > NavSatStatus;
00124
00125 typedef boost::shared_ptr< ::sensor_msgs::NavSatStatus> NavSatStatusPtr;
00126 typedef boost::shared_ptr< ::sensor_msgs::NavSatStatus const> NavSatStatusConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::NavSatStatus_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::sensor_msgs::NavSatStatus_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::sensor_msgs::NavSatStatus_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "331cdbddfa4bc96ffc3b9ad98900a54c";
00148 }
00149
00150 static const char* value(const ::sensor_msgs::NavSatStatus_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0x331cdbddfa4bc96fULL;
00152 static const uint64_t static_value2 = 0xfc3b9ad98900a54cULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "sensor_msgs/NavSatStatus";
00160 }
00161
00162 static const char* value(const ::sensor_msgs::NavSatStatus_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "# Navigation Satellite fix status for any Global Navigation Satellite System\n\
00170 \n\
00171 # Whether to output an augmented fix is determined by both the fix\n\
00172 # type and the last time differential corrections were received. A\n\
00173 # fix is valid when status >= STATUS_FIX.\n\
00174 \n\
00175 int8 STATUS_NO_FIX = -1 # unable to fix position\n\
00176 int8 STATUS_FIX = 0 # unaugmented fix\n\
00177 int8 STATUS_SBAS_FIX = 1 # with satellite-based augmentation\n\
00178 int8 STATUS_GBAS_FIX = 2 # with ground-based augmentation\n\
00179 \n\
00180 int8 status\n\
00181 \n\
00182 # Bits defining which Global Navigation Satellite System signals were\n\
00183 # used by the receiver.\n\
00184 \n\
00185 uint16 SERVICE_GPS = 1\n\
00186 uint16 SERVICE_GLONASS = 2\n\
00187 uint16 SERVICE_COMPASS = 4 # includes BeiDou.\n\
00188 uint16 SERVICE_GALILEO = 8\n\
00189 \n\
00190 uint16 service\n\
00191 \n\
00192 ";
00193 }
00194
00195 static const char* value(const ::sensor_msgs::NavSatStatus_<ContainerAllocator> &) { return value(); }
00196 };
00197
00198 template<class ContainerAllocator> struct IsFixedSize< ::sensor_msgs::NavSatStatus_<ContainerAllocator> > : public TrueType {};
00199 }
00200 }
00201
00202 namespace ros
00203 {
00204 namespace serialization
00205 {
00206
00207 template<class ContainerAllocator> struct Serializer< ::sensor_msgs::NavSatStatus_<ContainerAllocator> >
00208 {
00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00210 {
00211 stream.next(m.status);
00212 stream.next(m.service);
00213 }
00214
00215 ROS_DECLARE_ALLINONE_SERIALIZER;
00216 };
00217 }
00218 }
00219
00220 namespace ros
00221 {
00222 namespace message_operations
00223 {
00224
00225 template<class ContainerAllocator>
00226 struct Printer< ::sensor_msgs::NavSatStatus_<ContainerAllocator> >
00227 {
00228 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::NavSatStatus_<ContainerAllocator> & v)
00229 {
00230 s << indent << "status: ";
00231 Printer<int8_t>::stream(s, indent + " ", v.status);
00232 s << indent << "service: ";
00233 Printer<uint16_t>::stream(s, indent + " ", v.service);
00234 }
00235 };
00236
00237
00238 }
00239 }
00240
00241 #endif // SENSOR_MSGS_MESSAGE_NAVSATSTATUS_H
00242