$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/Vector3Stamped.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_VECTOR3STAMPED_H 00003 #define GEOMETRY_MSGS_MESSAGE_VECTOR3STAMPED_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/Vector3.h" 00019 00020 namespace geometry_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct Vector3Stamped_ { 00024 typedef Vector3Stamped_<ContainerAllocator> Type; 00025 00026 Vector3Stamped_() 00027 : header() 00028 , vector() 00029 { 00030 } 00031 00032 Vector3Stamped_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , vector(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _vector_type; 00042 ::geometry_msgs::Vector3_<ContainerAllocator> vector; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "geometry_msgs/Vector3Stamped"; } 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 "7b324c7325e683bf02a9b14b01090ec7"; } 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 Vector3 with reference coordinate frame and timestamp\n\ 00061 Header header\n\ 00062 Vector3 vector\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/Vector3\n\ 00084 # This represents a vector in free space. \n\ 00085 \n\ 00086 float64 x\n\ 00087 float64 y\n\ 00088 float64 z\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, vector); 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, vector); 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(vector); 00116 return size; 00117 } 00118 00119 typedef boost::shared_ptr< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > Ptr; 00120 typedef boost::shared_ptr< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> const> ConstPtr; 00121 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00122 }; // struct Vector3Stamped 00123 typedef ::geometry_msgs::Vector3Stamped_<std::allocator<void> > Vector3Stamped; 00124 00125 typedef boost::shared_ptr< ::geometry_msgs::Vector3Stamped> Vector3StampedPtr; 00126 typedef boost::shared_ptr< ::geometry_msgs::Vector3Stamped const> Vector3StampedConstPtr; 00127 00128 00129 template<typename ContainerAllocator> 00130 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Vector3Stamped_<ContainerAllocator> & v) 00131 { 00132 ros::message_operations::Printer< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> >::stream(s, "", v); 00133 return s;} 00134 00135 } // namespace geometry_msgs 00136 00137 namespace ros 00138 { 00139 namespace message_traits 00140 { 00141 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > : public TrueType {}; 00142 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> const> : public TrueType {}; 00143 template<class ContainerAllocator> 00144 struct MD5Sum< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > { 00145 static const char* value() 00146 { 00147 return "7b324c7325e683bf02a9b14b01090ec7"; 00148 } 00149 00150 static const char* value(const ::geometry_msgs::Vector3Stamped_<ContainerAllocator> &) { return value(); } 00151 static const uint64_t static_value1 = 0x7b324c7325e683bfULL; 00152 static const uint64_t static_value2 = 0x02a9b14b01090ec7ULL; 00153 }; 00154 00155 template<class ContainerAllocator> 00156 struct DataType< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > { 00157 static const char* value() 00158 { 00159 return "geometry_msgs/Vector3Stamped"; 00160 } 00161 00162 static const char* value(const ::geometry_msgs::Vector3Stamped_<ContainerAllocator> &) { return value(); } 00163 }; 00164 00165 template<class ContainerAllocator> 00166 struct Definition< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "# This represents a Vector3 with reference coordinate frame and timestamp\n\ 00170 Header header\n\ 00171 Vector3 vector\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/Vector3\n\ 00193 # This represents a vector in free space. \n\ 00194 \n\ 00195 float64 x\n\ 00196 float64 y\n\ 00197 float64 z\n\ 00198 "; 00199 } 00200 00201 static const char* value(const ::geometry_msgs::Vector3Stamped_<ContainerAllocator> &) { return value(); } 00202 }; 00203 00204 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > : public TrueType {}; 00205 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > : public TrueType {}; 00206 } // namespace message_traits 00207 } // namespace ros 00208 00209 namespace ros 00210 { 00211 namespace serialization 00212 { 00213 00214 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Vector3Stamped_<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.vector); 00220 } 00221 00222 ROS_DECLARE_ALLINONE_SERIALIZER; 00223 }; // struct Vector3Stamped_ 00224 } // namespace serialization 00225 } // namespace ros 00226 00227 namespace ros 00228 { 00229 namespace message_operations 00230 { 00231 00232 template<class ContainerAllocator> 00233 struct Printer< ::geometry_msgs::Vector3Stamped_<ContainerAllocator> > 00234 { 00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Vector3Stamped_<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 << "vector: "; 00241 s << std::endl; 00242 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.vector); 00243 } 00244 }; 00245 00246 00247 } // namespace message_operations 00248 } // namespace ros 00249 00250 #endif // GEOMETRY_MSGS_MESSAGE_VECTOR3STAMPED_H 00251