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