00001
00002 #ifndef ART_MSGS_MESSAGE_EPSILON_H
00003 #define ART_MSGS_MESSAGE_EPSILON_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 Epsilon_ : public ros::Message
00018 {
00019 typedef Epsilon_<ContainerAllocator> Type;
00020
00021 Epsilon_()
00022 {
00023 }
00024
00025 Epsilon_(const ContainerAllocator& _alloc)
00026 {
00027 }
00028
00029 static const float float_value;
00030 static const float distance;
00031 static const float speed;
00032 static const float brake_position;
00033 static const float steering_angle;
00034 static const float throttle_position;
00035
00036 private:
00037 static const char* __s_getDataType_() { return "art_msgs/Epsilon"; }
00038 public:
00039 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00040
00041 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00042
00043 private:
00044 static const char* __s_getMD5Sum_() { return "0d2bf0d163e0062abbee50aa67ba8a3a"; }
00045 public:
00046 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00047
00048 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00049
00050 private:
00051 static const char* __s_getMessageDefinition_() { return "# ART epsilon constants\n\
00052 #\n\
00053 # These constants represent trivial differences in distance, speed,\n\
00054 # angle, etc.\n\
00055 \n\
00056 # $Id: Epsilon.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00057 \n\
00058 # constants\n\
00059 float32 float_value = 1e-5\n\
00060 float32 distance = 0.01\n\
00061 float32 speed = 0.01\n\
00062 \n\
00063 # epsilon values for servo requests\n\
00064 float32 brake_position = 0.01\n\
00065 float32 steering_angle = 0.001\n\
00066 float32 throttle_position = 0.01\n\
00067 \n\
00068 "; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00073
00074 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00075 {
00076 ros::serialization::OStream stream(write_ptr, 1000000000);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 return stream.getData();
00084 }
00085
00086 ROS_DEPRECATED virtual uint32_t serializationLength() const
00087 {
00088 uint32_t size = 0;
00089 return size;
00090 }
00091
00092 typedef boost::shared_ptr< ::art_msgs::Epsilon_<ContainerAllocator> > Ptr;
00093 typedef boost::shared_ptr< ::art_msgs::Epsilon_<ContainerAllocator> const> ConstPtr;
00094 };
00095 typedef ::art_msgs::Epsilon_<std::allocator<void> > Epsilon;
00096
00097 typedef boost::shared_ptr< ::art_msgs::Epsilon> EpsilonPtr;
00098 typedef boost::shared_ptr< ::art_msgs::Epsilon const> EpsilonConstPtr;
00099
00100 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::float_value = 1e-05;
00101 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::distance = 0.01;
00102 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::speed = 0.01;
00103 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::brake_position = 0.01;
00104 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::steering_angle = 0.001;
00105 template<typename ContainerAllocator> const float Epsilon_<ContainerAllocator>::throttle_position = 0.01;
00106
00107 template<typename ContainerAllocator>
00108 std::ostream& operator<<(std::ostream& s, const ::art_msgs::Epsilon_<ContainerAllocator> & v)
00109 {
00110 ros::message_operations::Printer< ::art_msgs::Epsilon_<ContainerAllocator> >::stream(s, "", v);
00111 return s;}
00112
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::art_msgs::Epsilon_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "0d2bf0d163e0062abbee50aa67ba8a3a";
00124 }
00125
00126 static const char* value(const ::art_msgs::Epsilon_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0x0d2bf0d163e0062aULL;
00128 static const uint64_t static_value2 = 0xbbee50aa67ba8a3aULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::art_msgs::Epsilon_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "art_msgs/Epsilon";
00136 }
00137
00138 static const char* value(const ::art_msgs::Epsilon_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::art_msgs::Epsilon_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "# ART epsilon constants\n\
00146 #\n\
00147 # These constants represent trivial differences in distance, speed,\n\
00148 # angle, etc.\n\
00149 \n\
00150 # $Id: Epsilon.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00151 \n\
00152 # constants\n\
00153 float32 float_value = 1e-5\n\
00154 float32 distance = 0.01\n\
00155 float32 speed = 0.01\n\
00156 \n\
00157 # epsilon values for servo requests\n\
00158 float32 brake_position = 0.01\n\
00159 float32 steering_angle = 0.001\n\
00160 float32 throttle_position = 0.01\n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::art_msgs::Epsilon_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::Epsilon_<ContainerAllocator> > : public TrueType {};
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::art_msgs::Epsilon_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 }
00182
00183 ROS_DECLARE_ALLINONE_SERIALIZER;
00184 };
00185 }
00186 }
00187
00188 namespace ros
00189 {
00190 namespace message_operations
00191 {
00192
00193 template<class ContainerAllocator>
00194 struct Printer< ::art_msgs::Epsilon_<ContainerAllocator> >
00195 {
00196 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::Epsilon_<ContainerAllocator> & v)
00197 {
00198 }
00199 };
00200
00201
00202 }
00203 }
00204
00205 #endif // ART_MSGS_MESSAGE_EPSILON_H
00206