00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_POINTSTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_POINTSTAMPED_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/Point.h"
00019
00020 namespace geometry_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct PointStamped_ {
00024 typedef PointStamped_<ContainerAllocator> Type;
00025
00026 PointStamped_()
00027 : header()
00028 , point()
00029 {
00030 }
00031
00032 PointStamped_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , point(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::geometry_msgs::Point_<ContainerAllocator> _point_type;
00042 ::geometry_msgs::Point_<ContainerAllocator> point;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "geometry_msgs/PointStamped"; }
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 "c63aecb41bfdfd6b7e1fac37c7cbe7bf"; }
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 represents a Point with reference coordinate frame and timestamp\n\
00061 Header header\n\
00062 Point point\n\
00063 \n\
00064 ================================================================================\n\
00065 MSG: std_msgs/Header\n\
00066 # Standard metadata for higher-level stamped data types.\n\
00067 # This is generally used to communicate timestamped data \n\
00068 # in a particular coordinate frame.\n\
00069 # \n\
00070 # sequence ID: consecutively increasing ID \n\
00071 uint32 seq\n\
00072 #Two-integer timestamp that is expressed as:\n\
00073 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00074 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00075 # time-handling sugar is provided by the client library\n\
00076 time stamp\n\
00077 #Frame this data is associated with\n\
00078 # 0: no frame\n\
00079 # 1: global frame\n\
00080 string frame_id\n\
00081 \n\
00082 ================================================================================\n\
00083 MSG: geometry_msgs/Point\n\
00084 # This contains the position of a point in free space\n\
00085 float64 x\n\
00086 float64 y\n\
00087 float64 z\n\
00088 \n\
00089 "; }
00090 public:
00091 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00092
00093 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00094
00095 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00096 {
00097 ros::serialization::OStream stream(write_ptr, 1000000000);
00098 ros::serialization::serialize(stream, header);
00099 ros::serialization::serialize(stream, point);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00104 {
00105 ros::serialization::IStream stream(read_ptr, 1000000000);
00106 ros::serialization::deserialize(stream, header);
00107 ros::serialization::deserialize(stream, point);
00108 return stream.getData();
00109 }
00110
00111 ROS_DEPRECATED virtual uint32_t serializationLength() const
00112 {
00113 uint32_t size = 0;
00114 size += ros::serialization::serializationLength(header);
00115 size += ros::serialization::serializationLength(point);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::geometry_msgs::PointStamped_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::geometry_msgs::PointStamped_<ContainerAllocator> const> ConstPtr;
00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00122 };
00123 typedef ::geometry_msgs::PointStamped_<std::allocator<void> > PointStamped;
00124
00125 typedef boost::shared_ptr< ::geometry_msgs::PointStamped> PointStampedPtr;
00126 typedef boost::shared_ptr< ::geometry_msgs::PointStamped const> PointStampedConstPtr;
00127
00128
00129 template<typename ContainerAllocator>
00130 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::PointStamped_<ContainerAllocator> & v)
00131 {
00132 ros::message_operations::Printer< ::geometry_msgs::PointStamped_<ContainerAllocator> >::stream(s, "", v);
00133 return s;}
00134
00135 }
00136
00137 namespace ros
00138 {
00139 namespace message_traits
00140 {
00141 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::PointStamped_<ContainerAllocator> > : public TrueType {};
00142 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::PointStamped_<ContainerAllocator> const> : public TrueType {};
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::geometry_msgs::PointStamped_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "c63aecb41bfdfd6b7e1fac37c7cbe7bf";
00148 }
00149
00150 static const char* value(const ::geometry_msgs::PointStamped_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0xc63aecb41bfdfd6bULL;
00152 static const uint64_t static_value2 = 0x7e1fac37c7cbe7bfULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::geometry_msgs::PointStamped_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "geometry_msgs/PointStamped";
00160 }
00161
00162 static const char* value(const ::geometry_msgs::PointStamped_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::geometry_msgs::PointStamped_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "# This represents a Point with reference coordinate frame and timestamp\n\
00170 Header header\n\
00171 Point point\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: std_msgs/Header\n\
00175 # Standard metadata for higher-level stamped data types.\n\
00176 # This is generally used to communicate timestamped data \n\
00177 # in a particular coordinate frame.\n\
00178 # \n\
00179 # sequence ID: consecutively increasing ID \n\
00180 uint32 seq\n\
00181 #Two-integer timestamp that is expressed as:\n\
00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00184 # time-handling sugar is provided by the client library\n\
00185 time stamp\n\
00186 #Frame this data is associated with\n\
00187 # 0: no frame\n\
00188 # 1: global frame\n\
00189 string frame_id\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: geometry_msgs/Point\n\
00193 # This contains the position of a point in free space\n\
00194 float64 x\n\
00195 float64 y\n\
00196 float64 z\n\
00197 \n\
00198 ";
00199 }
00200
00201 static const char* value(const ::geometry_msgs::PointStamped_<ContainerAllocator> &) { return value(); }
00202 };
00203
00204 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::PointStamped_<ContainerAllocator> > : public TrueType {};
00205 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::PointStamped_<ContainerAllocator> > : public TrueType {};
00206 }
00207 }
00208
00209 namespace ros
00210 {
00211 namespace serialization
00212 {
00213
00214 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::PointStamped_<ContainerAllocator> >
00215 {
00216 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00217 {
00218 stream.next(m.header);
00219 stream.next(m.point);
00220 }
00221
00222 ROS_DECLARE_ALLINONE_SERIALIZER;
00223 };
00224 }
00225 }
00226
00227 namespace ros
00228 {
00229 namespace message_operations
00230 {
00231
00232 template<class ContainerAllocator>
00233 struct Printer< ::geometry_msgs::PointStamped_<ContainerAllocator> >
00234 {
00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::PointStamped_<ContainerAllocator> & v)
00236 {
00237 s << indent << "header: ";
00238 s << std::endl;
00239 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00240 s << indent << "point: ";
00241 s << std::endl;
00242 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.point);
00243 }
00244 };
00245
00246
00247 }
00248 }
00249
00250 #endif // GEOMETRY_MSGS_MESSAGE_POINTSTAMPED_H
00251