00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_POSITIONCONSTRAINT_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_POSITIONCONSTRAINT_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/Point.h"
00015 #include "geometry_msgs/Point.h"
00016 #include "geometric_shapes_msgs/Shape.h"
00017 #include "geometry_msgs/Quaternion.h"
00018
00019 namespace motion_planning_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct PositionConstraint_ : public ros::Message
00023 {
00024 typedef PositionConstraint_<ContainerAllocator> Type;
00025
00026 PositionConstraint_()
00027 : header()
00028 , link_name()
00029 , target_point_offset()
00030 , position()
00031 , constraint_region_shape()
00032 , constraint_region_orientation()
00033 , weight(0.0)
00034 {
00035 }
00036
00037 PositionConstraint_(const ContainerAllocator& _alloc)
00038 : header(_alloc)
00039 , link_name(_alloc)
00040 , target_point_offset(_alloc)
00041 , position(_alloc)
00042 , constraint_region_shape(_alloc)
00043 , constraint_region_orientation(_alloc)
00044 , weight(0.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::Point_<ContainerAllocator> _target_point_offset_type;
00055 ::geometry_msgs::Point_<ContainerAllocator> target_point_offset;
00056
00057 typedef ::geometry_msgs::Point_<ContainerAllocator> _position_type;
00058 ::geometry_msgs::Point_<ContainerAllocator> position;
00059
00060 typedef ::geometric_shapes_msgs::Shape_<ContainerAllocator> _constraint_region_shape_type;
00061 ::geometric_shapes_msgs::Shape_<ContainerAllocator> constraint_region_shape;
00062
00063 typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _constraint_region_orientation_type;
00064 ::geometry_msgs::Quaternion_<ContainerAllocator> constraint_region_orientation;
00065
00066 typedef double _weight_type;
00067 double weight;
00068
00069
00070 private:
00071 static const char* __s_getDataType_() { return "motion_planning_msgs/PositionConstraint"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00074
00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00076
00077 private:
00078 static const char* __s_getMD5Sum_() { return "7e3d9697e64b346b9d3cb7311bb88ccb"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00081
00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00083
00084 private:
00085 static const char* __s_getMessageDefinition_() { return "# This message contains the definition of a position constraint.\n\
00086 Header header\n\
00087 \n\
00088 # The robot link this constraint refers to\n\
00089 string link_name\n\
00090 \n\
00091 # The offset (in the link frame) for the target point on the link we are planning for\n\
00092 geometry_msgs/Point target_point_offset\n\
00093 \n\
00094 # The nominal/target position for the point we are planning for\n\
00095 geometry_msgs/Point position\n\
00096 \n\
00097 # The shape of the bounded region that constrains the position of the end-effector\n\
00098 # This region is always centered at the position defined above\n\
00099 geometric_shapes_msgs/Shape constraint_region_shape\n\
00100 \n\
00101 # The orientation of the bounded region that constrains the position of the end-effector. \n\
00102 # This allows the specification of non-axis aligned constraints\n\
00103 geometry_msgs/Quaternion constraint_region_orientation\n\
00104 \n\
00105 # Constraint weighting factor - a weight for this constraint\n\
00106 float64 weight\n\
00107 ================================================================================\n\
00108 MSG: std_msgs/Header\n\
00109 # Standard metadata for higher-level stamped data types.\n\
00110 # This is generally used to communicate timestamped data \n\
00111 # in a particular coordinate frame.\n\
00112 # \n\
00113 # sequence ID: consecutively increasing ID \n\
00114 uint32 seq\n\
00115 #Two-integer timestamp that is expressed as:\n\
00116 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00117 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00118 # time-handling sugar is provided by the client library\n\
00119 time stamp\n\
00120 #Frame this data is associated with\n\
00121 # 0: no frame\n\
00122 # 1: global frame\n\
00123 string frame_id\n\
00124 \n\
00125 ================================================================================\n\
00126 MSG: geometry_msgs/Point\n\
00127 # This contains the position of a point in free space\n\
00128 float64 x\n\
00129 float64 y\n\
00130 float64 z\n\
00131 \n\
00132 ================================================================================\n\
00133 MSG: geometric_shapes_msgs/Shape\n\
00134 byte SPHERE=0\n\
00135 byte BOX=1\n\
00136 byte CYLINDER=2\n\
00137 byte MESH=3\n\
00138 \n\
00139 byte type\n\
00140 \n\
00141 \n\
00142 #### define sphere, box, cylinder ####\n\
00143 # the origin of each shape is considered at the shape's center\n\
00144 \n\
00145 # for sphere\n\
00146 # radius := dimensions[0]\n\
00147 \n\
00148 # for cylinder\n\
00149 # radius := dimensions[0]\n\
00150 # length := dimensions[1]\n\
00151 # the length is along the Z axis\n\
00152 \n\
00153 # for box\n\
00154 # size_x := dimensions[0]\n\
00155 # size_y := dimensions[1]\n\
00156 # size_z := dimensions[2]\n\
00157 float64[] dimensions\n\
00158 \n\
00159 \n\
00160 #### define mesh ####\n\
00161 \n\
00162 # list of triangles; triangle k is defined by tre vertices located\n\
00163 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00164 int32[] triangles\n\
00165 geometry_msgs/Point[] vertices\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: geometry_msgs/Quaternion\n\
00169 # This represents an orientation in free space in quaternion form.\n\
00170 \n\
00171 float64 x\n\
00172 float64 y\n\
00173 float64 z\n\
00174 float64 w\n\
00175 \n\
00176 "; }
00177 public:
00178 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00179
00180 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00181
00182 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00183 {
00184 ros::serialization::OStream stream(write_ptr, 1000000000);
00185 ros::serialization::serialize(stream, header);
00186 ros::serialization::serialize(stream, link_name);
00187 ros::serialization::serialize(stream, target_point_offset);
00188 ros::serialization::serialize(stream, position);
00189 ros::serialization::serialize(stream, constraint_region_shape);
00190 ros::serialization::serialize(stream, constraint_region_orientation);
00191 ros::serialization::serialize(stream, weight);
00192 return stream.getData();
00193 }
00194
00195 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00196 {
00197 ros::serialization::IStream stream(read_ptr, 1000000000);
00198 ros::serialization::deserialize(stream, header);
00199 ros::serialization::deserialize(stream, link_name);
00200 ros::serialization::deserialize(stream, target_point_offset);
00201 ros::serialization::deserialize(stream, position);
00202 ros::serialization::deserialize(stream, constraint_region_shape);
00203 ros::serialization::deserialize(stream, constraint_region_orientation);
00204 ros::serialization::deserialize(stream, weight);
00205 return stream.getData();
00206 }
00207
00208 ROS_DEPRECATED virtual uint32_t serializationLength() const
00209 {
00210 uint32_t size = 0;
00211 size += ros::serialization::serializationLength(header);
00212 size += ros::serialization::serializationLength(link_name);
00213 size += ros::serialization::serializationLength(target_point_offset);
00214 size += ros::serialization::serializationLength(position);
00215 size += ros::serialization::serializationLength(constraint_region_shape);
00216 size += ros::serialization::serializationLength(constraint_region_orientation);
00217 size += ros::serialization::serializationLength(weight);
00218 return size;
00219 }
00220
00221 typedef boost::shared_ptr< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > Ptr;
00222 typedef boost::shared_ptr< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> const> ConstPtr;
00223 };
00224 typedef ::motion_planning_msgs::PositionConstraint_<std::allocator<void> > PositionConstraint;
00225
00226 typedef boost::shared_ptr< ::motion_planning_msgs::PositionConstraint> PositionConstraintPtr;
00227 typedef boost::shared_ptr< ::motion_planning_msgs::PositionConstraint const> PositionConstraintConstPtr;
00228
00229
00230 template<typename ContainerAllocator>
00231 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> & v)
00232 {
00233 ros::message_operations::Printer< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> >::stream(s, "", v);
00234 return s;}
00235
00236 }
00237
00238 namespace ros
00239 {
00240 namespace message_traits
00241 {
00242 template<class ContainerAllocator>
00243 struct MD5Sum< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > {
00244 static const char* value()
00245 {
00246 return "7e3d9697e64b346b9d3cb7311bb88ccb";
00247 }
00248
00249 static const char* value(const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); }
00250 static const uint64_t static_value1 = 0x7e3d9697e64b346bULL;
00251 static const uint64_t static_value2 = 0x9d3cb7311bb88ccbULL;
00252 };
00253
00254 template<class ContainerAllocator>
00255 struct DataType< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > {
00256 static const char* value()
00257 {
00258 return "motion_planning_msgs/PositionConstraint";
00259 }
00260
00261 static const char* value(const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); }
00262 };
00263
00264 template<class ContainerAllocator>
00265 struct Definition< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > {
00266 static const char* value()
00267 {
00268 return "# This message contains the definition of a position constraint.\n\
00269 Header header\n\
00270 \n\
00271 # The robot link this constraint refers to\n\
00272 string link_name\n\
00273 \n\
00274 # The offset (in the link frame) for the target point on the link we are planning for\n\
00275 geometry_msgs/Point target_point_offset\n\
00276 \n\
00277 # The nominal/target position for the point we are planning for\n\
00278 geometry_msgs/Point position\n\
00279 \n\
00280 # The shape of the bounded region that constrains the position of the end-effector\n\
00281 # This region is always centered at the position defined above\n\
00282 geometric_shapes_msgs/Shape constraint_region_shape\n\
00283 \n\
00284 # The orientation of the bounded region that constrains the position of the end-effector. \n\
00285 # This allows the specification of non-axis aligned constraints\n\
00286 geometry_msgs/Quaternion constraint_region_orientation\n\
00287 \n\
00288 # Constraint weighting factor - a weight for this constraint\n\
00289 float64 weight\n\
00290 ================================================================================\n\
00291 MSG: std_msgs/Header\n\
00292 # Standard metadata for higher-level stamped data types.\n\
00293 # This is generally used to communicate timestamped data \n\
00294 # in a particular coordinate frame.\n\
00295 # \n\
00296 # sequence ID: consecutively increasing ID \n\
00297 uint32 seq\n\
00298 #Two-integer timestamp that is expressed as:\n\
00299 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00300 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00301 # time-handling sugar is provided by the client library\n\
00302 time stamp\n\
00303 #Frame this data is associated with\n\
00304 # 0: no frame\n\
00305 # 1: global frame\n\
00306 string frame_id\n\
00307 \n\
00308 ================================================================================\n\
00309 MSG: geometry_msgs/Point\n\
00310 # This contains the position of a point in free space\n\
00311 float64 x\n\
00312 float64 y\n\
00313 float64 z\n\
00314 \n\
00315 ================================================================================\n\
00316 MSG: geometric_shapes_msgs/Shape\n\
00317 byte SPHERE=0\n\
00318 byte BOX=1\n\
00319 byte CYLINDER=2\n\
00320 byte MESH=3\n\
00321 \n\
00322 byte type\n\
00323 \n\
00324 \n\
00325 #### define sphere, box, cylinder ####\n\
00326 # the origin of each shape is considered at the shape's center\n\
00327 \n\
00328 # for sphere\n\
00329 # radius := dimensions[0]\n\
00330 \n\
00331 # for cylinder\n\
00332 # radius := dimensions[0]\n\
00333 # length := dimensions[1]\n\
00334 # the length is along the Z axis\n\
00335 \n\
00336 # for box\n\
00337 # size_x := dimensions[0]\n\
00338 # size_y := dimensions[1]\n\
00339 # size_z := dimensions[2]\n\
00340 float64[] dimensions\n\
00341 \n\
00342 \n\
00343 #### define mesh ####\n\
00344 \n\
00345 # list of triangles; triangle k is defined by tre vertices located\n\
00346 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00347 int32[] triangles\n\
00348 geometry_msgs/Point[] vertices\n\
00349 \n\
00350 ================================================================================\n\
00351 MSG: geometry_msgs/Quaternion\n\
00352 # This represents an orientation in free space in quaternion form.\n\
00353 \n\
00354 float64 x\n\
00355 float64 y\n\
00356 float64 z\n\
00357 float64 w\n\
00358 \n\
00359 ";
00360 }
00361
00362 static const char* value(const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); }
00363 };
00364
00365 template<class ContainerAllocator> struct HasHeader< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > : public TrueType {};
00366 template<class ContainerAllocator> struct HasHeader< const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> > : public TrueType {};
00367 }
00368 }
00369
00370 namespace ros
00371 {
00372 namespace serialization
00373 {
00374
00375 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> >
00376 {
00377 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00378 {
00379 stream.next(m.header);
00380 stream.next(m.link_name);
00381 stream.next(m.target_point_offset);
00382 stream.next(m.position);
00383 stream.next(m.constraint_region_shape);
00384 stream.next(m.constraint_region_orientation);
00385 stream.next(m.weight);
00386 }
00387
00388 ROS_DECLARE_ALLINONE_SERIALIZER;
00389 };
00390 }
00391 }
00392
00393 namespace ros
00394 {
00395 namespace message_operations
00396 {
00397
00398 template<class ContainerAllocator>
00399 struct Printer< ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> >
00400 {
00401 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::PositionConstraint_<ContainerAllocator> & v)
00402 {
00403 s << indent << "header: ";
00404 s << std::endl;
00405 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00406 s << indent << "link_name: ";
00407 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.link_name);
00408 s << indent << "target_point_offset: ";
00409 s << std::endl;
00410 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.target_point_offset);
00411 s << indent << "position: ";
00412 s << std::endl;
00413 Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + " ", v.position);
00414 s << indent << "constraint_region_shape: ";
00415 s << std::endl;
00416 Printer< ::geometric_shapes_msgs::Shape_<ContainerAllocator> >::stream(s, indent + " ", v.constraint_region_shape);
00417 s << indent << "constraint_region_orientation: ";
00418 s << std::endl;
00419 Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + " ", v.constraint_region_orientation);
00420 s << indent << "weight: ";
00421 Printer<double>::stream(s, indent + " ", v.weight);
00422 }
00423 };
00424
00425
00426 }
00427 }
00428
00429 #endif // MOTION_PLANNING_MSGS_MESSAGE_POSITIONCONSTRAINT_H
00430