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