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