00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCESTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCESTAMPED_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/TwistWithCovariance.h"
00019
00020 namespace geometry_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct TwistWithCovarianceStamped_ {
00024 typedef TwistWithCovarianceStamped_<ContainerAllocator> Type;
00025
00026 TwistWithCovarianceStamped_()
00027 : header()
00028 , twist()
00029 {
00030 }
00031
00032 TwistWithCovarianceStamped_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , twist(_alloc)
00035 {
00036 }
00037
00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00039 ::std_msgs::Header_<ContainerAllocator> header;
00040
00041 typedef ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> _twist_type;
00042 ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> twist;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "geometry_msgs/TwistWithCovarianceStamped"; }
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 "8927a1a12fb2607ceea095b2dc440a96"; }
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 estimate twist with reference coordinate frame and timestamp.\n\
00061 Header header\n\
00062 TwistWithCovariance twist\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/TwistWithCovariance\n\
00084 # This expresses velocity in free space with uncertianty.\n\
00085 \n\
00086 Twist twist\n\
00087 \n\
00088 # Row-major representation of the 6x6 covariance matrix\n\
00089 # The orientation parameters use a fixed-axis representation.\n\
00090 # In order, the parameters are:\n\
00091 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00092 float64[36] covariance\n\
00093 \n\
00094 ================================================================================\n\
00095 MSG: geometry_msgs/Twist\n\
00096 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00097 Vector3 linear\n\
00098 Vector3 angular\n\
00099 \n\
00100 ================================================================================\n\
00101 MSG: geometry_msgs/Vector3\n\
00102 # This represents a vector in free space. \n\
00103 \n\
00104 float64 x\n\
00105 float64 y\n\
00106 float64 z\n\
00107 "; }
00108 public:
00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00110
00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00112
00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00114 {
00115 ros::serialization::OStream stream(write_ptr, 1000000000);
00116 ros::serialization::serialize(stream, header);
00117 ros::serialization::serialize(stream, twist);
00118 return stream.getData();
00119 }
00120
00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00122 {
00123 ros::serialization::IStream stream(read_ptr, 1000000000);
00124 ros::serialization::deserialize(stream, header);
00125 ros::serialization::deserialize(stream, twist);
00126 return stream.getData();
00127 }
00128
00129 ROS_DEPRECATED virtual uint32_t serializationLength() const
00130 {
00131 uint32_t size = 0;
00132 size += ros::serialization::serializationLength(header);
00133 size += ros::serialization::serializationLength(twist);
00134 return size;
00135 }
00136
00137 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > Ptr;
00138 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> const> ConstPtr;
00139 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00140 };
00141 typedef ::geometry_msgs::TwistWithCovarianceStamped_<std::allocator<void> > TwistWithCovarianceStamped;
00142
00143 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovarianceStamped> TwistWithCovarianceStampedPtr;
00144 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovarianceStamped const> TwistWithCovarianceStampedConstPtr;
00145
00146
00147 template<typename ContainerAllocator>
00148 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> & v)
00149 {
00150 ros::message_operations::Printer< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> >::stream(s, "", v);
00151 return s;}
00152
00153 }
00154
00155 namespace ros
00156 {
00157 namespace message_traits
00158 {
00159 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > : public TrueType {};
00160 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> const> : public TrueType {};
00161 template<class ContainerAllocator>
00162 struct MD5Sum< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > {
00163 static const char* value()
00164 {
00165 return "8927a1a12fb2607ceea095b2dc440a96";
00166 }
00167
00168 static const char* value(const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> &) { return value(); }
00169 static const uint64_t static_value1 = 0x8927a1a12fb2607cULL;
00170 static const uint64_t static_value2 = 0xeea095b2dc440a96ULL;
00171 };
00172
00173 template<class ContainerAllocator>
00174 struct DataType< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > {
00175 static const char* value()
00176 {
00177 return "geometry_msgs/TwistWithCovarianceStamped";
00178 }
00179
00180 static const char* value(const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> &) { return value(); }
00181 };
00182
00183 template<class ContainerAllocator>
00184 struct Definition< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > {
00185 static const char* value()
00186 {
00187 return "# This represents an estimate twist with reference coordinate frame and timestamp.\n\
00188 Header header\n\
00189 TwistWithCovariance twist\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: std_msgs/Header\n\
00193 # Standard metadata for higher-level stamped data types.\n\
00194 # This is generally used to communicate timestamped data \n\
00195 # in a particular coordinate frame.\n\
00196 # \n\
00197 # sequence ID: consecutively increasing ID \n\
00198 uint32 seq\n\
00199 #Two-integer timestamp that is expressed as:\n\
00200 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00201 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00202 # time-handling sugar is provided by the client library\n\
00203 time stamp\n\
00204 #Frame this data is associated with\n\
00205 # 0: no frame\n\
00206 # 1: global frame\n\
00207 string frame_id\n\
00208 \n\
00209 ================================================================================\n\
00210 MSG: geometry_msgs/TwistWithCovariance\n\
00211 # This expresses velocity in free space with uncertianty.\n\
00212 \n\
00213 Twist twist\n\
00214 \n\
00215 # Row-major representation of the 6x6 covariance matrix\n\
00216 # The orientation parameters use a fixed-axis representation.\n\
00217 # In order, the parameters are:\n\
00218 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00219 float64[36] covariance\n\
00220 \n\
00221 ================================================================================\n\
00222 MSG: geometry_msgs/Twist\n\
00223 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00224 Vector3 linear\n\
00225 Vector3 angular\n\
00226 \n\
00227 ================================================================================\n\
00228 MSG: geometry_msgs/Vector3\n\
00229 # This represents a vector in free space. \n\
00230 \n\
00231 float64 x\n\
00232 float64 y\n\
00233 float64 z\n\
00234 ";
00235 }
00236
00237 static const char* value(const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> &) { return value(); }
00238 };
00239
00240 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > : public TrueType {};
00241 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> > : public TrueType {};
00242 }
00243 }
00244
00245 namespace ros
00246 {
00247 namespace serialization
00248 {
00249
00250 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> >
00251 {
00252 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00253 {
00254 stream.next(m.header);
00255 stream.next(m.twist);
00256 }
00257
00258 ROS_DECLARE_ALLINONE_SERIALIZER;
00259 };
00260 }
00261 }
00262
00263 namespace ros
00264 {
00265 namespace message_operations
00266 {
00267
00268 template<class ContainerAllocator>
00269 struct Printer< ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> >
00270 {
00271 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::TwistWithCovarianceStamped_<ContainerAllocator> & v)
00272 {
00273 s << indent << "header: ";
00274 s << std::endl;
00275 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00276 s << indent << "twist: ";
00277 s << std::endl;
00278 Printer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >::stream(s, indent + " ", v.twist);
00279 }
00280 };
00281
00282
00283 }
00284 }
00285
00286 #endif // GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCESTAMPED_H
00287