$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-arm_navigation/doc_stacks/2013-03-01_14-05-03.553953/arm_navigation/kinematics_msgs/msg/KinematicSolverInfo.msg */ 00002 #ifndef KINEMATICS_MSGS_MESSAGE_KINEMATICSOLVERINFO_H 00003 #define KINEMATICS_MSGS_MESSAGE_KINEMATICSOLVERINFO_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 "arm_navigation_msgs/JointLimits.h" 00018 00019 namespace kinematics_msgs 00020 { 00021 template <class ContainerAllocator> 00022 struct KinematicSolverInfo_ { 00023 typedef KinematicSolverInfo_<ContainerAllocator> Type; 00024 00025 KinematicSolverInfo_() 00026 : joint_names() 00027 , limits() 00028 , link_names() 00029 { 00030 } 00031 00032 KinematicSolverInfo_(const ContainerAllocator& _alloc) 00033 : joint_names(_alloc) 00034 , limits(_alloc) 00035 , link_names(_alloc) 00036 { 00037 } 00038 00039 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; 00040 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; 00041 00042 typedef std::vector< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::other > _limits_type; 00043 std::vector< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::other > limits; 00044 00045 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 > _link_names_type; 00046 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 > link_names; 00047 00048 00049 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00050 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00051 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; } 00052 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; } 00053 ROS_DEPRECATED uint32_t get_limits_size() const { return (uint32_t)limits.size(); } 00054 ROS_DEPRECATED void set_limits_size(uint32_t size) { limits.resize((size_t)size); } 00055 ROS_DEPRECATED void get_limits_vec(std::vector< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::other > & vec) const { vec = this->limits; } 00056 ROS_DEPRECATED void set_limits_vec(const std::vector< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::other > & vec) { this->limits = vec; } 00057 ROS_DEPRECATED uint32_t get_link_names_size() const { return (uint32_t)link_names.size(); } 00058 ROS_DEPRECATED void set_link_names_size(uint32_t size) { link_names.resize((size_t)size); } 00059 ROS_DEPRECATED void get_link_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->link_names; } 00060 ROS_DEPRECATED void set_link_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->link_names = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "kinematics_msgs/KinematicSolverInfo"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "cc048557c0f9795c392dd80f8bb00489"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "# A list of joints in the kinematic tree\n\ 00077 string[] joint_names\n\ 00078 # A list of joint limits corresponding to the joint names\n\ 00079 arm_navigation_msgs/JointLimits[] limits\n\ 00080 # A list of links that the kinematics node provides solutions for\n\ 00081 string[] link_names\n\ 00082 \n\ 00083 ================================================================================\n\ 00084 MSG: arm_navigation_msgs/JointLimits\n\ 00085 # This message contains information about limits of a particular joint (or control dimension)\n\ 00086 string joint_name\n\ 00087 \n\ 00088 # true if the joint has position limits\n\ 00089 bool has_position_limits\n\ 00090 \n\ 00091 # min and max position limits\n\ 00092 float64 min_position\n\ 00093 float64 max_position\n\ 00094 \n\ 00095 # true if joint has velocity limits\n\ 00096 bool has_velocity_limits\n\ 00097 \n\ 00098 # max velocity limit\n\ 00099 float64 max_velocity\n\ 00100 # min_velocity is assumed to be -max_velocity\n\ 00101 \n\ 00102 # true if joint has acceleration limits\n\ 00103 bool has_acceleration_limits\n\ 00104 # max acceleration limit\n\ 00105 float64 max_acceleration\n\ 00106 # min_acceleration is assumed to be -max_acceleration\n\ 00107 \n\ 00108 "; } 00109 public: 00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00111 00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00113 00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00115 { 00116 ros::serialization::OStream stream(write_ptr, 1000000000); 00117 ros::serialization::serialize(stream, joint_names); 00118 ros::serialization::serialize(stream, limits); 00119 ros::serialization::serialize(stream, link_names); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, joint_names); 00127 ros::serialization::deserialize(stream, limits); 00128 ros::serialization::deserialize(stream, link_names); 00129 return stream.getData(); 00130 } 00131 00132 ROS_DEPRECATED virtual uint32_t serializationLength() const 00133 { 00134 uint32_t size = 0; 00135 size += ros::serialization::serializationLength(joint_names); 00136 size += ros::serialization::serializationLength(limits); 00137 size += ros::serialization::serializationLength(link_names); 00138 return size; 00139 } 00140 00141 typedef boost::shared_ptr< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > Ptr; 00142 typedef boost::shared_ptr< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> const> ConstPtr; 00143 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00144 }; // struct KinematicSolverInfo 00145 typedef ::kinematics_msgs::KinematicSolverInfo_<std::allocator<void> > KinematicSolverInfo; 00146 00147 typedef boost::shared_ptr< ::kinematics_msgs::KinematicSolverInfo> KinematicSolverInfoPtr; 00148 typedef boost::shared_ptr< ::kinematics_msgs::KinematicSolverInfo const> KinematicSolverInfoConstPtr; 00149 00150 00151 template<typename ContainerAllocator> 00152 std::ostream& operator<<(std::ostream& s, const ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> & v) 00153 { 00154 ros::message_operations::Printer< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> >::stream(s, "", v); 00155 return s;} 00156 00157 } // namespace kinematics_msgs 00158 00159 namespace ros 00160 { 00161 namespace message_traits 00162 { 00163 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > : public TrueType {}; 00164 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> const> : public TrueType {}; 00165 template<class ContainerAllocator> 00166 struct MD5Sum< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > { 00167 static const char* value() 00168 { 00169 return "cc048557c0f9795c392dd80f8bb00489"; 00170 } 00171 00172 static const char* value(const ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> &) { return value(); } 00173 static const uint64_t static_value1 = 0xcc048557c0f9795cULL; 00174 static const uint64_t static_value2 = 0x392dd80f8bb00489ULL; 00175 }; 00176 00177 template<class ContainerAllocator> 00178 struct DataType< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > { 00179 static const char* value() 00180 { 00181 return "kinematics_msgs/KinematicSolverInfo"; 00182 } 00183 00184 static const char* value(const ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> &) { return value(); } 00185 }; 00186 00187 template<class ContainerAllocator> 00188 struct Definition< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > { 00189 static const char* value() 00190 { 00191 return "# A list of joints in the kinematic tree\n\ 00192 string[] joint_names\n\ 00193 # A list of joint limits corresponding to the joint names\n\ 00194 arm_navigation_msgs/JointLimits[] limits\n\ 00195 # A list of links that the kinematics node provides solutions for\n\ 00196 string[] link_names\n\ 00197 \n\ 00198 ================================================================================\n\ 00199 MSG: arm_navigation_msgs/JointLimits\n\ 00200 # This message contains information about limits of a particular joint (or control dimension)\n\ 00201 string joint_name\n\ 00202 \n\ 00203 # true if the joint has position limits\n\ 00204 bool has_position_limits\n\ 00205 \n\ 00206 # min and max position limits\n\ 00207 float64 min_position\n\ 00208 float64 max_position\n\ 00209 \n\ 00210 # true if joint has velocity limits\n\ 00211 bool has_velocity_limits\n\ 00212 \n\ 00213 # max velocity limit\n\ 00214 float64 max_velocity\n\ 00215 # min_velocity is assumed to be -max_velocity\n\ 00216 \n\ 00217 # true if joint has acceleration limits\n\ 00218 bool has_acceleration_limits\n\ 00219 # max acceleration limit\n\ 00220 float64 max_acceleration\n\ 00221 # min_acceleration is assumed to be -max_acceleration\n\ 00222 \n\ 00223 "; 00224 } 00225 00226 static const char* value(const ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> &) { return value(); } 00227 }; 00228 00229 } // namespace message_traits 00230 } // namespace ros 00231 00232 namespace ros 00233 { 00234 namespace serialization 00235 { 00236 00237 template<class ContainerAllocator> struct Serializer< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > 00238 { 00239 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00240 { 00241 stream.next(m.joint_names); 00242 stream.next(m.limits); 00243 stream.next(m.link_names); 00244 } 00245 00246 ROS_DECLARE_ALLINONE_SERIALIZER; 00247 }; // struct KinematicSolverInfo_ 00248 } // namespace serialization 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace message_operations 00254 { 00255 00256 template<class ContainerAllocator> 00257 struct Printer< ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> > 00258 { 00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::kinematics_msgs::KinematicSolverInfo_<ContainerAllocator> & v) 00260 { 00261 s << indent << "joint_names[]" << std::endl; 00262 for (size_t i = 0; i < v.joint_names.size(); ++i) 00263 { 00264 s << indent << " joint_names[" << i << "]: "; 00265 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00266 } 00267 s << indent << "limits[]" << std::endl; 00268 for (size_t i = 0; i < v.limits.size(); ++i) 00269 { 00270 s << indent << " limits[" << i << "]: "; 00271 s << std::endl; 00272 s << indent; 00273 Printer< ::arm_navigation_msgs::JointLimits_<ContainerAllocator> >::stream(s, indent + " ", v.limits[i]); 00274 } 00275 s << indent << "link_names[]" << std::endl; 00276 for (size_t i = 0; i < v.link_names.size(); ++i) 00277 { 00278 s << indent << " link_names[" << i << "]: "; 00279 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_names[i]); 00280 } 00281 } 00282 }; 00283 00284 00285 } // namespace message_operations 00286 } // namespace ros 00287 00288 #endif // KINEMATICS_MSGS_MESSAGE_KINEMATICSOLVERINFO_H 00289