00001
00002 #ifndef GEOGRAPHIC_MSGS_MESSAGE_BOUNDINGBOX_H
00003 #define GEOGRAPHIC_MSGS_MESSAGE_BOUNDINGBOX_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 geographic_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct BoundingBox_ {
00022 typedef BoundingBox_<ContainerAllocator> Type;
00023
00024 BoundingBox_()
00025 : min_latitude(0.0)
00026 , min_longitude(0.0)
00027 , max_latitude(0.0)
00028 , max_longitude(0.0)
00029 {
00030 }
00031
00032 BoundingBox_(const ContainerAllocator& _alloc)
00033 : min_latitude(0.0)
00034 , min_longitude(0.0)
00035 , max_latitude(0.0)
00036 , max_longitude(0.0)
00037 {
00038 }
00039
00040 typedef double _min_latitude_type;
00041 double min_latitude;
00042
00043 typedef double _min_longitude_type;
00044 double min_longitude;
00045
00046 typedef double _max_latitude_type;
00047 double max_latitude;
00048
00049 typedef double _max_longitude_type;
00050 double max_longitude;
00051
00052
00053 private:
00054 static const char* __s_getDataType_() { return "geographic_msgs/BoundingBox"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "19b431f226beca5db6dde334843145ee"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getMessageDefinition_() { return "# Two-dimensional geographic map bounding box. \n\
00069 \n\
00070 # Latitudes are in degrees [-90 .. +90]. Positive is north of equator;\n\
00071 # negative is south.\n\
00072 \n\
00073 # Longitudes are in degrees [-180 .. +180]. Positive is east of prime\n\
00074 # meridian; negative is west. At the poles, latitude is -90 or +90,\n\
00075 # and longitude is irrelevant, but must be in range.\n\
00076 \n\
00077 # If all bounds are zeros, the bounding box includes the whole world.\n\
00078 \n\
00079 float64 min_latitude\n\
00080 float64 min_longitude\n\
00081 float64 max_latitude\n\
00082 float64 max_longitude\n\
00083 \n\
00084 "; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00091 {
00092 ros::serialization::OStream stream(write_ptr, 1000000000);
00093 ros::serialization::serialize(stream, min_latitude);
00094 ros::serialization::serialize(stream, min_longitude);
00095 ros::serialization::serialize(stream, max_latitude);
00096 ros::serialization::serialize(stream, max_longitude);
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, min_latitude);
00104 ros::serialization::deserialize(stream, min_longitude);
00105 ros::serialization::deserialize(stream, max_latitude);
00106 ros::serialization::deserialize(stream, max_longitude);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(min_latitude);
00114 size += ros::serialization::serializationLength(min_longitude);
00115 size += ros::serialization::serializationLength(max_latitude);
00116 size += ros::serialization::serializationLength(max_longitude);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::geographic_msgs::BoundingBox_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::geographic_msgs::BoundingBox_<ContainerAllocator> const> ConstPtr;
00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00123 };
00124 typedef ::geographic_msgs::BoundingBox_<std::allocator<void> > BoundingBox;
00125
00126 typedef boost::shared_ptr< ::geographic_msgs::BoundingBox> BoundingBoxPtr;
00127 typedef boost::shared_ptr< ::geographic_msgs::BoundingBox const> BoundingBoxConstPtr;
00128
00129
00130 template<typename ContainerAllocator>
00131 std::ostream& operator<<(std::ostream& s, const ::geographic_msgs::BoundingBox_<ContainerAllocator> & v)
00132 {
00133 ros::message_operations::Printer< ::geographic_msgs::BoundingBox_<ContainerAllocator> >::stream(s, "", v);
00134 return s;}
00135
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::BoundingBox_<ContainerAllocator> > : public TrueType {};
00143 template<class ContainerAllocator> struct IsMessage< ::geographic_msgs::BoundingBox_<ContainerAllocator> const> : public TrueType {};
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::geographic_msgs::BoundingBox_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "19b431f226beca5db6dde334843145ee";
00149 }
00150
00151 static const char* value(const ::geographic_msgs::BoundingBox_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0x19b431f226beca5dULL;
00153 static const uint64_t static_value2 = 0xb6dde334843145eeULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::geographic_msgs::BoundingBox_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "geographic_msgs/BoundingBox";
00161 }
00162
00163 static const char* value(const ::geographic_msgs::BoundingBox_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::geographic_msgs::BoundingBox_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "# Two-dimensional geographic map bounding box. \n\
00171 \n\
00172 # Latitudes are in degrees [-90 .. +90]. Positive is north of equator;\n\
00173 # negative is south.\n\
00174 \n\
00175 # Longitudes are in degrees [-180 .. +180]. Positive is east of prime\n\
00176 # meridian; negative is west. At the poles, latitude is -90 or +90,\n\
00177 # and longitude is irrelevant, but must be in range.\n\
00178 \n\
00179 # If all bounds are zeros, the bounding box includes the whole world.\n\
00180 \n\
00181 float64 min_latitude\n\
00182 float64 min_longitude\n\
00183 float64 max_latitude\n\
00184 float64 max_longitude\n\
00185 \n\
00186 ";
00187 }
00188
00189 static const char* value(const ::geographic_msgs::BoundingBox_<ContainerAllocator> &) { return value(); }
00190 };
00191
00192 template<class ContainerAllocator> struct IsFixedSize< ::geographic_msgs::BoundingBox_<ContainerAllocator> > : public TrueType {};
00193 }
00194 }
00195
00196 namespace ros
00197 {
00198 namespace serialization
00199 {
00200
00201 template<class ContainerAllocator> struct Serializer< ::geographic_msgs::BoundingBox_<ContainerAllocator> >
00202 {
00203 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00204 {
00205 stream.next(m.min_latitude);
00206 stream.next(m.min_longitude);
00207 stream.next(m.max_latitude);
00208 stream.next(m.max_longitude);
00209 }
00210
00211 ROS_DECLARE_ALLINONE_SERIALIZER;
00212 };
00213 }
00214 }
00215
00216 namespace ros
00217 {
00218 namespace message_operations
00219 {
00220
00221 template<class ContainerAllocator>
00222 struct Printer< ::geographic_msgs::BoundingBox_<ContainerAllocator> >
00223 {
00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geographic_msgs::BoundingBox_<ContainerAllocator> & v)
00225 {
00226 s << indent << "min_latitude: ";
00227 Printer<double>::stream(s, indent + " ", v.min_latitude);
00228 s << indent << "min_longitude: ";
00229 Printer<double>::stream(s, indent + " ", v.min_longitude);
00230 s << indent << "max_latitude: ";
00231 Printer<double>::stream(s, indent + " ", v.max_latitude);
00232 s << indent << "max_longitude: ";
00233 Printer<double>::stream(s, indent + " ", v.max_longitude);
00234 }
00235 };
00236
00237
00238 }
00239 }
00240
00241 #endif // GEOGRAPHIC_MSGS_MESSAGE_BOUNDINGBOX_H
00242