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