$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/JointAngleTrajectory.msg */ 00002 #ifndef NAO_MSGS_MESSAGE_JOINTANGLETRAJECTORY_H 00003 #define NAO_MSGS_MESSAGE_JOINTANGLETRAJECTORY_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 JointAngleTrajectory_ { 00023 typedef JointAngleTrajectory_<ContainerAllocator> Type; 00024 00025 JointAngleTrajectory_() 00026 : header() 00027 , joint_names() 00028 , joint_angles() 00029 , times() 00030 , relative(0) 00031 { 00032 } 00033 00034 JointAngleTrajectory_(const ContainerAllocator& _alloc) 00035 : header(_alloc) 00036 , joint_names(_alloc) 00037 , joint_angles(_alloc) 00038 , times(_alloc) 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 std::vector<float, typename ContainerAllocator::template rebind<float>::other > _times_type; 00053 std::vector<float, typename ContainerAllocator::template rebind<float>::other > times; 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 ROS_DEPRECATED uint32_t get_times_size() const { return (uint32_t)times.size(); } 00068 ROS_DEPRECATED void set_times_size(uint32_t size) { times.resize((size_t)size); } 00069 ROS_DEPRECATED void get_times_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->times; } 00070 ROS_DEPRECATED void set_times_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->times = vec; } 00071 private: 00072 static const char* __s_getDataType_() { return "nao_msgs/JointAngleTrajectory"; } 00073 public: 00074 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00075 00076 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00077 00078 private: 00079 static const char* __s_getMD5Sum_() { return "5ec9aa90e61498421ea53db10da7f8dd"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00082 00083 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00084 00085 private: 00086 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00087 \n\ 00088 # A list of joint names, corresponding to their names in the Nao docs.\n\ 00089 # This must be either the same lenght of joint_angles or 1 if it's a\n\ 00090 # keyword such as 'Body' (for all angles)\n\ 00091 string[] joint_names\n\ 00092 float32[] joint_angles\n\ 00093 float32[] times\n\ 00094 \n\ 00095 # Absolute angle(=0, default) or relative change\n\ 00096 uint8 relative\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: std_msgs/Header\n\ 00100 # Standard metadata for higher-level stamped data types.\n\ 00101 # This is generally used to communicate timestamped data \n\ 00102 # in a particular coordinate frame.\n\ 00103 # \n\ 00104 # sequence ID: consecutively increasing ID \n\ 00105 uint32 seq\n\ 00106 #Two-integer timestamp that is expressed as:\n\ 00107 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00108 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00109 # time-handling sugar is provided by the client library\n\ 00110 time stamp\n\ 00111 #Frame this data is associated with\n\ 00112 # 0: no frame\n\ 00113 # 1: global frame\n\ 00114 string frame_id\n\ 00115 \n\ 00116 "; } 00117 public: 00118 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00119 00120 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00121 00122 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00123 { 00124 ros::serialization::OStream stream(write_ptr, 1000000000); 00125 ros::serialization::serialize(stream, header); 00126 ros::serialization::serialize(stream, joint_names); 00127 ros::serialization::serialize(stream, joint_angles); 00128 ros::serialization::serialize(stream, times); 00129 ros::serialization::serialize(stream, relative); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00134 { 00135 ros::serialization::IStream stream(read_ptr, 1000000000); 00136 ros::serialization::deserialize(stream, header); 00137 ros::serialization::deserialize(stream, joint_names); 00138 ros::serialization::deserialize(stream, joint_angles); 00139 ros::serialization::deserialize(stream, times); 00140 ros::serialization::deserialize(stream, relative); 00141 return stream.getData(); 00142 } 00143 00144 ROS_DEPRECATED virtual uint32_t serializationLength() const 00145 { 00146 uint32_t size = 0; 00147 size += ros::serialization::serializationLength(header); 00148 size += ros::serialization::serializationLength(joint_names); 00149 size += ros::serialization::serializationLength(joint_angles); 00150 size += ros::serialization::serializationLength(times); 00151 size += ros::serialization::serializationLength(relative); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct JointAngleTrajectory 00159 typedef ::nao_msgs::JointAngleTrajectory_<std::allocator<void> > JointAngleTrajectory; 00160 00161 typedef boost::shared_ptr< ::nao_msgs::JointAngleTrajectory> JointAngleTrajectoryPtr; 00162 typedef boost::shared_ptr< ::nao_msgs::JointAngleTrajectory const> JointAngleTrajectoryConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace nao_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "5ec9aa90e61498421ea53db10da7f8dd"; 00184 } 00185 00186 static const char* value(const ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0x5ec9aa90e6149842ULL; 00188 static const uint64_t static_value2 = 0x1ea53db10da7f8ddULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "nao_msgs/JointAngleTrajectory"; 00196 } 00197 00198 static const char* value(const ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "Header header\n\ 00206 \n\ 00207 # A list of joint names, corresponding to their names in the Nao docs.\n\ 00208 # This must be either the same lenght of joint_angles or 1 if it's a\n\ 00209 # keyword such as 'Body' (for all angles)\n\ 00210 string[] joint_names\n\ 00211 float32[] joint_angles\n\ 00212 float32[] times\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::JointAngleTrajectory_<ContainerAllocator> &) { return value(); } 00239 }; 00240 00241 template<class ContainerAllocator> struct HasHeader< ::nao_msgs::JointAngleTrajectory_<ContainerAllocator> > : public TrueType {}; 00242 template<class ContainerAllocator> struct HasHeader< const ::nao_msgs::JointAngleTrajectory_<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::JointAngleTrajectory_<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.times); 00259 stream.next(m.relative); 00260 } 00261 00262 ROS_DECLARE_ALLINONE_SERIALIZER; 00263 }; // struct JointAngleTrajectory_ 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::JointAngleTrajectory_<ContainerAllocator> > 00274 { 00275 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nao_msgs::JointAngleTrajectory_<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 << "times[]" << std::endl; 00293 for (size_t i = 0; i < v.times.size(); ++i) 00294 { 00295 s << indent << " times[" << i << "]: "; 00296 Printer<float>::stream(s, indent + " ", v.times[i]); 00297 } 00298 s << indent << "relative: "; 00299 Printer<uint8_t>::stream(s, indent + " ", v.relative); 00300 } 00301 }; 00302 00303 00304 } // namespace message_operations 00305 } // namespace ros 00306 00307 #endif // NAO_MSGS_MESSAGE_JOINTANGLETRAJECTORY_H 00308