$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_msgs/msg/HS_distance.msg */ 00002 #ifndef SRS_MSGS_MESSAGE_HS_DISTANCE_H 00003 #define SRS_MSGS_MESSAGE_HS_DISTANCE_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 srs_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct HS_distance_ { 00022 typedef HS_distance_<ContainerAllocator> Type; 00023 00024 HS_distance_() 00025 : distance(0) 00026 { 00027 } 00028 00029 HS_distance_(const ContainerAllocator& _alloc) 00030 : distance(0) 00031 { 00032 } 00033 00034 typedef uint32_t _distance_type; 00035 uint32_t distance; 00036 00037 00038 private: 00039 static const char* __s_getDataType_() { return "srs_msgs/HS_distance"; } 00040 public: 00041 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00042 00043 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00044 00045 private: 00046 static const char* __s_getMD5Sum_() { return "b2cb89f922c5d07784b533cfabb72389"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00049 00050 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00051 00052 private: 00053 static const char* __s_getMessageDefinition_() { return "# this message contains information about the distance to the detected human in centimeters\n\ 00054 \n\ 00055 \n\ 00056 uint32 distance # this is the distance in cm\n\ 00057 \n\ 00058 "; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00061 00062 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00065 { 00066 ros::serialization::OStream stream(write_ptr, 1000000000); 00067 ros::serialization::serialize(stream, distance); 00068 return stream.getData(); 00069 } 00070 00071 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00072 { 00073 ros::serialization::IStream stream(read_ptr, 1000000000); 00074 ros::serialization::deserialize(stream, distance); 00075 return stream.getData(); 00076 } 00077 00078 ROS_DEPRECATED virtual uint32_t serializationLength() const 00079 { 00080 uint32_t size = 0; 00081 size += ros::serialization::serializationLength(distance); 00082 return size; 00083 } 00084 00085 typedef boost::shared_ptr< ::srs_msgs::HS_distance_<ContainerAllocator> > Ptr; 00086 typedef boost::shared_ptr< ::srs_msgs::HS_distance_<ContainerAllocator> const> ConstPtr; 00087 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00088 }; // struct HS_distance 00089 typedef ::srs_msgs::HS_distance_<std::allocator<void> > HS_distance; 00090 00091 typedef boost::shared_ptr< ::srs_msgs::HS_distance> HS_distancePtr; 00092 typedef boost::shared_ptr< ::srs_msgs::HS_distance const> HS_distanceConstPtr; 00093 00094 00095 template<typename ContainerAllocator> 00096 std::ostream& operator<<(std::ostream& s, const ::srs_msgs::HS_distance_<ContainerAllocator> & v) 00097 { 00098 ros::message_operations::Printer< ::srs_msgs::HS_distance_<ContainerAllocator> >::stream(s, "", v); 00099 return s;} 00100 00101 } // namespace srs_msgs 00102 00103 namespace ros 00104 { 00105 namespace message_traits 00106 { 00107 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::HS_distance_<ContainerAllocator> > : public TrueType {}; 00108 template<class ContainerAllocator> struct IsMessage< ::srs_msgs::HS_distance_<ContainerAllocator> const> : public TrueType {}; 00109 template<class ContainerAllocator> 00110 struct MD5Sum< ::srs_msgs::HS_distance_<ContainerAllocator> > { 00111 static const char* value() 00112 { 00113 return "b2cb89f922c5d07784b533cfabb72389"; 00114 } 00115 00116 static const char* value(const ::srs_msgs::HS_distance_<ContainerAllocator> &) { return value(); } 00117 static const uint64_t static_value1 = 0xb2cb89f922c5d077ULL; 00118 static const uint64_t static_value2 = 0x84b533cfabb72389ULL; 00119 }; 00120 00121 template<class ContainerAllocator> 00122 struct DataType< ::srs_msgs::HS_distance_<ContainerAllocator> > { 00123 static const char* value() 00124 { 00125 return "srs_msgs/HS_distance"; 00126 } 00127 00128 static const char* value(const ::srs_msgs::HS_distance_<ContainerAllocator> &) { return value(); } 00129 }; 00130 00131 template<class ContainerAllocator> 00132 struct Definition< ::srs_msgs::HS_distance_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "# this message contains information about the distance to the detected human in centimeters\n\ 00136 \n\ 00137 \n\ 00138 uint32 distance # this is the distance in cm\n\ 00139 \n\ 00140 "; 00141 } 00142 00143 static const char* value(const ::srs_msgs::HS_distance_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> struct IsFixedSize< ::srs_msgs::HS_distance_<ContainerAllocator> > : public TrueType {}; 00147 } // namespace message_traits 00148 } // namespace ros 00149 00150 namespace ros 00151 { 00152 namespace serialization 00153 { 00154 00155 template<class ContainerAllocator> struct Serializer< ::srs_msgs::HS_distance_<ContainerAllocator> > 00156 { 00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00158 { 00159 stream.next(m.distance); 00160 } 00161 00162 ROS_DECLARE_ALLINONE_SERIALIZER; 00163 }; // struct HS_distance_ 00164 } // namespace serialization 00165 } // namespace ros 00166 00167 namespace ros 00168 { 00169 namespace message_operations 00170 { 00171 00172 template<class ContainerAllocator> 00173 struct Printer< ::srs_msgs::HS_distance_<ContainerAllocator> > 00174 { 00175 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_msgs::HS_distance_<ContainerAllocator> & v) 00176 { 00177 s << indent << "distance: "; 00178 Printer<uint32_t>::stream(s, indent + " ", v.distance); 00179 } 00180 }; 00181 00182 00183 } // namespace message_operations 00184 } // namespace ros 00185 00186 #endif // SRS_MSGS_MESSAGE_HS_DISTANCE_H 00187