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