$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pal-ros-pkg/doc_stacks/2013-03-01_16-20-37.495693/reem_msgs/msg/Bumper.msg */ 00002 #ifndef REEM_MSGS_MESSAGE_BUMPER_H 00003 #define REEM_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 #include "std_msgs/Header.h" 00018 00019 namespace reem_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct Bumper_ { 00023 typedef Bumper_<ContainerAllocator> Type; 00024 00025 Bumper_() 00026 : header() 00027 , is_pressed(false) 00028 { 00029 } 00030 00031 Bumper_(const ContainerAllocator& _alloc) 00032 : header(_alloc) 00033 , is_pressed(false) 00034 { 00035 } 00036 00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00038 ::std_msgs::Header_<ContainerAllocator> header; 00039 00040 typedef uint8_t _is_pressed_type; 00041 uint8_t is_pressed; 00042 00043 00044 private: 00045 static const char* __s_getDataType_() { return "reem_msgs/Bumper"; } 00046 public: 00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00048 00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00050 00051 private: 00052 static const char* __s_getMD5Sum_() { return "7feed261fab09e5d0ce6318f9f9ed4b9"; } 00053 public: 00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00055 00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00057 00058 private: 00059 static const char* __s_getMessageDefinition_() { return "#ROS header\n\ 00060 Header header\n\ 00061 \n\ 00062 #Whether the bumper is being pressed\n\ 00063 bool is_pressed\n\ 00064 \n\ 00065 ================================================================================\n\ 00066 MSG: std_msgs/Header\n\ 00067 # Standard metadata for higher-level stamped data types.\n\ 00068 # This is generally used to communicate timestamped data \n\ 00069 # in a particular coordinate frame.\n\ 00070 # \n\ 00071 # sequence ID: consecutively increasing ID \n\ 00072 uint32 seq\n\ 00073 #Two-integer timestamp that is expressed as:\n\ 00074 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00075 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00076 # time-handling sugar is provided by the client library\n\ 00077 time stamp\n\ 00078 #Frame this data is associated with\n\ 00079 # 0: no frame\n\ 00080 # 1: global frame\n\ 00081 string frame_id\n\ 00082 \n\ 00083 "; } 00084 public: 00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00086 00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00090 { 00091 ros::serialization::OStream stream(write_ptr, 1000000000); 00092 ros::serialization::serialize(stream, header); 00093 ros::serialization::serialize(stream, is_pressed); 00094 return stream.getData(); 00095 } 00096 00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00098 { 00099 ros::serialization::IStream stream(read_ptr, 1000000000); 00100 ros::serialization::deserialize(stream, header); 00101 ros::serialization::deserialize(stream, is_pressed); 00102 return stream.getData(); 00103 } 00104 00105 ROS_DEPRECATED virtual uint32_t serializationLength() const 00106 { 00107 uint32_t size = 0; 00108 size += ros::serialization::serializationLength(header); 00109 size += ros::serialization::serializationLength(is_pressed); 00110 return size; 00111 } 00112 00113 typedef boost::shared_ptr< ::reem_msgs::Bumper_<ContainerAllocator> > Ptr; 00114 typedef boost::shared_ptr< ::reem_msgs::Bumper_<ContainerAllocator> const> ConstPtr; 00115 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00116 }; // struct Bumper 00117 typedef ::reem_msgs::Bumper_<std::allocator<void> > Bumper; 00118 00119 typedef boost::shared_ptr< ::reem_msgs::Bumper> BumperPtr; 00120 typedef boost::shared_ptr< ::reem_msgs::Bumper const> BumperConstPtr; 00121 00122 00123 template<typename ContainerAllocator> 00124 std::ostream& operator<<(std::ostream& s, const ::reem_msgs::Bumper_<ContainerAllocator> & v) 00125 { 00126 ros::message_operations::Printer< ::reem_msgs::Bumper_<ContainerAllocator> >::stream(s, "", v); 00127 return s;} 00128 00129 } // namespace reem_msgs 00130 00131 namespace ros 00132 { 00133 namespace message_traits 00134 { 00135 template<class ContainerAllocator> struct IsMessage< ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {}; 00136 template<class ContainerAllocator> struct IsMessage< ::reem_msgs::Bumper_<ContainerAllocator> const> : public TrueType {}; 00137 template<class ContainerAllocator> 00138 struct MD5Sum< ::reem_msgs::Bumper_<ContainerAllocator> > { 00139 static const char* value() 00140 { 00141 return "7feed261fab09e5d0ce6318f9f9ed4b9"; 00142 } 00143 00144 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00145 static const uint64_t static_value1 = 0x7feed261fab09e5dULL; 00146 static const uint64_t static_value2 = 0x0ce6318f9f9ed4b9ULL; 00147 }; 00148 00149 template<class ContainerAllocator> 00150 struct DataType< ::reem_msgs::Bumper_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "reem_msgs/Bumper"; 00154 } 00155 00156 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00157 }; 00158 00159 template<class ContainerAllocator> 00160 struct Definition< ::reem_msgs::Bumper_<ContainerAllocator> > { 00161 static const char* value() 00162 { 00163 return "#ROS header\n\ 00164 Header header\n\ 00165 \n\ 00166 #Whether the bumper is being pressed\n\ 00167 bool is_pressed\n\ 00168 \n\ 00169 ================================================================================\n\ 00170 MSG: std_msgs/Header\n\ 00171 # Standard metadata for higher-level stamped data types.\n\ 00172 # This is generally used to communicate timestamped data \n\ 00173 # in a particular coordinate frame.\n\ 00174 # \n\ 00175 # sequence ID: consecutively increasing ID \n\ 00176 uint32 seq\n\ 00177 #Two-integer timestamp that is expressed as:\n\ 00178 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00179 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00180 # time-handling sugar is provided by the client library\n\ 00181 time stamp\n\ 00182 #Frame this data is associated with\n\ 00183 # 0: no frame\n\ 00184 # 1: global frame\n\ 00185 string frame_id\n\ 00186 \n\ 00187 "; 00188 } 00189 00190 static const char* value(const ::reem_msgs::Bumper_<ContainerAllocator> &) { return value(); } 00191 }; 00192 00193 template<class ContainerAllocator> struct HasHeader< ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {}; 00194 template<class ContainerAllocator> struct HasHeader< const ::reem_msgs::Bumper_<ContainerAllocator> > : public TrueType {}; 00195 } // namespace message_traits 00196 } // namespace ros 00197 00198 namespace ros 00199 { 00200 namespace serialization 00201 { 00202 00203 template<class ContainerAllocator> struct Serializer< ::reem_msgs::Bumper_<ContainerAllocator> > 00204 { 00205 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00206 { 00207 stream.next(m.header); 00208 stream.next(m.is_pressed); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct Bumper_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::reem_msgs::Bumper_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::reem_msgs::Bumper_<ContainerAllocator> & v) 00225 { 00226 s << indent << "header: "; 00227 s << std::endl; 00228 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00229 s << indent << "is_pressed: "; 00230 Printer<uint8_t>::stream(s, indent + " ", v.is_pressed); 00231 } 00232 }; 00233 00234 00235 } // namespace message_operations 00236 } // namespace ros 00237 00238 #endif // REEM_MSGS_MESSAGE_BUMPER_H 00239