$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_env_model_msgs/msg/PlaneArray.msg */ 00002 #ifndef SRS_ENV_MODEL_MSGS_MESSAGE_PLANEARRAY_H 00003 #define SRS_ENV_MODEL_MSGS_MESSAGE_PLANEARRAY_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 "srs_env_model_msgs/PlaneDesc.h" 00019 00020 namespace srs_env_model_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct PlaneArray_ { 00024 typedef PlaneArray_<ContainerAllocator> Type; 00025 00026 PlaneArray_() 00027 : header() 00028 , planes() 00029 { 00030 } 00031 00032 PlaneArray_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , planes(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::other > _planes_type; 00042 std::vector< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::other > planes; 00043 00044 00045 ROS_DEPRECATED uint32_t get_planes_size() const { return (uint32_t)planes.size(); } 00046 ROS_DEPRECATED void set_planes_size(uint32_t size) { planes.resize((size_t)size); } 00047 ROS_DEPRECATED void get_planes_vec(std::vector< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::other > & vec) const { vec = this->planes; } 00048 ROS_DEPRECATED void set_planes_vec(const std::vector< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::other > & vec) { this->planes = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "srs_env_model_msgs/PlaneArray"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "f915b8673c2821d83cf7ad268a56dbb4"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 PlaneDesc[] planes\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: srs_env_model_msgs/PlaneDesc\n\ 00087 int32 INSERT=0 # Clear old data, insert new one\n\ 00088 int32 MODIFY=1 # Modify plane\n\ 00089 int32 REMOVE=2 # Remove data\n\ 00090 \n\ 00091 int32 id\n\ 00092 int32 flags \n\ 00093 geometry_msgs/Pose pose\n\ 00094 geometry_msgs/Vector3 scale\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: geometry_msgs/Pose\n\ 00098 # A representation of pose in free space, composed of postion and orientation. \n\ 00099 Point position\n\ 00100 Quaternion orientation\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Point\n\ 00104 # This contains the position of a point in free space\n\ 00105 float64 x\n\ 00106 float64 y\n\ 00107 float64 z\n\ 00108 \n\ 00109 ================================================================================\n\ 00110 MSG: geometry_msgs/Quaternion\n\ 00111 # This represents an orientation in free space in quaternion form.\n\ 00112 \n\ 00113 float64 x\n\ 00114 float64 y\n\ 00115 float64 z\n\ 00116 float64 w\n\ 00117 \n\ 00118 ================================================================================\n\ 00119 MSG: geometry_msgs/Vector3\n\ 00120 # This represents a vector in free space. \n\ 00121 \n\ 00122 float64 x\n\ 00123 float64 y\n\ 00124 float64 z\n\ 00125 "; } 00126 public: 00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00132 { 00133 ros::serialization::OStream stream(write_ptr, 1000000000); 00134 ros::serialization::serialize(stream, header); 00135 ros::serialization::serialize(stream, planes); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00140 { 00141 ros::serialization::IStream stream(read_ptr, 1000000000); 00142 ros::serialization::deserialize(stream, header); 00143 ros::serialization::deserialize(stream, planes); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(header); 00151 size += ros::serialization::serializationLength(planes); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct PlaneArray 00159 typedef ::srs_env_model_msgs::PlaneArray_<std::allocator<void> > PlaneArray; 00160 00161 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneArray> PlaneArrayPtr; 00162 typedef boost::shared_ptr< ::srs_env_model_msgs::PlaneArray const> PlaneArrayConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace srs_env_model_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "f915b8673c2821d83cf7ad268a56dbb4"; 00184 } 00185 00186 static const char* value(const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0xf915b8673c2821d8ULL; 00188 static const uint64_t static_value2 = 0x3cf7ad268a56dbb4ULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "srs_env_model_msgs/PlaneArray"; 00196 } 00197 00198 static const char* value(const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "Header header\n\ 00206 PlaneDesc[] planes\n\ 00207 \n\ 00208 ================================================================================\n\ 00209 MSG: std_msgs/Header\n\ 00210 # Standard metadata for higher-level stamped data types.\n\ 00211 # This is generally used to communicate timestamped data \n\ 00212 # in a particular coordinate frame.\n\ 00213 # \n\ 00214 # sequence ID: consecutively increasing ID \n\ 00215 uint32 seq\n\ 00216 #Two-integer timestamp that is expressed as:\n\ 00217 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00218 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00219 # time-handling sugar is provided by the client library\n\ 00220 time stamp\n\ 00221 #Frame this data is associated with\n\ 00222 # 0: no frame\n\ 00223 # 1: global frame\n\ 00224 string frame_id\n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: srs_env_model_msgs/PlaneDesc\n\ 00228 int32 INSERT=0 # Clear old data, insert new one\n\ 00229 int32 MODIFY=1 # Modify plane\n\ 00230 int32 REMOVE=2 # Remove data\n\ 00231 \n\ 00232 int32 id\n\ 00233 int32 flags \n\ 00234 geometry_msgs/Pose pose\n\ 00235 geometry_msgs/Vector3 scale\n\ 00236 \n\ 00237 ================================================================================\n\ 00238 MSG: geometry_msgs/Pose\n\ 00239 # A representation of pose in free space, composed of postion and orientation. \n\ 00240 Point position\n\ 00241 Quaternion orientation\n\ 00242 \n\ 00243 ================================================================================\n\ 00244 MSG: geometry_msgs/Point\n\ 00245 # This contains the position of a point in free space\n\ 00246 float64 x\n\ 00247 float64 y\n\ 00248 float64 z\n\ 00249 \n\ 00250 ================================================================================\n\ 00251 MSG: geometry_msgs/Quaternion\n\ 00252 # This represents an orientation in free space in quaternion form.\n\ 00253 \n\ 00254 float64 x\n\ 00255 float64 y\n\ 00256 float64 z\n\ 00257 float64 w\n\ 00258 \n\ 00259 ================================================================================\n\ 00260 MSG: geometry_msgs/Vector3\n\ 00261 # This represents a vector in free space. \n\ 00262 \n\ 00263 float64 x\n\ 00264 float64 y\n\ 00265 float64 z\n\ 00266 "; 00267 } 00268 00269 static const char* value(const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> &) { return value(); } 00270 }; 00271 00272 template<class ContainerAllocator> struct HasHeader< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > : public TrueType {}; 00273 template<class ContainerAllocator> struct HasHeader< const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > : public TrueType {}; 00274 } // namespace message_traits 00275 } // namespace ros 00276 00277 namespace ros 00278 { 00279 namespace serialization 00280 { 00281 00282 template<class ContainerAllocator> struct Serializer< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > 00283 { 00284 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00285 { 00286 stream.next(m.header); 00287 stream.next(m.planes); 00288 } 00289 00290 ROS_DECLARE_ALLINONE_SERIALIZER; 00291 }; // struct PlaneArray_ 00292 } // namespace serialization 00293 } // namespace ros 00294 00295 namespace ros 00296 { 00297 namespace message_operations 00298 { 00299 00300 template<class ContainerAllocator> 00301 struct Printer< ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> > 00302 { 00303 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_env_model_msgs::PlaneArray_<ContainerAllocator> & v) 00304 { 00305 s << indent << "header: "; 00306 s << std::endl; 00307 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00308 s << indent << "planes[]" << std::endl; 00309 for (size_t i = 0; i < v.planes.size(); ++i) 00310 { 00311 s << indent << " planes[" << i << "]: "; 00312 s << std::endl; 00313 s << indent; 00314 Printer< ::srs_env_model_msgs::PlaneDesc_<ContainerAllocator> >::stream(s, indent + " ", v.planes[i]); 00315 } 00316 } 00317 }; 00318 00319 00320 } // namespace message_operations 00321 } // namespace ros 00322 00323 #endif // SRS_ENV_MODEL_MSGS_MESSAGE_PLANEARRAY_H 00324