$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-alufr-humanoid_stacks/doc_stacks/2013-03-05_11-28-06.315559/nao_robot/nao_msgs/msg/JointAnglesWithSpeed.msg */ 00002 #ifndef NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_H 00003 #define NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_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 "std_msgs/Header.h" 00018 00019 namespace nao_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct JointAnglesWithSpeed_ { 00023 typedef JointAnglesWithSpeed_<ContainerAllocator> Type; 00024 00025 JointAnglesWithSpeed_() 00026 : header() 00027 , joint_names() 00028 , joint_angles() 00029 , speed(0.0) 00030 , relative(0) 00031 { 00032 } 00033 00034 JointAnglesWithSpeed_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , joint_names(_alloc) 00037 , joint_angles(_alloc) 00038 , speed(0.0) 00039 , relative(0) 00040 { 00041 } 00042 00043 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00044 ::std_msgs::Header_<ContainerAllocator> header; 00045 00046 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type; 00047 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names; 00048 00049 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _joint_angles_type; 00050 std::vector<float, typename ContainerAllocator::template rebind<float>::other > joint_angles; 00051 00052 typedef float _speed_type; 00053 float speed; 00054 00055 typedef uint8_t _relative_type; 00056 uint8_t relative; 00057 00058 00059 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00060 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00061 ROS_DEPRECATED void get_joint_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->joint_names; } 00062 ROS_DEPRECATED void set_joint_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->joint_names = vec; } 00063 ROS_DEPRECATED uint32_t get_joint_angles_size() const { return (uint32_t)joint_angles.size(); } 00064 ROS_DEPRECATED void set_joint_angles_size(uint32_t size) { joint_angles.resize((size_t)size); } 00065 ROS_DEPRECATED void get_joint_angles_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->joint_angles; } 00066 ROS_DEPRECATED void set_joint_angles_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->joint_angles = vec; } 00067 private: 00068 static const char* __s_getDataType_() { return "nao_msgs/JointAnglesWithSpeed"; } 00069 public: 00070 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00071 00072 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00073 00074 private: 00075 static const char* __s_getMD5Sum_() { return "052ca11f74a00ad6745dfff6ebc2b4d8"; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00078 00079 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00080 00081 private: 00082 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00083 \n\ 00084 # A list of joint names, corresponding to their names in the Nao docs.\n\ 00085 # This must be either the same lenght of joint_angles or 1 if it's a\n\ 00086 # keyword such as 'Body' (for all angles)\n\ 00087 string[] joint_names\n\ 00088 float32[] joint_angles\n\ 00089 \n\ 00090 #fraction of max joint velocity [0:1]\n\ 00091 float32 speed\n\ 00092 \n\ 00093 # Absolute angle(=0, default) or relative change\n\ 00094 uint8 relative\n\ 00095 \n\ 00096 ================================================================================\n\ 00097 MSG: std_msgs/Header\n\ 00098 # Standard metadata for higher-level stamped data types.\n\ 00099 # This is generally used to communicate timestamped data \n\ 00100 # in a particular coordinate frame.\n\ 00101 # \n\ 00102 # sequence ID: consecutively increasing ID \n\ 00103 uint32 seq\n\ 00104 #Two-integer timestamp that is expressed as:\n\ 00105 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00106 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00107 # time-handling sugar is provided by the client library\n\ 00108 time stamp\n\ 00109 #Frame this data is associated with\n\ 00110 # 0: no frame\n\ 00111 # 1: global frame\n\ 00112 string frame_id\n\ 00113 \n\ 00114 "; } 00115 public: 00116 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00117 00118 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00119 00120 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00121 { 00122 ros::serialization::OStream stream(write_ptr, 1000000000); 00123 ros::serialization::serialize(stream, header); 00124 ros::serialization::serialize(stream, joint_names); 00125 ros::serialization::serialize(stream, joint_angles); 00126 ros::serialization::serialize(stream, speed); 00127 ros::serialization::serialize(stream, relative); 00128 return stream.getData(); 00129 } 00130 00131 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00132 { 00133 ros::serialization::IStream stream(read_ptr, 1000000000); 00134 ros::serialization::deserialize(stream, header); 00135 ros::serialization::deserialize(stream, joint_names); 00136 ros::serialization::deserialize(stream, joint_angles); 00137 ros::serialization::deserialize(stream, speed); 00138 ros::serialization::deserialize(stream, relative); 00139 return stream.getData(); 00140 } 00141 00142 ROS_DEPRECATED virtual uint32_t serializationLength() const 00143 { 00144 uint32_t size = 0; 00145 size += ros::serialization::serializationLength(header); 00146 size += ros::serialization::serializationLength(joint_names); 00147 size += ros::serialization::serializationLength(joint_angles); 00148 size += ros::serialization::serializationLength(speed); 00149 size += ros::serialization::serializationLength(relative); 00150 return size; 00151 } 00152 00153 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > Ptr; 00154 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> const> ConstPtr; 00155 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00156 }; // struct JointAnglesWithSpeed 00157 typedef ::nao_msgs::JointAnglesWithSpeed_<std::allocator<void> > JointAnglesWithSpeed; 00158 00159 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed> JointAnglesWithSpeedPtr; 00160 typedef boost::shared_ptr< ::nao_msgs::JointAnglesWithSpeed const> JointAnglesWithSpeedConstPtr; 00161 00162 00163 template<typename ContainerAllocator> 00164 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> & v) 00165 { 00166 ros::message_operations::Printer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> >::stream(s, "", v); 00167 return s;} 00168 00169 } // namespace nao_msgs 00170 00171 namespace ros 00172 { 00173 namespace message_traits 00174 { 00175 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {}; 00176 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> const> : public TrueType {}; 00177 template<class ContainerAllocator> 00178 struct MD5Sum< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "052ca11f74a00ad6745dfff6ebc2b4d8"; 00182 } 00183 00184 static const char* value(const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 00185 static const uint64_t static_value1 = 0x052ca11f74a00ad6ULL; 00186 static const uint64_t static_value2 = 0x745dfff6ebc2b4d8ULL; 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct DataType< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "nao_msgs/JointAnglesWithSpeed"; 00194 } 00195 00196 static const char* value(const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 00197 }; 00198 00199 template<class ContainerAllocator> 00200 struct Definition< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > { 00201 static const char* value() 00202 { 00203 return "Header header\n\ 00204 \n\ 00205 # A list of joint names, corresponding to their names in the Nao docs.\n\ 00206 # This must be either the same lenght of joint_angles or 1 if it's a\n\ 00207 # keyword such as 'Body' (for all angles)\n\ 00208 string[] joint_names\n\ 00209 float32[] joint_angles\n\ 00210 \n\ 00211 #fraction of max joint velocity [0:1]\n\ 00212 float32 speed\n\ 00213 \n\ 00214 # Absolute angle(=0, default) or relative change\n\ 00215 uint8 relative\n\ 00216 \n\ 00217 ================================================================================\n\ 00218 MSG: std_msgs/Header\n\ 00219 # Standard metadata for higher-level stamped data types.\n\ 00220 # This is generally used to communicate timestamped data \n\ 00221 # in a particular coordinate frame.\n\ 00222 # \n\ 00223 # sequence ID: consecutively increasing ID \n\ 00224 uint32 seq\n\ 00225 #Two-integer timestamp that is expressed as:\n\ 00226 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00227 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00228 # time-handling sugar is provided by the client library\n\ 00229 time stamp\n\ 00230 #Frame this data is associated with\n\ 00231 # 0: no frame\n\ 00232 # 1: global frame\n\ 00233 string frame_id\n\ 00234 \n\ 00235 "; 00236 } 00237 00238 static const char* value(const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {}; 00242 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > : public TrueType {}; 00243 } // namespace message_traits 00244 } // namespace ros 00245 00246 namespace ros 00247 { 00248 namespace serialization 00249 { 00250 00251 template<class ContainerAllocator> struct Serializer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > 00252 { 00253 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00254 { 00255 stream.next(m.header); 00256 stream.next(m.joint_names); 00257 stream.next(m.joint_angles); 00258 stream.next(m.speed); 00259 stream.next(m.relative); 00260 } 00261 00262 ROS_DECLARE_ALLINONE_SERIALIZER; 00263 }; // struct JointAnglesWithSpeed_ 00264 } // namespace serialization 00265 } // namespace ros 00266 00267 namespace ros 00268 { 00269 namespace message_operations 00270 { 00271 00272 template<class ContainerAllocator> 00273 struct Printer< ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> > 00274 { 00275 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::JointAnglesWithSpeed_<ContainerAllocator> & v) 00276 { 00277 s << indent << "header: "; 00278 s << std::endl; 00279 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00280 s << indent << "joint_names[]" << std::endl; 00281 for (size_t i = 0; i < v.joint_names.size(); ++i) 00282 { 00283 s << indent << " joint_names[" << i << "]: "; 00284 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00285 } 00286 s << indent << "joint_angles[]" << std::endl; 00287 for (size_t i = 0; i < v.joint_angles.size(); ++i) 00288 { 00289 s << indent << " joint_angles[" << i << "]: "; 00290 Printer<float>::stream(s, indent + " ", v.joint_angles[i]); 00291 } 00292 s << indent << "speed: "; 00293 Printer<float>::stream(s, indent + " ", v.speed); 00294 s << indent << "relative: "; 00295 Printer<uint8_t>::stream(s, indent + " ", v.relative); 00296 } 00297 }; 00298 00299 00300 } // namespace message_operations 00301 } // namespace ros 00302 00303 #endif // NAO_MSGS_MESSAGE_JOINTANGLESWITHSPEED_H 00304