Go to the documentation of this file.00001
00002 #ifndef ART_MSGS_MESSAGE_STEERINGCOMMAND_H
00003 #define ART_MSGS_MESSAGE_STEERINGCOMMAND_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 SteeringCommand_ {
00023 typedef SteeringCommand_<ContainerAllocator> Type;
00024
00025 SteeringCommand_()
00026 : header()
00027 , request(0)
00028 , angle(0.0)
00029 {
00030 }
00031
00032 SteeringCommand_(const ContainerAllocator& _alloc)
00033 : header(_alloc)
00034 , request(0)
00035 , angle(0.0)
00036 {
00037 }
00038
00039 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00040 ::std_msgs::Header_<ContainerAllocator> header;
00041
00042 typedef uint32_t _request_type;
00043 uint32_t request;
00044
00045 typedef float _angle_type;
00046 float angle;
00047
00048 enum { Degrees = 0 };
00049 enum { Relative = 1 };
00050
00051 typedef boost::shared_ptr< ::art_msgs::SteeringCommand_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::art_msgs::SteeringCommand_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::art_msgs::SteeringCommand_<std::allocator<void> > SteeringCommand;
00056
00057 typedef boost::shared_ptr< ::art_msgs::SteeringCommand> SteeringCommandPtr;
00058 typedef boost::shared_ptr< ::art_msgs::SteeringCommand const> SteeringCommandConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::art_msgs::SteeringCommand_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::art_msgs::SteeringCommand_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::art_msgs::SteeringCommand_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::art_msgs::SteeringCommand_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "0b28cba4463dbaf6e3e1eaa49cf68c4a";
00080 }
00081
00082 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0x0b28cba4463dbaf6ULL;
00084 static const uint64_t static_value2 = 0xe3e1eaa49cf68c4aULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "art_msgs/SteeringCommand";
00092 }
00093
00094 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::art_msgs::SteeringCommand_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "# ART steering controller command message\n\
00102 \n\
00103 # $Id: SteeringCommand.msg 644 2010-09-28 03:19:07Z jack.oquin $\n\
00104 \n\
00105 # The maximum allowed steering angle is ArtVehicle::max_steer_degrees\n\
00106 # (29 degrees) in either direction, defined in the art_msgs/ArtVehicle\n\
00107 # message.\n\
00108 \n\
00109 # The driver enforces this limit to protect the vehicle from\n\
00110 # mechanical damage. There is about a two degree safety margin\n\
00111 # included in that limit.\n\
00112 \n\
00113 Header header\n\
00114 \n\
00115 # request types\n\
00116 uint32 Degrees = 0 # set absolute angle in degrees: +left, 0 center, -right\n\
00117 uint32 Relative = 1 # change angle relative to current setting (degrees)\n\
00118 \n\
00119 uint32 request # request type\n\
00120 float32 angle # requested angle (degrees)\n\
00121 \n\
00122 \n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: std_msgs/Header\n\
00126 # Standard metadata for higher-level stamped data types.\n\
00127 # This is generally used to communicate timestamped data \n\
00128 # in a particular coordinate frame.\n\
00129 # \n\
00130 # sequence ID: consecutively increasing ID \n\
00131 uint32 seq\n\
00132 #Two-integer timestamp that is expressed as:\n\
00133 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00134 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00135 # time-handling sugar is provided by the client library\n\
00136 time stamp\n\
00137 #Frame this data is associated with\n\
00138 # 0: no frame\n\
00139 # 1: global frame\n\
00140 string frame_id\n\
00141 \n\
00142 ";
00143 }
00144
00145 static const char* value(const ::art_msgs::SteeringCommand_<ContainerAllocator> &) { return value(); }
00146 };
00147
00148 template<class ContainerAllocator> struct HasHeader< ::art_msgs::SteeringCommand_<ContainerAllocator> > : public TrueType {};
00149 template<class ContainerAllocator> struct HasHeader< const ::art_msgs::SteeringCommand_<ContainerAllocator> > : public TrueType {};
00150 }
00151 }
00152
00153 namespace ros
00154 {
00155 namespace serialization
00156 {
00157
00158 template<class ContainerAllocator> struct Serializer< ::art_msgs::SteeringCommand_<ContainerAllocator> >
00159 {
00160 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00161 {
00162 stream.next(m.header);
00163 stream.next(m.request);
00164 stream.next(m.angle);
00165 }
00166
00167 ROS_DECLARE_ALLINONE_SERIALIZER;
00168 };
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace message_operations
00175 {
00176
00177 template<class ContainerAllocator>
00178 struct Printer< ::art_msgs::SteeringCommand_<ContainerAllocator> >
00179 {
00180 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::art_msgs::SteeringCommand_<ContainerAllocator> & v)
00181 {
00182 s << indent << "header: ";
00183 s << std::endl;
00184 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00185 s << indent << "request: ";
00186 Printer<uint32_t>::stream(s, indent + " ", v.request);
00187 s << indent << "angle: ";
00188 Printer<float>::stream(s, indent + " ", v.angle);
00189 }
00190 };
00191
00192
00193 }
00194 }
00195
00196 #endif // ART_MSGS_MESSAGE_STEERINGCOMMAND_H
00197