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