$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-tum-ros-pkg/doc_stacks/2012-12-03_20-44-47.528296/tum-ros-pkg/stacks/ias_visualization/position_string_msgs/msg/PositionString.msg */ 00002 #ifndef POSITION_STRING_MSGS_MESSAGE_POSITIONSTRING_H 00003 #define POSITION_STRING_MSGS_MESSAGE_POSITIONSTRING_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 #include "geometry_msgs/Point32.h" 00019 00020 namespace position_string_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PositionString_ { 00024 typedef PositionString_<ContainerAllocator> Type; 00025 00026 PositionString_() 00027 : header() 00028 , pose() 00029 , text() 00030 { 00031 } 00032 00033 PositionString_(const ContainerAllocator& _alloc) 00034 : header(_alloc) 00035 , pose(_alloc) 00036 , text(_alloc) 00037 { 00038 } 00039 00040 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00041 ::std_msgs::Header_<ContainerAllocator> header; 00042 00043 typedef ::geometry_msgs::Point32_<ContainerAllocator> _pose_type; 00044 ::geometry_msgs::Point32_<ContainerAllocator> pose; 00045 00046 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _text_type; 00047 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > text; 00048 00049 00050 private: 00051 static const char* __s_getDataType_() { return "position_string_msgs/PositionString"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00054 00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00056 00057 private: 00058 static const char* __s_getMD5Sum_() { return "7adb59260ef1ce9ab7745ed4e7582f92"; } 00059 public: 00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00061 00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00063 00064 private: 00065 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00066 geometry_msgs/Point32 pose\n\ 00067 string text\n\ 00068 \n\ 00069 \n\ 00070 ================================================================================\n\ 00071 MSG: std_msgs/Header\n\ 00072 # Standard metadata for higher-level stamped data types.\n\ 00073 # This is generally used to communicate timestamped data \n\ 00074 # in a particular coordinate frame.\n\ 00075 # \n\ 00076 # sequence ID: consecutively increasing ID \n\ 00077 uint32 seq\n\ 00078 #Two-integer timestamp that is expressed as:\n\ 00079 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00080 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00081 # time-handling sugar is provided by the client library\n\ 00082 time stamp\n\ 00083 #Frame this data is associated with\n\ 00084 # 0: no frame\n\ 00085 # 1: global frame\n\ 00086 string frame_id\n\ 00087 \n\ 00088 ================================================================================\n\ 00089 MSG: geometry_msgs/Point32\n\ 00090 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00091 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00092 # \n\ 00093 # This recommendation is to promote interoperability. \n\ 00094 #\n\ 00095 # This message is designed to take up less space when sending\n\ 00096 # lots of points at once, as in the case of a PointCloud. \n\ 00097 \n\ 00098 float32 x\n\ 00099 float32 y\n\ 00100 float32 z\n\ 00101 "; } 00102 public: 00103 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00106 00107 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00108 { 00109 ros::serialization::OStream stream(write_ptr, 1000000000); 00110 ros::serialization::serialize(stream, header); 00111 ros::serialization::serialize(stream, pose); 00112 ros::serialization::serialize(stream, text); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, header); 00120 ros::serialization::deserialize(stream, pose); 00121 ros::serialization::deserialize(stream, text); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint32_t serializationLength() const 00126 { 00127 uint32_t size = 0; 00128 size += ros::serialization::serializationLength(header); 00129 size += ros::serialization::serializationLength(pose); 00130 size += ros::serialization::serializationLength(text); 00131 return size; 00132 } 00133 00134 typedef boost::shared_ptr< ::position_string_msgs::PositionString_<ContainerAllocator> > Ptr; 00135 typedef boost::shared_ptr< ::position_string_msgs::PositionString_<ContainerAllocator> const> ConstPtr; 00136 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00137 }; // struct PositionString 00138 typedef ::position_string_msgs::PositionString_<std::allocator<void> > PositionString; 00139 00140 typedef boost::shared_ptr< ::position_string_msgs::PositionString> PositionStringPtr; 00141 typedef boost::shared_ptr< ::position_string_msgs::PositionString const> PositionStringConstPtr; 00142 00143 00144 template<typename ContainerAllocator> 00145 std::ostream& operator<<(std::ostream& s, const ::position_string_msgs::PositionString_<ContainerAllocator> & v) 00146 { 00147 ros::message_operations::Printer< ::position_string_msgs::PositionString_<ContainerAllocator> >::stream(s, "", v); 00148 return s;} 00149 00150 } // namespace position_string_msgs 00151 00152 namespace ros 00153 { 00154 namespace message_traits 00155 { 00156 template<class ContainerAllocator> struct IsMessage< ::position_string_msgs::PositionString_<ContainerAllocator> > : public TrueType {}; 00157 template<class ContainerAllocator> struct IsMessage< ::position_string_msgs::PositionString_<ContainerAllocator> const> : public TrueType {}; 00158 template<class ContainerAllocator> 00159 struct MD5Sum< ::position_string_msgs::PositionString_<ContainerAllocator> > { 00160 static const char* value() 00161 { 00162 return "7adb59260ef1ce9ab7745ed4e7582f92"; 00163 } 00164 00165 static const char* value(const ::position_string_msgs::PositionString_<ContainerAllocator> &) { return value(); } 00166 static const uint64_t static_value1 = 0x7adb59260ef1ce9aULL; 00167 static const uint64_t static_value2 = 0xb7745ed4e7582f92ULL; 00168 }; 00169 00170 template<class ContainerAllocator> 00171 struct DataType< ::position_string_msgs::PositionString_<ContainerAllocator> > { 00172 static const char* value() 00173 { 00174 return "position_string_msgs/PositionString"; 00175 } 00176 00177 static const char* value(const ::position_string_msgs::PositionString_<ContainerAllocator> &) { return value(); } 00178 }; 00179 00180 template<class ContainerAllocator> 00181 struct Definition< ::position_string_msgs::PositionString_<ContainerAllocator> > { 00182 static const char* value() 00183 { 00184 return "Header header\n\ 00185 geometry_msgs/Point32 pose\n\ 00186 string text\n\ 00187 \n\ 00188 \n\ 00189 ================================================================================\n\ 00190 MSG: std_msgs/Header\n\ 00191 # Standard metadata for higher-level stamped data types.\n\ 00192 # This is generally used to communicate timestamped data \n\ 00193 # in a particular coordinate frame.\n\ 00194 # \n\ 00195 # sequence ID: consecutively increasing ID \n\ 00196 uint32 seq\n\ 00197 #Two-integer timestamp that is expressed as:\n\ 00198 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00199 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00200 # time-handling sugar is provided by the client library\n\ 00201 time stamp\n\ 00202 #Frame this data is associated with\n\ 00203 # 0: no frame\n\ 00204 # 1: global frame\n\ 00205 string frame_id\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: geometry_msgs/Point32\n\ 00209 # This contains the position of a point in free space(with 32 bits of precision).\n\ 00210 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00211 # \n\ 00212 # This recommendation is to promote interoperability. \n\ 00213 #\n\ 00214 # This message is designed to take up less space when sending\n\ 00215 # lots of points at once, as in the case of a PointCloud. \n\ 00216 \n\ 00217 float32 x\n\ 00218 float32 y\n\ 00219 float32 z\n\ 00220 "; 00221 } 00222 00223 static const char* value(const ::position_string_msgs::PositionString_<ContainerAllocator> &) { return value(); } 00224 }; 00225 00226 template<class ContainerAllocator> struct HasHeader< ::position_string_msgs::PositionString_<ContainerAllocator> > : public TrueType {}; 00227 template<class ContainerAllocator> struct HasHeader< const ::position_string_msgs::PositionString_<ContainerAllocator> > : public TrueType {}; 00228 } // namespace message_traits 00229 } // namespace ros 00230 00231 namespace ros 00232 { 00233 namespace serialization 00234 { 00235 00236 template<class ContainerAllocator> struct Serializer< ::position_string_msgs::PositionString_<ContainerAllocator> > 00237 { 00238 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00239 { 00240 stream.next(m.header); 00241 stream.next(m.pose); 00242 stream.next(m.text); 00243 } 00244 00245 ROS_DECLARE_ALLINONE_SERIALIZER; 00246 }; // struct PositionString_ 00247 } // namespace serialization 00248 } // namespace ros 00249 00250 namespace ros 00251 { 00252 namespace message_operations 00253 { 00254 00255 template<class ContainerAllocator> 00256 struct Printer< ::position_string_msgs::PositionString_<ContainerAllocator> > 00257 { 00258 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::position_string_msgs::PositionString_<ContainerAllocator> & v) 00259 { 00260 s << indent << "header: "; 00261 s << std::endl; 00262 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00263 s << indent << "pose: "; 00264 s << std::endl; 00265 Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00266 s << indent << "text: "; 00267 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.text); 00268 } 00269 }; 00270 00271 00272 } // namespace message_operations 00273 } // namespace ros 00274 00275 #endif // POSITION_STRING_MSGS_MESSAGE_POSITIONSTRING_H 00276