$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/BrakeState.msg */ 00002 #ifndef ART_MSGS_MESSAGE_BRAKESTATE_H 00003 #define ART_MSGS_MESSAGE_BRAKESTATE_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 BrakeState_ { 00023 typedef BrakeState_<ContainerAllocator> Type; 00024 00025 BrakeState_() 00026 : header() 00027 , position(0.0) 00028 , potentiometer(0.0) 00029 , encoder(0.0) 00030 , pressure(0.0) 00031 { 00032 } 00033 00034 BrakeState_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , position(0.0) 00037 , potentiometer(0.0) 00038 , encoder(0.0) 00039 , pressure(0.0) 00040 { 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef float _position_type; 00047 float position; 00048 00049 typedef float _potentiometer_type; 00050 float potentiometer; 00051 00052 typedef float _encoder_type; 00053 float encoder; 00054 00055 typedef float _pressure_type; 00056 float pressure; 00057 00058 00059 private: 00060 static const char* __s_getDataType_() { return "art_msgs/BrakeState"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "a2cf66ca94ba3a72fab2bbf4fd458de0"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "# ART brake controller state message\n\ 00075 \n\ 00076 # $Id: BrakeState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00077 \n\ 00078 Header header\n\ 00079 \n\ 00080 float32 position # fractional position\n\ 00081 float32 potentiometer # potentiometer voltage\n\ 00082 float32 encoder # encoder reading\n\ 00083 float32 pressure # pressure sensor\n\ 00084 \n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: std_msgs/Header\n\ 00088 # Standard metadata for higher-level stamped data types.\n\ 00089 # This is generally used to communicate timestamped data \n\ 00090 # in a particular coordinate frame.\n\ 00091 # \n\ 00092 # sequence ID: consecutively increasing ID \n\ 00093 uint32 seq\n\ 00094 #Two-integer timestamp that is expressed as:\n\ 00095 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00096 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00097 # time-handling sugar is provided by the client library\n\ 00098 time stamp\n\ 00099 #Frame this data is associated with\n\ 00100 # 0: no frame\n\ 00101 # 1: global frame\n\ 00102 string frame_id\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, header); 00114 ros::serialization::serialize(stream, position); 00115 ros::serialization::serialize(stream, potentiometer); 00116 ros::serialization::serialize(stream, encoder); 00117 ros::serialization::serialize(stream, pressure); 00118 return stream.getData(); 00119 } 00120 00121 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00122 { 00123 ros::serialization::IStream stream(read_ptr, 1000000000); 00124 ros::serialization::deserialize(stream, header); 00125 ros::serialization::deserialize(stream, position); 00126 ros::serialization::deserialize(stream, potentiometer); 00127 ros::serialization::deserialize(stream, encoder); 00128 ros::serialization::deserialize(stream, pressure); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint32_t serializationLength() const 00133 { 00134 uint32_t size = 0; 00135 size += ros::serialization::serializationLength(header); 00136 size += ros::serialization::serializationLength(position); 00137 size += ros::serialization::serializationLength(potentiometer); 00138 size += ros::serialization::serializationLength(encoder); 00139 size += ros::serialization::serializationLength(pressure); 00140 return size; 00141 } 00142 00143 typedef boost::shared_ptr< ::art_msgs::BrakeState_<ContainerAllocator> > Ptr; 00144 typedef boost::shared_ptr< ::art_msgs::BrakeState_<ContainerAllocator> const> ConstPtr; 00145 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00146 }; // struct BrakeState 00147 typedef ::art_msgs::BrakeState_<std::allocator<void> > BrakeState; 00148 00149 typedef boost::shared_ptr< ::art_msgs::BrakeState> BrakeStatePtr; 00150 typedef boost::shared_ptr< ::art_msgs::BrakeState const> BrakeStateConstPtr; 00151 00152 00153 template<typename ContainerAllocator> 00154 std::ostream& operator<<(std::ostream& s, const ::art_msgs::BrakeState_<ContainerAllocator> & v) 00155 { 00156 ros::message_operations::Printer< ::art_msgs::BrakeState_<ContainerAllocator> >::stream(s, "", v); 00157 return s;} 00158 00159 } // namespace art_msgs 00160 00161 namespace ros 00162 { 00163 namespace message_traits 00164 { 00165 template<class ContainerAllocator> struct IsMessage< ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {}; 00166 template<class ContainerAllocator> struct IsMessage< ::art_msgs::BrakeState_<ContainerAllocator> const> : public TrueType {}; 00167 template<class ContainerAllocator> 00168 struct MD5Sum< ::art_msgs::BrakeState_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "a2cf66ca94ba3a72fab2bbf4fd458de0"; 00172 } 00173 00174 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); } 00175 static const uint64_t static_value1 = 0xa2cf66ca94ba3a72ULL; 00176 static const uint64_t static_value2 = 0xfab2bbf4fd458de0ULL; 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct DataType< ::art_msgs::BrakeState_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "art_msgs/BrakeState"; 00184 } 00185 00186 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); } 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct Definition< ::art_msgs::BrakeState_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "# ART brake controller state message\n\ 00194 \n\ 00195 # $Id: BrakeState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\ 00196 \n\ 00197 Header header\n\ 00198 \n\ 00199 float32 position # fractional position\n\ 00200 float32 potentiometer # potentiometer voltage\n\ 00201 float32 encoder # encoder reading\n\ 00202 float32 pressure # pressure sensor\n\ 00203 \n\ 00204 \n\ 00205 ================================================================================\n\ 00206 MSG: std_msgs/Header\n\ 00207 # Standard metadata for higher-level stamped data types.\n\ 00208 # This is generally used to communicate timestamped data \n\ 00209 # in a particular coordinate frame.\n\ 00210 # \n\ 00211 # sequence ID: consecutively increasing ID \n\ 00212 uint32 seq\n\ 00213 #Two-integer timestamp that is expressed as:\n\ 00214 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00215 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00216 # time-handling sugar is provided by the client library\n\ 00217 time stamp\n\ 00218 #Frame this data is associated with\n\ 00219 # 0: no frame\n\ 00220 # 1: global frame\n\ 00221 string frame_id\n\ 00222 \n\ 00223 "; 00224 } 00225 00226 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); } 00227 }; 00228 00229 template<class ContainerAllocator> struct HasHeader< ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {}; 00230 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {}; 00231 } // namespace message_traits 00232 } // namespace ros 00233 00234 namespace ros 00235 { 00236 namespace serialization 00237 { 00238 00239 template<class ContainerAllocator> struct Serializer< ::art_msgs::BrakeState_<ContainerAllocator> > 00240 { 00241 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00242 { 00243 stream.next(m.header); 00244 stream.next(m.position); 00245 stream.next(m.potentiometer); 00246 stream.next(m.encoder); 00247 stream.next(m.pressure); 00248 } 00249 00250 ROS_DECLARE_ALLINONE_SERIALIZER; 00251 }; // struct BrakeState_ 00252 } // namespace serialization 00253 } // namespace ros 00254 00255 namespace ros 00256 { 00257 namespace message_operations 00258 { 00259 00260 template<class ContainerAllocator> 00261 struct Printer< ::art_msgs::BrakeState_<ContainerAllocator> > 00262 { 00263 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::BrakeState_<ContainerAllocator> & v) 00264 { 00265 s << indent << "header: "; 00266 s << std::endl; 00267 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00268 s << indent << "position: "; 00269 Printer<float>::stream(s, indent + " ", v.position); 00270 s << indent << "potentiometer: "; 00271 Printer<float>::stream(s, indent + " ", v.potentiometer); 00272 s << indent << "encoder: "; 00273 Printer<float>::stream(s, indent + " ", v.encoder); 00274 s << indent << "pressure: "; 00275 Printer<float>::stream(s, indent + " ", v.pressure); 00276 } 00277 }; 00278 00279 00280 } // namespace message_operations 00281 } // namespace ros 00282 00283 #endif // ART_MSGS_MESSAGE_BRAKESTATE_H 00284