00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_H
00003 #define GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_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 "geometry_msgs/Twist.h"
00014
00015 namespace geometry_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct TwistWithCovariance_ : public ros::Message
00019 {
00020 typedef TwistWithCovariance_<ContainerAllocator> Type;
00021
00022 TwistWithCovariance_()
00023 : twist()
00024 , covariance()
00025 {
00026 covariance.assign(0.0);
00027 }
00028
00029 TwistWithCovariance_(const ContainerAllocator& _alloc)
00030 : twist(_alloc)
00031 , covariance()
00032 {
00033 covariance.assign(0.0);
00034 }
00035
00036 typedef ::geometry_msgs::Twist_<ContainerAllocator> _twist_type;
00037 ::geometry_msgs::Twist_<ContainerAllocator> twist;
00038
00039 typedef boost::array<double, 36> _covariance_type;
00040 boost::array<double, 36> covariance;
00041
00042
00043 ROS_DEPRECATED uint32_t get_covariance_size() const { return (uint32_t)covariance.size(); }
00044 private:
00045 static const char* __s_getDataType_() { return "geometry_msgs/TwistWithCovariance"; }
00046 public:
00047 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00048
00049 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00050
00051 private:
00052 static const char* __s_getMD5Sum_() { return "1fe8a28e6890a4cc3ae4c3ca5c7d82e6"; }
00053 public:
00054 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00055
00056 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00057
00058 private:
00059 static const char* __s_getMessageDefinition_() { return "# This expresses velocity in free space with uncertianty.\n\
00060 \n\
00061 Twist twist\n\
00062 \n\
00063 # Row-major representation of the 6x6 covariance matrix\n\
00064 # The orientation parameters use a fixed-axis representation.\n\
00065 # In order, the parameters are:\n\
00066 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00067 float64[36] covariance\n\
00068 \n\
00069 ================================================================================\n\
00070 MSG: geometry_msgs/Twist\n\
00071 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00072 Vector3 linear\n\
00073 Vector3 angular\n\
00074 \n\
00075 ================================================================================\n\
00076 MSG: geometry_msgs/Vector3\n\
00077 # This represents a vector in free space. \n\
00078 \n\
00079 float64 x\n\
00080 float64 y\n\
00081 float64 z\n\
00082 "; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00089 {
00090 ros::serialization::OStream stream(write_ptr, 1000000000);
00091 ros::serialization::serialize(stream, twist);
00092 ros::serialization::serialize(stream, covariance);
00093 return stream.getData();
00094 }
00095
00096 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00097 {
00098 ros::serialization::IStream stream(read_ptr, 1000000000);
00099 ros::serialization::deserialize(stream, twist);
00100 ros::serialization::deserialize(stream, covariance);
00101 return stream.getData();
00102 }
00103
00104 ROS_DEPRECATED virtual uint32_t serializationLength() const
00105 {
00106 uint32_t size = 0;
00107 size += ros::serialization::serializationLength(twist);
00108 size += ros::serialization::serializationLength(covariance);
00109 return size;
00110 }
00111
00112 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > Ptr;
00113 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> const> ConstPtr;
00114 };
00115 typedef ::geometry_msgs::TwistWithCovariance_<std::allocator<void> > TwistWithCovariance;
00116
00117 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovariance> TwistWithCovariancePtr;
00118 typedef boost::shared_ptr< ::geometry_msgs::TwistWithCovariance const> TwistWithCovarianceConstPtr;
00119
00120
00121 template<typename ContainerAllocator>
00122 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> & v)
00123 {
00124 ros::message_operations::Printer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >::stream(s, "", v);
00125 return s;}
00126
00127 }
00128
00129 namespace ros
00130 {
00131 namespace message_traits
00132 {
00133 template<class ContainerAllocator>
00134 struct MD5Sum< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > {
00135 static const char* value()
00136 {
00137 return "1fe8a28e6890a4cc3ae4c3ca5c7d82e6";
00138 }
00139
00140 static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> &) { return value(); }
00141 static const uint64_t static_value1 = 0x1fe8a28e6890a4ccULL;
00142 static const uint64_t static_value2 = 0x3ae4c3ca5c7d82e6ULL;
00143 };
00144
00145 template<class ContainerAllocator>
00146 struct DataType< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > {
00147 static const char* value()
00148 {
00149 return "geometry_msgs/TwistWithCovariance";
00150 }
00151
00152 static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> &) { return value(); }
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct Definition< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "# This expresses velocity in free space with uncertianty.\n\
00160 \n\
00161 Twist twist\n\
00162 \n\
00163 # Row-major representation of the 6x6 covariance matrix\n\
00164 # The orientation parameters use a fixed-axis representation.\n\
00165 # In order, the parameters are:\n\
00166 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
00167 float64[36] covariance\n\
00168 \n\
00169 ================================================================================\n\
00170 MSG: geometry_msgs/Twist\n\
00171 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00172 Vector3 linear\n\
00173 Vector3 angular\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: geometry_msgs/Vector3\n\
00177 # This represents a vector in free space. \n\
00178 \n\
00179 float64 x\n\
00180 float64 y\n\
00181 float64 z\n\
00182 ";
00183 }
00184
00185 static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> &) { return value(); }
00186 };
00187
00188 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > : public TrueType {};
00189 }
00190 }
00191
00192 namespace ros
00193 {
00194 namespace serialization
00195 {
00196
00197 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
00198 {
00199 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00200 {
00201 stream.next(m.twist);
00202 stream.next(m.covariance);
00203 }
00204
00205 ROS_DECLARE_ALLINONE_SERIALIZER;
00206 };
00207 }
00208 }
00209
00210 namespace ros
00211 {
00212 namespace message_operations
00213 {
00214
00215 template<class ContainerAllocator>
00216 struct Printer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
00217 {
00218 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> & v)
00219 {
00220 s << indent << "twist: ";
00221 s << std::endl;
00222 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist);
00223 s << indent << "covariance[]" << std::endl;
00224 for (size_t i = 0; i < v.covariance.size(); ++i)
00225 {
00226 s << indent << " covariance[" << i << "]: ";
00227 Printer<double>::stream(s, indent + " ", v.covariance[i]);
00228 }
00229 }
00230 };
00231
00232
00233 }
00234 }
00235
00236 #endif // GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_H
00237