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