$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-alufr-humanoid_stacks/doc_stacks/2013-03-05_11-28-06.315559/nao_robot/nao_msgs/msg/TactileTouch.msg */ 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 private: 00049 static const char* __s_getDataType_() { return "nao_msgs/TactileTouch"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "b75165bf9dfed26d50ad4e3162304225"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "# A message for Nao's tactile interface (toucht buttons on the head)\n\ 00064 \n\ 00065 uint8 button # which of the three segments is touched\n\ 00066 uint8 state # pressed or released, see below\n\ 00067 \n\ 00068 uint8 buttonFront=1\n\ 00069 uint8 buttonMiddle=2\n\ 00070 uint8 buttonRear=3\n\ 00071 \n\ 00072 uint8 stateReleased=0\n\ 00073 uint8 statePressed=1\n\ 00074 \n\ 00075 "; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00082 { 00083 ros::serialization::OStream stream(write_ptr, 1000000000); 00084 ros::serialization::serialize(stream, button); 00085 ros::serialization::serialize(stream, state); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, button); 00093 ros::serialization::deserialize(stream, state); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint32_t serializationLength() const 00098 { 00099 uint32_t size = 0; 00100 size += ros::serialization::serializationLength(button); 00101 size += ros::serialization::serializationLength(state); 00102 return size; 00103 } 00104 00105 typedef boost::shared_ptr< ::nao_msgs::TactileTouch_<ContainerAllocator> > Ptr; 00106 typedef boost::shared_ptr< ::nao_msgs::TactileTouch_<ContainerAllocator> const> ConstPtr; 00107 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00108 }; // struct TactileTouch 00109 typedef ::nao_msgs::TactileTouch_<std::allocator<void> > TactileTouch; 00110 00111 typedef boost::shared_ptr< ::nao_msgs::TactileTouch> TactileTouchPtr; 00112 typedef boost::shared_ptr< ::nao_msgs::TactileTouch const> TactileTouchConstPtr; 00113 00114 00115 template<typename ContainerAllocator> 00116 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::TactileTouch_<ContainerAllocator> & v) 00117 { 00118 ros::message_operations::Printer< ::nao_msgs::TactileTouch_<ContainerAllocator> >::stream(s, "", v); 00119 return s;} 00120 00121 } // namespace nao_msgs 00122 00123 namespace ros 00124 { 00125 namespace message_traits 00126 { 00127 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TactileTouch_<ContainerAllocator> > : public TrueType {}; 00128 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::TactileTouch_<ContainerAllocator> const> : public TrueType {}; 00129 template<class ContainerAllocator> 00130 struct MD5Sum< ::nao_msgs::TactileTouch_<ContainerAllocator> > { 00131 static const char* value() 00132 { 00133 return "b75165bf9dfed26d50ad4e3162304225"; 00134 } 00135 00136 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); } 00137 static const uint64_t static_value1 = 0xb75165bf9dfed26dULL; 00138 static const uint64_t static_value2 = 0x50ad4e3162304225ULL; 00139 }; 00140 00141 template<class ContainerAllocator> 00142 struct DataType< ::nao_msgs::TactileTouch_<ContainerAllocator> > { 00143 static const char* value() 00144 { 00145 return "nao_msgs/TactileTouch"; 00146 } 00147 00148 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); } 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct Definition< ::nao_msgs::TactileTouch_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "# A message for Nao's tactile interface (toucht buttons on the head)\n\ 00156 \n\ 00157 uint8 button # which of the three segments is touched\n\ 00158 uint8 state # pressed or released, see below\n\ 00159 \n\ 00160 uint8 buttonFront=1\n\ 00161 uint8 buttonMiddle=2\n\ 00162 uint8 buttonRear=3\n\ 00163 \n\ 00164 uint8 stateReleased=0\n\ 00165 uint8 statePressed=1\n\ 00166 \n\ 00167 "; 00168 } 00169 00170 static const char* value(const ::nao_msgs::TactileTouch_<ContainerAllocator> &) { return value(); } 00171 }; 00172 00173 template<class ContainerAllocator> struct IsFixedSize< ::nao_msgs::TactileTouch_<ContainerAllocator> > : public TrueType {}; 00174 } // namespace message_traits 00175 } // namespace ros 00176 00177 namespace ros 00178 { 00179 namespace serialization 00180 { 00181 00182 template<class ContainerAllocator> struct Serializer< ::nao_msgs::TactileTouch_<ContainerAllocator> > 00183 { 00184 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00185 { 00186 stream.next(m.button); 00187 stream.next(m.state); 00188 } 00189 00190 ROS_DECLARE_ALLINONE_SERIALIZER; 00191 }; // struct TactileTouch_ 00192 } // namespace serialization 00193 } // namespace ros 00194 00195 namespace ros 00196 { 00197 namespace message_operations 00198 { 00199 00200 template<class ContainerAllocator> 00201 struct Printer< ::nao_msgs::TactileTouch_<ContainerAllocator> > 00202 { 00203 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::TactileTouch_<ContainerAllocator> & v) 00204 { 00205 s << indent << "button: "; 00206 Printer<uint8_t>::stream(s, indent + " ", v.button); 00207 s << indent << "state: "; 00208 Printer<uint8_t>::stream(s, indent + " ", v.state); 00209 } 00210 }; 00211 00212 00213 } // namespace message_operations 00214 } // namespace ros 00215 00216 #endif // NAO_MSGS_MESSAGE_TACTILETOUCH_H 00217