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