DriverState.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/DriverState.msg */
00002 #ifndef ART_MSGS_MESSAGE_DRIVERSTATE_H
00003 #define ART_MSGS_MESSAGE_DRIVERSTATE_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 DriverState_ {
00022   typedef DriverState_<ContainerAllocator> Type;
00023 
00024   DriverState_()
00025   : state(0)
00026   {
00027   }
00028 
00029   DriverState_(const ContainerAllocator& _alloc)
00030   : state(0)
00031   {
00032   }
00033 
00034   typedef uint32_t _state_type;
00035   uint32_t state;
00036 
00037   enum { CLOSED = 0 };
00038   enum { OPENED = 1 };
00039   enum { RUNNING = 2 };
00040 
00041   typedef boost::shared_ptr< ::art_msgs::DriverState_<ContainerAllocator> > Ptr;
00042   typedef boost::shared_ptr< ::art_msgs::DriverState_<ContainerAllocator>  const> ConstPtr;
00043   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00044 }; // struct DriverState
00045 typedef  ::art_msgs::DriverState_<std::allocator<void> > DriverState;
00046 
00047 typedef boost::shared_ptr< ::art_msgs::DriverState> DriverStatePtr;
00048 typedef boost::shared_ptr< ::art_msgs::DriverState const> DriverStateConstPtr;
00049 
00050 
00051 template<typename ContainerAllocator>
00052 std::ostream& operator<<(std::ostream& s, const  ::art_msgs::DriverState_<ContainerAllocator> & v)
00053 {
00054   ros::message_operations::Printer< ::art_msgs::DriverState_<ContainerAllocator> >::stream(s, "", v);
00055   return s;}
00056 
00057 } // namespace art_msgs
00058 
00059 namespace ros
00060 {
00061 namespace message_traits
00062 {
00063 template<class ContainerAllocator> struct IsMessage< ::art_msgs::DriverState_<ContainerAllocator> > : public TrueType {};
00064 template<class ContainerAllocator> struct IsMessage< ::art_msgs::DriverState_<ContainerAllocator>  const> : public TrueType {};
00065 template<class ContainerAllocator>
00066 struct MD5Sum< ::art_msgs::DriverState_<ContainerAllocator> > {
00067   static const char* value() 
00068   {
00069     return "92d8e6361001072f038b293728a430f0";
00070   }
00071 
00072   static const char* value(const  ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); } 
00073   static const uint64_t static_value1 = 0x92d8e6361001072fULL;
00074   static const uint64_t static_value2 = 0x038b293728a430f0ULL;
00075 };
00076 
00077 template<class ContainerAllocator>
00078 struct DataType< ::art_msgs::DriverState_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "art_msgs/DriverState";
00082   }
00083 
00084   static const char* value(const  ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); } 
00085 };
00086 
00087 template<class ContainerAllocator>
00088 struct Definition< ::art_msgs::DriverState_<ContainerAllocator> > {
00089   static const char* value() 
00090   {
00091     return "# ART driver states -- similar to those in driver_base.\n\
00092 \n\
00093 # $Id: DriverState.msg 1161 2011-03-26 02:10:49Z jack.oquin $\n\
00094 \n\
00095 # constants\n\
00096 uint32 CLOSED = 0       # Not connected to the hardware\n\
00097 uint32 OPENED = 1       # Passively connected to the hardware\n\
00098 uint32 RUNNING = 2      # Sending hardware commands\n\
00099 \n\
00100 uint32 state\n\
00101 \n\
00102 ";
00103   }
00104 
00105   static const char* value(const  ::art_msgs::DriverState_<ContainerAllocator> &) { return value(); } 
00106 };
00107 
00108 template<class ContainerAllocator> struct IsFixedSize< ::art_msgs::DriverState_<ContainerAllocator> > : public TrueType {};
00109 } // namespace message_traits
00110 } // namespace ros
00111 
00112 namespace ros
00113 {
00114 namespace serialization
00115 {
00116 
00117 template<class ContainerAllocator> struct Serializer< ::art_msgs::DriverState_<ContainerAllocator> >
00118 {
00119   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00120   {
00121     stream.next(m.state);
00122   }
00123 
00124   ROS_DECLARE_ALLINONE_SERIALIZER;
00125 }; // struct DriverState_
00126 } // namespace serialization
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133 
00134 template<class ContainerAllocator>
00135 struct Printer< ::art_msgs::DriverState_<ContainerAllocator> >
00136 {
00137   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::art_msgs::DriverState_<ContainerAllocator> & v) 
00138   {
00139     s << indent << "state: ";
00140     Printer<uint32_t>::stream(s, indent + "  ", v.state);
00141   }
00142 };
00143 
00144 
00145 } // namespace message_operations
00146 } // namespace ros
00147 
00148 #endif // ART_MSGS_MESSAGE_DRIVERSTATE_H
00149 


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