Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::art_msgs::BrakeState_<ContainerAllocator> > Ptr;
00060 typedef boost::shared_ptr< ::art_msgs::BrakeState_<ContainerAllocator> const> ConstPtr;
00061 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00062 };
00063 typedef ::art_msgs::BrakeState_<std::allocator<void> > BrakeState;
00064
00065 typedef boost::shared_ptr< ::art_msgs::BrakeState> BrakeStatePtr;
00066 typedef boost::shared_ptr< ::art_msgs::BrakeState const> BrakeStateConstPtr;
00067
00068
00069 template<typename ContainerAllocator>
00070 std::ostream& operator<<(std::ostream& s, const ::art_msgs::BrakeState_<ContainerAllocator> & v)
00071 {
00072 ros::message_operations::Printer< ::art_msgs::BrakeState_<ContainerAllocator> >::stream(s, "", v);
00073 return s;}
00074
00075 }
00076
00077 namespace ros
00078 {
00079 namespace message_traits
00080 {
00081 template<class ContainerAllocator> struct IsMessage< ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {};
00082 template<class ContainerAllocator> struct IsMessage< ::art_msgs::BrakeState_<ContainerAllocator> const> : public TrueType {};
00083 template<class ContainerAllocator>
00084 struct MD5Sum< ::art_msgs::BrakeState_<ContainerAllocator> > {
00085 static const char* value()
00086 {
00087 return "a2cf66ca94ba3a72fab2bbf4fd458de0";
00088 }
00089
00090 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); }
00091 static const uint64_t static_value1 = 0xa2cf66ca94ba3a72ULL;
00092 static const uint64_t static_value2 = 0xfab2bbf4fd458de0ULL;
00093 };
00094
00095 template<class ContainerAllocator>
00096 struct DataType< ::art_msgs::BrakeState_<ContainerAllocator> > {
00097 static const char* value()
00098 {
00099 return "art_msgs/BrakeState";
00100 }
00101
00102 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); }
00103 };
00104
00105 template<class ContainerAllocator>
00106 struct Definition< ::art_msgs::BrakeState_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "# ART brake controller state message\n\
00110 \n\
00111 # $Id: BrakeState.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00112 \n\
00113 Header header\n\
00114 \n\
00115 float32 position # fractional position\n\
00116 float32 potentiometer # potentiometer voltage\n\
00117 float32 encoder # encoder reading\n\
00118 float32 pressure # pressure sensor\n\
00119 \n\
00120 \n\
00121 ================================================================================\n\
00122 MSG: std_msgs/Header\n\
00123 # Standard metadata for higher-level stamped data types.\n\
00124 # This is generally used to communicate timestamped data \n\
00125 # in a particular coordinate frame.\n\
00126 # \n\
00127 # sequence ID: consecutively increasing ID \n\
00128 uint32 seq\n\
00129 #Two-integer timestamp that is expressed as:\n\
00130 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00131 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00132 # time-handling sugar is provided by the client library\n\
00133 time stamp\n\
00134 #Frame this data is associated with\n\
00135 # 0: no frame\n\
00136 # 1: global frame\n\
00137 string frame_id\n\
00138 \n\
00139 ";
00140 }
00141
00142 static const char* value(const ::art_msgs::BrakeState_<ContainerAllocator> &) { return value(); }
00143 };
00144
00145 template<class ContainerAllocator> struct HasHeader< ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {};
00146 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::BrakeState_<ContainerAllocator> > : public TrueType {};
00147 }
00148 }
00149
00150 namespace ros
00151 {
00152 namespace serialization
00153 {
00154
00155 template<class ContainerAllocator> struct Serializer< ::art_msgs::BrakeState_<ContainerAllocator> >
00156 {
00157 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00158 {
00159 stream.next(m.header);
00160 stream.next(m.position);
00161 stream.next(m.potentiometer);
00162 stream.next(m.encoder);
00163 stream.next(m.pressure);
00164 }
00165
00166 ROS_DECLARE_ALLINONE_SERIALIZER;
00167 };
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace message_operations
00174 {
00175
00176 template<class ContainerAllocator>
00177 struct Printer< ::art_msgs::BrakeState_<ContainerAllocator> >
00178 {
00179 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::BrakeState_<ContainerAllocator> & v)
00180 {
00181 s << indent << "header: ";
00182 s << std::endl;
00183 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00184 s << indent << "position: ";
00185 Printer<float>::stream(s, indent + " ", v.position);
00186 s << indent << "potentiometer: ";
00187 Printer<float>::stream(s, indent + " ", v.potentiometer);
00188 s << indent << "encoder: ";
00189 Printer<float>::stream(s, indent + " ", v.encoder);
00190 s << indent << "pressure: ";
00191 Printer<float>::stream(s, indent + " ", v.pressure);
00192 }
00193 };
00194
00195
00196 }
00197 }
00198
00199 #endif // ART_MSGS_MESSAGE_BRAKESTATE_H
00200