00001
00002 #ifndef ART_MSGS_MESSAGE_STEERINGCOMMAND_H
00003 #define ART_MSGS_MESSAGE_STEERINGCOMMAND_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 SteeringCommand_ : public ros::Message
00019 {
00020 typedef SteeringCommand_<ContainerAllocator> Type;
00021
00022 SteeringCommand_()
00023 : header()
00024 , request(0)
00025 , angle(0.0)
00026 {
00027 }
00028
00029 SteeringCommand_(const ContainerAllocator& _alloc)
00030 : header(_alloc)
00031 , request(0)
00032 , angle(0.0)
00033 {
00034 }
00035
00036 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00037 ::std_msgs::Header_<ContainerAllocator> header;
00038
00039 typedef uint32_t _request_type;
00040 uint32_t request;
00041
00042 typedef float _angle_type;
00043 float angle;
00044
00045 enum { Degrees = 0 };
00046 enum { Relative = 1 };
00047
00048 private:
00049 static const char* __s_getDataType_() { return "art_msgs/SteeringCommand"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00052
00053 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00054
00055 private:
00056 static const char* __s_getMD5Sum_() { return "0b28cba4463dbaf6e3e1eaa49cf68c4a"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00059
00060 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00061
00062 private:
00063 static const char* __s_getMessageDefinition_() { return "# ART steering controller command message\n\
00064 \n\
00065 # $Id: SteeringCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00066 \n\
00067 # The maximum allowed steering angle is ArtVehicle::max_steer_degrees\n\
00068 # (29 degrees) in either direction, defined in the art_msgs/ArtVehicle\n\
00069 # message.\n\
00070 \n\
00071 # The driver enforces this limit to protect the vehicle from\n\
00072 # mechanical damage. There is about a two degree safety margin\n\
00073 # included in that limit.\n\
00074 \n\
00075 Header header\n\
00076 \n\
00077 # request types\n\
00078 uint32 Degrees = 0 # set absolute angle in degrees: +left, 0 center, -right\n\
00079 uint32 Relative = 1 # change angle relative to current setting (degrees)\n\
00080 \n\
00081 uint32 request # request type\n\
00082 float32 angle # requested angle (degrees)\n\
00083 \n\
00084 \n\
00085 \n\
00086 ================================================================================\n\
00087 MSG: std_msgs/Header\n\
00088 # Standard metadata for higher-level stamped data types.\n\
00089 # This is generally used to communicate timestamped data \n\
00090 # in a particular coordinate frame.\n\
00091 # \n\
00092 # sequence ID: consecutively increasing ID \n\
00093 uint32 seq\n\
00094 #Two-integer timestamp that is expressed as:\n\
00095 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00096 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00097 # time-handling sugar is provided by the client library\n\
00098 time stamp\n\
00099 #Frame this data is associated with\n\
00100 # 0: no frame\n\
00101 # 1: global frame\n\
00102 string frame_id\n\
00103 \n\
00104 "; }
00105 public:
00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00107
00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00109
00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00111 {
00112 ros::serialization::OStream stream(write_ptr, 1000000000);
00113 ros::serialization::serialize(stream, header);
00114 ros::serialization::serialize(stream, request);
00115 ros::serialization::serialize(stream, angle);
00116 return stream.getData();
00117 }
00118
00119 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00120 {
00121 ros::serialization::IStream stream(read_ptr, 1000000000);
00122 ros::serialization::deserialize(stream, header);
00123 ros::serialization::deserialize(stream, request);
00124 ros::serialization::deserialize(stream, angle);
00125 return stream.getData();
00126 }
00127
00128 ROS_DEPRECATED virtual uint32_t serializationLength() const
00129 {
00130 uint32_t size = 0;
00131 size += ros::serialization::serializationLength(header);
00132 size += ros::serialization::serializationLength(request);
00133 size += ros::serialization::serializationLength(angle);
00134 return size;
00135 }
00136
00137 typedef boost::shared_ptr< ::art_msgs::SteeringCommand_<ContainerAllocator> > Ptr;
00138 typedef boost::shared_ptr< ::art_msgs::SteeringCommand_<ContainerAllocator> const> ConstPtr;
00139 };
00140 typedef ::art_msgs::SteeringCommand_<std::allocator<void> > SteeringCommand;
00141
00142 typedef boost::shared_ptr< ::art_msgs::SteeringCommand> SteeringCommandPtr;
00143 typedef boost::shared_ptr< ::art_msgs::SteeringCommand const> SteeringCommandConstPtr;
00144
00145
00146 template<typename ContainerAllocator>
00147 std::ostream& operator<<(std::ostream& s, const ::art_msgs::SteeringCommand_<ContainerAllocator> & v)
00148 {
00149 ros::message_operations::Printer< ::art_msgs::SteeringCommand_<ContainerAllocator> >::stream(s, "", v);
00150 return s;}
00151
00152 }
00153
00154 namespace ros
00155 {
00156 namespace message_traits
00157 {
00158 template<class ContainerAllocator>
00159 struct MD5Sum< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00160 static const char* value()
00161 {
00162 return "0b28cba4463dbaf6e3e1eaa49cf68c4a";
00163 }
00164
00165 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00166 static const uint64_t static_value1 = 0x0b28cba4463dbaf6ULL;
00167 static const uint64_t static_value2 = 0xe3e1eaa49cf68c4aULL;
00168 };
00169
00170 template<class ContainerAllocator>
00171 struct DataType< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00172 static const char* value()
00173 {
00174 return "art_msgs/SteeringCommand";
00175 }
00176
00177 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00178 };
00179
00180 template<class ContainerAllocator>
00181 struct Definition< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00182 static const char* value()
00183 {
00184 return "# ART steering controller command message\n\
00185 \n\
00186 # $Id: SteeringCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00187 \n\
00188 # The maximum allowed steering angle is ArtVehicle::max_steer_degrees\n\
00189 # (29 degrees) in either direction, defined in the art_msgs/ArtVehicle\n\
00190 # message.\n\
00191 \n\
00192 # The driver enforces this limit to protect the vehicle from\n\
00193 # mechanical damage. There is about a two degree safety margin\n\
00194 # included in that limit.\n\
00195 \n\
00196 Header header\n\
00197 \n\
00198 # request types\n\
00199 uint32 Degrees = 0 # set absolute angle in degrees: +left, 0 center, -right\n\
00200 uint32 Relative = 1 # change angle relative to current setting (degrees)\n\
00201 \n\
00202 uint32 request # request type\n\
00203 float32 angle # requested angle (degrees)\n\
00204 \n\
00205 \n\
00206 \n\
00207 ================================================================================\n\
00208 MSG: std_msgs/Header\n\
00209 # Standard metadata for higher-level stamped data types.\n\
00210 # This is generally used to communicate timestamped data \n\
00211 # in a particular coordinate frame.\n\
00212 # \n\
00213 # sequence ID: consecutively increasing ID \n\
00214 uint32 seq\n\
00215 #Two-integer timestamp that is expressed as:\n\
00216 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00217 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00218 # time-handling sugar is provided by the client library\n\
00219 time stamp\n\
00220 #Frame this data is associated with\n\
00221 # 0: no frame\n\
00222 # 1: global frame\n\
00223 string frame_id\n\
00224 \n\
00225 ";
00226 }
00227
00228 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00229 };
00230
00231 template<class ContainerAllocator> struct HasHeader< ::art_msgs::SteeringCommand_<ContainerAllocator> > : public TrueType {};
00232 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::SteeringCommand_<ContainerAllocator> > : public TrueType {};
00233 }
00234 }
00235
00236 namespace ros
00237 {
00238 namespace serialization
00239 {
00240
00241 template<class ContainerAllocator> struct Serializer< ::art_msgs::SteeringCommand_<ContainerAllocator> >
00242 {
00243 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00244 {
00245 stream.next(m.header);
00246 stream.next(m.request);
00247 stream.next(m.angle);
00248 }
00249
00250 ROS_DECLARE_ALLINONE_SERIALIZER;
00251 };
00252 }
00253 }
00254
00255 namespace ros
00256 {
00257 namespace message_operations
00258 {
00259
00260 template<class ContainerAllocator>
00261 struct Printer< ::art_msgs::SteeringCommand_<ContainerAllocator> >
00262 {
00263 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::SteeringCommand_<ContainerAllocator> & v)
00264 {
00265 s << indent << "header: ";
00266 s << std::endl;
00267 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00268 s << indent << "request: ";
00269 Printer<uint32_t>::stream(s, indent + " ", v.request);
00270 s << indent << "angle: ";
00271 Printer<float>::stream(s, indent + " ", v.angle);
00272 }
00273 };
00274
00275
00276 }
00277 }
00278
00279 #endif // ART_MSGS_MESSAGE_STEERINGCOMMAND_H
00280