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