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