AckermannDrive.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-ackermann_msgs/doc_stacks/2014-10-05_22-02-13.001024/ackermann_msgs/msg/AckermannDrive.msg */
00002 #ifndef ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVE_H
00003 #define ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVE_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 
00018 namespace ackermann_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct AckermannDrive_ {
00022   typedef AckermannDrive_<ContainerAllocator> Type;
00023 
00024   AckermannDrive_()
00025   : steering_angle(0.0)
00026   , steering_angle_velocity(0.0)
00027   , speed(0.0)
00028   , acceleration(0.0)
00029   , jerk(0.0)
00030   {
00031   }
00032 
00033   AckermannDrive_(const ContainerAllocator& _alloc)
00034   : steering_angle(0.0)
00035   , steering_angle_velocity(0.0)
00036   , speed(0.0)
00037   , acceleration(0.0)
00038   , jerk(0.0)
00039   {
00040   }
00041 
00042   typedef float _steering_angle_type;
00043   float steering_angle;
00044 
00045   typedef float _steering_angle_velocity_type;
00046   float steering_angle_velocity;
00047 
00048   typedef float _speed_type;
00049   float speed;
00050 
00051   typedef float _acceleration_type;
00052   float acceleration;
00053 
00054   typedef float _jerk_type;
00055   float jerk;
00056 
00057 
00058   typedef boost::shared_ptr< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::ackermann_msgs::AckermannDrive_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct AckermannDrive
00062 typedef  ::ackermann_msgs::AckermannDrive_<std::allocator<void> > AckermannDrive;
00063 
00064 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDrive> AckermannDrivePtr;
00065 typedef boost::shared_ptr< ::ackermann_msgs::AckermannDrive const> AckermannDriveConstPtr;
00066 
00067 
00068 template<typename ContainerAllocator>
00069 std::ostream& operator<<(std::ostream& s, const  ::ackermann_msgs::AckermannDrive_<ContainerAllocator> & v)
00070 {
00071   ros::message_operations::Printer< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> >::stream(s, "", v);
00072   return s;}
00073 
00074 } // namespace ackermann_msgs
00075 
00076 namespace ros
00077 {
00078 namespace message_traits
00079 {
00080 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > : public TrueType {};
00081 template<class ContainerAllocator> struct IsMessage< ::ackermann_msgs::AckermannDrive_<ContainerAllocator>  const> : public TrueType {};
00082 template<class ContainerAllocator>
00083 struct MD5Sum< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > {
00084   static const char* value() 
00085   {
00086     return "3512e91b48d69674a0e86fadf1ea8231";
00087   }
00088 
00089   static const char* value(const  ::ackermann_msgs::AckermannDrive_<ContainerAllocator> &) { return value(); } 
00090   static const uint64_t static_value1 = 0x3512e91b48d69674ULL;
00091   static const uint64_t static_value2 = 0xa0e86fadf1ea8231ULL;
00092 };
00093 
00094 template<class ContainerAllocator>
00095 struct DataType< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > {
00096   static const char* value() 
00097   {
00098     return "ackermann_msgs/AckermannDrive";
00099   }
00100 
00101   static const char* value(const  ::ackermann_msgs::AckermannDrive_<ContainerAllocator> &) { return value(); } 
00102 };
00103 
00104 template<class ContainerAllocator>
00105 struct Definition< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > {
00106   static const char* value() 
00107   {
00108     return "## Driving command for a car-like vehicle using Ackermann steering.\n\
00109 #  $Id$\n\
00110 \n\
00111 # Assumes Ackermann front-wheel steering. The left and right front\n\
00112 # wheels are generally at different angles. To simplify, the commanded\n\
00113 # angle corresponds to the yaw of a virtual wheel located at the\n\
00114 # center of the front axle, like on a tricycle.  Positive yaw is to\n\
00115 # the left. (This is *not* the angle of the steering wheel inside the\n\
00116 # passenger compartment.)\n\
00117 #\n\
00118 # Zero steering angle velocity means change the steering angle as\n\
00119 # quickly as possible. Positive velocity indicates a desired absolute\n\
00120 # rate of change either left or right. The controller tries not to\n\
00121 # exceed this limit in either direction, but sometimes it might.\n\
00122 #\n\
00123 float32 steering_angle          # desired virtual angle (radians)\n\
00124 float32 steering_angle_velocity # desired rate of change (radians/s)\n\
00125 \n\
00126 # Drive at requested speed, acceleration and jerk (the 1st, 2nd and\n\
00127 # 3rd derivatives of position). All are measured at the vehicle's\n\
00128 # center of rotation, typically the center of the rear axle. The\n\
00129 # controller tries not to exceed these limits in either direction, but\n\
00130 # sometimes it might.\n\
00131 #\n\
00132 # Speed is the desired scalar magnitude of the velocity vector.\n\
00133 # Direction is forward unless the sign is negative, indicating reverse.\n\
00134 #\n\
00135 # Zero acceleration means change speed as quickly as\n\
00136 # possible. Positive acceleration indicates a desired absolute\n\
00137 # magnitude; that includes deceleration.\n\
00138 #\n\
00139 # Zero jerk means change acceleration as quickly as possible. Positive\n\
00140 # jerk indicates a desired absolute rate of acceleration change in\n\
00141 # either direction (increasing or decreasing).\n\
00142 #\n\
00143 float32 speed                   # desired forward speed (m/s)\n\
00144 float32 acceleration            # desired acceleration (m/s^2)\n\
00145 float32 jerk                    # desired jerk (m/s^3)\n\
00146 \n\
00147 ";
00148   }
00149 
00150   static const char* value(const  ::ackermann_msgs::AckermannDrive_<ContainerAllocator> &) { return value(); } 
00151 };
00152 
00153 template<class ContainerAllocator> struct IsFixedSize< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> > : public TrueType {};
00154 } // namespace message_traits
00155 } // namespace ros
00156 
00157 namespace ros
00158 {
00159 namespace serialization
00160 {
00161 
00162 template<class ContainerAllocator> struct Serializer< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> >
00163 {
00164   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00165   {
00166     stream.next(m.steering_angle);
00167     stream.next(m.steering_angle_velocity);
00168     stream.next(m.speed);
00169     stream.next(m.acceleration);
00170     stream.next(m.jerk);
00171   }
00172 
00173   ROS_DECLARE_ALLINONE_SERIALIZER;
00174 }; // struct AckermannDrive_
00175 } // namespace serialization
00176 } // namespace ros
00177 
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182 
00183 template<class ContainerAllocator>
00184 struct Printer< ::ackermann_msgs::AckermannDrive_<ContainerAllocator> >
00185 {
00186   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::ackermann_msgs::AckermannDrive_<ContainerAllocator> & v) 
00187   {
00188     s << indent << "steering_angle: ";
00189     Printer<float>::stream(s, indent + "  ", v.steering_angle);
00190     s << indent << "steering_angle_velocity: ";
00191     Printer<float>::stream(s, indent + "  ", v.steering_angle_velocity);
00192     s << indent << "speed: ";
00193     Printer<float>::stream(s, indent + "  ", v.speed);
00194     s << indent << "acceleration: ";
00195     Printer<float>::stream(s, indent + "  ", v.acceleration);
00196     s << indent << "jerk: ";
00197     Printer<float>::stream(s, indent + "  ", v.jerk);
00198   }
00199 };
00200 
00201 
00202 } // namespace message_operations
00203 } // namespace ros
00204 
00205 #endif // ACKERMANN_MSGS_MESSAGE_ACKERMANNDRIVE_H
00206 


ackermann_msgs
Author(s): Jack O'Quin
autogenerated on Sun Oct 5 2014 22:05:24