00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_QUATERNION_H
00003 #define GEOMETRY_MSGS_MESSAGE_QUATERNION_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
00014 namespace geometry_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct Quaternion_ : public ros::Message
00018 {
00019 typedef Quaternion_<ContainerAllocator> Type;
00020
00021 Quaternion_()
00022 : x(0.0)
00023 , y(0.0)
00024 , z(0.0)
00025 , w(0.0)
00026 {
00027 }
00028
00029 Quaternion_(const ContainerAllocator& _alloc)
00030 : x(0.0)
00031 , y(0.0)
00032 , z(0.0)
00033 , w(0.0)
00034 {
00035 }
00036
00037 typedef double _x_type;
00038 double x;
00039
00040 typedef double _y_type;
00041 double y;
00042
00043 typedef double _z_type;
00044 double z;
00045
00046 typedef double _w_type;
00047 double w;
00048
00049
00050 private:
00051 static const char* __s_getDataType_() { return "geometry_msgs/Quaternion"; }
00052 public:
00053 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00054
00055 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00056
00057 private:
00058 static const char* __s_getMD5Sum_() { return "a779879fadf0160734f906b8c19c7004"; }
00059 public:
00060 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00061
00062 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00063
00064 private:
00065 static const char* __s_getMessageDefinition_() { return "# This represents an orientation in free space in quaternion form.\n\
00066 \n\
00067 float64 x\n\
00068 float64 y\n\
00069 float64 z\n\
00070 float64 w\n\
00071 \n\
00072 "; }
00073 public:
00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00075
00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00077
00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00079 {
00080 ros::serialization::OStream stream(write_ptr, 1000000000);
00081 ros::serialization::serialize(stream, x);
00082 ros::serialization::serialize(stream, y);
00083 ros::serialization::serialize(stream, z);
00084 ros::serialization::serialize(stream, w);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00089 {
00090 ros::serialization::IStream stream(read_ptr, 1000000000);
00091 ros::serialization::deserialize(stream, x);
00092 ros::serialization::deserialize(stream, y);
00093 ros::serialization::deserialize(stream, z);
00094 ros::serialization::deserialize(stream, w);
00095 return stream.getData();
00096 }
00097
00098 ROS_DEPRECATED virtual uint32_t serializationLength() const
00099 {
00100 uint32_t size = 0;
00101 size += ros::serialization::serializationLength(x);
00102 size += ros::serialization::serializationLength(y);
00103 size += ros::serialization::serializationLength(z);
00104 size += ros::serialization::serializationLength(w);
00105 return size;
00106 }
00107
00108 typedef boost::shared_ptr< ::geometry_msgs::Quaternion_<ContainerAllocator> > Ptr;
00109 typedef boost::shared_ptr< ::geometry_msgs::Quaternion_<ContainerAllocator> const> ConstPtr;
00110 };
00111 typedef ::geometry_msgs::Quaternion_<std::allocator<void> > Quaternion;
00112
00113 typedef boost::shared_ptr< ::geometry_msgs::Quaternion> QuaternionPtr;
00114 typedef boost::shared_ptr< ::geometry_msgs::Quaternion const> QuaternionConstPtr;
00115
00116
00117 template<typename ContainerAllocator>
00118 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Quaternion_<ContainerAllocator> & v)
00119 {
00120 ros::message_operations::Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, "", v);
00121 return s;}
00122
00123 }
00124
00125 namespace ros
00126 {
00127 namespace message_traits
00128 {
00129 template<class ContainerAllocator>
00130 struct MD5Sum< ::geometry_msgs::Quaternion_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "a779879fadf0160734f906b8c19c7004";
00134 }
00135
00136 static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator> &) { return value(); }
00137 static const uint64_t static_value1 = 0xa779879fadf01607ULL;
00138 static const uint64_t static_value2 = 0x34f906b8c19c7004ULL;
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct DataType< ::geometry_msgs::Quaternion_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "geometry_msgs/Quaternion";
00146 }
00147
00148 static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator>
00152 struct Definition< ::geometry_msgs::Quaternion_<ContainerAllocator> > {
00153 static const char* value()
00154 {
00155 return "# This represents an orientation in free space in quaternion form.\n\
00156 \n\
00157 float64 x\n\
00158 float64 y\n\
00159 float64 z\n\
00160 float64 w\n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::geometry_msgs::Quaternion_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Quaternion_<ContainerAllocator> > : public TrueType {};
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Quaternion_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.x);
00182 stream.next(m.y);
00183 stream.next(m.z);
00184 stream.next(m.w);
00185 }
00186
00187 ROS_DECLARE_ALLINONE_SERIALIZER;
00188 };
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace message_operations
00195 {
00196
00197 template<class ContainerAllocator>
00198 struct Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >
00199 {
00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Quaternion_<ContainerAllocator> & v)
00201 {
00202 s << indent << "x: ";
00203 Printer<double>::stream(s, indent + " ", v.x);
00204 s << indent << "y: ";
00205 Printer<double>::stream(s, indent + " ", v.y);
00206 s << indent << "z: ";
00207 Printer<double>::stream(s, indent + " ", v.z);
00208 s << indent << "w: ";
00209 Printer<double>::stream(s, indent + " ", v.w);
00210 }
00211 };
00212
00213
00214 }
00215 }
00216
00217 #endif // GEOMETRY_MSGS_MESSAGE_QUATERNION_H
00218