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