00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_JOINTCONSTRAINT_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_JOINTCONSTRAINT_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
00014 namespace motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct JointConstraint_ : public ros::Message
00018 {
00019 typedef JointConstraint_<ContainerAllocator> Type;
00020
00021 JointConstraint_()
00022 : joint_name()
00023 , position(0.0)
00024 , tolerance_above(0.0)
00025 , tolerance_below(0.0)
00026 , weight(0.0)
00027 {
00028 }
00029
00030 JointConstraint_(const ContainerAllocator& _alloc)
00031 : joint_name(_alloc)
00032 , position(0.0)
00033 , tolerance_above(0.0)
00034 , tolerance_below(0.0)
00035 , weight(0.0)
00036 {
00037 }
00038
00039 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type;
00040 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name;
00041
00042 typedef double _position_type;
00043 double position;
00044
00045 typedef double _tolerance_above_type;
00046 double tolerance_above;
00047
00048 typedef double _tolerance_below_type;
00049 double tolerance_below;
00050
00051 typedef double _weight_type;
00052 double weight;
00053
00054
00055 private:
00056 static const char* __s_getDataType_() { return "motion_planning_msgs/JointConstraint"; }
00057 public:
00058 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00059
00060 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00061
00062 private:
00063 static const char* __s_getMD5Sum_() { return "c02a15146bec0ce13564807805b008f0"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00066
00067 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00068
00069 private:
00070 static const char* __s_getMessageDefinition_() { return "# Constrain the position of a joint to be within a certain bound\n\
00071 string joint_name\n\
00072 \n\
00073 # the bound to be achieved is [position - tolerance_below, position + tolerance_above]\n\
00074 float64 position\n\
00075 float64 tolerance_above\n\
00076 float64 tolerance_below\n\
00077 \n\
00078 # A weighting factor for this constraint\n\
00079 float64 weight\n\
00080 "; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00083
00084 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00085
00086 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00087 {
00088 ros::serialization::OStream stream(write_ptr, 1000000000);
00089 ros::serialization::serialize(stream, joint_name);
00090 ros::serialization::serialize(stream, position);
00091 ros::serialization::serialize(stream, tolerance_above);
00092 ros::serialization::serialize(stream, tolerance_below);
00093 ros::serialization::serialize(stream, weight);
00094 return stream.getData();
00095 }
00096
00097 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00098 {
00099 ros::serialization::IStream stream(read_ptr, 1000000000);
00100 ros::serialization::deserialize(stream, joint_name);
00101 ros::serialization::deserialize(stream, position);
00102 ros::serialization::deserialize(stream, tolerance_above);
00103 ros::serialization::deserialize(stream, tolerance_below);
00104 ros::serialization::deserialize(stream, weight);
00105 return stream.getData();
00106 }
00107
00108 ROS_DEPRECATED virtual uint32_t serializationLength() const
00109 {
00110 uint32_t size = 0;
00111 size += ros::serialization::serializationLength(joint_name);
00112 size += ros::serialization::serializationLength(position);
00113 size += ros::serialization::serializationLength(tolerance_above);
00114 size += ros::serialization::serializationLength(tolerance_below);
00115 size += ros::serialization::serializationLength(weight);
00116 return size;
00117 }
00118
00119 typedef boost::shared_ptr< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> > Ptr;
00120 typedef boost::shared_ptr< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> const> ConstPtr;
00121 };
00122 typedef ::motion_planning_msgs::JointConstraint_<std::allocator<void> > JointConstraint;
00123
00124 typedef boost::shared_ptr< ::motion_planning_msgs::JointConstraint> JointConstraintPtr;
00125 typedef boost::shared_ptr< ::motion_planning_msgs::JointConstraint const> JointConstraintConstPtr;
00126
00127
00128 template<typename ContainerAllocator>
00129 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::JointConstraint_<ContainerAllocator> & v)
00130 {
00131 ros::message_operations::Printer< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> >::stream(s, "", v);
00132 return s;}
00133
00134 }
00135
00136 namespace ros
00137 {
00138 namespace message_traits
00139 {
00140 template<class ContainerAllocator>
00141 struct MD5Sum< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> > {
00142 static const char* value()
00143 {
00144 return "c02a15146bec0ce13564807805b008f0";
00145 }
00146
00147 static const char* value(const ::motion_planning_msgs::JointConstraint_<ContainerAllocator> &) { return value(); }
00148 static const uint64_t static_value1 = 0xc02a15146bec0ce1ULL;
00149 static const uint64_t static_value2 = 0x3564807805b008f0ULL;
00150 };
00151
00152 template<class ContainerAllocator>
00153 struct DataType< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> > {
00154 static const char* value()
00155 {
00156 return "motion_planning_msgs/JointConstraint";
00157 }
00158
00159 static const char* value(const ::motion_planning_msgs::JointConstraint_<ContainerAllocator> &) { return value(); }
00160 };
00161
00162 template<class ContainerAllocator>
00163 struct Definition< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> > {
00164 static const char* value()
00165 {
00166 return "# Constrain the position of a joint to be within a certain bound\n\
00167 string joint_name\n\
00168 \n\
00169 # the bound to be achieved is [position - tolerance_below, position + tolerance_above]\n\
00170 float64 position\n\
00171 float64 tolerance_above\n\
00172 float64 tolerance_below\n\
00173 \n\
00174 # A weighting factor for this constraint\n\
00175 float64 weight\n\
00176 ";
00177 }
00178
00179 static const char* value(const ::motion_planning_msgs::JointConstraint_<ContainerAllocator> &) { return value(); }
00180 };
00181
00182 }
00183 }
00184
00185 namespace ros
00186 {
00187 namespace serialization
00188 {
00189
00190 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> >
00191 {
00192 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00193 {
00194 stream.next(m.joint_name);
00195 stream.next(m.position);
00196 stream.next(m.tolerance_above);
00197 stream.next(m.tolerance_below);
00198 stream.next(m.weight);
00199 }
00200
00201 ROS_DECLARE_ALLINONE_SERIALIZER;
00202 };
00203 }
00204 }
00205
00206 namespace ros
00207 {
00208 namespace message_operations
00209 {
00210
00211 template<class ContainerAllocator>
00212 struct Printer< ::motion_planning_msgs::JointConstraint_<ContainerAllocator> >
00213 {
00214 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::JointConstraint_<ContainerAllocator> & v)
00215 {
00216 s << indent << "joint_name: ";
00217 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_name);
00218 s << indent << "position: ";
00219 Printer<double>::stream(s, indent + " ", v.position);
00220 s << indent << "tolerance_above: ";
00221 Printer<double>::stream(s, indent + " ", v.tolerance_above);
00222 s << indent << "tolerance_below: ";
00223 Printer<double>::stream(s, indent + " ", v.tolerance_below);
00224 s << indent << "weight: ";
00225 Printer<double>::stream(s, indent + " ", v.weight);
00226 }
00227 };
00228
00229
00230 }
00231 }
00232
00233 #endif // MOTION_PLANNING_MSGS_MESSAGE_JOINTCONSTRAINT_H
00234