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