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