$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-dynamixel_motor/doc_stacks/2013-03-05_11-51-27.351858/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 ROS_DEPRECATED uint32_t get_motor_states_size() const { return (uint32_t)motor_states.size(); } 00040 ROS_DEPRECATED void set_motor_states_size(uint32_t size) { motor_states.resize((size_t)size); } 00041 ROS_DEPRECATED void get_motor_states_vec(std::vector< ::dynamixel_msgs::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::other > & vec) const { vec = this->motor_states; } 00042 ROS_DEPRECATED void set_motor_states_vec(const std::vector< ::dynamixel_msgs::MotorState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::other > & vec) { this->motor_states = vec; } 00043 private: 00044 static const char* __s_getDataType_() { return "dynamixel_msgs/MotorStateList"; } 00045 public: 00046 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00047 00048 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00049 00050 private: 00051 static const char* __s_getMD5Sum_() { return "9e94ccf6563ca78afce19eb097f9343c"; } 00052 public: 00053 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00054 00055 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00056 00057 private: 00058 static const char* __s_getMessageDefinition_() { return "MotorState[] motor_states\n\ 00059 \n\ 00060 ================================================================================\n\ 00061 MSG: dynamixel_msgs/MotorState\n\ 00062 float64 timestamp # motor state is at this time\n\ 00063 int32 id # motor id\n\ 00064 int32 goal # commanded position (in encoder units)\n\ 00065 int32 position # current position (in encoder units)\n\ 00066 int32 error # difference between current and goal positions\n\ 00067 int32 speed # current speed (0.111 rpm per unit)\n\ 00068 float64 load # current load - ratio of applied torque over maximum torque\n\ 00069 float64 voltage # current voltage (V)\n\ 00070 int32 temperature # current temperature (degrees Celsius)\n\ 00071 bool moving # whether the motor is currently in motion\n\ 00072 \n\ 00073 "; } 00074 public: 00075 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00076 00077 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00080 { 00081 ros::serialization::OStream stream(write_ptr, 1000000000); 00082 ros::serialization::serialize(stream, motor_states); 00083 return stream.getData(); 00084 } 00085 00086 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00087 { 00088 ros::serialization::IStream stream(read_ptr, 1000000000); 00089 ros::serialization::deserialize(stream, motor_states); 00090 return stream.getData(); 00091 } 00092 00093 ROS_DEPRECATED virtual uint32_t serializationLength() const 00094 { 00095 uint32_t size = 0; 00096 size += ros::serialization::serializationLength(motor_states); 00097 return size; 00098 } 00099 00100 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > Ptr; 00101 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> const> ConstPtr; 00102 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00103 }; // struct MotorStateList 00104 typedef ::dynamixel_msgs::MotorStateList_<std::allocator<void> > MotorStateList; 00105 00106 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList> MotorStateListPtr; 00107 typedef boost::shared_ptr< ::dynamixel_msgs::MotorStateList const> MotorStateListConstPtr; 00108 00109 00110 template<typename ContainerAllocator> 00111 std::ostream& operator<<(std::ostream& s, const ::dynamixel_msgs::MotorStateList_<ContainerAllocator> & v) 00112 { 00113 ros::message_operations::Printer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> >::stream(s, "", v); 00114 return s;} 00115 00116 } // namespace dynamixel_msgs 00117 00118 namespace ros 00119 { 00120 namespace message_traits 00121 { 00122 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > : public TrueType {}; 00123 template<class ContainerAllocator> struct IsMessage< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> const> : public TrueType {}; 00124 template<class ContainerAllocator> 00125 struct MD5Sum< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > { 00126 static const char* value() 00127 { 00128 return "9e94ccf6563ca78afce19eb097f9343c"; 00129 } 00130 00131 static const char* value(const ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 00132 static const uint64_t static_value1 = 0x9e94ccf6563ca78aULL; 00133 static const uint64_t static_value2 = 0xfce19eb097f9343cULL; 00134 }; 00135 00136 template<class ContainerAllocator> 00137 struct DataType< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > { 00138 static const char* value() 00139 { 00140 return "dynamixel_msgs/MotorStateList"; 00141 } 00142 00143 static const char* value(const ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 00144 }; 00145 00146 template<class ContainerAllocator> 00147 struct Definition< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > { 00148 static const char* value() 00149 { 00150 return "MotorState[] motor_states\n\ 00151 \n\ 00152 ================================================================================\n\ 00153 MSG: dynamixel_msgs/MotorState\n\ 00154 float64 timestamp # motor state is at this time\n\ 00155 int32 id # motor id\n\ 00156 int32 goal # commanded position (in encoder units)\n\ 00157 int32 position # current position (in encoder units)\n\ 00158 int32 error # difference between current and goal positions\n\ 00159 int32 speed # current speed (0.111 rpm per unit)\n\ 00160 float64 load # current load - ratio of applied torque over maximum torque\n\ 00161 float64 voltage # current voltage (V)\n\ 00162 int32 temperature # current temperature (degrees Celsius)\n\ 00163 bool moving # whether the motor is currently in motion\n\ 00164 \n\ 00165 "; 00166 } 00167 00168 static const char* value(const ::dynamixel_msgs::MotorStateList_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 } // namespace message_traits 00172 } // namespace ros 00173 00174 namespace ros 00175 { 00176 namespace serialization 00177 { 00178 00179 template<class ContainerAllocator> struct Serializer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > 00180 { 00181 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00182 { 00183 stream.next(m.motor_states); 00184 } 00185 00186 ROS_DECLARE_ALLINONE_SERIALIZER; 00187 }; // struct MotorStateList_ 00188 } // namespace serialization 00189 } // namespace ros 00190 00191 namespace ros 00192 { 00193 namespace message_operations 00194 { 00195 00196 template<class ContainerAllocator> 00197 struct Printer< ::dynamixel_msgs::MotorStateList_<ContainerAllocator> > 00198 { 00199 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::dynamixel_msgs::MotorStateList_<ContainerAllocator> & v) 00200 { 00201 s << indent << "motor_states[]" << std::endl; 00202 for (size_t i = 0; i < v.motor_states.size(); ++i) 00203 { 00204 s << indent << " motor_states[" << i << "]: "; 00205 s << std::endl; 00206 s << indent; 00207 Printer< ::dynamixel_msgs::MotorState_<ContainerAllocator> >::stream(s, indent + " ", v.motor_states[i]); 00208 } 00209 } 00210 }; 00211 00212 00213 } // namespace message_operations 00214 } // namespace ros 00215 00216 #endif // DYNAMIXEL_MSGS_MESSAGE_MOTORSTATELIST_H 00217