00001
00002 #ifndef GEOMETRY_MSGS_MESSAGE_TWISTSTAMPED_H
00003 #define GEOMETRY_MSGS_MESSAGE_TWISTSTAMPED_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 "std_msgs/Header.h"
00014 #include "geometry_msgs/Twist.h"
00015
00016 namespace geometry_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct TwistStamped_ : public ros::Message
00020 {
00021 typedef TwistStamped_<ContainerAllocator> Type;
00022
00023 TwistStamped_()
00024 : header()
00025 , twist()
00026 {
00027 }
00028
00029 TwistStamped_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , twist(_alloc)
00032 {
00033 }
00034
00035 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00036 ::std_msgs::Header_<ContainerAllocator> header;
00037
00038 typedef ::geometry_msgs::Twist_<ContainerAllocator> _twist_type;
00039 ::geometry_msgs::Twist_<ContainerAllocator> twist;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "geometry_msgs/TwistStamped"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "98d34b0043a2093cf9d9345ab6eef12e"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# A twist with reference coordinate frame and timestamp\n\
00058 Header header\n\
00059 Twist twist\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: std_msgs/Header\n\
00063 # Standard metadata for higher-level stamped data types.\n\
00064 # This is generally used to communicate timestamped data \n\
00065 # in a particular coordinate frame.\n\
00066 # \n\
00067 # sequence ID: consecutively increasing ID \n\
00068 uint32 seq\n\
00069 #Two-integer timestamp that is expressed as:\n\
00070 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00071 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00072 # time-handling sugar is provided by the client library\n\
00073 time stamp\n\
00074 #Frame this data is associated with\n\
00075 # 0: no frame\n\
00076 # 1: global frame\n\
00077 string frame_id\n\
00078 \n\
00079 ================================================================================\n\
00080 MSG: geometry_msgs/Twist\n\
00081 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00082 Vector3 linear\n\
00083 Vector3 angular\n\
00084 \n\
00085 ================================================================================\n\
00086 MSG: geometry_msgs/Vector3\n\
00087 # This represents a vector in free space. \n\
00088 \n\
00089 float64 x\n\
00090 float64 y\n\
00091 float64 z\n\
00092 "; }
00093 public:
00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00097
00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00099 {
00100 ros::serialization::OStream stream(write_ptr, 1000000000);
00101 ros::serialization::serialize(stream, header);
00102 ros::serialization::serialize(stream, twist);
00103 return stream.getData();
00104 }
00105
00106 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00107 {
00108 ros::serialization::IStream stream(read_ptr, 1000000000);
00109 ros::serialization::deserialize(stream, header);
00110 ros::serialization::deserialize(stream, twist);
00111 return stream.getData();
00112 }
00113
00114 ROS_DEPRECATED virtual uint32_t serializationLength() const
00115 {
00116 uint32_t size = 0;
00117 size += ros::serialization::serializationLength(header);
00118 size += ros::serialization::serializationLength(twist);
00119 return size;
00120 }
00121
00122 typedef boost::shared_ptr< ::geometry_msgs::TwistStamped_<ContainerAllocator> > Ptr;
00123 typedef boost::shared_ptr< ::geometry_msgs::TwistStamped_<ContainerAllocator> const> ConstPtr;
00124 };
00125 typedef ::geometry_msgs::TwistStamped_<std::allocator<void> > TwistStamped;
00126
00127 typedef boost::shared_ptr< ::geometry_msgs::TwistStamped> TwistStampedPtr;
00128 typedef boost::shared_ptr< ::geometry_msgs::TwistStamped const> TwistStampedConstPtr;
00129
00130
00131 template<typename ContainerAllocator>
00132 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::TwistStamped_<ContainerAllocator> & v)
00133 {
00134 ros::message_operations::Printer< ::geometry_msgs::TwistStamped_<ContainerAllocator> >::stream(s, "", v);
00135 return s;}
00136
00137 }
00138
00139 namespace ros
00140 {
00141 namespace message_traits
00142 {
00143 template<class ContainerAllocator>
00144 struct MD5Sum< ::geometry_msgs::TwistStamped_<ContainerAllocator> > {
00145 static const char* value()
00146 {
00147 return "98d34b0043a2093cf9d9345ab6eef12e";
00148 }
00149
00150 static const char* value(const ::geometry_msgs::TwistStamped_<ContainerAllocator> &) { return value(); }
00151 static const uint64_t static_value1 = 0x98d34b0043a2093cULL;
00152 static const uint64_t static_value2 = 0xf9d9345ab6eef12eULL;
00153 };
00154
00155 template<class ContainerAllocator>
00156 struct DataType< ::geometry_msgs::TwistStamped_<ContainerAllocator> > {
00157 static const char* value()
00158 {
00159 return "geometry_msgs/TwistStamped";
00160 }
00161
00162 static const char* value(const ::geometry_msgs::TwistStamped_<ContainerAllocator> &) { return value(); }
00163 };
00164
00165 template<class ContainerAllocator>
00166 struct Definition< ::geometry_msgs::TwistStamped_<ContainerAllocator> > {
00167 static const char* value()
00168 {
00169 return "# A twist with reference coordinate frame and timestamp\n\
00170 Header header\n\
00171 Twist twist\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: std_msgs/Header\n\
00175 # Standard metadata for higher-level stamped data types.\n\
00176 # This is generally used to communicate timestamped data \n\
00177 # in a particular coordinate frame.\n\
00178 # \n\
00179 # sequence ID: consecutively increasing ID \n\
00180 uint32 seq\n\
00181 #Two-integer timestamp that is expressed as:\n\
00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00184 # time-handling sugar is provided by the client library\n\
00185 time stamp\n\
00186 #Frame this data is associated with\n\
00187 # 0: no frame\n\
00188 # 1: global frame\n\
00189 string frame_id\n\
00190 \n\
00191 ================================================================================\n\
00192 MSG: geometry_msgs/Twist\n\
00193 # This expresses velocity in free space broken into it's linear and angular parts. \n\
00194 Vector3 linear\n\
00195 Vector3 angular\n\
00196 \n\
00197 ================================================================================\n\
00198 MSG: geometry_msgs/Vector3\n\
00199 # This represents a vector in free space. \n\
00200 \n\
00201 float64 x\n\
00202 float64 y\n\
00203 float64 z\n\
00204 ";
00205 }
00206
00207 static const char* value(const ::geometry_msgs::TwistStamped_<ContainerAllocator> &) { return value(); }
00208 };
00209
00210 template<class ContainerAllocator> struct HasHeader< ::geometry_msgs::TwistStamped_<ContainerAllocator> > : public TrueType {};
00211 template<class ContainerAllocator> struct HasHeader< const ::geometry_msgs::TwistStamped_<ContainerAllocator> > : public TrueType {};
00212 }
00213 }
00214
00215 namespace ros
00216 {
00217 namespace serialization
00218 {
00219
00220 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::TwistStamped_<ContainerAllocator> >
00221 {
00222 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00223 {
00224 stream.next(m.header);
00225 stream.next(m.twist);
00226 }
00227
00228 ROS_DECLARE_ALLINONE_SERIALIZER;
00229 };
00230 }
00231 }
00232
00233 namespace ros
00234 {
00235 namespace message_operations
00236 {
00237
00238 template<class ContainerAllocator>
00239 struct Printer< ::geometry_msgs::TwistStamped_<ContainerAllocator> >
00240 {
00241 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::TwistStamped_<ContainerAllocator> & v)
00242 {
00243 s << indent << "header: ";
00244 s << std::endl;
00245 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00246 s << indent << "twist: ";
00247 s << std::endl;
00248 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.twist);
00249 }
00250 };
00251
00252
00253 }
00254 }
00255
00256 #endif // GEOMETRY_MSGS_MESSAGE_TWISTSTAMPED_H
00257