$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-ackermann_msgs/doc_stacks/2013-03-01_13-52-28.023467/ackermann_msgs/msg/AckermannDriveStamped.msg */ 00002 #ifndef ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVESTAMPED_H 00003 #define ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVESTAMPED_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 "ackermann_msgs/AckermannDrive.h" 00019 00020 namespace ackermann_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct AckermannDriveStamped_ { 00024 typedef AckermannDriveStamped_<ContainerAllocator> Type; 00025 00026 AckermannDriveStamped_() 00027 : header() 00028 , drive() 00029 { 00030 } 00031 00032 AckermannDriveStamped_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , drive(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef ::ackermann_msgs::AckermannDrive_<ContainerAllocator> _drive_type; 00042 ::ackermann_msgs::AckermannDrive_<ContainerAllocator> drive; 00043 00044 00045 private: 00046 static const char* __s_getDataType_() { return "ackermann_msgs/AckermannDriveStamped"; } 00047 public: 00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00049 00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00051 00052 private: 00053 static const char* __s_getMD5Sum_() { return "1fd5d7f58889cefd44d29f6653240d0c"; } 00054 public: 00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00056 00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00058 00059 private: 00060 static const char* __s_getMessageDefinition_() { return "## Time stamped drive command for robots with Ackermann steering.\n\ 00061 # $Id: AckermannDriveStamped.msg 1958 2012-02-11 02:35:54Z jack.oquin $\n\ 00062 \n\ 00063 Header header\n\ 00064 AckermannDrive drive\n\ 00065 \n\ 00066 ================================================================================\n\ 00067 MSG: std_msgs/Header\n\ 00068 # Standard metadata for higher-level stamped data types.\n\ 00069 # This is generally used to communicate timestamped data \n\ 00070 # in a particular coordinate frame.\n\ 00071 # \n\ 00072 # sequence ID: consecutively increasing ID \n\ 00073 uint32 seq\n\ 00074 #Two-integer timestamp that is expressed as:\n\ 00075 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00076 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00077 # time-handling sugar is provided by the client library\n\ 00078 time stamp\n\ 00079 #Frame this data is associated with\n\ 00080 # 0: no frame\n\ 00081 # 1: global frame\n\ 00082 string frame_id\n\ 00083 \n\ 00084 ================================================================================\n\ 00085 MSG: ackermann_msgs/AckermannDrive\n\ 00086 ## Driving command for a car-like vehicle using Ackermann steering.\n\ 00087 # $Id: AckermannDrive.msg 1966 2012-02-11 17:52:11Z jack.oquin $\n\ 00088 \n\ 00089 # Assumes Ackermann front-wheel steering. The left and right front\n\ 00090 # wheels are generally at different angles. To simplify, the commanded\n\ 00091 # angle corresponds to the yaw of a virtual wheel located at the\n\ 00092 # center of the front axle, like on a tricycle. Positive yaw is to\n\ 00093 # the left. (This is *not* the angle of the steering wheel inside the\n\ 00094 # passenger compartment.)\n\ 00095 #\n\ 00096 # Zero steering angle velocity means change the steering angle as\n\ 00097 # quickly as possible. Positive velocity indicates a desired absolute\n\ 00098 # rate of change either left or right. The controller tries not to\n\ 00099 # exceed this limit in either direction, but sometimes it might.\n\ 00100 #\n\ 00101 float32 steering_angle # desired virtual angle (radians)\n\ 00102 float32 steering_angle_velocity # desired rate of change (radians/s)\n\ 00103 \n\ 00104 # Drive at requested speed, acceleration and jerk (the 1st, 2nd and\n\ 00105 # 3rd derivatives of position). All are measured at the vehicle's\n\ 00106 # center of rotation, typically the center of the rear axle. The\n\ 00107 # controller tries not to exceed these limits in either direction, but\n\ 00108 # sometimes it might.\n\ 00109 #\n\ 00110 # Speed is the desired scalar magnitude of the velocity vector.\n\ 00111 # Direction is forward unless the sign is negative, indicating reverse.\n\ 00112 #\n\ 00113 # Zero acceleration means change speed as quickly as\n\ 00114 # possible. Positive acceleration indicates a desired absolute\n\ 00115 # magnitude; that includes deceleration.\n\ 00116 #\n\ 00117 # Zero jerk means change acceleration as quickly as possible. Positive\n\ 00118 # jerk indicates a desired absolute rate of acceleration change in\n\ 00119 # either direction (increasing or decreasing).\n\ 00120 #\n\ 00121 float32 speed # desired forward speed (m/s)\n\ 00122 float32 acceleration # desired acceleration (m/s^2)\n\ 00123 float32 jerk # desired jerk (m/s^3)\n\ 00124 \n\ 00125 "; } 00126 public: 00127 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00128 00129 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00130 00131 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00132 { 00133 ros::serialization::OStream stream(write_ptr, 1000000000); 00134 ros::serialization::serialize(stream, header); 00135 ros::serialization::serialize(stream, drive); 00136 return stream.getData(); 00137 } 00138 00139 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00140 { 00141 ros::serialization::IStream stream(read_ptr, 1000000000); 00142 ros::serialization::deserialize(stream, header); 00143 ros::serialization::deserialize(stream, drive); 00144 return stream.getData(); 00145 } 00146 00147 ROS_DEPRECATED virtual uint32_t serializationLength() const 00148 { 00149 uint32_t size = 0; 00150 size += ros::serialization::serializationLength(header); 00151 size += ros::serialization::serializationLength(drive); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct AckermannDriveStamped 00159 typedef ::ackermann_msgs::AckermannDriveStamped_<std::allocator<void> > AckermannDriveStamped; 00160 00161 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped> AckermannDriveStampedPtr; 00162 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped const> AckermannDriveStampedConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace ackermann_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "1fd5d7f58889cefd44d29f6653240d0c"; 00184 } 00185 00186 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0x1fd5d7f58889cefdULL; 00188 static const uint64_t static_value2 = 0x44d29f6653240d0cULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "ackermann_msgs/AckermannDriveStamped"; 00196 } 00197 00198 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "## Time stamped drive command for robots with Ackermann steering.\n\ 00206 # $Id: AckermannDriveStamped.msg 1958 2012-02-11 02:35:54Z jack.oquin $\n\ 00207 \n\ 00208 Header header\n\ 00209 AckermannDrive drive\n\ 00210 \n\ 00211 ================================================================================\n\ 00212 MSG: std_msgs/Header\n\ 00213 # Standard metadata for higher-level stamped data types.\n\ 00214 # This is generally used to communicate timestamped data \n\ 00215 # in a particular coordinate frame.\n\ 00216 # \n\ 00217 # sequence ID: consecutively increasing ID \n\ 00218 uint32 seq\n\ 00219 #Two-integer timestamp that is expressed as:\n\ 00220 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00221 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00222 # time-handling sugar is provided by the client library\n\ 00223 time stamp\n\ 00224 #Frame this data is associated with\n\ 00225 # 0: no frame\n\ 00226 # 1: global frame\n\ 00227 string frame_id\n\ 00228 \n\ 00229 ================================================================================\n\ 00230 MSG: ackermann_msgs/AckermannDrive\n\ 00231 ## Driving command for a car-like vehicle using Ackermann steering.\n\ 00232 # $Id: AckermannDrive.msg 1966 2012-02-11 17:52:11Z jack.oquin $\n\ 00233 \n\ 00234 # Assumes Ackermann front-wheel steering. The left and right front\n\ 00235 # wheels are generally at different angles. To simplify, the commanded\n\ 00236 # angle corresponds to the yaw of a virtual wheel located at the\n\ 00237 # center of the front axle, like on a tricycle. Positive yaw is to\n\ 00238 # the left. (This is *not* the angle of the steering wheel inside the\n\ 00239 # passenger compartment.)\n\ 00240 #\n\ 00241 # Zero steering angle velocity means change the steering angle as\n\ 00242 # quickly as possible. Positive velocity indicates a desired absolute\n\ 00243 # rate of change either left or right. The controller tries not to\n\ 00244 # exceed this limit in either direction, but sometimes it might.\n\ 00245 #\n\ 00246 float32 steering_angle # desired virtual angle (radians)\n\ 00247 float32 steering_angle_velocity # desired rate of change (radians/s)\n\ 00248 \n\ 00249 # Drive at requested speed, acceleration and jerk (the 1st, 2nd and\n\ 00250 # 3rd derivatives of position). All are measured at the vehicle's\n\ 00251 # center of rotation, typically the center of the rear axle. The\n\ 00252 # controller tries not to exceed these limits in either direction, but\n\ 00253 # sometimes it might.\n\ 00254 #\n\ 00255 # Speed is the desired scalar magnitude of the velocity vector.\n\ 00256 # Direction is forward unless the sign is negative, indicating reverse.\n\ 00257 #\n\ 00258 # Zero acceleration means change speed as quickly as\n\ 00259 # possible. Positive acceleration indicates a desired absolute\n\ 00260 # magnitude; that includes deceleration.\n\ 00261 #\n\ 00262 # Zero jerk means change acceleration as quickly as possible. Positive\n\ 00263 # jerk indicates a desired absolute rate of acceleration change in\n\ 00264 # either direction (increasing or decreasing).\n\ 00265 #\n\ 00266 float32 speed # desired forward speed (m/s)\n\ 00267 float32 acceleration # desired acceleration (m/s^2)\n\ 00268 float32 jerk # desired jerk (m/s^3)\n\ 00269 \n\ 00270 "; 00271 } 00272 00273 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); } 00274 }; 00275 00276 template<class ContainerAllocator> struct HasHeader< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {}; 00277 template<class ContainerAllocator> struct HasHeader< const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {}; 00278 } // namespace message_traits 00279 } // namespace ros 00280 00281 namespace ros 00282 { 00283 namespace serialization 00284 { 00285 00286 template<class ContainerAllocator> struct Serializer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > 00287 { 00288 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00289 { 00290 stream.next(m.header); 00291 stream.next(m.drive); 00292 } 00293 00294 ROS_DECLARE_ALLINONE_SERIALIZER; 00295 }; // struct AckermannDriveStamped_ 00296 } // namespace serialization 00297 } // namespace ros 00298 00299 namespace ros 00300 { 00301 namespace message_operations 00302 { 00303 00304 template<class ContainerAllocator> 00305 struct Printer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > 00306 { 00307 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> & v) 00308 { 00309 s << indent << "header: "; 00310 s << std::endl; 00311 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00312 s << indent << "drive: "; 00313 s << std::endl; 00314 Printer< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> >::stream(s, indent + " ", v.drive); 00315 } 00316 }; 00317 00318 00319 } // namespace message_operations 00320 } // namespace ros 00321 00322 #endif // ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVESTAMPED_H 00323