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