$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-common_msgs/doc_stacks/2013-03-01_14-58-52.505545/common_msgs/geometry_msgs/msg/Point32.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_POINT32_H 00003 #define GEOMETRY_MSGS_MESSAGE_POINT32_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 geometry_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct Point32_ { 00022 typedef Point32_<ContainerAllocator> Type; 00023 00024 Point32_() 00025 : x(0.0) 00026 , y(0.0) 00027 , z(0.0) 00028 { 00029 } 00030 00031 Point32_(const ContainerAllocator& _alloc) 00032 : x(0.0) 00033 , y(0.0) 00034 , z(0.0) 00035 { 00036 } 00037 00038 typedef float _x_type; 00039 float x; 00040 00041 typedef float _y_type; 00042 float y; 00043 00044 typedef float _z_type; 00045 float z; 00046 00047 00048 private: 00049 static const char* __s_getDataType_() { return "geometry_msgs/Point32"; } 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 "cc153912f1453b708d221682bc23d9ac"; } 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 "# This contains the position of a point in free space(with 32 bits of precision).\n\ 00064 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00065 # \n\ 00066 # This recommendation is to promote interoperability. \n\ 00067 #\n\ 00068 # This message is designed to take up less space when sending\n\ 00069 # lots of points at once, as in the case of a PointCloud. \n\ 00070 \n\ 00071 float32 x\n\ 00072 float32 y\n\ 00073 float32 z\n\ 00074 "; } 00075 public: 00076 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00079 00080 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00081 { 00082 ros::serialization::OStream stream(write_ptr, 1000000000); 00083 ros::serialization::serialize(stream, x); 00084 ros::serialization::serialize(stream, y); 00085 ros::serialization::serialize(stream, z); 00086 return stream.getData(); 00087 } 00088 00089 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00090 { 00091 ros::serialization::IStream stream(read_ptr, 1000000000); 00092 ros::serialization::deserialize(stream, x); 00093 ros::serialization::deserialize(stream, y); 00094 ros::serialization::deserialize(stream, z); 00095 return stream.getData(); 00096 } 00097 00098 ROS_DEPRECATED virtual uint32_t serializationLength() const 00099 { 00100 uint32_t size = 0; 00101 size += ros::serialization::serializationLength(x); 00102 size += ros::serialization::serializationLength(y); 00103 size += ros::serialization::serializationLength(z); 00104 return size; 00105 } 00106 00107 typedef boost::shared_ptr< ::geometry_msgs::Point32_<ContainerAllocator> > Ptr; 00108 typedef boost::shared_ptr< ::geometry_msgs::Point32_<ContainerAllocator> const> ConstPtr; 00109 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00110 }; // struct Point32 00111 typedef ::geometry_msgs::Point32_<std::allocator<void> > Point32; 00112 00113 typedef boost::shared_ptr< ::geometry_msgs::Point32> Point32Ptr; 00114 typedef boost::shared_ptr< ::geometry_msgs::Point32 const> Point32ConstPtr; 00115 00116 00117 template<typename ContainerAllocator> 00118 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Point32_<ContainerAllocator> & v) 00119 { 00120 ros::message_operations::Printer< ::geometry_msgs::Point32_<ContainerAllocator> >::stream(s, "", v); 00121 return s;} 00122 00123 } // namespace geometry_msgs 00124 00125 namespace ros 00126 { 00127 namespace message_traits 00128 { 00129 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Point32_<ContainerAllocator> > : public TrueType {}; 00130 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Point32_<ContainerAllocator> const> : public TrueType {}; 00131 template<class ContainerAllocator> 00132 struct MD5Sum< ::geometry_msgs::Point32_<ContainerAllocator> > { 00133 static const char* value() 00134 { 00135 return "cc153912f1453b708d221682bc23d9ac"; 00136 } 00137 00138 static const char* value(const ::geometry_msgs::Point32_<ContainerAllocator> &) { return value(); } 00139 static const uint64_t static_value1 = 0xcc153912f1453b70ULL; 00140 static const uint64_t static_value2 = 0x8d221682bc23d9acULL; 00141 }; 00142 00143 template<class ContainerAllocator> 00144 struct DataType< ::geometry_msgs::Point32_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "geometry_msgs/Point32"; 00148 } 00149 00150 static const char* value(const ::geometry_msgs::Point32_<ContainerAllocator> &) { return value(); } 00151 }; 00152 00153 template<class ContainerAllocator> 00154 struct Definition< ::geometry_msgs::Point32_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "# This contains the position of a point in free space(with 32 bits of precision).\n\ 00158 # It is recommeded to use Point wherever possible instead of Point32. \n\ 00159 # \n\ 00160 # This recommendation is to promote interoperability. \n\ 00161 #\n\ 00162 # This message is designed to take up less space when sending\n\ 00163 # lots of points at once, as in the case of a PointCloud. \n\ 00164 \n\ 00165 float32 x\n\ 00166 float32 y\n\ 00167 float32 z\n\ 00168 "; 00169 } 00170 00171 static const char* value(const ::geometry_msgs::Point32_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Point32_<ContainerAllocator> > : public TrueType {}; 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Point32_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.x); 00188 stream.next(m.y); 00189 stream.next(m.z); 00190 } 00191 00192 ROS_DECLARE_ALLINONE_SERIALIZER; 00193 }; // struct Point32_ 00194 } // namespace serialization 00195 } // namespace ros 00196 00197 namespace ros 00198 { 00199 namespace message_operations 00200 { 00201 00202 template<class ContainerAllocator> 00203 struct Printer< ::geometry_msgs::Point32_<ContainerAllocator> > 00204 { 00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Point32_<ContainerAllocator> & v) 00206 { 00207 s << indent << "x: "; 00208 Printer<float>::stream(s, indent + " ", v.x); 00209 s << indent << "y: "; 00210 Printer<float>::stream(s, indent + " ", v.y); 00211 s << indent << "z: "; 00212 Printer<float>::stream(s, indent + " ", v.z); 00213 } 00214 }; 00215 00216 00217 } // namespace message_operations 00218 } // namespace ros 00219 00220 #endif // GEOMETRY_MSGS_MESSAGE_POINT32_H 00221