$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ros_tutorials/doc_stacks/2013-03-02_13-18-38.146089/ros_tutorials/turtlesim/msg/Velocity.msg */ 00002 #ifndef TURTLESIM_MESSAGE_VELOCITY_H 00003 #define TURTLESIM_MESSAGE_VELOCITY_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 00018 namespace turtlesim 00019 { 00020 template <class ContainerAllocator> 00021 struct Velocity_ { 00022 typedef Velocity_<ContainerAllocator> Type; 00023 00024 Velocity_() 00025 : linear(0.0) 00026 , angular(0.0) 00027 { 00028 } 00029 00030 Velocity_(const ContainerAllocator& _alloc) 00031 : linear(0.0) 00032 , angular(0.0) 00033 { 00034 } 00035 00036 typedef float _linear_type; 00037 float linear; 00038 00039 typedef float _angular_type; 00040 float angular; 00041 00042 00043 private: 00044 static const char* __s_getDataType_() { return "turtlesim/Velocity"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "9d5c2dcd348ac8f76ce2a4307bd63a13"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "float32 linear\n\ 00059 float32 angular\n\ 00060 "; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00063 00064 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00065 00066 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00067 { 00068 ros::serialization::OStream stream(write_ptr, 1000000000); 00069 ros::serialization::serialize(stream, linear); 00070 ros::serialization::serialize(stream, angular); 00071 return stream.getData(); 00072 } 00073 00074 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00075 { 00076 ros::serialization::IStream stream(read_ptr, 1000000000); 00077 ros::serialization::deserialize(stream, linear); 00078 ros::serialization::deserialize(stream, angular); 00079 return stream.getData(); 00080 } 00081 00082 ROS_DEPRECATED virtual uint32_t serializationLength() const 00083 { 00084 uint32_t size = 0; 00085 size += ros::serialization::serializationLength(linear); 00086 size += ros::serialization::serializationLength(angular); 00087 return size; 00088 } 00089 00090 typedef boost::shared_ptr< ::turtlesim::Velocity_<ContainerAllocator> > Ptr; 00091 typedef boost::shared_ptr< ::turtlesim::Velocity_<ContainerAllocator> const> ConstPtr; 00092 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00093 }; // struct Velocity 00094 typedef ::turtlesim::Velocity_<std::allocator<void> > Velocity; 00095 00096 typedef boost::shared_ptr< ::turtlesim::Velocity> VelocityPtr; 00097 typedef boost::shared_ptr< ::turtlesim::Velocity const> VelocityConstPtr; 00098 00099 00100 template<typename ContainerAllocator> 00101 std::ostream& operator<<(std::ostream& s, const ::turtlesim::Velocity_<ContainerAllocator> & v) 00102 { 00103 ros::message_operations::Printer< ::turtlesim::Velocity_<ContainerAllocator> >::stream(s, "", v); 00104 return s;} 00105 00106 } // namespace turtlesim 00107 00108 namespace ros 00109 { 00110 namespace message_traits 00111 { 00112 template<class ContainerAllocator> struct IsMessage< ::turtlesim::Velocity_<ContainerAllocator> > : public TrueType {}; 00113 template<class ContainerAllocator> struct IsMessage< ::turtlesim::Velocity_<ContainerAllocator> const> : public TrueType {}; 00114 template<class ContainerAllocator> 00115 struct MD5Sum< ::turtlesim::Velocity_<ContainerAllocator> > { 00116 static const char* value() 00117 { 00118 return "9d5c2dcd348ac8f76ce2a4307bd63a13"; 00119 } 00120 00121 static const char* value(const ::turtlesim::Velocity_<ContainerAllocator> &) { return value(); } 00122 static const uint64_t static_value1 = 0x9d5c2dcd348ac8f7ULL; 00123 static const uint64_t static_value2 = 0x6ce2a4307bd63a13ULL; 00124 }; 00125 00126 template<class ContainerAllocator> 00127 struct DataType< ::turtlesim::Velocity_<ContainerAllocator> > { 00128 static const char* value() 00129 { 00130 return "turtlesim/Velocity"; 00131 } 00132 00133 static const char* value(const ::turtlesim::Velocity_<ContainerAllocator> &) { return value(); } 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct Definition< ::turtlesim::Velocity_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "float32 linear\n\ 00141 float32 angular\n\ 00142 "; 00143 } 00144 00145 static const char* value(const ::turtlesim::Velocity_<ContainerAllocator> &) { return value(); } 00146 }; 00147 00148 template<class ContainerAllocator> struct IsFixedSize< ::turtlesim::Velocity_<ContainerAllocator> > : public TrueType {}; 00149 } // namespace message_traits 00150 } // namespace ros 00151 00152 namespace ros 00153 { 00154 namespace serialization 00155 { 00156 00157 template<class ContainerAllocator> struct Serializer< ::turtlesim::Velocity_<ContainerAllocator> > 00158 { 00159 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00160 { 00161 stream.next(m.linear); 00162 stream.next(m.angular); 00163 } 00164 00165 ROS_DECLARE_ALLINONE_SERIALIZER; 00166 }; // struct Velocity_ 00167 } // namespace serialization 00168 } // namespace ros 00169 00170 namespace ros 00171 { 00172 namespace message_operations 00173 { 00174 00175 template<class ContainerAllocator> 00176 struct Printer< ::turtlesim::Velocity_<ContainerAllocator> > 00177 { 00178 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::turtlesim::Velocity_<ContainerAllocator> & v) 00179 { 00180 s << indent << "linear: "; 00181 Printer<float>::stream(s, indent + " ", v.linear); 00182 s << indent << "angular: "; 00183 Printer<float>::stream(s, indent + " ", v.angular); 00184 } 00185 }; 00186 00187 00188 } // namespace message_operations 00189 } // namespace ros 00190 00191 #endif // TURTLESIM_MESSAGE_VELOCITY_H 00192