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