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