$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-art_vehicle/doc_stacks/2013-03-01_14-08-11.497537/art_vehicle/art_msgs/msg/Conversions.msg */ 00002 #ifndef ART_MSGS_MESSAGE_CONVERSIONS_H 00003 #define ART_MSGS_MESSAGE_CONVERSIONS_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 art_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Conversions_ { 00022 typedef Conversions_<ContainerAllocator> Type; 00023 00024 Conversions_() 00025 { 00026 } 00027 00028 Conversions_(const ContainerAllocator& _alloc) 00029 { 00030 } 00031 00032 static const double CM_PER_INCH; 00033 static const double CM_PER_METER; 00034 static const double INCHES_PER_FOOT; 00035 static const double METERS_PER_FOOT; 00036 static const double METERS_PER_MILE; 00037 static const double MMETERS_PER_KM; 00038 static const double MMETERS_PER_MILE; 00039 enum { MINUTES_PER_HOUR = 60 }; 00040 enum { SECONDS_PER_MINUTE = 60 }; 00041 enum { SECONDS_PER_HOUR = 3600 }; 00042 00043 private: 00044 static const char* __s_getDataType_() { return "art_msgs/Conversions"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "44629a726979d07e4fc2da05a3fca804"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "# Units conversion constants\n\ 00059 #\n\ 00060 # Copyright (C) 2007, 2009 Austin Robot Technology \n\ 00061 # License: Modified BSD Software License Agreement\n\ 00062 \n\ 00063 # $Id: Conversions.msg 620 2010-09-25 01:11:51Z jack.oquin $\n\ 00064 \n\ 00065 # Unit conversion constants:\n\ 00066 \n\ 00067 float64 CM_PER_INCH = 2.54\n\ 00068 float64 CM_PER_METER = 100.0\n\ 00069 float64 INCHES_PER_FOOT = 12.0\n\ 00070 float64 METERS_PER_FOOT = 0.3048\n\ 00071 float64 METERS_PER_MILE = 1609.344\n\ 00072 float64 MMETERS_PER_KM = 1000000.0\n\ 00073 float64 MMETERS_PER_MILE = 1609344.0\n\ 00074 \n\ 00075 int64 MINUTES_PER_HOUR = 60\n\ 00076 int64 SECONDS_PER_MINUTE = 60\n\ 00077 int64 SECONDS_PER_HOUR = 3600\n\ 00078 \n\ 00079 "; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00082 00083 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00084 00085 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00086 { 00087 ros::serialization::OStream stream(write_ptr, 1000000000); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint32_t serializationLength() const 00098 { 00099 uint32_t size = 0; 00100 return size; 00101 } 00102 00103 typedef boost::shared_ptr< ::art_msgs::Conversions_<ContainerAllocator> > Ptr; 00104 typedef boost::shared_ptr< ::art_msgs::Conversions_<ContainerAllocator> const> ConstPtr; 00105 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00106 }; // struct Conversions 00107 typedef ::art_msgs::Conversions_<std::allocator<void> > Conversions; 00108 00109 typedef boost::shared_ptr< ::art_msgs::Conversions> ConversionsPtr; 00110 typedef boost::shared_ptr< ::art_msgs::Conversions const> ConversionsConstPtr; 00111 00112 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::CM_PER_INCH = 2.54; 00113 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::CM_PER_METER = 100.0; 00114 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::INCHES_PER_FOOT = 12.0; 00115 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::METERS_PER_FOOT = 0.3048; 00116 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::METERS_PER_MILE = 1609.344; 00117 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::MMETERS_PER_KM = 1000000.0; 00118 template<typename ContainerAllocator> const double Conversions_<ContainerAllocator>::MMETERS_PER_MILE = 1609344.0; 00119 00120 template<typename ContainerAllocator> 00121 std::ostream& operator<<(std::ostream& s, const ::art_msgs::Conversions_<ContainerAllocator> & v) 00122 { 00123 ros::message_operations::Printer< ::art_msgs::Conversions_<ContainerAllocator> >::stream(s, "", v); 00124 return s;} 00125 00126 } // namespace art_msgs 00127 00128 namespace ros 00129 { 00130 namespace message_traits 00131 { 00132 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Conversions_<ContainerAllocator> > : public TrueType {}; 00133 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Conversions_<ContainerAllocator> const> : public TrueType {}; 00134 template<class ContainerAllocator> 00135 struct MD5Sum< ::art_msgs::Conversions_<ContainerAllocator> > { 00136 static const char* value() 00137 { 00138 return "44629a726979d07e4fc2da05a3fca804"; 00139 } 00140 00141 static const char* value(const ::art_msgs::Conversions_<ContainerAllocator> &) { return value(); } 00142 static const uint64_t static_value1 = 0x44629a726979d07eULL; 00143 static const uint64_t static_value2 = 0x4fc2da05a3fca804ULL; 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct DataType< ::art_msgs::Conversions_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "art_msgs/Conversions"; 00151 } 00152 00153 static const char* value(const ::art_msgs::Conversions_<ContainerAllocator> &) { return value(); } 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct Definition< ::art_msgs::Conversions_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "# Units conversion constants\n\ 00161 #\n\ 00162 # Copyright (C) 2007, 2009 Austin Robot Technology \n\ 00163 # License: Modified BSD Software License Agreement\n\ 00164 \n\ 00165 # $Id: Conversions.msg 620 2010-09-25 01:11:51Z jack.oquin $\n\ 00166 \n\ 00167 # Unit conversion constants:\n\ 00168 \n\ 00169 float64 CM_PER_INCH = 2.54\n\ 00170 float64 CM_PER_METER = 100.0\n\ 00171 float64 INCHES_PER_FOOT = 12.0\n\ 00172 float64 METERS_PER_FOOT = 0.3048\n\ 00173 float64 METERS_PER_MILE = 1609.344\n\ 00174 float64 MMETERS_PER_KM = 1000000.0\n\ 00175 float64 MMETERS_PER_MILE = 1609344.0\n\ 00176 \n\ 00177 int64 MINUTES_PER_HOUR = 60\n\ 00178 int64 SECONDS_PER_MINUTE = 60\n\ 00179 int64 SECONDS_PER_HOUR = 3600\n\ 00180 \n\ 00181 "; 00182 } 00183 00184 static const char* value(const ::art_msgs::Conversions_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::Conversions_<ContainerAllocator> > : public TrueType {}; 00188 } // namespace message_traits 00189 } // namespace ros 00190 00191 namespace ros 00192 { 00193 namespace serialization 00194 { 00195 00196 template<class ContainerAllocator> struct Serializer< ::art_msgs::Conversions_<ContainerAllocator> > 00197 { 00198 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00199 { 00200 } 00201 00202 ROS_DECLARE_ALLINONE_SERIALIZER; 00203 }; // struct Conversions_ 00204 } // namespace serialization 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace message_operations 00210 { 00211 00212 template<class ContainerAllocator> 00213 struct Printer< ::art_msgs::Conversions_<ContainerAllocator> > 00214 { 00215 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::Conversions_<ContainerAllocator> & v) 00216 { 00217 } 00218 }; 00219 00220 00221 } // namespace message_operations 00222 } // namespace ros 00223 00224 #endif // ART_MSGS_MESSAGE_CONVERSIONS_H 00225