00001
00002 #ifndef ASCTEC_MSGS_MESSAGE_GPSDATA_H
00003 #define ASCTEC_MSGS_MESSAGE_GPSDATA_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 "std_msgs/Header.h"
00018
00019 namespace asctec_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct GPSData_ {
00023 typedef GPSData_<ContainerAllocator> Type;
00024
00025 GPSData_()
00026 : header()
00027 , latitude(0)
00028 , longitude(0)
00029 , height(0)
00030 , speed_x(0)
00031 , speed_y(0)
00032 , heading(0)
00033 , horizontal_accuracy(0)
00034 , vertical_accuracy(0)
00035 , speed_accuracy(0)
00036 , numSV(0)
00037 , status(0)
00038 {
00039 }
00040
00041 GPSData_(const ContainerAllocator& _alloc)
00042 : header(_alloc)
00043 , latitude(0)
00044 , longitude(0)
00045 , height(0)
00046 , speed_x(0)
00047 , speed_y(0)
00048 , heading(0)
00049 , horizontal_accuracy(0)
00050 , vertical_accuracy(0)
00051 , speed_accuracy(0)
00052 , numSV(0)
00053 , status(0)
00054 {
00055 }
00056
00057 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00058 ::std_msgs::Header_<ContainerAllocator> header;
00059
00060 typedef int32_t _latitude_type;
00061 int32_t latitude;
00062
00063 typedef int32_t _longitude_type;
00064 int32_t longitude;
00065
00066 typedef int32_t _height_type;
00067 int32_t height;
00068
00069 typedef int32_t _speed_x_type;
00070 int32_t speed_x;
00071
00072 typedef int32_t _speed_y_type;
00073 int32_t speed_y;
00074
00075 typedef int32_t _heading_type;
00076 int32_t heading;
00077
00078 typedef int32_t _horizontal_accuracy_type;
00079 int32_t horizontal_accuracy;
00080
00081 typedef int32_t _vertical_accuracy_type;
00082 int32_t vertical_accuracy;
00083
00084 typedef int32_t _speed_accuracy_type;
00085 int32_t speed_accuracy;
00086
00087 typedef int32_t _numSV_type;
00088 int32_t numSV;
00089
00090 typedef int32_t _status_type;
00091 int32_t status;
00092
00093
00094 typedef boost::shared_ptr< ::asctec_msgs::GPSData_<ContainerAllocator> > Ptr;
00095 typedef boost::shared_ptr< ::asctec_msgs::GPSData_<ContainerAllocator> const> ConstPtr;
00096 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00097 };
00098 typedef ::asctec_msgs::GPSData_<std::allocator<void> > GPSData;
00099
00100 typedef boost::shared_ptr< ::asctec_msgs::GPSData> GPSDataPtr;
00101 typedef boost::shared_ptr< ::asctec_msgs::GPSData const> GPSDataConstPtr;
00102
00103
00104 template<typename ContainerAllocator>
00105 std::ostream& operator<<(std::ostream& s, const ::asctec_msgs::GPSData_<ContainerAllocator> & v)
00106 {
00107 ros::message_operations::Printer< ::asctec_msgs::GPSData_<ContainerAllocator> >::stream(s, "", v);
00108 return s;}
00109
00110 }
00111
00112 namespace ros
00113 {
00114 namespace message_traits
00115 {
00116 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::GPSData_<ContainerAllocator> > : public TrueType {};
00117 template<class ContainerAllocator> struct IsMessage< ::asctec_msgs::GPSData_<ContainerAllocator> const> : public TrueType {};
00118 template<class ContainerAllocator>
00119 struct MD5Sum< ::asctec_msgs::GPSData_<ContainerAllocator> > {
00120 static const char* value()
00121 {
00122 return "b71de9435ba6759a86f427d436c58ccb";
00123 }
00124
00125 static const char* value(const ::asctec_msgs::GPSData_<ContainerAllocator> &) { return value(); }
00126 static const uint64_t static_value1 = 0xb71de9435ba6759aULL;
00127 static const uint64_t static_value2 = 0x86f427d436c58ccbULL;
00128 };
00129
00130 template<class ContainerAllocator>
00131 struct DataType< ::asctec_msgs::GPSData_<ContainerAllocator> > {
00132 static const char* value()
00133 {
00134 return "asctec_msgs/GPSData";
00135 }
00136
00137 static const char* value(const ::asctec_msgs::GPSData_<ContainerAllocator> &) { return value(); }
00138 };
00139
00140 template<class ContainerAllocator>
00141 struct Definition< ::asctec_msgs::GPSData_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "# Software License Agreement (BSD License)\n\
00145 #\n\
00146 # Copyright (c) 2010\n\
00147 # William Morris <morris@ee.ccny.cuny.edu>\n\
00148 # Ivan Dryanovski <ivan.dryanovski@gmail.com>\n\
00149 # All rights reserved.\n\
00150 #\n\
00151 # Redistribution and use in source and binary forms, with or without\n\
00152 # modification, are permitted provided that the following conditions\n\
00153 # are met:\n\
00154 #\n\
00155 # * Redistributions of source code must retain the above copyright\n\
00156 # notice, this list of conditions and the following disclaimer.\n\
00157 # * Redistributions in binary form must reproduce the above\n\
00158 # copyright notice, this list of conditions and the following\n\
00159 # disclaimer in the documentation and/or other materials provided\n\
00160 # with the distribution.\n\
00161 # * Neither the name of CCNY Robotics Lab nor the names of its\n\
00162 # contributors may be used to endorse or promote products derived\n\
00163 # from this software without specific prior written permission.\n\
00164 #\n\
00165 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n\
00166 # \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n\
00167 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\n\
00168 # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\n\
00169 # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\n\
00170 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n\
00171 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n\
00172 # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\n\
00173 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n\
00174 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\n\
00175 # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n\
00176 # POSSIBILITY OF SUCH DAMAGE.\n\
00177 \n\
00178 Header header\n\
00179 # latitude/longitude in deg * 10^7\n\
00180 int32 latitude\n\
00181 int32 longitude\n\
00182 \n\
00183 #GPS height in mm\n\
00184 int32 height\n\
00185 \n\
00186 #speed in x (E/W) and y(N/S) in mm/s\n\
00187 int32 speed_x\n\
00188 int32 speed_y\n\
00189 \n\
00190 #GPS heading in deg * 100\n\
00191 int32 heading\n\
00192 \n\
00193 #accuracy estimates in mm and mm/s\n\
00194 int32 horizontal_accuracy\n\
00195 int32 vertical_accuracy\n\
00196 int32 speed_accuracy\n\
00197 \n\
00198 #number of satellite vehicles used in NAV solution\n\
00199 int32 numSV\n\
00200 \n\
00201 #GPS status information; 0x03 = valid GPS fix\n\
00202 int32 status\n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: std_msgs/Header\n\
00206 # Standard metadata for higher-level stamped data types.\n\
00207 # This is generally used to communicate timestamped data \n\
00208 # in a particular coordinate frame.\n\
00209 # \n\
00210 # sequence ID: consecutively increasing ID \n\
00211 uint32 seq\n\
00212 #Two-integer timestamp that is expressed as:\n\
00213 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00214 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00215 # time-handling sugar is provided by the client library\n\
00216 time stamp\n\
00217 #Frame this data is associated with\n\
00218 # 0: no frame\n\
00219 # 1: global frame\n\
00220 string frame_id\n\
00221 \n\
00222 ";
00223 }
00224
00225 static const char* value(const ::asctec_msgs::GPSData_<ContainerAllocator> &) { return value(); }
00226 };
00227
00228 template<class ContainerAllocator> struct HasHeader< ::asctec_msgs::GPSData_<ContainerAllocator> > : public TrueType {};
00229 template<class ContainerAllocator> struct HasHeader< const ::asctec_msgs::GPSData_<ContainerAllocator> > : public TrueType {};
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace serialization
00236 {
00237
00238 template<class ContainerAllocator> struct Serializer< ::asctec_msgs::GPSData_<ContainerAllocator> >
00239 {
00240 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00241 {
00242 stream.next(m.header);
00243 stream.next(m.latitude);
00244 stream.next(m.longitude);
00245 stream.next(m.height);
00246 stream.next(m.speed_x);
00247 stream.next(m.speed_y);
00248 stream.next(m.heading);
00249 stream.next(m.horizontal_accuracy);
00250 stream.next(m.vertical_accuracy);
00251 stream.next(m.speed_accuracy);
00252 stream.next(m.numSV);
00253 stream.next(m.status);
00254 }
00255
00256 ROS_DECLARE_ALLINONE_SERIALIZER;
00257 };
00258 }
00259 }
00260
00261 namespace ros
00262 {
00263 namespace message_operations
00264 {
00265
00266 template<class ContainerAllocator>
00267 struct Printer< ::asctec_msgs::GPSData_<ContainerAllocator> >
00268 {
00269 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::asctec_msgs::GPSData_<ContainerAllocator> & v)
00270 {
00271 s << indent << "header: ";
00272 s << std::endl;
00273 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00274 s << indent << "latitude: ";
00275 Printer<int32_t>::stream(s, indent + " ", v.latitude);
00276 s << indent << "longitude: ";
00277 Printer<int32_t>::stream(s, indent + " ", v.longitude);
00278 s << indent << "height: ";
00279 Printer<int32_t>::stream(s, indent + " ", v.height);
00280 s << indent << "speed_x: ";
00281 Printer<int32_t>::stream(s, indent + " ", v.speed_x);
00282 s << indent << "speed_y: ";
00283 Printer<int32_t>::stream(s, indent + " ", v.speed_y);
00284 s << indent << "heading: ";
00285 Printer<int32_t>::stream(s, indent + " ", v.heading);
00286 s << indent << "horizontal_accuracy: ";
00287 Printer<int32_t>::stream(s, indent + " ", v.horizontal_accuracy);
00288 s << indent << "vertical_accuracy: ";
00289 Printer<int32_t>::stream(s, indent + " ", v.vertical_accuracy);
00290 s << indent << "speed_accuracy: ";
00291 Printer<int32_t>::stream(s, indent + " ", v.speed_accuracy);
00292 s << indent << "numSV: ";
00293 Printer<int32_t>::stream(s, indent + " ", v.numSV);
00294 s << indent << "status: ";
00295 Printer<int32_t>::stream(s, indent + " ", v.status);
00296 }
00297 };
00298
00299
00300 }
00301 }
00302
00303 #endif // ASCTEC_MSGS_MESSAGE_GPSDATA_H
00304