Go to the documentation of this file.00001
00002 #ifndef STARMAC_MSGS_MESSAGE_OPERATORCOMMANDS_H
00003 #define STARMAC_MSGS_MESSAGE_OPERATORCOMMANDS_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
00018 namespace starmac_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct OperatorCommands_ {
00022 typedef OperatorCommands_<ContainerAllocator> Type;
00023
00024 OperatorCommands_()
00025 : roll_cmd(0.0)
00026 , pitch_cmd(0.0)
00027 , yaw_cmd(0.0)
00028 , alt_cmd(0.0)
00029 , motors_on(false)
00030 {
00031 }
00032
00033 OperatorCommands_(const ContainerAllocator& _alloc)
00034 : roll_cmd(0.0)
00035 , pitch_cmd(0.0)
00036 , yaw_cmd(0.0)
00037 , alt_cmd(0.0)
00038 , motors_on(false)
00039 {
00040 }
00041
00042 typedef double _roll_cmd_type;
00043 double roll_cmd;
00044
00045 typedef double _pitch_cmd_type;
00046 double pitch_cmd;
00047
00048 typedef double _yaw_cmd_type;
00049 double yaw_cmd;
00050
00051 typedef double _alt_cmd_type;
00052 double alt_cmd;
00053
00054 typedef uint8_t _motors_on_type;
00055 uint8_t motors_on;
00056
00057
00058 typedef boost::shared_ptr< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > Ptr;
00059 typedef boost::shared_ptr< ::starmac_msgs::OperatorCommands_<ContainerAllocator> const> ConstPtr;
00060 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 };
00062 typedef ::starmac_msgs::OperatorCommands_<std::allocator<void> > OperatorCommands;
00063
00064 typedef boost::shared_ptr< ::starmac_msgs::OperatorCommands> OperatorCommandsPtr;
00065 typedef boost::shared_ptr< ::starmac_msgs::OperatorCommands const> OperatorCommandsConstPtr;
00066
00067
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const ::starmac_msgs::OperatorCommands_<ContainerAllocator> & v)
00070 {
00071 ros::message_operations::Printer< ::starmac_msgs::OperatorCommands_<ContainerAllocator> >::stream(s, "", v);
00072 return s;}
00073
00074 }
00075
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::starmac_msgs::OperatorCommands_<ContainerAllocator> const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > {
00084 static const char* value()
00085 {
00086 return "6368ecdaa27b1424d4bcd7569c40402b";
00087 }
00088
00089 static const char* value(const ::starmac_msgs::OperatorCommands_<ContainerAllocator> &) { return value(); }
00090 static const uint64_t static_value1 = 0x6368ecdaa27b1424ULL;
00091 static const uint64_t static_value2 = 0xd4bcd7569c40402bULL;
00092 };
00093
00094 template<class ContainerAllocator>
00095 struct DataType< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > {
00096 static const char* value()
00097 {
00098 return "starmac_msgs/OperatorCommands";
00099 }
00100
00101 static const char* value(const ::starmac_msgs::OperatorCommands_<ContainerAllocator> &) { return value(); }
00102 };
00103
00104 template<class ContainerAllocator>
00105 struct Definition< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > {
00106 static const char* value()
00107 {
00108 return "# This message conveys normalized operator joystick commands, expressed in the\n\
00109 # joystick frame of reference. I.e., roll_cmd = -1.0 corresponds to full left deflection\n\
00110 # of the joystick's roll axis. Any deadbands should already be applied. Any semantic\n\
00111 # interpretation of these commands occurs downstream of this message. E.g., in\n\
00112 # one context yaw_cmd = 0.5 could mean a certain yaw angle is being commanded\n\
00113 # or it could mean a certain yaw rate is commanded. In another context yaw might\n\
00114 # be entirely repurposed.\n\
00115 \n\
00116 float64 roll_cmd # -1.0 .. 1.0\n\
00117 float64 pitch_cmd # -1.0 .. 1.0\n\
00118 float64 yaw_cmd # -1.0 .. 1.0\n\
00119 float64 alt_cmd # 0.0 .. 1.0\n\
00120 bool motors_on # true if motors should be running\n\
00121 \n\
00122 ";
00123 }
00124
00125 static const char* value(const ::starmac_msgs::OperatorCommands_<ContainerAllocator> &) { return value(); }
00126 };
00127
00128 template<class ContainerAllocator> struct IsFixedSize< ::starmac_msgs::OperatorCommands_<ContainerAllocator> > : public TrueType {};
00129 }
00130 }
00131
00132 namespace ros
00133 {
00134 namespace serialization
00135 {
00136
00137 template<class ContainerAllocator> struct Serializer< ::starmac_msgs::OperatorCommands_<ContainerAllocator> >
00138 {
00139 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00140 {
00141 stream.next(m.roll_cmd);
00142 stream.next(m.pitch_cmd);
00143 stream.next(m.yaw_cmd);
00144 stream.next(m.alt_cmd);
00145 stream.next(m.motors_on);
00146 }
00147
00148 ROS_DECLARE_ALLINONE_SERIALIZER;
00149 };
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace message_operations
00156 {
00157
00158 template<class ContainerAllocator>
00159 struct Printer< ::starmac_msgs::OperatorCommands_<ContainerAllocator> >
00160 {
00161 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::starmac_msgs::OperatorCommands_<ContainerAllocator> & v)
00162 {
00163 s << indent << "roll_cmd: ";
00164 Printer<double>::stream(s, indent + " ", v.roll_cmd);
00165 s << indent << "pitch_cmd: ";
00166 Printer<double>::stream(s, indent + " ", v.pitch_cmd);
00167 s << indent << "yaw_cmd: ";
00168 Printer<double>::stream(s, indent + " ", v.yaw_cmd);
00169 s << indent << "alt_cmd: ";
00170 Printer<double>::stream(s, indent + " ", v.alt_cmd);
00171 s << indent << "motors_on: ";
00172 Printer<uint8_t>::stream(s, indent + " ", v.motors_on);
00173 }
00174 };
00175
00176
00177 }
00178 }
00179
00180 #endif // STARMAC_MSGS_MESSAGE_OPERATORCOMMANDS_H
00181