Go to the documentation of this file.00001
00002 #ifndef ART_MSGS_MESSAGE_THROTTLESTATE_H
00003 #define ART_MSGS_MESSAGE_THROTTLESTATE_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 art_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ThrottleState_ {
00023 typedef ThrottleState_<ContainerAllocator> Type;
00024
00025 ThrottleState_()
00026 : header()
00027 , position(0.0)
00028 , rpms(0.0)
00029 , estop(0)
00030 , pwm(0.0)
00031 , dstate(0.0)
00032 , istate(0.0)
00033 {
00034 }
00035
00036 ThrottleState_(const ContainerAllocator& _alloc)
00037 : header(_alloc)
00038 , position(0.0)
00039 , rpms(0.0)
00040 , estop(0)
00041 , pwm(0.0)
00042 , dstate(0.0)
00043 , istate(0.0)
00044 {
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef float _position_type;
00051 float position;
00052
00053 typedef float _rpms_type;
00054 float rpms;
00055
00056 typedef uint8_t _estop_type;
00057 uint8_t estop;
00058
00059 typedef float _pwm_type;
00060 float pwm;
00061
00062 typedef float _dstate_type;
00063 float dstate;
00064
00065 typedef float _istate_type;
00066 float istate;
00067
00068
00069 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> > Ptr;
00070 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> const> ConstPtr;
00071 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00072 };
00073 typedef ::art_msgs::ThrottleState_<std::allocator<void> > ThrottleState;
00074
00075 typedef boost::shared_ptr< ::art_msgs::ThrottleState> ThrottleStatePtr;
00076 typedef boost::shared_ptr< ::art_msgs::ThrottleState const> ThrottleStateConstPtr;
00077
00078
00079 template<typename ContainerAllocator>
00080 std::ostream& operator<<(std::ostream& s, const ::art_msgs::ThrottleState_<ContainerAllocator> & v)
00081 {
00082 ros::message_operations::Printer< ::art_msgs::ThrottleState_<ContainerAllocator> >::stream(s, "", v);
00083 return s;}
00084
00085 }
00086
00087 namespace ros
00088 {
00089 namespace message_traits
00090 {
00091 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {};
00092 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ThrottleState_<ContainerAllocator> const> : public TrueType {};
00093 template<class ContainerAllocator>
00094 struct MD5Sum< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00095 static const char* value()
00096 {
00097 return "5b1c64434e6ebe49625631607b188cd5";
00098 }
00099
00100 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00101 static const uint64_t static_value1 = 0x5b1c64434e6ebe49ULL;
00102 static const uint64_t static_value2 = 0x625631607b188cd5ULL;
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct DataType< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "art_msgs/ThrottleState";
00110 }
00111
00112 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00113 };
00114
00115 template<class ContainerAllocator>
00116 struct Definition< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00117 static const char* value()
00118 {
00119 return "# ART throttle controller state message\n\
00120 \n\
00121 # $Id: ThrottleState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00122 \n\
00123 Header header\n\
00124 \n\
00125 float32 position # fractional position [0, 1]\n\
00126 float32 rpms # engine speed (rev/min)\n\
00127 uint8 estop # emergency stop indicator\n\
00128 \n\
00129 # optional extra diagnostic information:\n\
00130 float32 pwm # Pulse Width Modulation value\n\
00131 float32 dstate # PID derivative state\n\
00132 float32 istate # PID integral state\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: std_msgs/Header\n\
00136 # Standard metadata for higher-level stamped data types.\n\
00137 # This is generally used to communicate timestamped data \n\
00138 # in a particular coordinate frame.\n\
00139 # \n\
00140 # sequence ID: consecutively increasing ID \n\
00141 uint32 seq\n\
00142 #Two-integer timestamp that is expressed as:\n\
00143 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00144 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00145 # time-handling sugar is provided by the client library\n\
00146 time stamp\n\
00147 #Frame this data is associated with\n\
00148 # 0: no frame\n\
00149 # 1: global frame\n\
00150 string frame_id\n\
00151 \n\
00152 ";
00153 }
00154
00155 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00156 };
00157
00158 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {};
00159 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {};
00160 }
00161 }
00162
00163 namespace ros
00164 {
00165 namespace serialization
00166 {
00167
00168 template<class ContainerAllocator> struct Serializer< ::art_msgs::ThrottleState_<ContainerAllocator> >
00169 {
00170 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00171 {
00172 stream.next(m.header);
00173 stream.next(m.position);
00174 stream.next(m.rpms);
00175 stream.next(m.estop);
00176 stream.next(m.pwm);
00177 stream.next(m.dstate);
00178 stream.next(m.istate);
00179 }
00180
00181 ROS_DECLARE_ALLINONE_SERIALIZER;
00182 };
00183 }
00184 }
00185
00186 namespace ros
00187 {
00188 namespace message_operations
00189 {
00190
00191 template<class ContainerAllocator>
00192 struct Printer< ::art_msgs::ThrottleState_<ContainerAllocator> >
00193 {
00194 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::ThrottleState_<ContainerAllocator> & v)
00195 {
00196 s << indent << "header: ";
00197 s << std::endl;
00198 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00199 s << indent << "position: ";
00200 Printer<float>::stream(s, indent + " ", v.position);
00201 s << indent << "rpms: ";
00202 Printer<float>::stream(s, indent + " ", v.rpms);
00203 s << indent << "estop: ";
00204 Printer<uint8_t>::stream(s, indent + " ", v.estop);
00205 s << indent << "pwm: ";
00206 Printer<float>::stream(s, indent + " ", v.pwm);
00207 s << indent << "dstate: ";
00208 Printer<float>::stream(s, indent + " ", v.dstate);
00209 s << indent << "istate: ";
00210 Printer<float>::stream(s, indent + " ", v.istate);
00211 }
00212 };
00213
00214
00215 }
00216 }
00217
00218 #endif // ART_MSGS_MESSAGE_THROTTLESTATE_H
00219