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