DigitalInputEvent.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-kobuki/doc_stacks/2012-11-15_17-55-48.690038/kobuki/kobuki_comms/msg/DigitalInputEvent.msg */
00002 #ifndef KOBUKI_COMMS_MESSAGE_DIGITALINPUTEVENT_H
00003 #define KOBUKI_COMMS_MESSAGE_DIGITALINPUTEVENT_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 kobuki_comms
00019 {
00020 template <class ContainerAllocator>
00021 struct DigitalInputEvent_ {
00022   typedef DigitalInputEvent_<ContainerAllocator> Type;
00023 
00024   DigitalInputEvent_()
00025   : values()
00026   {
00027     values.assign(false);
00028   }
00029 
00030   DigitalInputEvent_(const ContainerAllocator& _alloc)
00031   : values()
00032   {
00033     values.assign(false);
00034   }
00035 
00036   typedef boost::array<uint8_t, 4>  _values_type;
00037   boost::array<uint8_t, 4>  values;
00038 
00039 
00040   typedef boost::shared_ptr< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > Ptr;
00041   typedef boost::shared_ptr< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator>  const> ConstPtr;
00042   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00043 }; // struct DigitalInputEvent
00044 typedef  ::kobuki_comms::DigitalInputEvent_<std::allocator<void> > DigitalInputEvent;
00045 
00046 typedef boost::shared_ptr< ::kobuki_comms::DigitalInputEvent> DigitalInputEventPtr;
00047 typedef boost::shared_ptr< ::kobuki_comms::DigitalInputEvent const> DigitalInputEventConstPtr;
00048 
00049 
00050 template<typename ContainerAllocator>
00051 std::ostream& operator<<(std::ostream& s, const  ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> & v)
00052 {
00053   ros::message_operations::Printer< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> >::stream(s, "", v);
00054   return s;}
00055 
00056 } // namespace kobuki_comms
00057 
00058 namespace ros
00059 {
00060 namespace message_traits
00061 {
00062 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > : public TrueType {};
00063 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator>  const> : public TrueType {};
00064 template<class ContainerAllocator>
00065 struct MD5Sum< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > {
00066   static const char* value() 
00067   {
00068     return "93da823c8b121f8a3940ef3830c58e44";
00069   }
00070 
00071   static const char* value(const  ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> &) { return value(); } 
00072   static const uint64_t static_value1 = 0x93da823c8b121f8aULL;
00073   static const uint64_t static_value2 = 0x3940ef3830c58e44ULL;
00074 };
00075 
00076 template<class ContainerAllocator>
00077 struct DataType< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > {
00078   static const char* value() 
00079   {
00080     return "kobuki_comms/DigitalInputEvent";
00081   }
00082 
00083   static const char* value(const  ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> &) { return value(); } 
00084 };
00085 
00086 template<class ContainerAllocator>
00087 struct Definition< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > {
00088   static const char* value() 
00089   {
00090     return "# Digital input - only four pins. \n\
00091 \n\
00092 # Array of values indices represent pins 0-3 respectively.\n\
00093 bool[4] values\n\
00094 \n\
00095 ";
00096   }
00097 
00098   static const char* value(const  ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> &) { return value(); } 
00099 };
00100 
00101 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> > : public TrueType {};
00102 } // namespace message_traits
00103 } // namespace ros
00104 
00105 namespace ros
00106 {
00107 namespace serialization
00108 {
00109 
00110 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> >
00111 {
00112   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00113   {
00114     stream.next(m.values);
00115   }
00116 
00117   ROS_DECLARE_ALLINONE_SERIALIZER;
00118 }; // struct DigitalInputEvent_
00119 } // namespace serialization
00120 } // namespace ros
00121 
00122 namespace ros
00123 {
00124 namespace message_operations
00125 {
00126 
00127 template<class ContainerAllocator>
00128 struct Printer< ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> >
00129 {
00130   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::kobuki_comms::DigitalInputEvent_<ContainerAllocator> & v) 
00131   {
00132     s << indent << "values[]" << std::endl;
00133     for (size_t i = 0; i < v.values.size(); ++i)
00134     {
00135       s << indent << "  values[" << i << "]: ";
00136       Printer<uint8_t>::stream(s, indent + "  ", v.values[i]);
00137     }
00138   }
00139 };
00140 
00141 
00142 } // namespace message_operations
00143 } // namespace ros
00144 
00145 #endif // KOBUKI_COMMS_MESSAGE_DIGITALINPUTEVENT_H
00146 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends


kobuki_comms
Author(s): Daniel Stonier, 주영훈
autogenerated on Thu Nov 15 2012 18:05:16