$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-imu_drivers/doc_stacks/2013-03-01_15-45-00.573229/imu_drivers/microstrain_3dmgx2_imu/srv/AddOffset.srv */ 00002 #ifndef MICROSTRAIN_3DMGX2_IMU_SERVICE_ADDOFFSET_H 00003 #define MICROSTRAIN_3DMGX2_IMU_SERVICE_ADDOFFSET_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 "ros/service_traits.h" 00018 00019 00020 00021 00022 namespace microstrain_3dmgx2_imu 00023 { 00024 template <class ContainerAllocator> 00025 struct AddOffsetRequest_ { 00026 typedef AddOffsetRequest_<ContainerAllocator> Type; 00027 00028 AddOffsetRequest_() 00029 : add_offset(0.0) 00030 { 00031 } 00032 00033 AddOffsetRequest_(const ContainerAllocator& _alloc) 00034 : add_offset(0.0) 00035 { 00036 } 00037 00038 typedef double _add_offset_type; 00039 double add_offset; 00040 00041 00042 private: 00043 static const char* __s_getDataType_() { return "microstrain_3dmgx2_imu/AddOffsetRequest"; } 00044 public: 00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00046 00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00048 00049 private: 00050 static const char* __s_getMD5Sum_() { return "10fe27c5d4591264b9d05acc7497a18a"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00053 00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00055 00056 private: 00057 static const char* __s_getServerMD5Sum_() { return "f5dcf1246c1a25fcc69616e9d14c1482"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "float64 add_offset\n\ 00065 \n\ 00066 "; } 00067 public: 00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00069 00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00071 00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00073 { 00074 ros::serialization::OStream stream(write_ptr, 1000000000); 00075 ros::serialization::serialize(stream, add_offset); 00076 return stream.getData(); 00077 } 00078 00079 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00080 { 00081 ros::serialization::IStream stream(read_ptr, 1000000000); 00082 ros::serialization::deserialize(stream, add_offset); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint32_t serializationLength() const 00087 { 00088 uint32_t size = 0; 00089 size += ros::serialization::serializationLength(add_offset); 00090 return size; 00091 } 00092 00093 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > Ptr; 00094 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> const> ConstPtr; 00095 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00096 }; // struct AddOffsetRequest 00097 typedef ::microstrain_3dmgx2_imu::AddOffsetRequest_<std::allocator<void> > AddOffsetRequest; 00098 00099 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetRequest> AddOffsetRequestPtr; 00100 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetRequest const> AddOffsetRequestConstPtr; 00101 00102 00103 template <class ContainerAllocator> 00104 struct AddOffsetResponse_ { 00105 typedef AddOffsetResponse_<ContainerAllocator> Type; 00106 00107 AddOffsetResponse_() 00108 : total_offset(0.0) 00109 { 00110 } 00111 00112 AddOffsetResponse_(const ContainerAllocator& _alloc) 00113 : total_offset(0.0) 00114 { 00115 } 00116 00117 typedef double _total_offset_type; 00118 double total_offset; 00119 00120 00121 private: 00122 static const char* __s_getDataType_() { return "microstrain_3dmgx2_imu/AddOffsetResponse"; } 00123 public: 00124 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00125 00126 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00127 00128 private: 00129 static const char* __s_getMD5Sum_() { return "5dea42ce4656fada4736ce3508b56aca"; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00132 00133 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00134 00135 private: 00136 static const char* __s_getServerMD5Sum_() { return "f5dcf1246c1a25fcc69616e9d14c1482"; } 00137 public: 00138 ROS_DEPRECATED static const std::string __s_getServerMD5Sum() { return __s_getServerMD5Sum_(); } 00139 00140 ROS_DEPRECATED const std::string __getServerMD5Sum() const { return __s_getServerMD5Sum_(); } 00141 00142 private: 00143 static const char* __s_getMessageDefinition_() { return "float64 total_offset\n\ 00144 \n\ 00145 \n\ 00146 "; } 00147 public: 00148 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00149 00150 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00151 00152 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00153 { 00154 ros::serialization::OStream stream(write_ptr, 1000000000); 00155 ros::serialization::serialize(stream, total_offset); 00156 return stream.getData(); 00157 } 00158 00159 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00160 { 00161 ros::serialization::IStream stream(read_ptr, 1000000000); 00162 ros::serialization::deserialize(stream, total_offset); 00163 return stream.getData(); 00164 } 00165 00166 ROS_DEPRECATED virtual uint32_t serializationLength() const 00167 { 00168 uint32_t size = 0; 00169 size += ros::serialization::serializationLength(total_offset); 00170 return size; 00171 } 00172 00173 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > Ptr; 00174 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> const> ConstPtr; 00175 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00176 }; // struct AddOffsetResponse 00177 typedef ::microstrain_3dmgx2_imu::AddOffsetResponse_<std::allocator<void> > AddOffsetResponse; 00178 00179 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetResponse> AddOffsetResponsePtr; 00180 typedef boost::shared_ptr< ::microstrain_3dmgx2_imu::AddOffsetResponse const> AddOffsetResponseConstPtr; 00181 00182 struct AddOffset 00183 { 00184 00185 typedef AddOffsetRequest Request; 00186 typedef AddOffsetResponse Response; 00187 Request request; 00188 Response response; 00189 00190 typedef Request RequestType; 00191 typedef Response ResponseType; 00192 }; // struct AddOffset 00193 } // namespace microstrain_3dmgx2_imu 00194 00195 namespace ros 00196 { 00197 namespace message_traits 00198 { 00199 template<class ContainerAllocator> struct IsMessage< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > : public TrueType {}; 00200 template<class ContainerAllocator> struct IsMessage< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> const> : public TrueType {}; 00201 template<class ContainerAllocator> 00202 struct MD5Sum< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "10fe27c5d4591264b9d05acc7497a18a"; 00206 } 00207 00208 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> &) { return value(); } 00209 static const uint64_t static_value1 = 0x10fe27c5d4591264ULL; 00210 static const uint64_t static_value2 = 0xb9d05acc7497a18aULL; 00211 }; 00212 00213 template<class ContainerAllocator> 00214 struct DataType< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "microstrain_3dmgx2_imu/AddOffsetRequest"; 00218 } 00219 00220 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> 00224 struct Definition< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "float64 add_offset\n\ 00228 \n\ 00229 "; 00230 } 00231 00232 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 template<class ContainerAllocator> struct IsFixedSize< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > : public TrueType {}; 00236 } // namespace message_traits 00237 } // namespace ros 00238 00239 00240 namespace ros 00241 { 00242 namespace message_traits 00243 { 00244 template<class ContainerAllocator> struct IsMessage< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > : public TrueType {}; 00245 template<class ContainerAllocator> struct IsMessage< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> const> : public TrueType {}; 00246 template<class ContainerAllocator> 00247 struct MD5Sum< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > { 00248 static const char* value() 00249 { 00250 return "5dea42ce4656fada4736ce3508b56aca"; 00251 } 00252 00253 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> &) { return value(); } 00254 static const uint64_t static_value1 = 0x5dea42ce4656fadaULL; 00255 static const uint64_t static_value2 = 0x4736ce3508b56acaULL; 00256 }; 00257 00258 template<class ContainerAllocator> 00259 struct DataType< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > { 00260 static const char* value() 00261 { 00262 return "microstrain_3dmgx2_imu/AddOffsetResponse"; 00263 } 00264 00265 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> &) { return value(); } 00266 }; 00267 00268 template<class ContainerAllocator> 00269 struct Definition< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > { 00270 static const char* value() 00271 { 00272 return "float64 total_offset\n\ 00273 \n\ 00274 \n\ 00275 "; 00276 } 00277 00278 static const char* value(const ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> &) { return value(); } 00279 }; 00280 00281 template<class ContainerAllocator> struct IsFixedSize< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > : public TrueType {}; 00282 } // namespace message_traits 00283 } // namespace ros 00284 00285 namespace ros 00286 { 00287 namespace serialization 00288 { 00289 00290 template<class ContainerAllocator> struct Serializer< ::microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > 00291 { 00292 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00293 { 00294 stream.next(m.add_offset); 00295 } 00296 00297 ROS_DECLARE_ALLINONE_SERIALIZER; 00298 }; // struct AddOffsetRequest_ 00299 } // namespace serialization 00300 } // namespace ros 00301 00302 00303 namespace ros 00304 { 00305 namespace serialization 00306 { 00307 00308 template<class ContainerAllocator> struct Serializer< ::microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > 00309 { 00310 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00311 { 00312 stream.next(m.total_offset); 00313 } 00314 00315 ROS_DECLARE_ALLINONE_SERIALIZER; 00316 }; // struct AddOffsetResponse_ 00317 } // namespace serialization 00318 } // namespace ros 00319 00320 namespace ros 00321 { 00322 namespace service_traits 00323 { 00324 template<> 00325 struct MD5Sum<microstrain_3dmgx2_imu::AddOffset> { 00326 static const char* value() 00327 { 00328 return "f5dcf1246c1a25fcc69616e9d14c1482"; 00329 } 00330 00331 static const char* value(const microstrain_3dmgx2_imu::AddOffset&) { return value(); } 00332 }; 00333 00334 template<> 00335 struct DataType<microstrain_3dmgx2_imu::AddOffset> { 00336 static const char* value() 00337 { 00338 return "microstrain_3dmgx2_imu/AddOffset"; 00339 } 00340 00341 static const char* value(const microstrain_3dmgx2_imu::AddOffset&) { return value(); } 00342 }; 00343 00344 template<class ContainerAllocator> 00345 struct MD5Sum<microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > { 00346 static const char* value() 00347 { 00348 return "f5dcf1246c1a25fcc69616e9d14c1482"; 00349 } 00350 00351 static const char* value(const microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> &) { return value(); } 00352 }; 00353 00354 template<class ContainerAllocator> 00355 struct DataType<microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> > { 00356 static const char* value() 00357 { 00358 return "microstrain_3dmgx2_imu/AddOffset"; 00359 } 00360 00361 static const char* value(const microstrain_3dmgx2_imu::AddOffsetRequest_<ContainerAllocator> &) { return value(); } 00362 }; 00363 00364 template<class ContainerAllocator> 00365 struct MD5Sum<microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > { 00366 static const char* value() 00367 { 00368 return "f5dcf1246c1a25fcc69616e9d14c1482"; 00369 } 00370 00371 static const char* value(const microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> &) { return value(); } 00372 }; 00373 00374 template<class ContainerAllocator> 00375 struct DataType<microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> > { 00376 static const char* value() 00377 { 00378 return "microstrain_3dmgx2_imu/AddOffset"; 00379 } 00380 00381 static const char* value(const microstrain_3dmgx2_imu::AddOffsetResponse_<ContainerAllocator> &) { return value(); } 00382 }; 00383 00384 } // namespace service_traits 00385 } // namespace ros 00386 00387 #endif // MICROSTRAIN_3DMGX2_IMU_SERVICE_ADDOFFSET_H 00388