$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-applanix_driver/doc_stacks/2013-03-01_14-05-02.457261/applanix_driver/applanix_msgs/msg/PreciseGravitySpecs.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_PRECISEGRAVITYSPECS_H 00003 #define APPLANIX_MSGS_MESSAGE_PRECISEGRAVITYSPECS_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 applanix_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct PreciseGravitySpecs_ { 00022 typedef PreciseGravitySpecs_<ContainerAllocator> Type; 00023 00024 PreciseGravitySpecs_() 00025 : transaction(0) 00026 , gravity_magnitude(0.0) 00027 , north_deflection(0.0) 00028 , east_deflection(0.0) 00029 , latitude_of_validity(0.0) 00030 , longitude_of_validity(0.0) 00031 , altitude_of_validity(0.0) 00032 { 00033 } 00034 00035 PreciseGravitySpecs_(const ContainerAllocator& _alloc) 00036 : transaction(0) 00037 , gravity_magnitude(0.0) 00038 , north_deflection(0.0) 00039 , east_deflection(0.0) 00040 , latitude_of_validity(0.0) 00041 , longitude_of_validity(0.0) 00042 , altitude_of_validity(0.0) 00043 { 00044 } 00045 00046 typedef uint16_t _transaction_type; 00047 uint16_t transaction; 00048 00049 typedef double _gravity_magnitude_type; 00050 double gravity_magnitude; 00051 00052 typedef double _north_deflection_type; 00053 double north_deflection; 00054 00055 typedef double _east_deflection_type; 00056 double east_deflection; 00057 00058 typedef double _latitude_of_validity_type; 00059 double latitude_of_validity; 00060 00061 typedef double _longitude_of_validity_type; 00062 double longitude_of_validity; 00063 00064 typedef double _altitude_of_validity_type; 00065 double altitude_of_validity; 00066 00067 00068 private: 00069 static const char* __s_getDataType_() { return "applanix_msgs/PreciseGravitySpecs"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00072 00073 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00074 00075 private: 00076 static const char* __s_getMD5Sum_() { return "60a1e48489b4ff46feb6027343f9931a"; } 00077 public: 00078 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00079 00080 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00081 00082 private: 00083 static const char* __s_getMessageDefinition_() { return "# Msg 40\n\ 00084 uint16 transaction\n\ 00085 \n\ 00086 float64 gravity_magnitude\n\ 00087 \n\ 00088 float64 north_deflection\n\ 00089 float64 east_deflection\n\ 00090 \n\ 00091 float64 latitude_of_validity\n\ 00092 float64 longitude_of_validity\n\ 00093 float64 altitude_of_validity\n\ 00094 \n\ 00095 "; } 00096 public: 00097 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00098 00099 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00100 00101 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00102 { 00103 ros::serialization::OStream stream(write_ptr, 1000000000); 00104 ros::serialization::serialize(stream, transaction); 00105 ros::serialization::serialize(stream, gravity_magnitude); 00106 ros::serialization::serialize(stream, north_deflection); 00107 ros::serialization::serialize(stream, east_deflection); 00108 ros::serialization::serialize(stream, latitude_of_validity); 00109 ros::serialization::serialize(stream, longitude_of_validity); 00110 ros::serialization::serialize(stream, altitude_of_validity); 00111 return stream.getData(); 00112 } 00113 00114 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00115 { 00116 ros::serialization::IStream stream(read_ptr, 1000000000); 00117 ros::serialization::deserialize(stream, transaction); 00118 ros::serialization::deserialize(stream, gravity_magnitude); 00119 ros::serialization::deserialize(stream, north_deflection); 00120 ros::serialization::deserialize(stream, east_deflection); 00121 ros::serialization::deserialize(stream, latitude_of_validity); 00122 ros::serialization::deserialize(stream, longitude_of_validity); 00123 ros::serialization::deserialize(stream, altitude_of_validity); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(transaction); 00131 size += ros::serialization::serializationLength(gravity_magnitude); 00132 size += ros::serialization::serializationLength(north_deflection); 00133 size += ros::serialization::serializationLength(east_deflection); 00134 size += ros::serialization::serializationLength(latitude_of_validity); 00135 size += ros::serialization::serializationLength(longitude_of_validity); 00136 size += ros::serialization::serializationLength(altitude_of_validity); 00137 return size; 00138 } 00139 00140 typedef boost::shared_ptr< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > Ptr; 00141 typedef boost::shared_ptr< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> const> ConstPtr; 00142 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00143 }; // struct PreciseGravitySpecs 00144 typedef ::applanix_msgs::PreciseGravitySpecs_<std::allocator<void> > PreciseGravitySpecs; 00145 00146 typedef boost::shared_ptr< ::applanix_msgs::PreciseGravitySpecs> PreciseGravitySpecsPtr; 00147 typedef boost::shared_ptr< ::applanix_msgs::PreciseGravitySpecs const> PreciseGravitySpecsConstPtr; 00148 00149 00150 template<typename ContainerAllocator> 00151 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> & v) 00152 { 00153 ros::message_operations::Printer< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> >::stream(s, "", v); 00154 return s;} 00155 00156 } // namespace applanix_msgs 00157 00158 namespace ros 00159 { 00160 namespace message_traits 00161 { 00162 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > : public TrueType {}; 00163 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> const> : public TrueType {}; 00164 template<class ContainerAllocator> 00165 struct MD5Sum< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > { 00166 static const char* value() 00167 { 00168 return "60a1e48489b4ff46feb6027343f9931a"; 00169 } 00170 00171 static const char* value(const ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> &) { return value(); } 00172 static const uint64_t static_value1 = 0x60a1e48489b4ff46ULL; 00173 static const uint64_t static_value2 = 0xfeb6027343f9931aULL; 00174 }; 00175 00176 template<class ContainerAllocator> 00177 struct DataType< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > { 00178 static const char* value() 00179 { 00180 return "applanix_msgs/PreciseGravitySpecs"; 00181 } 00182 00183 static const char* value(const ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> &) { return value(); } 00184 }; 00185 00186 template<class ContainerAllocator> 00187 struct Definition< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "# Msg 40\n\ 00191 uint16 transaction\n\ 00192 \n\ 00193 float64 gravity_magnitude\n\ 00194 \n\ 00195 float64 north_deflection\n\ 00196 float64 east_deflection\n\ 00197 \n\ 00198 float64 latitude_of_validity\n\ 00199 float64 longitude_of_validity\n\ 00200 float64 altitude_of_validity\n\ 00201 \n\ 00202 "; 00203 } 00204 00205 static const char* value(const ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > : public TrueType {}; 00209 } // namespace message_traits 00210 } // namespace ros 00211 00212 namespace ros 00213 { 00214 namespace serialization 00215 { 00216 00217 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > 00218 { 00219 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00220 { 00221 stream.next(m.transaction); 00222 stream.next(m.gravity_magnitude); 00223 stream.next(m.north_deflection); 00224 stream.next(m.east_deflection); 00225 stream.next(m.latitude_of_validity); 00226 stream.next(m.longitude_of_validity); 00227 stream.next(m.altitude_of_validity); 00228 } 00229 00230 ROS_DECLARE_ALLINONE_SERIALIZER; 00231 }; // struct PreciseGravitySpecs_ 00232 } // namespace serialization 00233 } // namespace ros 00234 00235 namespace ros 00236 { 00237 namespace message_operations 00238 { 00239 00240 template<class ContainerAllocator> 00241 struct Printer< ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> > 00242 { 00243 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::PreciseGravitySpecs_<ContainerAllocator> & v) 00244 { 00245 s << indent << "transaction: "; 00246 Printer<uint16_t>::stream(s, indent + " ", v.transaction); 00247 s << indent << "gravity_magnitude: "; 00248 Printer<double>::stream(s, indent + " ", v.gravity_magnitude); 00249 s << indent << "north_deflection: "; 00250 Printer<double>::stream(s, indent + " ", v.north_deflection); 00251 s << indent << "east_deflection: "; 00252 Printer<double>::stream(s, indent + " ", v.east_deflection); 00253 s << indent << "latitude_of_validity: "; 00254 Printer<double>::stream(s, indent + " ", v.latitude_of_validity); 00255 s << indent << "longitude_of_validity: "; 00256 Printer<double>::stream(s, indent + " ", v.longitude_of_validity); 00257 s << indent << "altitude_of_validity: "; 00258 Printer<double>::stream(s, indent + " ", v.altitude_of_validity); 00259 } 00260 }; 00261 00262 00263 } // namespace message_operations 00264 } // namespace ros 00265 00266 #endif // APPLANIX_MSGS_MESSAGE_PRECISEGRAVITYSPECS_H 00267