Go to the documentation of this file.00001
00002 #ifndef HECTOR_UAV_MSGS_MESSAGE_RC_H
00003 #define HECTOR_UAV_MSGS_MESSAGE_RC_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 RC_ {
00023 typedef RC_<ContainerAllocator> Type;
00024
00025 RC_()
00026 : header()
00027 , status(0)
00028 , valid(false)
00029 , axis()
00030 , axis_function()
00031 , swit()
00032 , swit_function()
00033 {
00034 }
00035
00036 RC_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , status(0)
00039 , valid(false)
00040 , axis(_alloc)
00041 , axis_function(_alloc)
00042 , swit(_alloc)
00043 , swit_function(_alloc)
00044 {
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef uint8_t _status_type;
00051 uint8_t status;
00052
00053 typedef uint8_t _valid_type;
00054 uint8_t valid;
00055
00056 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _axis_type;
00057 std::vector<float, typename ContainerAllocator::template rebind<float>::other > axis;
00058
00059 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _axis_function_type;
00060 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > axis_function;
00061
00062 typedef std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > _swit_type;
00063 std::vector<int8_t, typename ContainerAllocator::template rebind<int8_t>::other > swit;
00064
00065 typedef std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > _swit_function_type;
00066 std::vector<uint8_t, typename ContainerAllocator::template rebind<uint8_t>::other > swit_function;
00067
00068 enum { ROLL = 1 };
00069 enum { PITCH = 2 };
00070 enum { YAW = 3 };
00071 enum { STEER = 4 };
00072 enum { HEIGHT = 5 };
00073 enum { THRUST = 6 };
00074 enum { BRAKE = 7 };
00075
00076 typedef boost::shared_ptr< ::hector_uav_msgs::RC_<ContainerAllocator> > Ptr;
00077 typedef boost::shared_ptr< ::hector_uav_msgs::RC_<ContainerAllocator> const> ConstPtr;
00078 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00079 };
00080 typedef ::hector_uav_msgs::RC_<std::allocator<void> > RC;
00081
00082 typedef boost::shared_ptr< ::hector_uav_msgs::RC> RCPtr;
00083 typedef boost::shared_ptr< ::hector_uav_msgs::RC const> RCConstPtr;
00084
00085
00086 template<typename ContainerAllocator>
00087 std::ostream& operator<<(std::ostream& s, const ::hector_uav_msgs::RC_<ContainerAllocator> & v)
00088 {
00089 ros::message_operations::Printer< ::hector_uav_msgs::RC_<ContainerAllocator> >::stream(s, "", v);
00090 return s;}
00091
00092 }
00093
00094 namespace ros
00095 {
00096 namespace message_traits
00097 {
00098 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RC_<ContainerAllocator> > : public TrueType {};
00099 template<class ContainerAllocator> struct IsMessage< ::hector_uav_msgs::RC_<ContainerAllocator> const> : public TrueType {};
00100 template<class ContainerAllocator>
00101 struct MD5Sum< ::hector_uav_msgs::RC_<ContainerAllocator> > {
00102 static const char* value()
00103 {
00104 return "2691c2fe8c5ab2323146bdd8dd2e449e";
00105 }
00106
00107 static const char* value(const ::hector_uav_msgs::RC_<ContainerAllocator> &) { return value(); }
00108 static const uint64_t static_value1 = 0x2691c2fe8c5ab232ULL;
00109 static const uint64_t static_value2 = 0x3146bdd8dd2e449eULL;
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct DataType< ::hector_uav_msgs::RC_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "hector_uav_msgs/RC";
00117 }
00118
00119 static const char* value(const ::hector_uav_msgs::RC_<ContainerAllocator> &) { return value(); }
00120 };
00121
00122 template<class ContainerAllocator>
00123 struct Definition< ::hector_uav_msgs::RC_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "Header header\n\
00127 \n\
00128 uint8 ROLL = 1\n\
00129 uint8 PITCH = 2\n\
00130 uint8 YAW = 3\n\
00131 uint8 STEER = 4\n\
00132 uint8 HEIGHT = 5\n\
00133 uint8 THRUST = 6\n\
00134 uint8 BRAKE = 7\n\
00135 \n\
00136 uint8 status\n\
00137 bool valid\n\
00138 \n\
00139 float32[] axis\n\
00140 uint8[] axis_function\n\
00141 \n\
00142 int8[] swit\n\
00143 uint8[] swit_function\n\
00144 \n\
00145 ================================================================================\n\
00146 MSG: std_msgs/Header\n\
00147 # Standard metadata for higher-level stamped data types.\n\
00148 # This is generally used to communicate timestamped data \n\
00149 # in a particular coordinate frame.\n\
00150 # \n\
00151 # sequence ID: consecutively increasing ID \n\
00152 uint32 seq\n\
00153 #Two-integer timestamp that is expressed as:\n\
00154 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00155 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00156 # time-handling sugar is provided by the client library\n\
00157 time stamp\n\
00158 #Frame this data is associated with\n\
00159 # 0: no frame\n\
00160 # 1: global frame\n\
00161 string frame_id\n\
00162 \n\
00163 ";
00164 }
00165
00166 static const char* value(const ::hector_uav_msgs::RC_<ContainerAllocator> &) { return value(); }
00167 };
00168
00169 template<class ContainerAllocator> struct HasHeader< ::hector_uav_msgs::RC_<ContainerAllocator> > : public TrueType {};
00170 template<class ContainerAllocator> struct HasHeader< const ::hector_uav_msgs::RC_<ContainerAllocator> > : public TrueType {};
00171 }
00172 }
00173
00174 namespace ros
00175 {
00176 namespace serialization
00177 {
00178
00179 template<class ContainerAllocator> struct Serializer< ::hector_uav_msgs::RC_<ContainerAllocator> >
00180 {
00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00182 {
00183 stream.next(m.header);
00184 stream.next(m.status);
00185 stream.next(m.valid);
00186 stream.next(m.axis);
00187 stream.next(m.axis_function);
00188 stream.next(m.swit);
00189 stream.next(m.swit_function);
00190 }
00191
00192 ROS_DECLARE_ALLINONE_SERIALIZER;
00193 };
00194 }
00195 }
00196
00197 namespace ros
00198 {
00199 namespace message_operations
00200 {
00201
00202 template<class ContainerAllocator>
00203 struct Printer< ::hector_uav_msgs::RC_<ContainerAllocator> >
00204 {
00205 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::hector_uav_msgs::RC_<ContainerAllocator> & v)
00206 {
00207 s << indent << "header: ";
00208 s << std::endl;
00209 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00210 s << indent << "status: ";
00211 Printer<uint8_t>::stream(s, indent + " ", v.status);
00212 s << indent << "valid: ";
00213 Printer<uint8_t>::stream(s, indent + " ", v.valid);
00214 s << indent << "axis[]" << std::endl;
00215 for (size_t i = 0; i < v.axis.size(); ++i)
00216 {
00217 s << indent << " axis[" << i << "]: ";
00218 Printer<float>::stream(s, indent + " ", v.axis[i]);
00219 }
00220 s << indent << "axis_function[]" << std::endl;
00221 for (size_t i = 0; i < v.axis_function.size(); ++i)
00222 {
00223 s << indent << " axis_function[" << i << "]: ";
00224 Printer<uint8_t>::stream(s, indent + " ", v.axis_function[i]);
00225 }
00226 s << indent << "swit[]" << std::endl;
00227 for (size_t i = 0; i < v.swit.size(); ++i)
00228 {
00229 s << indent << " swit[" << i << "]: ";
00230 Printer<int8_t>::stream(s, indent + " ", v.swit[i]);
00231 }
00232 s << indent << "swit_function[]" << std::endl;
00233 for (size_t i = 0; i < v.swit_function.size(); ++i)
00234 {
00235 s << indent << " swit_function[" << i << "]: ";
00236 Printer<uint8_t>::stream(s, indent + " ", v.swit_function[i]);
00237 }
00238 }
00239 };
00240
00241
00242 }
00243 }
00244
00245 #endif // HECTOR_UAV_MSGS_MESSAGE_RC_H
00246