$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-clearpath_common/doc_stacks/2013-03-01_14-27-57.340522/clearpath_common/clearpath_base/msg/Encoders.msg */ 00002 #ifndef CLEARPATH_BASE_MESSAGE_ENCODERS_H 00003 #define CLEARPATH_BASE_MESSAGE_ENCODERS_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 "std_msgs/Header.h" 00018 #include "clearpath_base/Encoder.h" 00019 00020 namespace clearpath_base 00021 { 00022 template <class ContainerAllocator> 00023 struct Encoders_ { 00024 typedef Encoders_<ContainerAllocator> Type; 00025 00026 Encoders_() 00027 : header() 00028 , encoders() 00029 { 00030 } 00031 00032 Encoders_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , encoders(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::clearpath_base::Encoder_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::clearpath_base::Encoder_<ContainerAllocator> >::other > _encoders_type; 00042 std::vector< ::clearpath_base::Encoder_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::clearpath_base::Encoder_<ContainerAllocator> >::other > encoders; 00043 00044 00045 ROS_DEPRECATED uint32_t get_encoders_size() const { return (uint32_t)encoders.size(); } 00046 ROS_DEPRECATED void set_encoders_size(uint32_t size) { encoders.resize((size_t)size); } 00047 ROS_DEPRECATED void get_encoders_vec(std::vector< ::clearpath_base::Encoder_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::clearpath_base::Encoder_<ContainerAllocator> >::other > & vec) const { vec = this->encoders; } 00048 ROS_DEPRECATED void set_encoders_vec(const std::vector< ::clearpath_base::Encoder_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::clearpath_base::Encoder_<ContainerAllocator> >::other > & vec) { this->encoders = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "clearpath_base/Encoders"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "2ea748832c2014369ffabd316d5aad8c"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00065 Encoder[] encoders\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: std_msgs/Header\n\ 00069 # Standard metadata for higher-level stamped data types.\n\ 00070 # This is generally used to communicate timestamped data \n\ 00071 # in a particular coordinate frame.\n\ 00072 # \n\ 00073 # sequence ID: consecutively increasing ID \n\ 00074 uint32 seq\n\ 00075 #Two-integer timestamp that is expressed as:\n\ 00076 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00077 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00078 # time-handling sugar is provided by the client library\n\ 00079 time stamp\n\ 00080 #Frame this data is associated with\n\ 00081 # 0: no frame\n\ 00082 # 1: global frame\n\ 00083 string frame_id\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: clearpath_base/Encoder\n\ 00087 float64 travel\n\ 00088 float64 speed\n\ 00089 \n\ 00090 "; } 00091 public: 00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00093 00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00097 { 00098 ros::serialization::OStream stream(write_ptr, 1000000000); 00099 ros::serialization::serialize(stream, header); 00100 ros::serialization::serialize(stream, encoders); 00101 return stream.getData(); 00102 } 00103 00104 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00105 { 00106 ros::serialization::IStream stream(read_ptr, 1000000000); 00107 ros::serialization::deserialize(stream, header); 00108 ros::serialization::deserialize(stream, encoders); 00109 return stream.getData(); 00110 } 00111 00112 ROS_DEPRECATED virtual uint32_t serializationLength() const 00113 { 00114 uint32_t size = 0; 00115 size += ros::serialization::serializationLength(header); 00116 size += ros::serialization::serializationLength(encoders); 00117 return size; 00118 } 00119 00120 typedef boost::shared_ptr< ::clearpath_base::Encoders_<ContainerAllocator> > Ptr; 00121 typedef boost::shared_ptr< ::clearpath_base::Encoders_<ContainerAllocator> const> ConstPtr; 00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00123 }; // struct Encoders 00124 typedef ::clearpath_base::Encoders_<std::allocator<void> > Encoders; 00125 00126 typedef boost::shared_ptr< ::clearpath_base::Encoders> EncodersPtr; 00127 typedef boost::shared_ptr< ::clearpath_base::Encoders const> EncodersConstPtr; 00128 00129 00130 template<typename ContainerAllocator> 00131 std::ostream& operator<<(std::ostream& s, const ::clearpath_base::Encoders_<ContainerAllocator> & v) 00132 { 00133 ros::message_operations::Printer< ::clearpath_base::Encoders_<ContainerAllocator> >::stream(s, "", v); 00134 return s;} 00135 00136 } // namespace clearpath_base 00137 00138 namespace ros 00139 { 00140 namespace message_traits 00141 { 00142 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::Encoders_<ContainerAllocator> > : public TrueType {}; 00143 template<class ContainerAllocator> struct IsMessage< ::clearpath_base::Encoders_<ContainerAllocator> const> : public TrueType {}; 00144 template<class ContainerAllocator> 00145 struct MD5Sum< ::clearpath_base::Encoders_<ContainerAllocator> > { 00146 static const char* value() 00147 { 00148 return "2ea748832c2014369ffabd316d5aad8c"; 00149 } 00150 00151 static const char* value(const ::clearpath_base::Encoders_<ContainerAllocator> &) { return value(); } 00152 static const uint64_t static_value1 = 0x2ea748832c201436ULL; 00153 static const uint64_t static_value2 = 0x9ffabd316d5aad8cULL; 00154 }; 00155 00156 template<class ContainerAllocator> 00157 struct DataType< ::clearpath_base::Encoders_<ContainerAllocator> > { 00158 static const char* value() 00159 { 00160 return "clearpath_base/Encoders"; 00161 } 00162 00163 static const char* value(const ::clearpath_base::Encoders_<ContainerAllocator> &) { return value(); } 00164 }; 00165 00166 template<class ContainerAllocator> 00167 struct Definition< ::clearpath_base::Encoders_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "Header header\n\ 00171 Encoder[] encoders\n\ 00172 \n\ 00173 ================================================================================\n\ 00174 MSG: std_msgs/Header\n\ 00175 # Standard metadata for higher-level stamped data types.\n\ 00176 # This is generally used to communicate timestamped data \n\ 00177 # in a particular coordinate frame.\n\ 00178 # \n\ 00179 # sequence ID: consecutively increasing ID \n\ 00180 uint32 seq\n\ 00181 #Two-integer timestamp that is expressed as:\n\ 00182 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00183 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00184 # time-handling sugar is provided by the client library\n\ 00185 time stamp\n\ 00186 #Frame this data is associated with\n\ 00187 # 0: no frame\n\ 00188 # 1: global frame\n\ 00189 string frame_id\n\ 00190 \n\ 00191 ================================================================================\n\ 00192 MSG: clearpath_base/Encoder\n\ 00193 float64 travel\n\ 00194 float64 speed\n\ 00195 \n\ 00196 "; 00197 } 00198 00199 static const char* value(const ::clearpath_base::Encoders_<ContainerAllocator> &) { return value(); } 00200 }; 00201 00202 template<class ContainerAllocator> struct HasHeader< ::clearpath_base::Encoders_<ContainerAllocator> > : public TrueType {}; 00203 template<class ContainerAllocator> struct HasHeader< const ::clearpath_base::Encoders_<ContainerAllocator> > : public TrueType {}; 00204 } // namespace message_traits 00205 } // namespace ros 00206 00207 namespace ros 00208 { 00209 namespace serialization 00210 { 00211 00212 template<class ContainerAllocator> struct Serializer< ::clearpath_base::Encoders_<ContainerAllocator> > 00213 { 00214 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00215 { 00216 stream.next(m.header); 00217 stream.next(m.encoders); 00218 } 00219 00220 ROS_DECLARE_ALLINONE_SERIALIZER; 00221 }; // struct Encoders_ 00222 } // namespace serialization 00223 } // namespace ros 00224 00225 namespace ros 00226 { 00227 namespace message_operations 00228 { 00229 00230 template<class ContainerAllocator> 00231 struct Printer< ::clearpath_base::Encoders_<ContainerAllocator> > 00232 { 00233 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::clearpath_base::Encoders_<ContainerAllocator> & v) 00234 { 00235 s << indent << "header: "; 00236 s << std::endl; 00237 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00238 s << indent << "encoders[]" << std::endl; 00239 for (size_t i = 0; i < v.encoders.size(); ++i) 00240 { 00241 s << indent << " encoders[" << i << "]: "; 00242 s << std::endl; 00243 s << indent; 00244 Printer< ::clearpath_base::Encoder_<ContainerAllocator> >::stream(s, indent + " ", v.encoders[i]); 00245 } 00246 } 00247 }; 00248 00249 00250 } // namespace message_operations 00251 } // namespace ros 00252 00253 #endif // CLEARPATH_BASE_MESSAGE_ENCODERS_H 00254