$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/Wrench.msg */ 00002 #ifndef GEOMETRY_MSGS_MESSAGE_WRENCH_H 00003 #define GEOMETRY_MSGS_MESSAGE_WRENCH_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/Vector3.h" 00018 #include "geometry_msgs/Vector3.h" 00019 00020 namespace geometry_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct Wrench_ { 00024 typedef Wrench_<ContainerAllocator> Type; 00025 00026 Wrench_() 00027 : force() 00028 , torque() 00029 { 00030 } 00031 00032 Wrench_(const ContainerAllocator& _alloc) 00033 : force(_alloc) 00034 , torque(_alloc) 00035 { 00036 } 00037 00038 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _force_type; 00039 ::geometry_msgs::Vector3_<ContainerAllocator> force; 00040 00041 typedef ::geometry_msgs::Vector3_<ContainerAllocator> _torque_type; 00042 ::geometry_msgs::Vector3_<ContainerAllocator> torque; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "geometry_msgs/Wrench"; } 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 "4f539cf138b23283b520fd271b567936"; } 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 "# This represents force in free space, seperated into \n\ 00061 # it's linear and angular parts. \n\ 00062 Vector3 force\n\ 00063 Vector3 torque\n\ 00064 \n\ 00065 ================================================================================\n\ 00066 MSG: geometry_msgs/Vector3\n\ 00067 # This represents a vector in free space. \n\ 00068 \n\ 00069 float64 x\n\ 00070 float64 y\n\ 00071 float64 z\n\ 00072 "; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00075 00076 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00077 00078 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00079 { 00080 ros::serialization::OStream stream(write_ptr, 1000000000); 00081 ros::serialization::serialize(stream, force); 00082 ros::serialization::serialize(stream, torque); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, force); 00090 ros::serialization::deserialize(stream, torque); 00091 return stream.getData(); 00092 } 00093 00094 ROS_DEPRECATED virtual uint32_t serializationLength() const 00095 { 00096 uint32_t size = 0; 00097 size += ros::serialization::serializationLength(force); 00098 size += ros::serialization::serializationLength(torque); 00099 return size; 00100 } 00101 00102 typedef boost::shared_ptr< ::geometry_msgs::Wrench_<ContainerAllocator> > Ptr; 00103 typedef boost::shared_ptr< ::geometry_msgs::Wrench_<ContainerAllocator> const> ConstPtr; 00104 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00105 }; // struct Wrench 00106 typedef ::geometry_msgs::Wrench_<std::allocator<void> > Wrench; 00107 00108 typedef boost::shared_ptr< ::geometry_msgs::Wrench> WrenchPtr; 00109 typedef boost::shared_ptr< ::geometry_msgs::Wrench const> WrenchConstPtr; 00110 00111 00112 template<typename ContainerAllocator> 00113 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::Wrench_<ContainerAllocator> & v) 00114 { 00115 ros::message_operations::Printer< ::geometry_msgs::Wrench_<ContainerAllocator> >::stream(s, "", v); 00116 return s;} 00117 00118 } // namespace geometry_msgs 00119 00120 namespace ros 00121 { 00122 namespace message_traits 00123 { 00124 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Wrench_<ContainerAllocator> > : public TrueType {}; 00125 template<class ContainerAllocator> struct IsMessage< ::geometry_msgs::Wrench_<ContainerAllocator> const> : public TrueType {}; 00126 template<class ContainerAllocator> 00127 struct MD5Sum< ::geometry_msgs::Wrench_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "4f539cf138b23283b520fd271b567936"; 00131 } 00132 00133 static const char* value(const ::geometry_msgs::Wrench_<ContainerAllocator> &) { return value(); } 00134 static const uint64_t static_value1 = 0x4f539cf138b23283ULL; 00135 static const uint64_t static_value2 = 0xb520fd271b567936ULL; 00136 }; 00137 00138 template<class ContainerAllocator> 00139 struct DataType< ::geometry_msgs::Wrench_<ContainerAllocator> > { 00140 static const char* value() 00141 { 00142 return "geometry_msgs/Wrench"; 00143 } 00144 00145 static const char* value(const ::geometry_msgs::Wrench_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 template<class ContainerAllocator> 00149 struct Definition< ::geometry_msgs::Wrench_<ContainerAllocator> > { 00150 static const char* value() 00151 { 00152 return "# This represents force in free space, seperated into \n\ 00153 # it's linear and angular parts. \n\ 00154 Vector3 force\n\ 00155 Vector3 torque\n\ 00156 \n\ 00157 ================================================================================\n\ 00158 MSG: geometry_msgs/Vector3\n\ 00159 # This represents a vector in free space. \n\ 00160 \n\ 00161 float64 x\n\ 00162 float64 y\n\ 00163 float64 z\n\ 00164 "; 00165 } 00166 00167 static const char* value(const ::geometry_msgs::Wrench_<ContainerAllocator> &) { return value(); } 00168 }; 00169 00170 template<class ContainerAllocator> struct IsFixedSize< ::geometry_msgs::Wrench_<ContainerAllocator> > : public TrueType {}; 00171 } // namespace message_traits 00172 } // namespace ros 00173 00174 namespace ros 00175 { 00176 namespace serialization 00177 { 00178 00179 template<class ContainerAllocator> struct Serializer< ::geometry_msgs::Wrench_<ContainerAllocator> > 00180 { 00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00182 { 00183 stream.next(m.force); 00184 stream.next(m.torque); 00185 } 00186 00187 ROS_DECLARE_ALLINONE_SERIALIZER; 00188 }; // struct Wrench_ 00189 } // namespace serialization 00190 } // namespace ros 00191 00192 namespace ros 00193 { 00194 namespace message_operations 00195 { 00196 00197 template<class ContainerAllocator> 00198 struct Printer< ::geometry_msgs::Wrench_<ContainerAllocator> > 00199 { 00200 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::Wrench_<ContainerAllocator> & v) 00201 { 00202 s << indent << "force: "; 00203 s << std::endl; 00204 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.force); 00205 s << indent << "torque: "; 00206 s << std::endl; 00207 Printer< ::geometry_msgs::Vector3_<ContainerAllocator> >::stream(s, indent + " ", v.torque); 00208 } 00209 }; 00210 00211 00212 } // namespace message_operations 00213 } // namespace ros 00214 00215 #endif // GEOMETRY_MSGS_MESSAGE_WRENCH_H 00216