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