$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-perception_pcl/doc_stacks/2013-03-01_16-23-48.157924/perception_pcl/pcl/msg/ModelCoefficients.msg */ 00002 #ifndef PCL_MESSAGE_MODELCOEFFICIENTS_H 00003 #define PCL_MESSAGE_MODELCOEFFICIENTS_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 pcl 00020 { 00021 template <class ContainerAllocator> 00022 struct ModelCoefficients_ { 00023 typedef ModelCoefficients_<ContainerAllocator> Type; 00024 00025 ModelCoefficients_() 00026 : header() 00027 , values() 00028 { 00029 } 00030 00031 ModelCoefficients_(const ContainerAllocator& _alloc) 00032 : header(_alloc) 00033 , values(_alloc) 00034 { 00035 } 00036 00037 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00038 ::std_msgs::Header_<ContainerAllocator> header; 00039 00040 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _values_type; 00041 std::vector<float, typename ContainerAllocator::template rebind<float>::other > values; 00042 00043 00044 ROS_DEPRECATED uint32_t get_values_size() const { return (uint32_t)values.size(); } 00045 ROS_DEPRECATED void set_values_size(uint32_t size) { values.resize((size_t)size); } 00046 ROS_DEPRECATED void get_values_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->values; } 00047 ROS_DEPRECATED void set_values_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->values = vec; } 00048 private: 00049 static const char* __s_getDataType_() { return "pcl/ModelCoefficients"; } 00050 public: 00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00052 00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00054 00055 private: 00056 static const char* __s_getMD5Sum_() { return "ca27dea75e72cb894cd36f9e5005e93e"; } 00057 public: 00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00059 00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00061 00062 private: 00063 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00064 float32[] values\n\ 00065 \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 "; } 00086 public: 00087 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00088 00089 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00090 00091 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00092 { 00093 ros::serialization::OStream stream(write_ptr, 1000000000); 00094 ros::serialization::serialize(stream, header); 00095 ros::serialization::serialize(stream, values); 00096 return stream.getData(); 00097 } 00098 00099 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00100 { 00101 ros::serialization::IStream stream(read_ptr, 1000000000); 00102 ros::serialization::deserialize(stream, header); 00103 ros::serialization::deserialize(stream, values); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint32_t serializationLength() const 00108 { 00109 uint32_t size = 0; 00110 size += ros::serialization::serializationLength(header); 00111 size += ros::serialization::serializationLength(values); 00112 return size; 00113 } 00114 00115 typedef boost::shared_ptr< ::pcl::ModelCoefficients_<ContainerAllocator> > Ptr; 00116 typedef boost::shared_ptr< ::pcl::ModelCoefficients_<ContainerAllocator> const> ConstPtr; 00117 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00118 }; // struct ModelCoefficients 00119 typedef ::pcl::ModelCoefficients_<std::allocator<void> > ModelCoefficients; 00120 00121 typedef boost::shared_ptr< ::pcl::ModelCoefficients> ModelCoefficientsPtr; 00122 typedef boost::shared_ptr< ::pcl::ModelCoefficients const> ModelCoefficientsConstPtr; 00123 00124 00125 template<typename ContainerAllocator> 00126 std::ostream& operator<<(std::ostream& s, const ::pcl::ModelCoefficients_<ContainerAllocator> & v) 00127 { 00128 ros::message_operations::Printer< ::pcl::ModelCoefficients_<ContainerAllocator> >::stream(s, "", v); 00129 return s;} 00130 00131 } // namespace pcl 00132 00133 namespace ros 00134 { 00135 namespace message_traits 00136 { 00137 template<class ContainerAllocator> struct IsMessage< ::pcl::ModelCoefficients_<ContainerAllocator> > : public TrueType {}; 00138 template<class ContainerAllocator> struct IsMessage< ::pcl::ModelCoefficients_<ContainerAllocator> const> : public TrueType {}; 00139 template<class ContainerAllocator> 00140 struct MD5Sum< ::pcl::ModelCoefficients_<ContainerAllocator> > { 00141 static const char* value() 00142 { 00143 return "ca27dea75e72cb894cd36f9e5005e93e"; 00144 } 00145 00146 static const char* value(const ::pcl::ModelCoefficients_<ContainerAllocator> &) { return value(); } 00147 static const uint64_t static_value1 = 0xca27dea75e72cb89ULL; 00148 static const uint64_t static_value2 = 0x4cd36f9e5005e93eULL; 00149 }; 00150 00151 template<class ContainerAllocator> 00152 struct DataType< ::pcl::ModelCoefficients_<ContainerAllocator> > { 00153 static const char* value() 00154 { 00155 return "pcl/ModelCoefficients"; 00156 } 00157 00158 static const char* value(const ::pcl::ModelCoefficients_<ContainerAllocator> &) { return value(); } 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct Definition< ::pcl::ModelCoefficients_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "Header header\n\ 00166 float32[] values\n\ 00167 \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 ::pcl::ModelCoefficients_<ContainerAllocator> &) { return value(); } 00191 }; 00192 00193 template<class ContainerAllocator> struct HasHeader< ::pcl::ModelCoefficients_<ContainerAllocator> > : public TrueType {}; 00194 template<class ContainerAllocator> struct HasHeader< const ::pcl::ModelCoefficients_<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< ::pcl::ModelCoefficients_<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.values); 00209 } 00210 00211 ROS_DECLARE_ALLINONE_SERIALIZER; 00212 }; // struct ModelCoefficients_ 00213 } // namespace serialization 00214 } // namespace ros 00215 00216 namespace ros 00217 { 00218 namespace message_operations 00219 { 00220 00221 template<class ContainerAllocator> 00222 struct Printer< ::pcl::ModelCoefficients_<ContainerAllocator> > 00223 { 00224 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pcl::ModelCoefficients_<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 << "values[]" << std::endl; 00230 for (size_t i = 0; i < v.values.size(); ++i) 00231 { 00232 s << indent << " values[" << i << "]: "; 00233 Printer<float>::stream(s, indent + " ", v.values[i]); 00234 } 00235 } 00236 }; 00237 00238 00239 } // namespace message_operations 00240 } // namespace ros 00241 00242 #endif // PCL_MESSAGE_MODELCOEFFICIENTS_H 00243