00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_QUATERNIONSTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_QUATERNIONSTAMPED_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/Quaternion.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct QuaternionStamped_ : public ros::Message
00020 {
00021 typedef QuaternionStamped_<ContainerAllocator> Type;
00022
00023 QuaternionStamped_()
00024 : header()
00025 , quaternion()
00026 {
00027 }
00028
00029 QuaternionStamped_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , quaternion(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _quaternion_type;
00039 ::geometry_msgs::Quaternion_<ContainerAllocator> quaternion;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/QuaternionStamped"; }
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 "e57f1e547e0e1fd13504588ffc8334e2"; }
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 an orientation with reference coordinate frame and timestamp.\n\
00058 \n\
00059 Header header\n\
00060 Quaternion quaternion\n\
00061 \n\
00062 ================================================================================\n\
00063 MSG: std_msgs/Header\n\
00064 # Standard metadata for higher-level stamped data types.\n\
00065 # This is generally used to communicate timestamped data \n\
00066 # in a particular coordinate frame.\n\
00067 # \n\
00068 # sequence ID: consecutively increasing ID \n\
00069 uint32 seq\n\
00070 #Two-integer timestamp that is expressed as:\n\
00071 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00072 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00073 # time-handling sugar is provided by the client library\n\
00074 time stamp\n\
00075 #Frame this data is associated with\n\
00076 # 0: no frame\n\
00077 # 1: global frame\n\
00078 string frame_id\n\
00079 \n\
00080 ================================================================================\n\
00081 MSG: geometry_msgs/Quaternion\n\
00082 # This represents an orientation in free space in quaternion form.\n\
00083 \n\
00084 float64 x\n\
00085 float64 y\n\
00086 float64 z\n\
00087 float64 w\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, quaternion);
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, quaternion);
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(quaternion);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> const> ConstPtr;
00121 };
00122 typedef ::geometry_msgs::QuaternionStamped_<std::allocator<void> > QuaternionStamped;
00123
00124 typedef boost::shared_ptr< ::geometry_msgs::QuaternionStamped> QuaternionStampedPtr;
00125 typedef boost::shared_ptr< ::geometry_msgs::QuaternionStamped const> QuaternionStampedConstPtr;
00126
00127
00128 template<typename ContainerAllocator>
00129 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::QuaternionStamped_<ContainerAllocator> & v)
00130 {
00131 ros::message_operations::Printer< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> >::stream(s, "", v);
00132 return s;}
00133
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_traits
00139 {
00140 template<class ContainerAllocator>
00141 struct MD5Sum< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "e57f1e547e0e1fd13504588ffc8334e2";
00145 }
00146
00147 static const char* value(const ::geometry_msgs::QuaternionStamped_<ContainerAllocator> &) { return value(); }
00148 static const uint64_t static_value1 = 0xe57f1e547e0e1fd1ULL;
00149 static const uint64_t static_value2 = 0x3504588ffc8334e2ULL;
00150 };
00151
00152 template<class ContainerAllocator>
00153 struct DataType< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "geometry_msgs/QuaternionStamped";
00157 }
00158
00159 static const char* value(const ::geometry_msgs::QuaternionStamped_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct Definition< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "# This represents an orientation with reference coordinate frame and timestamp.\n\
00167 \n\
00168 Header header\n\
00169 Quaternion quaternion\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: std_msgs/Header\n\
00173 # Standard metadata for higher-level stamped data types.\n\
00174 # This is generally used to communicate timestamped data \n\
00175 # in a particular coordinate frame.\n\
00176 # \n\
00177 # sequence ID: consecutively increasing ID \n\
00178 uint32 seq\n\
00179 #Two-integer timestamp that is expressed as:\n\
00180 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00181 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00182 # time-handling sugar is provided by the client library\n\
00183 time stamp\n\
00184 #Frame this data is associated with\n\
00185 # 0: no frame\n\
00186 # 1: global frame\n\
00187 string frame_id\n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: geometry_msgs/Quaternion\n\
00191 # This represents an orientation in free space in quaternion form.\n\
00192 \n\
00193 float64 x\n\
00194 float64 y\n\
00195 float64 z\n\
00196 float64 w\n\
00197 \n\
00198 ";
00199 }
00200
00201 static const char* value(const ::geometry_msgs::QuaternionStamped_<ContainerAllocator> &) { return value(); }
00202 };
00203
00204 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > : public TrueType {};
00205 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::QuaternionStamped_<ContainerAllocator> > : public TrueType {};
00206 }
00207 }
00208
00209 namespace ros
00210 {
00211 namespace serialization
00212 {
00213
00214 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::QuaternionStamped_<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.quaternion);
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::QuaternionStamped_<ContainerAllocator> >
00234 {
00235 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::QuaternionStamped_<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 << "quaternion: ";
00241 s << std::endl;
00242 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.quaternion);
00243 }
00244 };
00245
00246
00247 }
00248 }
00249
00250 #endif // GEOMETRY_MSGS_MESSAGE_QUATERNIONSTAMPED_H
00251