$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/Bumper.msg */ 00002 #ifndef NAO_MSGS_MESSAGE_BUMPER_H 00003 #define NAO_MSGS_MESSAGE_BUMPER_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 Bumper_ { 00022 typedef Bumper_<ContainerAllocator> Type; 00023 00024 Bumper_() 00025 : bumper(0) 00026 , state(0) 00027 { 00028 } 00029 00030 Bumper_(const ContainerAllocator& _alloc) 00031 : bumper(0) 00032 , state(0) 00033 { 00034 } 00035 00036 typedef uint8_t _bumper_type; 00037 uint8_t bumper; 00038 00039 typedef uint8_t _state_type; 00040 uint8_t state; 00041 00042 enum { right = 0 }; 00043 enum { left = 1 }; 00044 enum { stateReleased = 0 }; 00045 enum { statePressed = 1 }; 00046 00047 private: 00048 static const char* __s_getDataType_() { return "nao_msgs/Bumper"; } 00049 public: 00050 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00051 00052 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00053 00054 private: 00055 static const char* __s_getMD5Sum_() { return "4d423b2a165337e812d1b5a1cbab6b8d"; } 00056 public: 00057 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00058 00059 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00060 00061 private: 00062 static const char* __s_getMessageDefinition_() { return "# A message for Nao's bumpers on the feet\n\ 00063 \n\ 00064 uint8 bumper # which bumper (left or right)\n\ 00065 uint8 state # state of the bumper (pressed or released)\n\ 00066 \n\ 00067 uint8 right=0\n\ 00068 uint8 left=1\n\ 00069 \n\ 00070 uint8 stateReleased=0\n\ 00071 uint8 statePressed=1\n\ 00072 \n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, bumper); 00083 ros::serialization::serialize(stream, state); 00084 return stream.getData(); 00085 } 00086 00087 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00088 { 00089 ros::serialization::IStream stream(read_ptr, 1000000000); 00090 ros::serialization::deserialize(stream, bumper); 00091 ros::serialization::deserialize(stream, state); 00092 return stream.getData(); 00093 } 00094 00095 ROS_DEPRECATED virtual uint32_t serializationLength() const 00096 { 00097 uint32_t size = 0; 00098 size += ros::serialization::serializationLength(bumper); 00099 size += ros::serialization::serializationLength(state); 00100 return size; 00101 } 00102 00103 typedef boost::shared_ptr< ::nao_msgs::Bumper_<ContainerAllocator> > Ptr; 00104 typedef boost::shared_ptr< ::nao_msgs::Bumper_<ContainerAllocator> const> ConstPtr; 00105 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00106 }; // struct Bumper 00107 typedef ::nao_msgs::Bumper_<std::allocator<void> > Bumper; 00108 00109 typedef boost::shared_ptr< ::nao_msgs::Bumper> BumperPtr; 00110 typedef boost::shared_ptr< ::nao_msgs::Bumper const> BumperConstPtr; 00111 00112 00113 template<typename ContainerAllocator> 00114 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::Bumper_<ContainerAllocator> & v) 00115 { 00116 ros::message_operations::Printer< ::nao_msgs::Bumper_<ContainerAllocator> >::stream(s, "", v); 00117 return s;} 00118 00119 } // namespace nao_msgs 00120 00121 namespace ros 00122 { 00123 namespace message_traits 00124 { 00125 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::Bumper_<ContainerAllocator> > : public TrueType {}; 00126 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::Bumper_<ContainerAllocator> const> : public TrueType {}; 00127 template<class ContainerAllocator> 00128 struct MD5Sum< ::nao_msgs::Bumper_<ContainerAllocator> > { 00129 static const char* value() 00130 { 00131 return "4d423b2a165337e812d1b5a1cbab6b8d"; 00132 } 00133 00134 static const char* value(const ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00135 static const uint64_t static_value1 = 0x4d423b2a165337e8ULL; 00136 static const uint64_t static_value2 = 0x12d1b5a1cbab6b8dULL; 00137 }; 00138 00139 template<class ContainerAllocator> 00140 struct DataType< ::nao_msgs::Bumper_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "nao_msgs/Bumper"; 00144 } 00145 00146 static const char* value(const ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct Definition< ::nao_msgs::Bumper_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "# A message for Nao's bumpers on the feet\n\ 00154 \n\ 00155 uint8 bumper # which bumper (left or right)\n\ 00156 uint8 state # state of the bumper (pressed or released)\n\ 00157 \n\ 00158 uint8 right=0\n\ 00159 uint8 left=1\n\ 00160 \n\ 00161 uint8 stateReleased=0\n\ 00162 uint8 statePressed=1\n\ 00163 \n\ 00164 "; 00165 } 00166 00167 static const char* value(const ::nao_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> struct IsFixedSize< ::nao_msgs::Bumper_<ContainerAllocator> > : public TrueType {}; 00171 } // namespace message_traits 00172 } // namespace ros 00173 00174 namespace ros 00175 { 00176 namespace serialization 00177 { 00178 00179 template<class ContainerAllocator> struct Serializer< ::nao_msgs::Bumper_<ContainerAllocator> > 00180 { 00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00182 { 00183 stream.next(m.bumper); 00184 stream.next(m.state); 00185 } 00186 00187 ROS_DECLARE_ALLINONE_SERIALIZER; 00188 }; // struct Bumper_ 00189 } // namespace serialization 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace message_operations 00195 { 00196 00197 template<class ContainerAllocator> 00198 struct Printer< ::nao_msgs::Bumper_<ContainerAllocator> > 00199 { 00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::Bumper_<ContainerAllocator> & v) 00201 { 00202 s << indent << "bumper: "; 00203 Printer<uint8_t>::stream(s, indent + " ", v.bumper); 00204 s << indent << "state: "; 00205 Printer<uint8_t>::stream(s, indent + " ", v.state); 00206 } 00207 }; 00208 00209 00210 } // namespace message_operations 00211 } // namespace ros 00212 00213 #endif // NAO_MSGS_MESSAGE_BUMPER_H 00214