Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > Ptr;
00063 typedef boost::shared_ptr< ::hector_uav_msgs::ControllerState_<ContainerAllocator> const> ConstPtr;
00064 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00065 };
00066 typedef ::hector_uav_msgs::ControllerState_<std::allocator<void> > ControllerState;
00067
00068 typedef boost::shared_ptr< ::hector_uav_msgs::ControllerState> ControllerStatePtr;
00069 typedef boost::shared_ptr< ::hector_uav_msgs::ControllerState const> ControllerStateConstPtr;
00070
00071
00072 template<typename ContainerAllocator>
00073 std::ostream& operator<<(std::ostream& s, const ::hector_uav_msgs::ControllerState_<ContainerAllocator> & v)
00074 {
00075 ros::message_operations::Printer< ::hector_uav_msgs::ControllerState_<ContainerAllocator> >::stream(s, "", v);
00076 return s;}
00077
00078 }
00079
00080 namespace ros
00081 {
00082 namespace message_traits
00083 {
00084 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > : public TrueType {};
00085 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::ControllerState_<ContainerAllocator> const> : public TrueType {};
00086 template<class ContainerAllocator>
00087 struct MD5Sum< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > {
00088 static const char* value()
00089 {
00090 return "a0f668496c9bbf505c01f59674f2a0c2";
00091 }
00092
00093 static const char* value(const ::hector_uav_msgs::ControllerState_<ContainerAllocator> &) { return value(); }
00094 static const uint64_t static_value1 = 0xa0f668496c9bbf50ULL;
00095 static const uint64_t static_value2 = 0x5c01f59674f2a0c2ULL;
00096 };
00097
00098 template<class ContainerAllocator>
00099 struct DataType< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > {
00100 static const char* value()
00101 {
00102 return "hector_uav_msgs/ControllerState";
00103 }
00104
00105 static const char* value(const ::hector_uav_msgs::ControllerState_<ContainerAllocator> &) { return value(); }
00106 };
00107
00108 template<class ContainerAllocator>
00109 struct Definition< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > {
00110 static const char* value()
00111 {
00112 return "Header header\n\
00113 uint8 source\n\
00114 \n\
00115 uint8 mode\n\
00116 uint8 MOTORS = 1\n\
00117 uint8 ATTITUDE = 2\n\
00118 uint8 VELOCITY = 4\n\
00119 uint8 POSITION = 8\n\
00120 uint8 HEADING = 16\n\
00121 uint8 HEIGHT = 32\n\
00122 \n\
00123 uint8 state\n\
00124 uint8 MOTORS_RUNNING = 1\n\
00125 uint8 AIRBORNE = 2\n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: std_msgs/Header\n\
00129 # Standard metadata for higher-level stamped data types.\n\
00130 # This is generally used to communicate timestamped data \n\
00131 # in a particular coordinate frame.\n\
00132 # \n\
00133 # sequence ID: consecutively increasing ID \n\
00134 uint32 seq\n\
00135 #Two-integer timestamp that is expressed as:\n\
00136 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00137 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00138 # time-handling sugar is provided by the client library\n\
00139 time stamp\n\
00140 #Frame this data is associated with\n\
00141 # 0: no frame\n\
00142 # 1: global frame\n\
00143 string frame_id\n\
00144 \n\
00145 ";
00146 }
00147
00148 static const char* value(const ::hector_uav_msgs::ControllerState_<ContainerAllocator> &) { return value(); }
00149 };
00150
00151 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::ControllerState_<ContainerAllocator> > : public TrueType {};
00152 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::ControllerState_<ContainerAllocator> > : public TrueType {};
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace serialization
00159 {
00160
00161 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::ControllerState_<ContainerAllocator> >
00162 {
00163 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00164 {
00165 stream.next(m.header);
00166 stream.next(m.source);
00167 stream.next(m.mode);
00168 stream.next(m.state);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::hector_uav_msgs::ControllerState_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_uav_msgs::ControllerState_<ContainerAllocator> & v)
00185 {
00186 s << indent << "header: ";
00187 s << std::endl;
00188 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00189 s << indent << "source: ";
00190 Printer<uint8_t>::stream(s, indent + " ", v.source);
00191 s << indent << "mode: ";
00192 Printer<uint8_t>::stream(s, indent + " ", v.mode);
00193 s << indent << "state: ";
00194 Printer<uint8_t>::stream(s, indent + " ", v.state);
00195 }
00196 };
00197
00198
00199 }
00200 }
00201
00202 #endif // HECTOR_UAV_MSGS_MESSAGE_CONTROLLERSTATE_H
00203