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