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