MotorState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-dynamixel_motor/doc_stacks/2014-01-03_11-18-15.042751/dynamixel_motor/dynamixel_msgs/msg/MotorState.msg */
00002 #ifndef DYNAMIXEL_MSGS_MESSAGE_MOTORSTATE_H
00003 #define DYNAMIXEL_MSGS_MESSAGE_MOTORSTATE_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 dynamixel_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MotorState_ {
00022   typedef MotorState_<ContainerAllocator> Type;
00023 
00024   MotorState_()
00025   : timestamp(0.0)
00026   , id(0)
00027   , goal(0)
00028   , position(0)
00029   , error(0)
00030   , speed(0)
00031   , load(0.0)
00032   , voltage(0.0)
00033   , temperature(0)
00034   , moving(false)
00035   {
00036   }
00037 
00038   MotorState_(const ContainerAllocator& _alloc)
00039   : timestamp(0.0)
00040   , id(0)
00041   , goal(0)
00042   , position(0)
00043   , error(0)
00044   , speed(0)
00045   , load(0.0)
00046   , voltage(0.0)
00047   , temperature(0)
00048   , moving(false)
00049   {
00050   }
00051 
00052   typedef double _timestamp_type;
00053   double timestamp;
00054 
00055   typedef int32_t _id_type;
00056   int32_t id;
00057 
00058   typedef int32_t _goal_type;
00059   int32_t goal;
00060 
00061   typedef int32_t _position_type;
00062   int32_t position;
00063 
00064   typedef int32_t _error_type;
00065   int32_t error;
00066 
00067   typedef int32_t _speed_type;
00068   int32_t speed;
00069 
00070   typedef double _load_type;
00071   double load;
00072 
00073   typedef double _voltage_type;
00074   double voltage;
00075 
00076   typedef int32_t _temperature_type;
00077   int32_t temperature;
00078 
00079   typedef uint8_t _moving_type;
00080   uint8_t moving;
00081 
00082 
00083   typedef boost::shared_ptr< ::dynamixel_msgs::MotorState_<ContainerAllocator> > Ptr;
00084   typedef boost::shared_ptr< ::dynamixel_msgs::MotorState_<ContainerAllocator>  const> ConstPtr;
00085   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00086 }; // struct MotorState
00087 typedef  ::dynamixel_msgs::MotorState_<std::allocator<void> > MotorState;
00088 
00089 typedef boost::shared_ptr< ::dynamixel_msgs::MotorState> MotorStatePtr;
00090 typedef boost::shared_ptr< ::dynamixel_msgs::MotorState const> MotorStateConstPtr;
00091 
00092 
00093 template<typename ContainerAllocator>
00094 std::ostream& operator<<(std::ostream& s, const  ::dynamixel_msgs::MotorState_<ContainerAllocator> & v)
00095 {
00096   ros::message_operations::Printer< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::stream(s, "", v);
00097   return s;}
00098 
00099 } // namespace dynamixel_msgs
00100 
00101 namespace ros
00102 {
00103 namespace message_traits
00104 {
00105 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorState_<ContainerAllocator> > : public TrueType {};
00106 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorState_<ContainerAllocator>  const> : public TrueType {};
00107 template<class ContainerAllocator>
00108 struct MD5Sum< ::dynamixel_msgs::MotorState_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "1cefdc3ff0c7d52e475886024476b74d";
00112   }
00113 
00114   static const char* value(const  ::dynamixel_msgs::MotorState_<ContainerAllocator> &) { return value(); } 
00115   static const uint64_t static_value1 = 0x1cefdc3ff0c7d52eULL;
00116   static const uint64_t static_value2 = 0x475886024476b74dULL;
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct DataType< ::dynamixel_msgs::MotorState_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "dynamixel_msgs/MotorState";
00124   }
00125 
00126   static const char* value(const  ::dynamixel_msgs::MotorState_<ContainerAllocator> &) { return value(); } 
00127 };
00128 
00129 template<class ContainerAllocator>
00130 struct Definition< ::dynamixel_msgs::MotorState_<ContainerAllocator> > {
00131   static const char* value() 
00132   {
00133     return "float64 timestamp   # motor state is at this time\n\
00134 int32 id            # motor id\n\
00135 int32 goal          # commanded position (in encoder units)\n\
00136 int32 position      # current position (in encoder units)\n\
00137 int32 error         # difference between current and goal positions\n\
00138 int32 speed         # current speed (0.111 rpm per unit)\n\
00139 float64 load        # current load - ratio of applied torque over maximum torque\n\
00140 float64 voltage     # current voltage (V)\n\
00141 int32 temperature   # current temperature (degrees Celsius)\n\
00142 bool moving         # whether the motor is currently in motion\n\
00143 \n\
00144 ";
00145   }
00146 
00147   static const char* value(const  ::dynamixel_msgs::MotorState_<ContainerAllocator> &) { return value(); } 
00148 };
00149 
00150 template<class ContainerAllocator> struct IsFixedSize< ::dynamixel_msgs::MotorState_<ContainerAllocator> > : public TrueType {};
00151 } // namespace message_traits
00152 } // namespace ros
00153 
00154 namespace ros
00155 {
00156 namespace serialization
00157 {
00158 
00159 template<class ContainerAllocator> struct Serializer< ::dynamixel_msgs::MotorState_<ContainerAllocator> >
00160 {
00161   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00162   {
00163     stream.next(m.timestamp);
00164     stream.next(m.id);
00165     stream.next(m.goal);
00166     stream.next(m.position);
00167     stream.next(m.error);
00168     stream.next(m.speed);
00169     stream.next(m.load);
00170     stream.next(m.voltage);
00171     stream.next(m.temperature);
00172     stream.next(m.moving);
00173   }
00174 
00175   ROS_DECLARE_ALLINONE_SERIALIZER;
00176 }; // struct MotorState_
00177 } // namespace serialization
00178 } // namespace ros
00179 
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184 
00185 template<class ContainerAllocator>
00186 struct Printer< ::dynamixel_msgs::MotorState_<ContainerAllocator> >
00187 {
00188   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dynamixel_msgs::MotorState_<ContainerAllocator> & v) 
00189   {
00190     s << indent << "timestamp: ";
00191     Printer<double>::stream(s, indent + "  ", v.timestamp);
00192     s << indent << "id: ";
00193     Printer<int32_t>::stream(s, indent + "  ", v.id);
00194     s << indent << "goal: ";
00195     Printer<int32_t>::stream(s, indent + "  ", v.goal);
00196     s << indent << "position: ";
00197     Printer<int32_t>::stream(s, indent + "  ", v.position);
00198     s << indent << "error: ";
00199     Printer<int32_t>::stream(s, indent + "  ", v.error);
00200     s << indent << "speed: ";
00201     Printer<int32_t>::stream(s, indent + "  ", v.speed);
00202     s << indent << "load: ";
00203     Printer<double>::stream(s, indent + "  ", v.load);
00204     s << indent << "voltage: ";
00205     Printer<double>::stream(s, indent + "  ", v.voltage);
00206     s << indent << "temperature: ";
00207     Printer<int32_t>::stream(s, indent + "  ", v.temperature);
00208     s << indent << "moving: ";
00209     Printer<uint8_t>::stream(s, indent + "  ", v.moving);
00210   }
00211 };
00212 
00213 
00214 } // namespace message_operations
00215 } // namespace ros
00216 
00217 #endif // DYNAMIXEL_MSGS_MESSAGE_MOTORSTATE_H
00218 


dynamixel_msgs
Author(s): Antons Rebguns
autogenerated on Fri Jan 3 2014 11:19:44