00001
00002 #ifndef ART_MSGS_MESSAGE_GEAR_H
00003 #define ART_MSGS_MESSAGE_GEAR_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 Gear_ : public ros::Message
00018 {
00019 typedef Gear_<ContainerAllocator> Type;
00020
00021 Gear_()
00022 : value(0)
00023 {
00024 }
00025
00026 Gear_(const ContainerAllocator& _alloc)
00027 : value(0)
00028 {
00029 }
00030
00031 typedef uint8_t _value_type;
00032 uint8_t value;
00033
00034 enum { Naught = 0 };
00035 enum { Park = 1 };
00036 enum { Reverse = 2 };
00037 enum { Neutral = 3 };
00038 enum { Drive = 4 };
00039 enum { N_gears = 5 };
00040
00041 private:
00042 static const char* __s_getDataType_() { return "art_msgs/Gear"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "29fb8bb2d87a1850e27a57ff47d6dd35"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "# ART vehicle transmission gear numbers\n\
00057 #\n\
00058 # Used by several different messages.\n\
00059 \n\
00060 # $Id: Gear.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00061 \n\
00062 # Gear numbers. \n\
00063 #\n\
00064 # Naught means: reset all Shifter relays; no change of CarDrive gear.\n\
00065 uint8 Naught = 0\n\
00066 uint8 Park = 1\n\
00067 uint8 Reverse = 2\n\
00068 uint8 Neutral = 3\n\
00069 uint8 Drive = 4\n\
00070 uint8 N_gears = 5\n\
00071 \n\
00072 uint8 value # requested or reported gear number\n\
00073 \n\
00074 "; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00079
00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00081 {
00082 ros::serialization::OStream stream(write_ptr, 1000000000);
00083 ros::serialization::serialize(stream, value);
00084 return stream.getData();
00085 }
00086
00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00088 {
00089 ros::serialization::IStream stream(read_ptr, 1000000000);
00090 ros::serialization::deserialize(stream, value);
00091 return stream.getData();
00092 }
00093
00094 ROS_DEPRECATED virtual uint32_t serializationLength() const
00095 {
00096 uint32_t size = 0;
00097 size += ros::serialization::serializationLength(value);
00098 return size;
00099 }
00100
00101 typedef boost::shared_ptr< ::art_msgs::Gear_<ContainerAllocator> > Ptr;
00102 typedef boost::shared_ptr< ::art_msgs::Gear_<ContainerAllocator> const> ConstPtr;
00103 };
00104 typedef ::art_msgs::Gear_<std::allocator<void> > Gear;
00105
00106 typedef boost::shared_ptr< ::art_msgs::Gear> GearPtr;
00107 typedef boost::shared_ptr< ::art_msgs::Gear const> GearConstPtr;
00108
00109
00110 template<typename ContainerAllocator>
00111 std::ostream& operator<<(std::ostream& s, const ::art_msgs::Gear_<ContainerAllocator> & v)
00112 {
00113 ros::message_operations::Printer< ::art_msgs::Gear_<ContainerAllocator> >::stream(s, "", v);
00114 return s;}
00115
00116 }
00117
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator>
00123 struct MD5Sum< ::art_msgs::Gear_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "29fb8bb2d87a1850e27a57ff47d6dd35";
00127 }
00128
00129 static const char* value(const ::art_msgs::Gear_<ContainerAllocator> &) { return value(); }
00130 static const uint64_t static_value1 = 0x29fb8bb2d87a1850ULL;
00131 static const uint64_t static_value2 = 0xe27a57ff47d6dd35ULL;
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct DataType< ::art_msgs::Gear_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "art_msgs/Gear";
00139 }
00140
00141 static const char* value(const ::art_msgs::Gear_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct Definition< ::art_msgs::Gear_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "# ART vehicle transmission gear numbers\n\
00149 #\n\
00150 # Used by several different messages.\n\
00151 \n\
00152 # $Id: Gear.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00153 \n\
00154 # Gear numbers. \n\
00155 #\n\
00156 # Naught means: reset all Shifter relays; no change of CarDrive gear.\n\
00157 uint8 Naught = 0\n\
00158 uint8 Park = 1\n\
00159 uint8 Reverse = 2\n\
00160 uint8 Neutral = 3\n\
00161 uint8 Drive = 4\n\
00162 uint8 N_gears = 5\n\
00163 \n\
00164 uint8 value # requested or reported gear number\n\
00165 \n\
00166 ";
00167 }
00168
00169 static const char* value(const ::art_msgs::Gear_<ContainerAllocator> &) { return value(); }
00170 };
00171
00172 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::Gear_<ContainerAllocator> > : public TrueType {};
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace serialization
00179 {
00180
00181 template<class ContainerAllocator> struct Serializer< ::art_msgs::Gear_<ContainerAllocator> >
00182 {
00183 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00184 {
00185 stream.next(m.value);
00186 }
00187
00188 ROS_DECLARE_ALLINONE_SERIALIZER;
00189 };
00190 }
00191 }
00192
00193 namespace ros
00194 {
00195 namespace message_operations
00196 {
00197
00198 template<class ContainerAllocator>
00199 struct Printer< ::art_msgs::Gear_<ContainerAllocator> >
00200 {
00201 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::Gear_<ContainerAllocator> & v)
00202 {
00203 s << indent << "value: ";
00204 Printer<uint8_t>::stream(s, indent + " ", v.value);
00205 }
00206 };
00207
00208
00209 }
00210 }
00211
00212 #endif // ART_MSGS_MESSAGE_GEAR_H
00213