$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/Version.msg */ 00002 #ifndef APPLANIX_MSGS_MESSAGE_VERSION_H 00003 #define APPLANIX_MSGS_MESSAGE_VERSION_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 "applanix_msgs/TimeDistance.h" 00018 00019 namespace applanix_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Version_ { 00023 typedef Version_<ContainerAllocator> Type; 00024 00025 Version_() 00026 : td() 00027 , system_version() 00028 , primary_gnss_version() 00029 , secondary_gnss_version() 00030 , total_hours(0.0) 00031 , num_runs(0) 00032 , avg_run_length(0.0) 00033 , longest_run(0.0) 00034 , current_run(0.0) 00035 { 00036 system_version.assign(0); 00037 primary_gnss_version.assign(0); 00038 secondary_gnss_version.assign(0); 00039 } 00040 00041 Version_(const ContainerAllocator& _alloc) 00042 : td(_alloc) 00043 , system_version() 00044 , primary_gnss_version() 00045 , secondary_gnss_version() 00046 , total_hours(0.0) 00047 , num_runs(0) 00048 , avg_run_length(0.0) 00049 , longest_run(0.0) 00050 , current_run(0.0) 00051 { 00052 system_version.assign(0); 00053 primary_gnss_version.assign(0); 00054 secondary_gnss_version.assign(0); 00055 } 00056 00057 typedef ::applanix_msgs::TimeDistance_<ContainerAllocator> _td_type; 00058 ::applanix_msgs::TimeDistance_<ContainerAllocator> td; 00059 00060 typedef boost::array<uint8_t, 120> _system_version_type; 00061 boost::array<uint8_t, 120> system_version; 00062 00063 typedef boost::array<uint8_t, 80> _primary_gnss_version_type; 00064 boost::array<uint8_t, 80> primary_gnss_version; 00065 00066 typedef boost::array<uint8_t, 80> _secondary_gnss_version_type; 00067 boost::array<uint8_t, 80> secondary_gnss_version; 00068 00069 typedef float _total_hours_type; 00070 float total_hours; 00071 00072 typedef uint32_t _num_runs_type; 00073 uint32_t num_runs; 00074 00075 typedef float _avg_run_length_type; 00076 float avg_run_length; 00077 00078 typedef float _longest_run_type; 00079 float longest_run; 00080 00081 typedef float _current_run_type; 00082 float current_run; 00083 00084 00085 ROS_DEPRECATED uint32_t get_system_version_size() const { return (uint32_t)system_version.size(); } 00086 ROS_DEPRECATED uint32_t get_primary_gnss_version_size() const { return (uint32_t)primary_gnss_version.size(); } 00087 ROS_DEPRECATED uint32_t get_secondary_gnss_version_size() const { return (uint32_t)secondary_gnss_version.size(); } 00088 private: 00089 static const char* __s_getDataType_() { return "applanix_msgs/Version"; } 00090 public: 00091 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00092 00093 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00094 00095 private: 00096 static const char* __s_getMD5Sum_() { return "436db5a21d31ed873f1f24270392aeca"; } 00097 public: 00098 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00099 00100 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00101 00102 private: 00103 static const char* __s_getMessageDefinition_() { return "# Group 99\n\ 00104 TimeDistance td\n\ 00105 \n\ 00106 uint8[120] system_version\n\ 00107 uint8[80] primary_gnss_version\n\ 00108 uint8[80] secondary_gnss_version\n\ 00109 \n\ 00110 float32 total_hours\n\ 00111 uint32 num_runs\n\ 00112 float32 avg_run_length\n\ 00113 float32 longest_run\n\ 00114 float32 current_run\n\ 00115 \n\ 00116 ================================================================================\n\ 00117 MSG: applanix_msgs/TimeDistance\n\ 00118 float64 time1\n\ 00119 float64 time2\n\ 00120 float64 distance\n\ 00121 uint8 time_types\n\ 00122 uint8 distance_type\n\ 00123 \n\ 00124 "; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00131 { 00132 ros::serialization::OStream stream(write_ptr, 1000000000); 00133 ros::serialization::serialize(stream, td); 00134 ros::serialization::serialize(stream, system_version); 00135 ros::serialization::serialize(stream, primary_gnss_version); 00136 ros::serialization::serialize(stream, secondary_gnss_version); 00137 ros::serialization::serialize(stream, total_hours); 00138 ros::serialization::serialize(stream, num_runs); 00139 ros::serialization::serialize(stream, avg_run_length); 00140 ros::serialization::serialize(stream, longest_run); 00141 ros::serialization::serialize(stream, current_run); 00142 return stream.getData(); 00143 } 00144 00145 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00146 { 00147 ros::serialization::IStream stream(read_ptr, 1000000000); 00148 ros::serialization::deserialize(stream, td); 00149 ros::serialization::deserialize(stream, system_version); 00150 ros::serialization::deserialize(stream, primary_gnss_version); 00151 ros::serialization::deserialize(stream, secondary_gnss_version); 00152 ros::serialization::deserialize(stream, total_hours); 00153 ros::serialization::deserialize(stream, num_runs); 00154 ros::serialization::deserialize(stream, avg_run_length); 00155 ros::serialization::deserialize(stream, longest_run); 00156 ros::serialization::deserialize(stream, current_run); 00157 return stream.getData(); 00158 } 00159 00160 ROS_DEPRECATED virtual uint32_t serializationLength() const 00161 { 00162 uint32_t size = 0; 00163 size += ros::serialization::serializationLength(td); 00164 size += ros::serialization::serializationLength(system_version); 00165 size += ros::serialization::serializationLength(primary_gnss_version); 00166 size += ros::serialization::serializationLength(secondary_gnss_version); 00167 size += ros::serialization::serializationLength(total_hours); 00168 size += ros::serialization::serializationLength(num_runs); 00169 size += ros::serialization::serializationLength(avg_run_length); 00170 size += ros::serialization::serializationLength(longest_run); 00171 size += ros::serialization::serializationLength(current_run); 00172 return size; 00173 } 00174 00175 typedef boost::shared_ptr< ::applanix_msgs::Version_<ContainerAllocator> > Ptr; 00176 typedef boost::shared_ptr< ::applanix_msgs::Version_<ContainerAllocator> const> ConstPtr; 00177 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00178 }; // struct Version 00179 typedef ::applanix_msgs::Version_<std::allocator<void> > Version; 00180 00181 typedef boost::shared_ptr< ::applanix_msgs::Version> VersionPtr; 00182 typedef boost::shared_ptr< ::applanix_msgs::Version const> VersionConstPtr; 00183 00184 00185 template<typename ContainerAllocator> 00186 std::ostream& operator<<(std::ostream& s, const ::applanix_msgs::Version_<ContainerAllocator> & v) 00187 { 00188 ros::message_operations::Printer< ::applanix_msgs::Version_<ContainerAllocator> >::stream(s, "", v); 00189 return s;} 00190 00191 } // namespace applanix_msgs 00192 00193 namespace ros 00194 { 00195 namespace message_traits 00196 { 00197 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Version_<ContainerAllocator> > : public TrueType {}; 00198 template<class ContainerAllocator> struct IsMessage< ::applanix_msgs::Version_<ContainerAllocator> const> : public TrueType {}; 00199 template<class ContainerAllocator> 00200 struct MD5Sum< ::applanix_msgs::Version_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "436db5a21d31ed873f1f24270392aeca"; 00204 } 00205 00206 static const char* value(const ::applanix_msgs::Version_<ContainerAllocator> &) { return value(); } 00207 static const uint64_t static_value1 = 0x436db5a21d31ed87ULL; 00208 static const uint64_t static_value2 = 0x3f1f24270392aecaULL; 00209 }; 00210 00211 template<class ContainerAllocator> 00212 struct DataType< ::applanix_msgs::Version_<ContainerAllocator> > { 00213 static const char* value() 00214 { 00215 return "applanix_msgs/Version"; 00216 } 00217 00218 static const char* value(const ::applanix_msgs::Version_<ContainerAllocator> &) { return value(); } 00219 }; 00220 00221 template<class ContainerAllocator> 00222 struct Definition< ::applanix_msgs::Version_<ContainerAllocator> > { 00223 static const char* value() 00224 { 00225 return "# Group 99\n\ 00226 TimeDistance td\n\ 00227 \n\ 00228 uint8[120] system_version\n\ 00229 uint8[80] primary_gnss_version\n\ 00230 uint8[80] secondary_gnss_version\n\ 00231 \n\ 00232 float32 total_hours\n\ 00233 uint32 num_runs\n\ 00234 float32 avg_run_length\n\ 00235 float32 longest_run\n\ 00236 float32 current_run\n\ 00237 \n\ 00238 ================================================================================\n\ 00239 MSG: applanix_msgs/TimeDistance\n\ 00240 float64 time1\n\ 00241 float64 time2\n\ 00242 float64 distance\n\ 00243 uint8 time_types\n\ 00244 uint8 distance_type\n\ 00245 \n\ 00246 "; 00247 } 00248 00249 static const char* value(const ::applanix_msgs::Version_<ContainerAllocator> &) { return value(); } 00250 }; 00251 00252 template<class ContainerAllocator> struct IsFixedSize< ::applanix_msgs::Version_<ContainerAllocator> > : public TrueType {}; 00253 } // namespace message_traits 00254 } // namespace ros 00255 00256 namespace ros 00257 { 00258 namespace serialization 00259 { 00260 00261 template<class ContainerAllocator> struct Serializer< ::applanix_msgs::Version_<ContainerAllocator> > 00262 { 00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00264 { 00265 stream.next(m.td); 00266 stream.next(m.system_version); 00267 stream.next(m.primary_gnss_version); 00268 stream.next(m.secondary_gnss_version); 00269 stream.next(m.total_hours); 00270 stream.next(m.num_runs); 00271 stream.next(m.avg_run_length); 00272 stream.next(m.longest_run); 00273 stream.next(m.current_run); 00274 } 00275 00276 ROS_DECLARE_ALLINONE_SERIALIZER; 00277 }; // struct Version_ 00278 } // namespace serialization 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace message_operations 00284 { 00285 00286 template<class ContainerAllocator> 00287 struct Printer< ::applanix_msgs::Version_<ContainerAllocator> > 00288 { 00289 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::applanix_msgs::Version_<ContainerAllocator> & v) 00290 { 00291 s << indent << "td: "; 00292 s << std::endl; 00293 Printer< ::applanix_msgs::TimeDistance_<ContainerAllocator> >::stream(s, indent + " ", v.td); 00294 s << indent << "system_version[]" << std::endl; 00295 for (size_t i = 0; i < v.system_version.size(); ++i) 00296 { 00297 s << indent << " system_version[" << i << "]: "; 00298 Printer<uint8_t>::stream(s, indent + " ", v.system_version[i]); 00299 } 00300 s << indent << "primary_gnss_version[]" << std::endl; 00301 for (size_t i = 0; i < v.primary_gnss_version.size(); ++i) 00302 { 00303 s << indent << " primary_gnss_version[" << i << "]: "; 00304 Printer<uint8_t>::stream(s, indent + " ", v.primary_gnss_version[i]); 00305 } 00306 s << indent << "secondary_gnss_version[]" << std::endl; 00307 for (size_t i = 0; i < v.secondary_gnss_version.size(); ++i) 00308 { 00309 s << indent << " secondary_gnss_version[" << i << "]: "; 00310 Printer<uint8_t>::stream(s, indent + " ", v.secondary_gnss_version[i]); 00311 } 00312 s << indent << "total_hours: "; 00313 Printer<float>::stream(s, indent + " ", v.total_hours); 00314 s << indent << "num_runs: "; 00315 Printer<uint32_t>::stream(s, indent + " ", v.num_runs); 00316 s << indent << "avg_run_length: "; 00317 Printer<float>::stream(s, indent + " ", v.avg_run_length); 00318 s << indent << "longest_run: "; 00319 Printer<float>::stream(s, indent + " ", v.longest_run); 00320 s << indent << "current_run: "; 00321 Printer<float>::stream(s, indent + " ", v.current_run); 00322 } 00323 }; 00324 00325 00326 } // namespace message_operations 00327 } // namespace ros 00328 00329 #endif // APPLANIX_MSGS_MESSAGE_VERSION_H 00330