MotorCommand.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-roscorobot/doc_stacks/2014-01-07_11-36-17.541726/Corobot/corobot_msgs/msg/MotorCommand.msg */
00002 #ifndef COROBOT_MSGS_MESSAGE_MOTORCOMMAND_H
00003 #define COROBOT_MSGS_MESSAGE_MOTORCOMMAND_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 corobot_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MotorCommand_ {
00022   typedef MotorCommand_<ContainerAllocator> Type;
00023 
00024   MotorCommand_()
00025   : leftSpeed(0)
00026   , rightSpeed(0)
00027   , secondsDuration(0)
00028   , acceleration(0)
00029   {
00030   }
00031 
00032   MotorCommand_(const ContainerAllocator& _alloc)
00033   : leftSpeed(0)
00034   , rightSpeed(0)
00035   , secondsDuration(0)
00036   , acceleration(0)
00037   {
00038   }
00039 
00040   typedef int16_t _leftSpeed_type;
00041   int16_t leftSpeed;
00042 
00043   typedef int16_t _rightSpeed_type;
00044   int16_t rightSpeed;
00045 
00046   typedef uint16_t _secondsDuration_type;
00047   uint16_t secondsDuration;
00048 
00049   typedef uint16_t _acceleration_type;
00050   uint16_t acceleration;
00051 
00052 
00053   typedef boost::shared_ptr< ::corobot_msgs::MotorCommand_<ContainerAllocator> > Ptr;
00054   typedef boost::shared_ptr< ::corobot_msgs::MotorCommand_<ContainerAllocator>  const> ConstPtr;
00055   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00056 }; // struct MotorCommand
00057 typedef  ::corobot_msgs::MotorCommand_<std::allocator<void> > MotorCommand;
00058 
00059 typedef boost::shared_ptr< ::corobot_msgs::MotorCommand> MotorCommandPtr;
00060 typedef boost::shared_ptr< ::corobot_msgs::MotorCommand const> MotorCommandConstPtr;
00061 
00062 
00063 template<typename ContainerAllocator>
00064 std::ostream& operator<<(std::ostream& s, const  ::corobot_msgs::MotorCommand_<ContainerAllocator> & v)
00065 {
00066   ros::message_operations::Printer< ::corobot_msgs::MotorCommand_<ContainerAllocator> >::stream(s, "", v);
00067   return s;}
00068 
00069 } // namespace corobot_msgs
00070 
00071 namespace ros
00072 {
00073 namespace message_traits
00074 {
00075 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::MotorCommand_<ContainerAllocator> > : public TrueType {};
00076 template<class ContainerAllocator> struct IsMessage< ::corobot_msgs::MotorCommand_<ContainerAllocator>  const> : public TrueType {};
00077 template<class ContainerAllocator>
00078 struct MD5Sum< ::corobot_msgs::MotorCommand_<ContainerAllocator> > {
00079   static const char* value() 
00080   {
00081     return "451c087bf7cd0b5ee063409877e152e9";
00082   }
00083 
00084   static const char* value(const  ::corobot_msgs::MotorCommand_<ContainerAllocator> &) { return value(); } 
00085   static const uint64_t static_value1 = 0x451c087bf7cd0b5eULL;
00086   static const uint64_t static_value2 = 0xe063409877e152e9ULL;
00087 };
00088 
00089 template<class ContainerAllocator>
00090 struct DataType< ::corobot_msgs::MotorCommand_<ContainerAllocator> > {
00091   static const char* value() 
00092   {
00093     return "corobot_msgs/MotorCommand";
00094   }
00095 
00096   static const char* value(const  ::corobot_msgs::MotorCommand_<ContainerAllocator> &) { return value(); } 
00097 };
00098 
00099 template<class ContainerAllocator>
00100 struct Definition< ::corobot_msgs::MotorCommand_<ContainerAllocator> > {
00101   static const char* value() 
00102   {
00103     return "# Bill Mania <bmania@coroware.com>\n\
00104 #\n\
00105 # Service used with the CoroWare CoroBot to move the robot\n\
00106 # base. Originally developed for the Phidget HC Motor Controller\n\
00107 #\n\
00108 # leftSpeed and rightSpeed are signed integers which specify the\n\
00109 # combined speed and direction to rotate the wheels on each side\n\
00110 # of the robot. 0 indicates full stop. positive integers indicate\n\
00111 # a forward rotation and larger integers indicate a higher\n\
00112 # rotational speed.\n\
00113 #\n\
00114 int16 leftSpeed\n\
00115 int16 rightSpeed\n\
00116 #\n\
00117 # when at least one of leftSpeed or rightSpeed is non-zero,\n\
00118 # secondsDuration indicates for how many seconds to rotate those\n\
00119 # wheels at the requested speed. when secondsDuration is zero,\n\
00120 # the wheels will be rotated at the requested speed, in the\n\
00121 # requested direction until another request is received.\n\
00122 #\n\
00123 uint16 secondsDuration\n\
00124 #\n\
00125 # the number of seconds over which to effect the change in\n\
00126 # rotational speed from the current speed to the speed requested.\n\
00127 # a value of zero indicates \"as fast as possible\". the greater\n\
00128 # this value, the greater amount of time taken to change the\n\
00129 # speed.\n\
00130 uint16 acceleration\n\
00131 \n\
00132 ";
00133   }
00134 
00135   static const char* value(const  ::corobot_msgs::MotorCommand_<ContainerAllocator> &) { return value(); } 
00136 };
00137 
00138 template<class ContainerAllocator> struct IsFixedSize< ::corobot_msgs::MotorCommand_<ContainerAllocator> > : public TrueType {};
00139 } // namespace message_traits
00140 } // namespace ros
00141 
00142 namespace ros
00143 {
00144 namespace serialization
00145 {
00146 
00147 template<class ContainerAllocator> struct Serializer< ::corobot_msgs::MotorCommand_<ContainerAllocator> >
00148 {
00149   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00150   {
00151     stream.next(m.leftSpeed);
00152     stream.next(m.rightSpeed);
00153     stream.next(m.secondsDuration);
00154     stream.next(m.acceleration);
00155   }
00156 
00157   ROS_DECLARE_ALLINONE_SERIALIZER;
00158 }; // struct MotorCommand_
00159 } // namespace serialization
00160 } // namespace ros
00161 
00162 namespace ros
00163 {
00164 namespace message_operations
00165 {
00166 
00167 template<class ContainerAllocator>
00168 struct Printer< ::corobot_msgs::MotorCommand_<ContainerAllocator> >
00169 {
00170   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::corobot_msgs::MotorCommand_<ContainerAllocator> & v) 
00171   {
00172     s << indent << "leftSpeed: ";
00173     Printer<int16_t>::stream(s, indent + "  ", v.leftSpeed);
00174     s << indent << "rightSpeed: ";
00175     Printer<int16_t>::stream(s, indent + "  ", v.rightSpeed);
00176     s << indent << "secondsDuration: ";
00177     Printer<uint16_t>::stream(s, indent + "  ", v.secondsDuration);
00178     s << indent << "acceleration: ";
00179     Printer<uint16_t>::stream(s, indent + "  ", v.acceleration);
00180   }
00181 };
00182 
00183 
00184 } // namespace message_operations
00185 } // namespace ros
00186 
00187 #endif // COROBOT_MSGS_MESSAGE_MOTORCOMMAND_H
00188 


corobot_msgs
Author(s): Morgan Cormier/mcormier@coroware.com
autogenerated on Tue Jan 7 2014 11:38:41