Shifter.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-art_vehicle/doc_stacks/2013-09-24_10-35-44.297713/art_vehicle/art_msgs/msg/Shifter.msg */
00002 #ifndef ART_MSGS_MESSAGE_SHIFTER_H
00003 #define ART_MSGS_MESSAGE_SHIFTER_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 #include "std_msgs/Header.h"
00018 
00019 namespace art_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct Shifter_ {
00023   typedef Shifter_<ContainerAllocator> Type;
00024 
00025   Shifter_()
00026   : header()
00027   , gear(0)
00028   , relays(0)
00029   {
00030   }
00031 
00032   Shifter_(const ContainerAllocator& _alloc)
00033   : header(_alloc)
00034   , gear(0)
00035   , relays(0)
00036   {
00037   }
00038 
00039   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00040    ::std_msgs::Header_<ContainerAllocator>  header;
00041 
00042   typedef uint8_t _gear_type;
00043   uint8_t gear;
00044 
00045   typedef uint8_t _relays_type;
00046   uint8_t relays;
00047 
00048   enum { Reset = 0 };
00049   enum { Park = 1 };
00050   enum { Reverse = 2 };
00051   enum { Neutral = 3 };
00052   enum { Drive = 4 };
00053 
00054   typedef boost::shared_ptr< ::art_msgs::Shifter_<ContainerAllocator> > Ptr;
00055   typedef boost::shared_ptr< ::art_msgs::Shifter_<ContainerAllocator>  const> ConstPtr;
00056   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00057 }; // struct Shifter
00058 typedef  ::art_msgs::Shifter_<std::allocator<void> > Shifter;
00059 
00060 typedef boost::shared_ptr< ::art_msgs::Shifter> ShifterPtr;
00061 typedef boost::shared_ptr< ::art_msgs::Shifter const> ShifterConstPtr;
00062 
00063 
00064 template<typename ContainerAllocator>
00065 std::ostream& operator<<(std::ostream& s, const  ::art_msgs::Shifter_<ContainerAllocator> & v)
00066 {
00067   ros::message_operations::Printer< ::art_msgs::Shifter_<ContainerAllocator> >::stream(s, "", v);
00068   return s;}
00069 
00070 } // namespace art_msgs
00071 
00072 namespace ros
00073 {
00074 namespace message_traits
00075 {
00076 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Shifter_<ContainerAllocator> > : public TrueType {};
00077 template<class ContainerAllocator> struct IsMessage< ::art_msgs::Shifter_<ContainerAllocator>  const> : public TrueType {};
00078 template<class ContainerAllocator>
00079 struct MD5Sum< ::art_msgs::Shifter_<ContainerAllocator> > {
00080   static const char* value() 
00081   {
00082     return "dddb61d8575e01ea7857ef1b3a7b941c";
00083   }
00084 
00085   static const char* value(const  ::art_msgs::Shifter_<ContainerAllocator> &) { return value(); } 
00086   static const uint64_t static_value1 = 0xdddb61d8575e01eaULL;
00087   static const uint64_t static_value2 = 0x7857ef1b3a7b941cULL;
00088 };
00089 
00090 template<class ContainerAllocator>
00091 struct DataType< ::art_msgs::Shifter_<ContainerAllocator> > {
00092   static const char* value() 
00093   {
00094     return "art_msgs/Shifter";
00095   }
00096 
00097   static const char* value(const  ::art_msgs::Shifter_<ContainerAllocator> &) { return value(); } 
00098 };
00099 
00100 template<class ContainerAllocator>
00101 struct Definition< ::art_msgs::Shifter_<ContainerAllocator> > {
00102   static const char* value() 
00103   {
00104     return "# ART shifter message\n\
00105 #\n\
00106 # Used to both request and report gear shifts.\n\
00107 \n\
00108 # $Id: Shifter.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00109 \n\
00110 # Our Arens Controls hardware mechanism requires holding the shift\n\
00111 # relay on for one second before resetting it.  A command node must\n\
00112 # request the desired gear, then wait a second before sending the\n\
00113 # Reset command.  To be safe, it should check that the shift actually\n\
00114 # occurred before continuing.\n\
00115 \n\
00116 Header  header          # standard ROS message header\n\
00117 \n\
00118 # gear numbers\n\
00119 uint8 Reset = 0         # request reset of shifter relays\n\
00120 uint8 Park = 1\n\
00121 uint8 Reverse = 2\n\
00122 uint8 Neutral = 3\n\
00123 uint8 Drive = 4\n\
00124 \n\
00125 uint8 gear              # requested or reported gear number\n\
00126 uint8 relays            # current relay values\n\
00127 \n\
00128 ================================================================================\n\
00129 MSG: std_msgs/Header\n\
00130 # Standard metadata for higher-level stamped data types.\n\
00131 # This is generally used to communicate timestamped data \n\
00132 # in a particular coordinate frame.\n\
00133 # \n\
00134 # sequence ID: consecutively increasing ID \n\
00135 uint32 seq\n\
00136 #Two-integer timestamp that is expressed as:\n\
00137 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00138 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00139 # time-handling sugar is provided by the client library\n\
00140 time stamp\n\
00141 #Frame this data is associated with\n\
00142 # 0: no frame\n\
00143 # 1: global frame\n\
00144 string frame_id\n\
00145 \n\
00146 ";
00147   }
00148 
00149   static const char* value(const  ::art_msgs::Shifter_<ContainerAllocator> &) { return value(); } 
00150 };
00151 
00152 template<class ContainerAllocator> struct HasHeader< ::art_msgs::Shifter_<ContainerAllocator> > : public TrueType {};
00153 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::Shifter_<ContainerAllocator> > : public TrueType {};
00154 } // namespace message_traits
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161 
00162 template<class ContainerAllocator> struct Serializer< ::art_msgs::Shifter_<ContainerAllocator> >
00163 {
00164   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165   {
00166     stream.next(m.header);
00167     stream.next(m.gear);
00168     stream.next(m.relays);
00169   }
00170 
00171   ROS_DECLARE_ALLINONE_SERIALIZER;
00172 }; // struct Shifter_
00173 } // namespace serialization
00174 } // namespace ros
00175 
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180 
00181 template<class ContainerAllocator>
00182 struct Printer< ::art_msgs::Shifter_<ContainerAllocator> >
00183 {
00184   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::art_msgs::Shifter_<ContainerAllocator> & v) 
00185   {
00186     s << indent << "header: ";
00187 s << std::endl;
00188     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00189     s << indent << "gear: ";
00190     Printer<uint8_t>::stream(s, indent + "  ", v.gear);
00191     s << indent << "relays: ";
00192     Printer<uint8_t>::stream(s, indent + "  ", v.relays);
00193   }
00194 };
00195 
00196 
00197 } // namespace message_operations
00198 } // namespace ros
00199 
00200 #endif // ART_MSGS_MESSAGE_SHIFTER_H
00201 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends


art_msgs
Author(s): Jack O'Quin
autogenerated on Tue Sep 24 2013 10:40:45