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