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