KeyboardInput.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/KeyboardInput.msg */
00002 #ifndef KOBUKI_COMMS_MESSAGE_KEYBOARDINPUT_H
00003 #define KOBUKI_COMMS_MESSAGE_KEYBOARDINPUT_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 KeyboardInput_ {
00022   typedef KeyboardInput_<ContainerAllocator> Type;
00023 
00024   KeyboardInput_()
00025   : pressedKey(0)
00026   {
00027   }
00028 
00029   KeyboardInput_(const ContainerAllocator& _alloc)
00030   : pressedKey(0)
00031   {
00032   }
00033 
00034   typedef uint8_t _pressedKey_type;
00035   uint8_t pressedKey;
00036 
00037   enum { KeyCode_Right = 67 };
00038   enum { KeyCode_Left = 68 };
00039   enum { KeyCode_Up = 65 };
00040   enum { KeyCode_Down = 66 };
00041   enum { KeyCode_Space = 32 };
00042   enum { KeyCode_Enable = 101 };
00043   enum { KeyCode_Disable = 100 };
00044 
00045   typedef boost::shared_ptr< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::kobuki_comms::KeyboardInput_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct KeyboardInput
00049 typedef  ::kobuki_comms::KeyboardInput_<std::allocator<void> > KeyboardInput;
00050 
00051 typedef boost::shared_ptr< ::kobuki_comms::KeyboardInput> KeyboardInputPtr;
00052 typedef boost::shared_ptr< ::kobuki_comms::KeyboardInput const> KeyboardInputConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::kobuki_comms::KeyboardInput_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::kobuki_comms::KeyboardInput_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace kobuki_comms
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::kobuki_comms::KeyboardInput_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "9288b95cb32b48719d84d696be253401";
00074   }
00075 
00076   static const char* value(const  ::kobuki_comms::KeyboardInput_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0x9288b95cb32b4871ULL;
00078   static const uint64_t static_value2 = 0x9d84d696be253401ULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "kobuki_comms/KeyboardInput";
00086   }
00087 
00088   static const char* value(const  ::kobuki_comms::KeyboardInput_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "# KEYBOARD INPUT\n\
00096 # \n\
00097 # Keycodes to be transferred for remote teleops.\n\
00098 \n\
00099 uint8  KeyCode_Right    = 67     # 0x43\n\
00100 uint8  KeyCode_Left     = 68     # 0x44\n\
00101 uint8  KeyCode_Up       = 65     # 0x41\n\
00102 uint8  KeyCode_Down     = 66     # 0x42\n\
00103 uint8  KeyCode_Space    = 32     # 0x20\n\
00104 uint8  KeyCode_Enable   = 101    # 0x65, 'e'\n\
00105 uint8  KeyCode_Disable  = 100    # 0x64, 'd'\n\
00106 \n\
00107 uint8 pressedKey\n\
00108 ";
00109   }
00110 
00111   static const char* value(const  ::kobuki_comms::KeyboardInput_<ContainerAllocator> &) { return value(); } 
00112 };
00113 
00114 template<class ContainerAllocator> struct IsFixedSize< ::kobuki_comms::KeyboardInput_<ContainerAllocator> > : public TrueType {};
00115 } // namespace message_traits
00116 } // namespace ros
00117 
00118 namespace ros
00119 {
00120 namespace serialization
00121 {
00122 
00123 template<class ContainerAllocator> struct Serializer< ::kobuki_comms::KeyboardInput_<ContainerAllocator> >
00124 {
00125   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00126   {
00127     stream.next(m.pressedKey);
00128   }
00129 
00130   ROS_DECLARE_ALLINONE_SERIALIZER;
00131 }; // struct KeyboardInput_
00132 } // namespace serialization
00133 } // namespace ros
00134 
00135 namespace ros
00136 {
00137 namespace message_operations
00138 {
00139 
00140 template<class ContainerAllocator>
00141 struct Printer< ::kobuki_comms::KeyboardInput_<ContainerAllocator> >
00142 {
00143   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::kobuki_comms::KeyboardInput_<ContainerAllocator> & v) 
00144   {
00145     s << indent << "pressedKey: ";
00146     Printer<uint8_t>::stream(s, indent + "  ", v.pressedKey);
00147   }
00148 };
00149 
00150 
00151 } // namespace message_operations
00152 } // namespace ros
00153 
00154 #endif // KOBUKI_COMMS_MESSAGE_KEYBOARDINPUT_H
00155 
 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