MotorStateList.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/MotorStateList.msg */
00002 #ifndef DYNAMIXEL_MSGS_MESSAGE_MOTORSTATELIST_H
00003 #define DYNAMIXEL_MSGS_MESSAGE_MOTORSTATELIST_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 "dynamixel_msgs/MotorState.h"
00018 
00019 namespace dynamixel_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct MotorStateList_ {
00023   typedef MotorStateList_<ContainerAllocator> Type;
00024 
00025   MotorStateList_()
00026   : motor_states()
00027   {
00028   }
00029 
00030   MotorStateList_(const ContainerAllocator& _alloc)
00031   : motor_states(_alloc)
00032   {
00033   }
00034 
00035   typedef std::vector< ::dynamixel_msgs::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::other >  _motor_states_type;
00036   std::vector< ::dynamixel_msgs::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::other >  motor_states;
00037 
00038 
00039   typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > Ptr;
00040   typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList_<ContainerAllocator>  const> ConstPtr;
00041   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 }; // struct MotorStateList
00043 typedef  ::dynamixel_msgs::MotorStateList_<std::allocator<void> > MotorStateList;
00044 
00045 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList> MotorStateListPtr;
00046 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList const> MotorStateListConstPtr;
00047 
00048 
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const  ::dynamixel_msgs::MotorStateList_<ContainerAllocator> & v)
00051 {
00052   ros::message_operations::Printer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> >::stream(s, "", v);
00053   return s;}
00054 
00055 } // namespace dynamixel_msgs
00056 
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorStateList_<ContainerAllocator>  const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > {
00065   static const char* value() 
00066   {
00067     return "9e94ccf6563ca78afce19eb097f9343c";
00068   }
00069 
00070   static const char* value(const  ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 
00071   static const uint64_t static_value1 = 0x9e94ccf6563ca78aULL;
00072   static const uint64_t static_value2 = 0xfce19eb097f9343cULL;
00073 };
00074 
00075 template<class ContainerAllocator>
00076 struct DataType< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > {
00077   static const char* value() 
00078   {
00079     return "dynamixel_msgs/MotorStateList";
00080   }
00081 
00082   static const char* value(const  ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct Definition< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "MotorState[] motor_states\n\
00090 \n\
00091 ================================================================================\n\
00092 MSG: dynamixel_msgs/MotorState\n\
00093 float64 timestamp   # motor state is at this time\n\
00094 int32 id            # motor id\n\
00095 int32 goal          # commanded position (in encoder units)\n\
00096 int32 position      # current position (in encoder units)\n\
00097 int32 error         # difference between current and goal positions\n\
00098 int32 speed         # current speed (0.111 rpm per unit)\n\
00099 float64 load        # current load - ratio of applied torque over maximum torque\n\
00100 float64 voltage     # current voltage (V)\n\
00101 int32 temperature   # current temperature (degrees Celsius)\n\
00102 bool moving         # whether the motor is currently in motion\n\
00103 \n\
00104 ";
00105   }
00106 
00107   static const char* value(const  ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 
00108 };
00109 
00110 } // namespace message_traits
00111 } // namespace ros
00112 
00113 namespace ros
00114 {
00115 namespace serialization
00116 {
00117 
00118 template<class ContainerAllocator> struct Serializer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> >
00119 {
00120   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00121   {
00122     stream.next(m.motor_states);
00123   }
00124 
00125   ROS_DECLARE_ALLINONE_SERIALIZER;
00126 }; // struct MotorStateList_
00127 } // namespace serialization
00128 } // namespace ros
00129 
00130 namespace ros
00131 {
00132 namespace message_operations
00133 {
00134 
00135 template<class ContainerAllocator>
00136 struct Printer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> >
00137 {
00138   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dynamixel_msgs::MotorStateList_<ContainerAllocator> & v) 
00139   {
00140     s << indent << "motor_states[]" << std::endl;
00141     for (size_t i = 0; i < v.motor_states.size(); ++i)
00142     {
00143       s << indent << "  motor_states[" << i << "]: ";
00144       s << std::endl;
00145       s << indent;
00146       Printer< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::stream(s, indent + "    ", v.motor_states[i]);
00147     }
00148   }
00149 };
00150 
00151 
00152 } // namespace message_operations
00153 } // namespace ros
00154 
00155 #endif // DYNAMIXEL_MSGS_MESSAGE_MOTORSTATELIST_H
00156 


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