ButtonEvent.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/ButtonEvent.msg */
00002 #ifndef KOBUKI_COMMS_MESSAGE_BUTTONEVENT_H
00003 #define KOBUKI_COMMS_MESSAGE_BUTTONEVENT_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 ButtonEvent_ {
00022   typedef ButtonEvent_<ContainerAllocator> Type;
00023 
00024   ButtonEvent_()
00025   : state(0)
00026   , button(0)
00027   {
00028   }
00029 
00030   ButtonEvent_(const ContainerAllocator& _alloc)
00031   : state(0)
00032   , button(0)
00033   {
00034   }
00035 
00036   typedef uint8_t _state_type;
00037   uint8_t state;
00038 
00039   typedef uint8_t _button_type;
00040   uint8_t button;
00041 
00042   enum { Button0 = 0 };
00043   enum { Button1 = 1 };
00044   enum { Button2 = 2 };
00045   enum { RELEASED = 0 };
00046   enum { PRESSED = 1 };
00047 
00048   typedef boost::shared_ptr< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > Ptr;
00049   typedef boost::shared_ptr< ::kobuki_comms::ButtonEvent_<ContainerAllocator>  const> ConstPtr;
00050   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 }; // struct ButtonEvent
00052 typedef  ::kobuki_comms::ButtonEvent_<std::allocator<void> > ButtonEvent;
00053 
00054 typedef boost::shared_ptr< ::kobuki_comms::ButtonEvent> ButtonEventPtr;
00055 typedef boost::shared_ptr< ::kobuki_comms::ButtonEvent const> ButtonEventConstPtr;
00056 
00057 
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const  ::kobuki_comms::ButtonEvent_<ContainerAllocator> & v)
00060 {
00061   ros::message_operations::Printer< ::kobuki_comms::ButtonEvent_<ContainerAllocator> >::stream(s, "", v);
00062   return s;}
00063 
00064 } // namespace kobuki_comms
00065 
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::ButtonEvent_<ContainerAllocator>  const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > {
00074   static const char* value() 
00075   {
00076     return "627fdd6fd6471539e5190c0e4fadb9c2";
00077   }
00078 
00079   static const char* value(const  ::kobuki_comms::ButtonEvent_<ContainerAllocator> &) { return value(); } 
00080   static const uint64_t static_value1 = 0x627fdd6fd6471539ULL;
00081   static const uint64_t static_value2 = 0xe5190c0e4fadb9c2ULL;
00082 };
00083 
00084 template<class ContainerAllocator>
00085 struct DataType< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > {
00086   static const char* value() 
00087   {
00088     return "kobuki_comms/ButtonEvent";
00089   }
00090 
00091   static const char* value(const  ::kobuki_comms::ButtonEvent_<ContainerAllocator> &) { return value(); } 
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct Definition< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "# Provides a button event\n\
00099 # This message is generated whenever a button is pressed or released\n\
00100 \n\
00101 uint8 Button0 = 0\n\
00102 uint8 Button1 = 1\n\
00103 uint8 Button2 = 2\n\
00104 \n\
00105 uint8 RELEASED = 0\n\
00106 uint8 PRESSED  = 1\n\
00107 \n\
00108 uint8 state\n\
00109 uint8 button\n\
00110 \n\
00111 ";
00112   }
00113 
00114   static const char* value(const  ::kobuki_comms::ButtonEvent_<ContainerAllocator> &) { return value(); } 
00115 };
00116 
00117 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::ButtonEvent_<ContainerAllocator> > : public TrueType {};
00118 } // namespace message_traits
00119 } // namespace ros
00120 
00121 namespace ros
00122 {
00123 namespace serialization
00124 {
00125 
00126 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::ButtonEvent_<ContainerAllocator> >
00127 {
00128   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00129   {
00130     stream.next(m.state);
00131     stream.next(m.button);
00132   }
00133 
00134   ROS_DECLARE_ALLINONE_SERIALIZER;
00135 }; // struct ButtonEvent_
00136 } // namespace serialization
00137 } // namespace ros
00138 
00139 namespace ros
00140 {
00141 namespace message_operations
00142 {
00143 
00144 template<class ContainerAllocator>
00145 struct Printer< ::kobuki_comms::ButtonEvent_<ContainerAllocator> >
00146 {
00147   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::kobuki_comms::ButtonEvent_<ContainerAllocator> & v) 
00148   {
00149     s << indent << "state: ";
00150     Printer<uint8_t>::stream(s, indent + "  ", v.state);
00151     s << indent << "button: ";
00152     Printer<uint8_t>::stream(s, indent + "  ", v.button);
00153   }
00154 };
00155 
00156 
00157 } // namespace message_operations
00158 } // namespace ros
00159 
00160 #endif // KOBUKI_COMMS_MESSAGE_BUTTONEVENT_H
00161 
 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