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