00001
00002 #ifndef ART_MSGS_MESSAGE_THROTTLESTATE_H
00003 #define ART_MSGS_MESSAGE_THROTTLESTATE_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014
00015 namespace art_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct ThrottleState_ : public ros::Message
00019 {
00020 typedef ThrottleState_<ContainerAllocator> Type;
00021
00022 ThrottleState_()
00023 : header()
00024 , position(0.0)
00025 , rpms(0.0)
00026 , estop(0)
00027 , pwm(0.0)
00028 , dstate(0.0)
00029 , istate(0.0)
00030 {
00031 }
00032
00033 ThrottleState_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , position(0.0)
00036 , rpms(0.0)
00037 , estop(0)
00038 , pwm(0.0)
00039 , dstate(0.0)
00040 , istate(0.0)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00045 ::std_msgs::Header_<ContainerAllocator> header;
00046
00047 typedef float _position_type;
00048 float position;
00049
00050 typedef float _rpms_type;
00051 float rpms;
00052
00053 typedef uint8_t _estop_type;
00054 uint8_t estop;
00055
00056 typedef float _pwm_type;
00057 float pwm;
00058
00059 typedef float _dstate_type;
00060 float dstate;
00061
00062 typedef float _istate_type;
00063 float istate;
00064
00065
00066 private:
00067 static const char* __s_getDataType_() { return "art_msgs/ThrottleState"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00070
00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00072
00073 private:
00074 static const char* __s_getMD5Sum_() { return "5b1c64434e6ebe49625631607b188cd5"; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00077
00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00079
00080 private:
00081 static const char* __s_getMessageDefinition_() { return "# ART throttle controller state message\n\
00082 \n\
00083 # $Id: ThrottleState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00084 \n\
00085 Header header\n\
00086 \n\
00087 float32 position # fractional position [0, 1]\n\
00088 float32 rpms # engine speed (rev/min)\n\
00089 uint8 estop # emergency stop indicator\n\
00090 \n\
00091 # optional extra diagnostic information:\n\
00092 float32 pwm # Pulse Width Modulation value\n\
00093 float32 dstate # PID derivative state\n\
00094 float32 istate # PID integral state\n\
00095 \n\
00096 ================================================================================\n\
00097 MSG: std_msgs/Header\n\
00098 # Standard metadata for higher-level stamped data types.\n\
00099 # This is generally used to communicate timestamped data \n\
00100 # in a particular coordinate frame.\n\
00101 # \n\
00102 # sequence ID: consecutively increasing ID \n\
00103 uint32 seq\n\
00104 #Two-integer timestamp that is expressed as:\n\
00105 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00106 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00107 # time-handling sugar is provided by the client library\n\
00108 time stamp\n\
00109 #Frame this data is associated with\n\
00110 # 0: no frame\n\
00111 # 1: global frame\n\
00112 string frame_id\n\
00113 \n\
00114 "; }
00115 public:
00116 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00117
00118 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00119
00120 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00121 {
00122 ros::serialization::OStream stream(write_ptr, 1000000000);
00123 ros::serialization::serialize(stream, header);
00124 ros::serialization::serialize(stream, position);
00125 ros::serialization::serialize(stream, rpms);
00126 ros::serialization::serialize(stream, estop);
00127 ros::serialization::serialize(stream, pwm);
00128 ros::serialization::serialize(stream, dstate);
00129 ros::serialization::serialize(stream, istate);
00130 return stream.getData();
00131 }
00132
00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00134 {
00135 ros::serialization::IStream stream(read_ptr, 1000000000);
00136 ros::serialization::deserialize(stream, header);
00137 ros::serialization::deserialize(stream, position);
00138 ros::serialization::deserialize(stream, rpms);
00139 ros::serialization::deserialize(stream, estop);
00140 ros::serialization::deserialize(stream, pwm);
00141 ros::serialization::deserialize(stream, dstate);
00142 ros::serialization::deserialize(stream, istate);
00143 return stream.getData();
00144 }
00145
00146 ROS_DEPRECATED virtual uint32_t serializationLength() const
00147 {
00148 uint32_t size = 0;
00149 size += ros::serialization::serializationLength(header);
00150 size += ros::serialization::serializationLength(position);
00151 size += ros::serialization::serializationLength(rpms);
00152 size += ros::serialization::serializationLength(estop);
00153 size += ros::serialization::serializationLength(pwm);
00154 size += ros::serialization::serializationLength(dstate);
00155 size += ros::serialization::serializationLength(istate);
00156 return size;
00157 }
00158
00159 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> > Ptr;
00160 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> const> ConstPtr;
00161 };
00162 typedef ::art_msgs::ThrottleState_<std::allocator<void> > ThrottleState;
00163
00164 typedef boost::shared_ptr< ::art_msgs::ThrottleState> ThrottleStatePtr;
00165 typedef boost::shared_ptr< ::art_msgs::ThrottleState const> ThrottleStateConstPtr;
00166
00167
00168 template<typename ContainerAllocator>
00169 std::ostream& operator<<(std::ostream& s, const ::art_msgs::ThrottleState_<ContainerAllocator> & v)
00170 {
00171 ros::message_operations::Printer< ::art_msgs::ThrottleState_<ContainerAllocator> >::stream(s, "", v);
00172 return s;}
00173
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_traits
00179 {
00180 template<class ContainerAllocator>
00181 struct MD5Sum< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "5b1c64434e6ebe49625631607b188cd5";
00185 }
00186
00187 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00188 static const uint64_t static_value1 = 0x5b1c64434e6ebe49ULL;
00189 static const uint64_t static_value2 = 0x625631607b188cd5ULL;
00190 };
00191
00192 template<class ContainerAllocator>
00193 struct DataType< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00194 static const char* value()
00195 {
00196 return "art_msgs/ThrottleState";
00197 }
00198
00199 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00200 };
00201
00202 template<class ContainerAllocator>
00203 struct Definition< ::art_msgs::ThrottleState_<ContainerAllocator> > {
00204 static const char* value()
00205 {
00206 return "# ART throttle controller state message\n\
00207 \n\
00208 # $Id: ThrottleState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00209 \n\
00210 Header header\n\
00211 \n\
00212 float32 position # fractional position [0, 1]\n\
00213 float32 rpms # engine speed (rev/min)\n\
00214 uint8 estop # emergency stop indicator\n\
00215 \n\
00216 # optional extra diagnostic information:\n\
00217 float32 pwm # Pulse Width Modulation value\n\
00218 float32 dstate # PID derivative state\n\
00219 float32 istate # PID integral state\n\
00220 \n\
00221 ================================================================================\n\
00222 MSG: std_msgs/Header\n\
00223 # Standard metadata for higher-level stamped data types.\n\
00224 # This is generally used to communicate timestamped data \n\
00225 # in a particular coordinate frame.\n\
00226 # \n\
00227 # sequence ID: consecutively increasing ID \n\
00228 uint32 seq\n\
00229 #Two-integer timestamp that is expressed as:\n\
00230 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00231 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00232 # time-handling sugar is provided by the client library\n\
00233 time stamp\n\
00234 #Frame this data is associated with\n\
00235 # 0: no frame\n\
00236 # 1: global frame\n\
00237 string frame_id\n\
00238 \n\
00239 ";
00240 }
00241
00242 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); }
00243 };
00244
00245 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {};
00246 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {};
00247 }
00248 }
00249
00250 namespace ros
00251 {
00252 namespace serialization
00253 {
00254
00255 template<class ContainerAllocator> struct Serializer< ::art_msgs::ThrottleState_<ContainerAllocator> >
00256 {
00257 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00258 {
00259 stream.next(m.header);
00260 stream.next(m.position);
00261 stream.next(m.rpms);
00262 stream.next(m.estop);
00263 stream.next(m.pwm);
00264 stream.next(m.dstate);
00265 stream.next(m.istate);
00266 }
00267
00268 ROS_DECLARE_ALLINONE_SERIALIZER;
00269 };
00270 }
00271 }
00272
00273 namespace ros
00274 {
00275 namespace message_operations
00276 {
00277
00278 template<class ContainerAllocator>
00279 struct Printer< ::art_msgs::ThrottleState_<ContainerAllocator> >
00280 {
00281 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::ThrottleState_<ContainerAllocator> & v)
00282 {
00283 s << indent << "header: ";
00284 s << std::endl;
00285 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00286 s << indent << "position: ";
00287 Printer<float>::stream(s, indent + " ", v.position);
00288 s << indent << "rpms: ";
00289 Printer<float>::stream(s, indent + " ", v.rpms);
00290 s << indent << "estop: ";
00291 Printer<uint8_t>::stream(s, indent + " ", v.estop);
00292 s << indent << "pwm: ";
00293 Printer<float>::stream(s, indent + " ", v.pwm);
00294 s << indent << "dstate: ";
00295 Printer<float>::stream(s, indent + " ", v.dstate);
00296 s << indent << "istate: ";
00297 Printer<float>::stream(s, indent + " ", v.istate);
00298 }
00299 };
00300
00301
00302 }
00303 }
00304
00305 #endif // ART_MSGS_MESSAGE_THROTTLESTATE_H
00306