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