MotorStateList.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-dynamixel_motor_experimental/doc_stacks/2014-10-05_23-31-27.140474/dynamixel_motor_experimental/dynamixel_hardware_interface/msg/MotorStateList.msg */
00002 #ifndef DYNAMIXEL_HARDWARE_INTERFACE_MESSAGE_MOTORSTATELIST_H
00003 #define DYNAMIXEL_HARDWARE_INTERFACE_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_hardware_interface/MotorState.h"
00018 
00019 namespace dynamixel_hardware_interface
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_hardware_interface::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_hardware_interface::MotorState_<ContainerAllocator> >::other >  _motor_states_type;
00036   std::vector< ::dynamixel_hardware_interface::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_hardware_interface::MotorState_<ContainerAllocator> >::other >  motor_states;
00037 
00038 
00039   typedef boost::shared_ptr< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> > Ptr;
00040   typedef boost::shared_ptr< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator>  const> ConstPtr;
00041   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00042 }; // struct MotorStateList
00043 typedef  ::dynamixel_hardware_interface::MotorStateList_<std::allocator<void> > MotorStateList;
00044 
00045 typedef boost::shared_ptr< ::dynamixel_hardware_interface::MotorStateList> MotorStateListPtr;
00046 typedef boost::shared_ptr< ::dynamixel_hardware_interface::MotorStateList const> MotorStateListConstPtr;
00047 
00048 
00049 template<typename ContainerAllocator>
00050 std::ostream& operator<<(std::ostream& s, const  ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> & v)
00051 {
00052   ros::message_operations::Printer< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> >::stream(s, "", v);
00053   return s;}
00054 
00055 } // namespace dynamixel_hardware_interface
00056 
00057 namespace ros
00058 {
00059 namespace message_traits
00060 {
00061 template<class ContainerAllocator> struct IsMessage< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> > : public TrueType {};
00062 template<class ContainerAllocator> struct IsMessage< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator>  const> : public TrueType {};
00063 template<class ContainerAllocator>
00064 struct MD5Sum< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> > {
00065   static const char* value() 
00066   {
00067     return "a2b6b94d09777cc1efb8ff09e1e054af";
00068   }
00069 
00070   static const char* value(const  ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> &) { return value(); } 
00071   static const uint64_t static_value1 = 0xa2b6b94d09777cc1ULL;
00072   static const uint64_t static_value2 = 0xefb8ff09e1e054afULL;
00073 };
00074 
00075 template<class ContainerAllocator>
00076 struct DataType< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> > {
00077   static const char* value() 
00078   {
00079     return "dynamixel_hardware_interface/MotorStateList";
00080   }
00081 
00082   static const char* value(const  ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> &) { return value(); } 
00083 };
00084 
00085 template<class ContainerAllocator>
00086 struct Definition< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "MotorState[] motor_states\n\
00090 \n\
00091 ================================================================================\n\
00092 MSG: dynamixel_hardware_interface/MotorState\n\
00093 # all values are in encoder units unless otherwise specified\n\
00094 \n\
00095 float64 timestamp       # motor state is at this time\n\
00096 \n\
00097 int32 id                # motor id\n\
00098 int32 target_position   # commanded position\n\
00099 int32 target_velocity   # commanded velocity\n\
00100 int32 position          # current position\n\
00101 int32 velocity          # current velocity\n\
00102 int32 torque_limit      # current torque limit\n\
00103 int32 load              # current load - ratio of applied torque over maximum torque\n\
00104 bool  moving            # whether the motor is currently in motion\n\
00105 \n\
00106 int32 voltage           # current voltage (V * 10)\n\
00107 int32 temperature       # current temperature (degrees Celsius)\n\
00108 \n\
00109 \n\
00110 ";
00111   }
00112 
00113   static const char* value(const  ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> &) { return value(); } 
00114 };
00115 
00116 } // namespace message_traits
00117 } // namespace ros
00118 
00119 namespace ros
00120 {
00121 namespace serialization
00122 {
00123 
00124 template<class ContainerAllocator> struct Serializer< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> >
00125 {
00126   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00127   {
00128     stream.next(m.motor_states);
00129   }
00130 
00131   ROS_DECLARE_ALLINONE_SERIALIZER;
00132 }; // struct MotorStateList_
00133 } // namespace serialization
00134 } // namespace ros
00135 
00136 namespace ros
00137 {
00138 namespace message_operations
00139 {
00140 
00141 template<class ContainerAllocator>
00142 struct Printer< ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> >
00143 {
00144   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::dynamixel_hardware_interface::MotorStateList_<ContainerAllocator> & v) 
00145   {
00146     s << indent << "motor_states[]" << std::endl;
00147     for (size_t i = 0; i < v.motor_states.size(); ++i)
00148     {
00149       s << indent << "  motor_states[" << i << "]: ";
00150       s << std::endl;
00151       s << indent;
00152       Printer< ::dynamixel_hardware_interface::MotorState_<ContainerAllocator> >::stream(s, indent + "    ", v.motor_states[i]);
00153     }
00154   }
00155 };
00156 
00157 
00158 } // namespace message_operations
00159 } // namespace ros
00160 
00161 #endif // DYNAMIXEL_HARDWARE_INTERFACE_MESSAGE_MOTORSTATELIST_H
00162 


dynamixel_hardware_interface
Author(s): Antons Rebguns
autogenerated on Sun Oct 5 2014 23:33:10