IOadrState.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/IOadrState.msg */
00002 #ifndef ART_MSGS_MESSAGE_IOADRSTATE_H
00003 #define ART_MSGS_MESSAGE_IOADRSTATE_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 IOadrState_ {
00023   typedef IOadrState_<ContainerAllocator> Type;
00024 
00025   IOadrState_()
00026   : header()
00027   , relays(0)
00028   , digitalB(0)
00029   , voltages()
00030   {
00031     voltages.assign(0.0);
00032   }
00033 
00034   IOadrState_(const ContainerAllocator& _alloc)
00035   : header(_alloc)
00036   , relays(0)
00037   , digitalB(0)
00038   , voltages()
00039   {
00040     voltages.assign(0.0);
00041   }
00042 
00043   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00044    ::std_msgs::Header_<ContainerAllocator>  header;
00045 
00046   typedef uint8_t _relays_type;
00047   uint8_t relays;
00048 
00049   typedef uint8_t _digitalB_type;
00050   uint8_t digitalB;
00051 
00052   typedef boost::array<float, 3>  _voltages_type;
00053   boost::array<float, 3>  voltages;
00054 
00055   enum { ENABLED = 1 };
00056   enum { RUN = 2 };
00057   enum { FLASHER = 4 };
00058   enum { ALARM = 8 };
00059   enum { LASER_FRONT = 16 };
00060   enum { LASER_TOP = 32 };
00061   enum { TURN_LEFT = 64 };
00062   enum { TURN_RIGHT = 128 };
00063   enum { N_VOLTAGES = 3 };
00064 
00065   typedef boost::shared_ptr< ::art_msgs::IOadrState_<ContainerAllocator> > Ptr;
00066   typedef boost::shared_ptr< ::art_msgs::IOadrState_<ContainerAllocator>  const> ConstPtr;
00067   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00068 }; // struct IOadrState
00069 typedef  ::art_msgs::IOadrState_<std::allocator<void> > IOadrState;
00070 
00071 typedef boost::shared_ptr< ::art_msgs::IOadrState> IOadrStatePtr;
00072 typedef boost::shared_ptr< ::art_msgs::IOadrState const> IOadrStateConstPtr;
00073 
00074 
00075 template<typename ContainerAllocator>
00076 std::ostream& operator<<(std::ostream& s, const  ::art_msgs::IOadrState_<ContainerAllocator> & v)
00077 {
00078   ros::message_operations::Printer< ::art_msgs::IOadrState_<ContainerAllocator> >::stream(s, "", v);
00079   return s;}
00080 
00081 } // namespace art_msgs
00082 
00083 namespace ros
00084 {
00085 namespace message_traits
00086 {
00087 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {};
00088 template<class ContainerAllocator> struct IsMessage< ::art_msgs::IOadrState_<ContainerAllocator>  const> : public TrueType {};
00089 template<class ContainerAllocator>
00090 struct MD5Sum< ::art_msgs::IOadrState_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "990cf1675736cc78e57b4a0463dd540e";
00094   }
00095 
00096   static const char* value(const  ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 
00097   static const uint64_t static_value1 = 0x990cf1675736cc78ULL;
00098   static const uint64_t static_value2 = 0xe57b4a0463dd540eULL;
00099 };
00100 
00101 template<class ContainerAllocator>
00102 struct DataType< ::art_msgs::IOadrState_<ContainerAllocator> > {
00103   static const char* value() 
00104   {
00105     return "art_msgs/IOadrState";
00106   }
00107 
00108   static const char* value(const  ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 
00109 };
00110 
00111 template<class ContainerAllocator>
00112 struct Definition< ::art_msgs::IOadrState_<ContainerAllocator> > {
00113   static const char* value() 
00114   {
00115     return "# NCD IOADR8x controller state message for ART vehicle\n\
00116 \n\
00117 # $Id: IOadrState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00118 \n\
00119 Header  header\n\
00120 \n\
00121 # constant bit values for relays and digitalB inputs\n\
00122 uint8 ENABLED      =   1\n\
00123 uint8 RUN          =   2\n\
00124 uint8 FLASHER      =   4\n\
00125 uint8 ALARM        =   8\n\
00126 uint8 LASER_FRONT  =  16\n\
00127 uint8 LASER_TOP    =  32\n\
00128 uint8 TURN_LEFT    =  64\n\
00129 uint8 TURN_RIGHT   = 128\n\
00130 \n\
00131 uint8   relays                  # current relays settings\n\
00132 \n\
00133 uint8   digitalB                # digital input B\n\
00134 \n\
00135 # generally, voltages[0] is the steering position sensor\n\
00136 int32 N_VOLTAGES = 3            # number of analog voltages\n\
00137 float32[3] voltages             # analog voltages [A, B, C]\n\
00138 \n\
00139 ================================================================================\n\
00140 MSG: std_msgs/Header\n\
00141 # Standard metadata for higher-level stamped data types.\n\
00142 # This is generally used to communicate timestamped data \n\
00143 # in a particular coordinate frame.\n\
00144 # \n\
00145 # sequence ID: consecutively increasing ID \n\
00146 uint32 seq\n\
00147 #Two-integer timestamp that is expressed as:\n\
00148 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00149 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00150 # time-handling sugar is provided by the client library\n\
00151 time stamp\n\
00152 #Frame this data is associated with\n\
00153 # 0: no frame\n\
00154 # 1: global frame\n\
00155 string frame_id\n\
00156 \n\
00157 ";
00158   }
00159 
00160   static const char* value(const  ::art_msgs::IOadrState_<ContainerAllocator> &) { return value(); } 
00161 };
00162 
00163 template<class ContainerAllocator> struct HasHeader< ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {};
00164 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::IOadrState_<ContainerAllocator> > : public TrueType {};
00165 } // namespace message_traits
00166 } // namespace ros
00167 
00168 namespace ros
00169 {
00170 namespace serialization
00171 {
00172 
00173 template<class ContainerAllocator> struct Serializer< ::art_msgs::IOadrState_<ContainerAllocator> >
00174 {
00175   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00176   {
00177     stream.next(m.header);
00178     stream.next(m.relays);
00179     stream.next(m.digitalB);
00180     stream.next(m.voltages);
00181   }
00182 
00183   ROS_DECLARE_ALLINONE_SERIALIZER;
00184 }; // struct IOadrState_
00185 } // namespace serialization
00186 } // namespace ros
00187 
00188 namespace ros
00189 {
00190 namespace message_operations
00191 {
00192 
00193 template<class ContainerAllocator>
00194 struct Printer< ::art_msgs::IOadrState_<ContainerAllocator> >
00195 {
00196   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::art_msgs::IOadrState_<ContainerAllocator> & v) 
00197   {
00198     s << indent << "header: ";
00199 s << std::endl;
00200     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00201     s << indent << "relays: ";
00202     Printer<uint8_t>::stream(s, indent + "  ", v.relays);
00203     s << indent << "digitalB: ";
00204     Printer<uint8_t>::stream(s, indent + "  ", v.digitalB);
00205     s << indent << "voltages[]" << std::endl;
00206     for (size_t i = 0; i < v.voltages.size(); ++i)
00207     {
00208       s << indent << "  voltages[" << i << "]: ";
00209       Printer<float>::stream(s, indent + "  ", v.voltages[i]);
00210     }
00211   }
00212 };
00213 
00214 
00215 } // namespace message_operations
00216 } // namespace ros
00217 
00218 #endif // ART_MSGS_MESSAGE_IOADRSTATE_H
00219 


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