00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_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 "std_msgs/Header.h"
00014 #include "geometry_msgs/Quaternion.h"
00015
00016 namespace motion_planning_msgs
00017 {
00018 template <class ContainerAllocator>
00019 struct OrientationConstraint_ : public ros::Message
00020 {
00021 typedef OrientationConstraint_<ContainerAllocator> Type;
00022
00023 OrientationConstraint_()
00024 : header()
00025 , link_name()
00026 , type(0)
00027 , orientation()
00028 , absolute_roll_tolerance(0.0)
00029 , absolute_pitch_tolerance(0.0)
00030 , absolute_yaw_tolerance(0.0)
00031 , weight(0.0)
00032 {
00033 }
00034
00035 OrientationConstraint_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , link_name(_alloc)
00038 , type(0)
00039 , orientation(_alloc)
00040 , absolute_roll_tolerance(0.0)
00041 , absolute_pitch_tolerance(0.0)
00042 , absolute_yaw_tolerance(0.0)
00043 , weight(0.0)
00044 {
00045 }
00046
00047 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00048 ::std_msgs::Header_<ContainerAllocator> header;
00049
00050 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _link_name_type;
00051 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > link_name;
00052
00053 typedef int32_t _type_type;
00054 int32_t type;
00055
00056 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation_type;
00057 ::geometry_msgs::Quaternion_<ContainerAllocator> orientation;
00058
00059 typedef double _absolute_roll_tolerance_type;
00060 double absolute_roll_tolerance;
00061
00062 typedef double _absolute_pitch_tolerance_type;
00063 double absolute_pitch_tolerance;
00064
00065 typedef double _absolute_yaw_tolerance_type;
00066 double absolute_yaw_tolerance;
00067
00068 typedef double _weight_type;
00069 double weight;
00070
00071 enum { LINK_FRAME = 0 };
00072 enum { HEADER_FRAME = 1 };
00073
00074 private:
00075 static const char* __s_getDataType_() { return "motion_planning_msgs/OrientationConstraint"; }
00076 public:
00077 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00078
00079 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00080
00081 private:
00082 static const char* __s_getMD5Sum_() { return "27d99749ba49d4a822298bbd1e0988ba"; }
00083 public:
00084 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00085
00086 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00087
00088 private:
00089 static const char* __s_getMessageDefinition_() { return "# This message contains the definition of an orientation constraint.\n\
00090 Header header\n\
00091 \n\
00092 # The robot link this constraint refers to\n\
00093 string link_name\n\
00094 \n\
00095 # The type of the constraint\n\
00096 int32 type\n\
00097 int32 LINK_FRAME=0\n\
00098 int32 HEADER_FRAME=1\n\
00099 \n\
00100 # The desired orientation of the robot link specified as a quaternion\n\
00101 geometry_msgs/Quaternion orientation\n\
00102 \n\
00103 # optional RPY error tolerances specified if \n\
00104 float64 absolute_roll_tolerance\n\
00105 float64 absolute_pitch_tolerance\n\
00106 float64 absolute_yaw_tolerance\n\
00107 \n\
00108 # Constraint weighting factor - a weight for this constraint\n\
00109 float64 weight\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: std_msgs/Header\n\
00113 # Standard metadata for higher-level stamped data types.\n\
00114 # This is generally used to communicate timestamped data \n\
00115 # in a particular coordinate frame.\n\
00116 # \n\
00117 # sequence ID: consecutively increasing ID \n\
00118 uint32 seq\n\
00119 #Two-integer timestamp that is expressed as:\n\
00120 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00121 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00122 # time-handling sugar is provided by the client library\n\
00123 time stamp\n\
00124 #Frame this data is associated with\n\
00125 # 0: no frame\n\
00126 # 1: global frame\n\
00127 string frame_id\n\
00128 \n\
00129 ================================================================================\n\
00130 MSG: geometry_msgs/Quaternion\n\
00131 # This represents an orientation in free space in quaternion form.\n\
00132 \n\
00133 float64 x\n\
00134 float64 y\n\
00135 float64 z\n\
00136 float64 w\n\
00137 \n\
00138 "; }
00139 public:
00140 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00141
00142 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00143
00144 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00145 {
00146 ros::serialization::OStream stream(write_ptr, 1000000000);
00147 ros::serialization::serialize(stream, header);
00148 ros::serialization::serialize(stream, link_name);
00149 ros::serialization::serialize(stream, type);
00150 ros::serialization::serialize(stream, orientation);
00151 ros::serialization::serialize(stream, absolute_roll_tolerance);
00152 ros::serialization::serialize(stream, absolute_pitch_tolerance);
00153 ros::serialization::serialize(stream, absolute_yaw_tolerance);
00154 ros::serialization::serialize(stream, weight);
00155 return stream.getData();
00156 }
00157
00158 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00159 {
00160 ros::serialization::IStream stream(read_ptr, 1000000000);
00161 ros::serialization::deserialize(stream, header);
00162 ros::serialization::deserialize(stream, link_name);
00163 ros::serialization::deserialize(stream, type);
00164 ros::serialization::deserialize(stream, orientation);
00165 ros::serialization::deserialize(stream, absolute_roll_tolerance);
00166 ros::serialization::deserialize(stream, absolute_pitch_tolerance);
00167 ros::serialization::deserialize(stream, absolute_yaw_tolerance);
00168 ros::serialization::deserialize(stream, weight);
00169 return stream.getData();
00170 }
00171
00172 ROS_DEPRECATED virtual uint32_t serializationLength() const
00173 {
00174 uint32_t size = 0;
00175 size += ros::serialization::serializationLength(header);
00176 size += ros::serialization::serializationLength(link_name);
00177 size += ros::serialization::serializationLength(type);
00178 size += ros::serialization::serializationLength(orientation);
00179 size += ros::serialization::serializationLength(absolute_roll_tolerance);
00180 size += ros::serialization::serializationLength(absolute_pitch_tolerance);
00181 size += ros::serialization::serializationLength(absolute_yaw_tolerance);
00182 size += ros::serialization::serializationLength(weight);
00183 return size;
00184 }
00185
00186 typedef boost::shared_ptr< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > Ptr;
00187 typedef boost::shared_ptr< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> const> ConstPtr;
00188 };
00189 typedef ::motion_planning_msgs::OrientationConstraint_<std::allocator<void> > OrientationConstraint;
00190
00191 typedef boost::shared_ptr< ::motion_planning_msgs::OrientationConstraint> OrientationConstraintPtr;
00192 typedef boost::shared_ptr< ::motion_planning_msgs::OrientationConstraint const> OrientationConstraintConstPtr;
00193
00194
00195 template<typename ContainerAllocator>
00196 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> & v)
00197 {
00198 ros::message_operations::Printer< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> >::stream(s, "", v);
00199 return s;}
00200
00201 }
00202
00203 namespace ros
00204 {
00205 namespace message_traits
00206 {
00207 template<class ContainerAllocator>
00208 struct MD5Sum< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > {
00209 static const char* value()
00210 {
00211 return "27d99749ba49d4a822298bbd1e0988ba";
00212 }
00213
00214 static const char* value(const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00215 static const uint64_t static_value1 = 0x27d99749ba49d4a8ULL;
00216 static const uint64_t static_value2 = 0x22298bbd1e0988baULL;
00217 };
00218
00219 template<class ContainerAllocator>
00220 struct DataType< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > {
00221 static const char* value()
00222 {
00223 return "motion_planning_msgs/OrientationConstraint";
00224 }
00225
00226 static const char* value(const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00227 };
00228
00229 template<class ContainerAllocator>
00230 struct Definition< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > {
00231 static const char* value()
00232 {
00233 return "# This message contains the definition of an orientation constraint.\n\
00234 Header header\n\
00235 \n\
00236 # The robot link this constraint refers to\n\
00237 string link_name\n\
00238 \n\
00239 # The type of the constraint\n\
00240 int32 type\n\
00241 int32 LINK_FRAME=0\n\
00242 int32 HEADER_FRAME=1\n\
00243 \n\
00244 # The desired orientation of the robot link specified as a quaternion\n\
00245 geometry_msgs/Quaternion orientation\n\
00246 \n\
00247 # optional RPY error tolerances specified if \n\
00248 float64 absolute_roll_tolerance\n\
00249 float64 absolute_pitch_tolerance\n\
00250 float64 absolute_yaw_tolerance\n\
00251 \n\
00252 # Constraint weighting factor - a weight for this constraint\n\
00253 float64 weight\n\
00254 \n\
00255 ================================================================================\n\
00256 MSG: std_msgs/Header\n\
00257 # Standard metadata for higher-level stamped data types.\n\
00258 # This is generally used to communicate timestamped data \n\
00259 # in a particular coordinate frame.\n\
00260 # \n\
00261 # sequence ID: consecutively increasing ID \n\
00262 uint32 seq\n\
00263 #Two-integer timestamp that is expressed as:\n\
00264 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00265 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00266 # time-handling sugar is provided by the client library\n\
00267 time stamp\n\
00268 #Frame this data is associated with\n\
00269 # 0: no frame\n\
00270 # 1: global frame\n\
00271 string frame_id\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: geometry_msgs/Quaternion\n\
00275 # This represents an orientation in free space in quaternion form.\n\
00276 \n\
00277 float64 x\n\
00278 float64 y\n\
00279 float64 z\n\
00280 float64 w\n\
00281 \n\
00282 ";
00283 }
00284
00285 static const char* value(const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> &) { return value(); }
00286 };
00287
00288 template<class ContainerAllocator> struct HasHeader< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > : public TrueType {};
00289 template<class ContainerAllocator> struct HasHeader< const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> > : public TrueType {};
00290 }
00291 }
00292
00293 namespace ros
00294 {
00295 namespace serialization
00296 {
00297
00298 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> >
00299 {
00300 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00301 {
00302 stream.next(m.header);
00303 stream.next(m.link_name);
00304 stream.next(m.type);
00305 stream.next(m.orientation);
00306 stream.next(m.absolute_roll_tolerance);
00307 stream.next(m.absolute_pitch_tolerance);
00308 stream.next(m.absolute_yaw_tolerance);
00309 stream.next(m.weight);
00310 }
00311
00312 ROS_DECLARE_ALLINONE_SERIALIZER;
00313 };
00314 }
00315 }
00316
00317 namespace ros
00318 {
00319 namespace message_operations
00320 {
00321
00322 template<class ContainerAllocator>
00323 struct Printer< ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> >
00324 {
00325 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::OrientationConstraint_<ContainerAllocator> & v)
00326 {
00327 s << indent << "header: ";
00328 s << std::endl;
00329 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00330 s << indent << "link_name: ";
00331 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name);
00332 s << indent << "type: ";
00333 Printer<int32_t>::stream(s, indent + " ", v.type);
00334 s << indent << "orientation: ";
00335 s << std::endl;
00336 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.orientation);
00337 s << indent << "absolute_roll_tolerance: ";
00338 Printer<double>::stream(s, indent + " ", v.absolute_roll_tolerance);
00339 s << indent << "absolute_pitch_tolerance: ";
00340 Printer<double>::stream(s, indent + " ", v.absolute_pitch_tolerance);
00341 s << indent << "absolute_yaw_tolerance: ";
00342 Printer<double>::stream(s, indent + " ", v.absolute_yaw_tolerance);
00343 s << indent << "weight: ";
00344 Printer<double>::stream(s, indent + " ", v.weight);
00345 }
00346 };
00347
00348
00349 }
00350 }
00351
00352 #endif // MOTION_PLANNING_MSGS_MESSAGE_ORIENTATIONCONSTRAINT_H
00353