$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-art_vehicle/doc_stacks/2013-03-01_14-08-11.497537/art_vehicle/art_msgs/msg/ThrottleState.msg */ 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 private: 00070 static const char* __s_getDataType_() { return "art_msgs/ThrottleState"; } 00071 public: 00072 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00073 00074 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00075 00076 private: 00077 static const char* __s_getMD5Sum_() { return "5b1c64434e6ebe49625631607b188cd5"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00080 00081 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00082 00083 private: 00084 static const char* __s_getMessageDefinition_() { return "# ART throttle controller state message\n\ 00085 \n\ 00086 # $Id: ThrottleState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00087 \n\ 00088 Header header\n\ 00089 \n\ 00090 float32 position # fractional position [0, 1]\n\ 00091 float32 rpms # engine speed (rev/min)\n\ 00092 uint8 estop # emergency stop indicator\n\ 00093 \n\ 00094 # optional extra diagnostic information:\n\ 00095 float32 pwm # Pulse Width Modulation value\n\ 00096 float32 dstate # PID derivative state\n\ 00097 float32 istate # PID integral state\n\ 00098 \n\ 00099 ================================================================================\n\ 00100 MSG: std_msgs/Header\n\ 00101 # Standard metadata for higher-level stamped data types.\n\ 00102 # This is generally used to communicate timestamped data \n\ 00103 # in a particular coordinate frame.\n\ 00104 # \n\ 00105 # sequence ID: consecutively increasing ID \n\ 00106 uint32 seq\n\ 00107 #Two-integer timestamp that is expressed as:\n\ 00108 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00109 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00110 # time-handling sugar is provided by the client library\n\ 00111 time stamp\n\ 00112 #Frame this data is associated with\n\ 00113 # 0: no frame\n\ 00114 # 1: global frame\n\ 00115 string frame_id\n\ 00116 \n\ 00117 "; } 00118 public: 00119 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00120 00121 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00122 00123 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00124 { 00125 ros::serialization::OStream stream(write_ptr, 1000000000); 00126 ros::serialization::serialize(stream, header); 00127 ros::serialization::serialize(stream, position); 00128 ros::serialization::serialize(stream, rpms); 00129 ros::serialization::serialize(stream, estop); 00130 ros::serialization::serialize(stream, pwm); 00131 ros::serialization::serialize(stream, dstate); 00132 ros::serialization::serialize(stream, istate); 00133 return stream.getData(); 00134 } 00135 00136 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00137 { 00138 ros::serialization::IStream stream(read_ptr, 1000000000); 00139 ros::serialization::deserialize(stream, header); 00140 ros::serialization::deserialize(stream, position); 00141 ros::serialization::deserialize(stream, rpms); 00142 ros::serialization::deserialize(stream, estop); 00143 ros::serialization::deserialize(stream, pwm); 00144 ros::serialization::deserialize(stream, dstate); 00145 ros::serialization::deserialize(stream, istate); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint32_t serializationLength() const 00150 { 00151 uint32_t size = 0; 00152 size += ros::serialization::serializationLength(header); 00153 size += ros::serialization::serializationLength(position); 00154 size += ros::serialization::serializationLength(rpms); 00155 size += ros::serialization::serializationLength(estop); 00156 size += ros::serialization::serializationLength(pwm); 00157 size += ros::serialization::serializationLength(dstate); 00158 size += ros::serialization::serializationLength(istate); 00159 return size; 00160 } 00161 00162 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> > Ptr; 00163 typedef boost::shared_ptr< ::art_msgs::ThrottleState_<ContainerAllocator> const> ConstPtr; 00164 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00165 }; // struct ThrottleState 00166 typedef ::art_msgs::ThrottleState_<std::allocator<void> > ThrottleState; 00167 00168 typedef boost::shared_ptr< ::art_msgs::ThrottleState> ThrottleStatePtr; 00169 typedef boost::shared_ptr< ::art_msgs::ThrottleState const> ThrottleStateConstPtr; 00170 00171 00172 template<typename ContainerAllocator> 00173 std::ostream& operator<<(std::ostream& s, const ::art_msgs::ThrottleState_<ContainerAllocator> & v) 00174 { 00175 ros::message_operations::Printer< ::art_msgs::ThrottleState_<ContainerAllocator> >::stream(s, "", v); 00176 return s;} 00177 00178 } // namespace art_msgs 00179 00180 namespace ros 00181 { 00182 namespace message_traits 00183 { 00184 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {}; 00185 template<class ContainerAllocator> struct IsMessage< ::art_msgs::ThrottleState_<ContainerAllocator> const> : public TrueType {}; 00186 template<class ContainerAllocator> 00187 struct MD5Sum< ::art_msgs::ThrottleState_<ContainerAllocator> > { 00188 static const char* value() 00189 { 00190 return "5b1c64434e6ebe49625631607b188cd5"; 00191 } 00192 00193 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); } 00194 static const uint64_t static_value1 = 0x5b1c64434e6ebe49ULL; 00195 static const uint64_t static_value2 = 0x625631607b188cd5ULL; 00196 }; 00197 00198 template<class ContainerAllocator> 00199 struct DataType< ::art_msgs::ThrottleState_<ContainerAllocator> > { 00200 static const char* value() 00201 { 00202 return "art_msgs/ThrottleState"; 00203 } 00204 00205 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); } 00206 }; 00207 00208 template<class ContainerAllocator> 00209 struct Definition< ::art_msgs::ThrottleState_<ContainerAllocator> > { 00210 static const char* value() 00211 { 00212 return "# ART throttle controller state message\n\ 00213 \n\ 00214 # $Id: ThrottleState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00215 \n\ 00216 Header header\n\ 00217 \n\ 00218 float32 position # fractional position [0, 1]\n\ 00219 float32 rpms # engine speed (rev/min)\n\ 00220 uint8 estop # emergency stop indicator\n\ 00221 \n\ 00222 # optional extra diagnostic information:\n\ 00223 float32 pwm # Pulse Width Modulation value\n\ 00224 float32 dstate # PID derivative state\n\ 00225 float32 istate # PID integral state\n\ 00226 \n\ 00227 ================================================================================\n\ 00228 MSG: std_msgs/Header\n\ 00229 # Standard metadata for higher-level stamped data types.\n\ 00230 # This is generally used to communicate timestamped data \n\ 00231 # in a particular coordinate frame.\n\ 00232 # \n\ 00233 # sequence ID: consecutively increasing ID \n\ 00234 uint32 seq\n\ 00235 #Two-integer timestamp that is expressed as:\n\ 00236 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00237 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00238 # time-handling sugar is provided by the client library\n\ 00239 time stamp\n\ 00240 #Frame this data is associated with\n\ 00241 # 0: no frame\n\ 00242 # 1: global frame\n\ 00243 string frame_id\n\ 00244 \n\ 00245 "; 00246 } 00247 00248 static const char* value(const ::art_msgs::ThrottleState_<ContainerAllocator> &) { return value(); } 00249 }; 00250 00251 template<class ContainerAllocator> struct HasHeader< ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {}; 00252 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::ThrottleState_<ContainerAllocator> > : public TrueType {}; 00253 } // namespace message_traits 00254 } // namespace ros 00255 00256 namespace ros 00257 { 00258 namespace serialization 00259 { 00260 00261 template<class ContainerAllocator> struct Serializer< ::art_msgs::ThrottleState_<ContainerAllocator> > 00262 { 00263 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00264 { 00265 stream.next(m.header); 00266 stream.next(m.position); 00267 stream.next(m.rpms); 00268 stream.next(m.estop); 00269 stream.next(m.pwm); 00270 stream.next(m.dstate); 00271 stream.next(m.istate); 00272 } 00273 00274 ROS_DECLARE_ALLINONE_SERIALIZER; 00275 }; // struct ThrottleState_ 00276 } // namespace serialization 00277 } // namespace ros 00278 00279 namespace ros 00280 { 00281 namespace message_operations 00282 { 00283 00284 template<class ContainerAllocator> 00285 struct Printer< ::art_msgs::ThrottleState_<ContainerAllocator> > 00286 { 00287 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::ThrottleState_<ContainerAllocator> & v) 00288 { 00289 s << indent << "header: "; 00290 s << std::endl; 00291 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00292 s << indent << "position: "; 00293 Printer<float>::stream(s, indent + " ", v.position); 00294 s << indent << "rpms: "; 00295 Printer<float>::stream(s, indent + " ", v.rpms); 00296 s << indent << "estop: "; 00297 Printer<uint8_t>::stream(s, indent + " ", v.estop); 00298 s << indent << "pwm: "; 00299 Printer<float>::stream(s, indent + " ", v.pwm); 00300 s << indent << "dstate: "; 00301 Printer<float>::stream(s, indent + " ", v.dstate); 00302 s << indent << "istate: "; 00303 Printer<float>::stream(s, indent + " ", v.istate); 00304 } 00305 }; 00306 00307 00308 } // namespace message_operations 00309 } // namespace ros 00310 00311 #endif // ART_MSGS_MESSAGE_THROTTLESTATE_H 00312