00001
00002 #ifndef DYNAMIXEL_MSGS_MESSAGE_JOINTSTATELIST_H
00003 #define DYNAMIXEL_MSGS_MESSAGE_JOINTSTATELIST_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "dynamixel_msgs/JointState.h"
00014
00015 namespace dynamixel_msgs
00016 {
00017 template <class ContainerAllocator>
00018 struct JointStateList_ : public ros::Message
00019 {
00020 typedef JointStateList_<ContainerAllocator> Type;
00021
00022 JointStateList_()
00023 : motor_states()
00024 {
00025 }
00026
00027 JointStateList_(const ContainerAllocator& _alloc)
00028 : motor_states(_alloc)
00029 {
00030 }
00031
00032 typedef std::vector< ::dynamixel_msgs::JointState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::JointState_<ContainerAllocator> >::other > _motor_states_type;
00033 std::vector< ::dynamixel_msgs::JointState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::JointState_<ContainerAllocator> >::other > motor_states;
00034
00035
00036 ROS_DEPRECATED uint32_t get_motor_states_size() const { return (uint32_t)motor_states.size(); }
00037 ROS_DEPRECATED void set_motor_states_size(uint32_t size) { motor_states.resize((size_t)size); }
00038 ROS_DEPRECATED void get_motor_states_vec(std::vector< ::dynamixel_msgs::JointState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::JointState_<ContainerAllocator> >::other > & vec) const { vec = this->motor_states; }
00039 ROS_DEPRECATED void set_motor_states_vec(const std::vector< ::dynamixel_msgs::JointState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::dynamixel_msgs::JointState_<ContainerAllocator> >::other > & vec) { this->motor_states = vec; }
00040 private:
00041 static const char* __s_getDataType_() { return "dynamixel_msgs/JointStateList"; }
00042 public:
00043 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00044
00045 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00046
00047 private:
00048 static const char* __s_getMD5Sum_() { return "39b7d137ea0a3aade285e88b8dd58dfe"; }
00049 public:
00050 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00051
00052 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00053
00054 private:
00055 static const char* __s_getMessageDefinition_() { return "JointState[] motor_states\n\
00056 \n\
00057 ================================================================================\n\
00058 MSG: dynamixel_msgs/JointState\n\
00059 Header header\n\
00060 string name # joint name\n\
00061 int32[] motor_ids # motor ids controlling this joint\n\
00062 int32[] motor_temps # motor temperatures, same order as motor_ids\n\
00063 \n\
00064 float64 goal_pos # commanded position (in radians)\n\
00065 float64 current_pos # current joint position (in radians)\n\
00066 float64 error # error between commanded and current positions (in radians)\n\
00067 float64 velocity # current joint speed (in radians per second)\n\
00068 float64 load # current load\n\
00069 bool is_moving # is joint currently in motion\n\
00070 \n\
00071 \n\
00072 ================================================================================\n\
00073 MSG: std_msgs/Header\n\
00074 # Standard metadata for higher-level stamped data types.\n\
00075 # This is generally used to communicate timestamped data \n\
00076 # in a particular coordinate frame.\n\
00077 # \n\
00078 # sequence ID: consecutively increasing ID \n\
00079 uint32 seq\n\
00080 #Two-integer timestamp that is expressed as:\n\
00081 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00082 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00083 # time-handling sugar is provided by the client library\n\
00084 time stamp\n\
00085 #Frame this data is associated with\n\
00086 # 0: no frame\n\
00087 # 1: global frame\n\
00088 string frame_id\n\
00089 \n\
00090 "; }
00091 public:
00092 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00093
00094 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00095
00096 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00097 {
00098 ros::serialization::OStream stream(write_ptr, 1000000000);
00099 ros::serialization::serialize(stream, motor_states);
00100 return stream.getData();
00101 }
00102
00103 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00104 {
00105 ros::serialization::IStream stream(read_ptr, 1000000000);
00106 ros::serialization::deserialize(stream, motor_states);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(motor_states);
00114 return size;
00115 }
00116
00117 typedef boost::shared_ptr< ::dynamixel_msgs::JointStateList_<ContainerAllocator> > Ptr;
00118 typedef boost::shared_ptr< ::dynamixel_msgs::JointStateList_<ContainerAllocator> const> ConstPtr;
00119 };
00120 typedef ::dynamixel_msgs::JointStateList_<std::allocator<void> > JointStateList;
00121
00122 typedef boost::shared_ptr< ::dynamixel_msgs::JointStateList> JointStateListPtr;
00123 typedef boost::shared_ptr< ::dynamixel_msgs::JointStateList const> JointStateListConstPtr;
00124
00125
00126 template<typename ContainerAllocator>
00127 std::ostream& operator<<(std::ostream& s, const ::dynamixel_msgs::JointStateList_<ContainerAllocator> & v)
00128 {
00129 ros::message_operations::Printer< ::dynamixel_msgs::JointStateList_<ContainerAllocator> >::stream(s, "", v);
00130 return s;}
00131
00132 }
00133
00134 namespace ros
00135 {
00136 namespace message_traits
00137 {
00138 template<class ContainerAllocator>
00139 struct MD5Sum< ::dynamixel_msgs::JointStateList_<ContainerAllocator> > {
00140 static const char* value()
00141 {
00142 return "39b7d137ea0a3aade285e88b8dd58dfe";
00143 }
00144
00145 static const char* value(const ::dynamixel_msgs::JointStateList_<ContainerAllocator> &) { return value(); }
00146 static const uint64_t static_value1 = 0x39b7d137ea0a3aadULL;
00147 static const uint64_t static_value2 = 0xe285e88b8dd58dfeULL;
00148 };
00149
00150 template<class ContainerAllocator>
00151 struct DataType< ::dynamixel_msgs::JointStateList_<ContainerAllocator> > {
00152 static const char* value()
00153 {
00154 return "dynamixel_msgs/JointStateList";
00155 }
00156
00157 static const char* value(const ::dynamixel_msgs::JointStateList_<ContainerAllocator> &) { return value(); }
00158 };
00159
00160 template<class ContainerAllocator>
00161 struct Definition< ::dynamixel_msgs::JointStateList_<ContainerAllocator> > {
00162 static const char* value()
00163 {
00164 return "JointState[] motor_states\n\
00165 \n\
00166 ================================================================================\n\
00167 MSG: dynamixel_msgs/JointState\n\
00168 Header header\n\
00169 string name # joint name\n\
00170 int32[] motor_ids # motor ids controlling this joint\n\
00171 int32[] motor_temps # motor temperatures, same order as motor_ids\n\
00172 \n\
00173 float64 goal_pos # commanded position (in radians)\n\
00174 float64 current_pos # current joint position (in radians)\n\
00175 float64 error # error between commanded and current positions (in radians)\n\
00176 float64 velocity # current joint speed (in radians per second)\n\
00177 float64 load # current load\n\
00178 bool is_moving # is joint currently in motion\n\
00179 \n\
00180 \n\
00181 ================================================================================\n\
00182 MSG: std_msgs/Header\n\
00183 # Standard metadata for higher-level stamped data types.\n\
00184 # This is generally used to communicate timestamped data \n\
00185 # in a particular coordinate frame.\n\
00186 # \n\
00187 # sequence ID: consecutively increasing ID \n\
00188 uint32 seq\n\
00189 #Two-integer timestamp that is expressed as:\n\
00190 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00191 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00192 # time-handling sugar is provided by the client library\n\
00193 time stamp\n\
00194 #Frame this data is associated with\n\
00195 # 0: no frame\n\
00196 # 1: global frame\n\
00197 string frame_id\n\
00198 \n\
00199 ";
00200 }
00201
00202 static const char* value(const ::dynamixel_msgs::JointStateList_<ContainerAllocator> &) { return value(); }
00203 };
00204
00205 }
00206 }
00207
00208 namespace ros
00209 {
00210 namespace serialization
00211 {
00212
00213 template<class ContainerAllocator> struct Serializer< ::dynamixel_msgs::JointStateList_<ContainerAllocator> >
00214 {
00215 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00216 {
00217 stream.next(m.motor_states);
00218 }
00219
00220 ROS_DECLARE_ALLINONE_SERIALIZER;
00221 };
00222 }
00223 }
00224
00225 namespace ros
00226 {
00227 namespace message_operations
00228 {
00229
00230 template<class ContainerAllocator>
00231 struct Printer< ::dynamixel_msgs::JointStateList_<ContainerAllocator> >
00232 {
00233 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::dynamixel_msgs::JointStateList_<ContainerAllocator> & v)
00234 {
00235 s << indent << "motor_states[]" << std::endl;
00236 for (size_t i = 0; i < v.motor_states.size(); ++i)
00237 {
00238 s << indent << " motor_states[" << i << "]: ";
00239 s << std::endl;
00240 s << indent;
00241 Printer< ::dynamixel_msgs::JointState_<ContainerAllocator> >::stream(s, indent + " ", v.motor_states[i]);
00242 }
00243 }
00244 };
00245
00246
00247 }
00248 }
00249
00250 #endif // DYNAMIXEL_MSGS_MESSAGE_JOINTSTATELIST_H
00251