Gear.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-art_vehicle/doc_stacks/2014-01-03_11-05-32.392273/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   typedef boost::shared_ptr< ::art_msgs::Gear_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::art_msgs::Gear_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct Gear
00048 typedef  ::art_msgs::Gear_<std::allocator<void> > Gear;
00049 
00050 typedef boost::shared_ptr< ::art_msgs::Gear> GearPtr;
00051 typedef boost::shared_ptr< ::art_msgs::Gear const> GearConstPtr;
00052 
00053 
00054 template<typename ContainerAllocator>
00055 std::ostream& operator<<(std::ostream& s, const  ::art_msgs::Gear_<ContainerAllocator> & v)
00056 {
00057   ros::message_operations::Printer< ::art_msgs::Gear_<ContainerAllocator> >::stream(s, "", v);
00058   return s;}
00059 
00060 } // namespace art_msgs
00061 
00062 namespace ros
00063 {
00064 namespace message_traits
00065 {
00066 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Gear_<ContainerAllocator> > : public TrueType {};
00067 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Gear_<ContainerAllocator>  const> : public TrueType {};
00068 template<class ContainerAllocator>
00069 struct MD5Sum< ::art_msgs::Gear_<ContainerAllocator> > {
00070   static const char* value() 
00071   {
00072     return "29fb8bb2d87a1850e27a57ff47d6dd35";
00073   }
00074 
00075   static const char* value(const  ::art_msgs::Gear_<ContainerAllocator> &) { return value(); } 
00076   static const uint64_t static_value1 = 0x29fb8bb2d87a1850ULL;
00077   static const uint64_t static_value2 = 0xe27a57ff47d6dd35ULL;
00078 };
00079 
00080 template<class ContainerAllocator>
00081 struct DataType< ::art_msgs::Gear_<ContainerAllocator> > {
00082   static const char* value() 
00083   {
00084     return "art_msgs/Gear";
00085   }
00086 
00087   static const char* value(const  ::art_msgs::Gear_<ContainerAllocator> &) { return value(); } 
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct Definition< ::art_msgs::Gear_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "# ART vehicle transmission gear numbers\n\
00095 #\n\
00096 # Used by several different messages.\n\
00097 \n\
00098 # $Id: Gear.msg 1539 2011-05-09 04:09:20Z jack.oquin $\n\
00099 \n\
00100 # Gear numbers. \n\
00101 #\n\
00102 # Naught means: reset all Shifter relays; no change of CarDrive gear.\n\
00103 uint8 Naught = 0\n\
00104 uint8 Park = 1\n\
00105 uint8 Reverse = 2\n\
00106 uint8 Neutral = 3\n\
00107 uint8 Drive = 4\n\
00108 uint8 N_gears = 5\n\
00109 \n\
00110 uint8 value             # requested or reported gear number\n\
00111 \n\
00112 ";
00113   }
00114 
00115   static const char* value(const  ::art_msgs::Gear_<ContainerAllocator> &) { return value(); } 
00116 };
00117 
00118 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::Gear_<ContainerAllocator> > : public TrueType {};
00119 } // namespace message_traits
00120 } // namespace ros
00121 
00122 namespace ros
00123 {
00124 namespace serialization
00125 {
00126 
00127 template<class ContainerAllocator> struct Serializer< ::art_msgs::Gear_<ContainerAllocator> >
00128 {
00129   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00130   {
00131     stream.next(m.value);
00132   }
00133 
00134   ROS_DECLARE_ALLINONE_SERIALIZER;
00135 }; // struct Gear_
00136 } // namespace serialization
00137 } // namespace ros
00138 
00139 namespace ros
00140 {
00141 namespace message_operations
00142 {
00143 
00144 template<class ContainerAllocator>
00145 struct Printer< ::art_msgs::Gear_<ContainerAllocator> >
00146 {
00147   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::art_msgs::Gear_<ContainerAllocator> & v) 
00148   {
00149     s << indent << "value: ";
00150     Printer<uint8_t>::stream(s, indent + "  ", v.value);
00151   }
00152 };
00153 
00154 
00155 } // namespace message_operations
00156 } // namespace ros
00157 
00158 #endif // ART_MSGS_MESSAGE_GEAR_H
00159 


art_msgs
Author(s): Jack O'Quin
autogenerated on Fri Jan 3 2014 11:08:05