Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::ackermann_msgs::AckermannDriveStamped_<std::allocator<void> > AckermannDriveStamped;
00050
00051 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped> AckermannDriveStampedPtr;
00052 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDriveStamped const> AckermannDriveStampedConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "1fd5d7f58889cefd44d29f6653240d0c";
00074 }
00075
00076 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0x1fd5d7f58889cefdULL;
00078 static const uint64_t static_value2 = 0x44d29f6653240d0cULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "ackermann_msgs/AckermannDriveStamped";
00086 }
00087
00088 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "## Time stamped drive command for robots with Ackermann steering.\n\
00096 # $Id$\n\
00097 \n\
00098 Header header\n\
00099 AckermannDrive drive\n\
00100 \n\
00101 ================================================================================\n\
00102 MSG: std_msgs/Header\n\
00103 # Standard metadata for higher-level stamped data types.\n\
00104 # This is generally used to communicate timestamped data \n\
00105 # in a particular coordinate frame.\n\
00106 # \n\
00107 # sequence ID: consecutively increasing ID \n\
00108 uint32 seq\n\
00109 #Two-integer timestamp that is expressed as:\n\
00110 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00111 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00112 # time-handling sugar is provided by the client library\n\
00113 time stamp\n\
00114 #Frame this data is associated with\n\
00115 # 0: no frame\n\
00116 # 1: global frame\n\
00117 string frame_id\n\
00118 \n\
00119 ================================================================================\n\
00120 MSG: ackermann_msgs/AckermannDrive\n\
00121 ## Driving command for a car-like vehicle using Ackermann steering.\n\
00122 # $Id$\n\
00123 \n\
00124 # Assumes Ackermann front-wheel steering. The left and right front\n\
00125 # wheels are generally at different angles. To simplify, the commanded\n\
00126 # angle corresponds to the yaw of a virtual wheel located at the\n\
00127 # center of the front axle, like on a tricycle. Positive yaw is to\n\
00128 # the left. (This is *not* the angle of the steering wheel inside the\n\
00129 # passenger compartment.)\n\
00130 #\n\
00131 # Zero steering angle velocity means change the steering angle as\n\
00132 # quickly as possible. Positive velocity indicates a desired absolute\n\
00133 # rate of change either left or right. The controller tries not to\n\
00134 # exceed this limit in either direction, but sometimes it might.\n\
00135 #\n\
00136 float32 steering_angle # desired virtual angle (radians)\n\
00137 float32 steering_angle_velocity # desired rate of change (radians/s)\n\
00138 \n\
00139 # Drive at requested speed, acceleration and jerk (the 1st, 2nd and\n\
00140 # 3rd derivatives of position). All are measured at the vehicle's\n\
00141 # center of rotation, typically the center of the rear axle. The\n\
00142 # controller tries not to exceed these limits in either direction, but\n\
00143 # sometimes it might.\n\
00144 #\n\
00145 # Speed is the desired scalar magnitude of the velocity vector.\n\
00146 # Direction is forward unless the sign is negative, indicating reverse.\n\
00147 #\n\
00148 # Zero acceleration means change speed as quickly as\n\
00149 # possible. Positive acceleration indicates a desired absolute\n\
00150 # magnitude; that includes deceleration.\n\
00151 #\n\
00152 # Zero jerk means change acceleration as quickly as possible. Positive\n\
00153 # jerk indicates a desired absolute rate of acceleration change in\n\
00154 # either direction (increasing or decreasing).\n\
00155 #\n\
00156 float32 speed # desired forward speed (m/s)\n\
00157 float32 acceleration # desired acceleration (m/s^2)\n\
00158 float32 jerk # desired jerk (m/s^3)\n\
00159 \n\
00160 ";
00161 }
00162
00163 static const char* value(const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator> struct HasHeader< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {};
00167 template<class ContainerAllocator> struct HasHeader< const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> > : public TrueType {};
00168 }
00169 }
00170
00171 namespace ros
00172 {
00173 namespace serialization
00174 {
00175
00176 template<class ContainerAllocator> struct Serializer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> >
00177 {
00178 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00179 {
00180 stream.next(m.header);
00181 stream.next(m.drive);
00182 }
00183
00184 ROS_DECLARE_ALLINONE_SERIALIZER;
00185 };
00186 }
00187 }
00188
00189 namespace ros
00190 {
00191 namespace message_operations
00192 {
00193
00194 template<class ContainerAllocator>
00195 struct Printer< ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> >
00196 {
00197 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ackermann_msgs::AckermannDriveStamped_<ContainerAllocator> & v)
00198 {
00199 s << indent << "header: ";
00200 s << std::endl;
00201 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00202 s << indent << "drive: ";
00203 s << std::endl;
00204 Printer< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> >::stream(s, indent + " ", v.drive);
00205 }
00206 };
00207
00208
00209 }
00210 }
00211
00212 #endif // ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVESTAMPED_H
00213