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