Go to the documentation of this file.00001
00002 #ifndef NAO_MSGS_MESSAGE_TACTILETOUCH_H
00003 #define NAO_MSGS_MESSAGE_TACTILETOUCH_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 nao_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct TactileTouch_ {
00022 typedef TactileTouch_<ContainerAllocator> Type;
00023
00024 TactileTouch_()
00025 : button(0)
00026 , state(0)
00027 {
00028 }
00029
00030 TactileTouch_(const ContainerAllocator& _alloc)
00031 : button(0)
00032 , state(0)
00033 {
00034 }
00035
00036 typedef uint8_t _button_type;
00037 uint8_t button;
00038
00039 typedef uint8_t _state_type;
00040 uint8_t state;
00041
00042 enum { buttonFront = 1 };
00043 enum { buttonMiddle = 2 };
00044 enum { buttonRear = 3 };
00045 enum { stateReleased = 0 };
00046 enum { statePressed = 1 };
00047
00048 typedef boost::shared_ptr< ::nao_msgs::TactileTouch_<ContainerAllocator> > Ptr;
00049 typedef boost::shared_ptr< ::nao_msgs::TactileTouch_<ContainerAllocator> const> ConstPtr;
00050 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00051 };
00052 typedef ::nao_msgs::TactileTouch_<std::allocator<void> > TactileTouch;
00053
00054 typedef boost::shared_ptr< ::nao_msgs::TactileTouch> TactileTouchPtr;
00055 typedef boost::shared_ptr< ::nao_msgs::TactileTouch const> TactileTouchConstPtr;
00056
00057
00058 template<typename ContainerAllocator>
00059 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::TactileTouch_<ContainerAllocator> & v)
00060 {
00061 ros::message_operations::Printer< ::nao_msgs::TactileTouch_<ContainerAllocator> >::stream(s, "", v);
00062 return s;}
00063
00064 }
00065
00066 namespace ros
00067 {
00068 namespace message_traits
00069 {
00070 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TactileTouch_<ContainerAllocator> > : public TrueType {};
00071 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TactileTouch_<ContainerAllocator> const> : public TrueType {};
00072 template<class ContainerAllocator>
00073 struct MD5Sum< ::nao_msgs::TactileTouch_<ContainerAllocator> > {
00074 static const char* value()
00075 {
00076 return "b75165bf9dfed26d50ad4e3162304225";
00077 }
00078
00079 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); }
00080 static const uint64_t static_value1 = 0xb75165bf9dfed26dULL;
00081 static const uint64_t static_value2 = 0x50ad4e3162304225ULL;
00082 };
00083
00084 template<class ContainerAllocator>
00085 struct DataType< ::nao_msgs::TactileTouch_<ContainerAllocator> > {
00086 static const char* value()
00087 {
00088 return "nao_msgs/TactileTouch";
00089 }
00090
00091 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); }
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct Definition< ::nao_msgs::TactileTouch_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "# A message for Nao's tactile interface (toucht buttons on the head)\n\
00099 \n\
00100 uint8 button # which of the three segments is touched\n\
00101 uint8 state # pressed or released, see below\n\
00102 \n\
00103 uint8 buttonFront=1\n\
00104 uint8 buttonMiddle=2\n\
00105 uint8 buttonRear=3\n\
00106 \n\
00107 uint8 stateReleased=0\n\
00108 uint8 statePressed=1\n\
00109 \n\
00110 ";
00111 }
00112
00113 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); }
00114 };
00115
00116 template<class ContainerAllocator> struct IsFixedSize< ::nao_msgs::TactileTouch_<ContainerAllocator> > : public TrueType {};
00117 }
00118 }
00119
00120 namespace ros
00121 {
00122 namespace serialization
00123 {
00124
00125 template<class ContainerAllocator> struct Serializer< ::nao_msgs::TactileTouch_<ContainerAllocator> >
00126 {
00127 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00128 {
00129 stream.next(m.button);
00130 stream.next(m.state);
00131 }
00132
00133 ROS_DECLARE_ALLINONE_SERIALIZER;
00134 };
00135 }
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_operations
00141 {
00142
00143 template<class ContainerAllocator>
00144 struct Printer< ::nao_msgs::TactileTouch_<ContainerAllocator> >
00145 {
00146 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::TactileTouch_<ContainerAllocator> & v)
00147 {
00148 s << indent << "button: ";
00149 Printer<uint8_t>::stream(s, indent + " ", v.button);
00150 s << indent << "state: ";
00151 Printer<uint8_t>::stream(s, indent + " ", v.state);
00152 }
00153 };
00154
00155
00156 }
00157 }
00158
00159 #endif // NAO_MSGS_MESSAGE_TACTILETOUCH_H
00160