PositionConstraint.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-arm_navigation/doc_stacks/2013-12-02_12-23-34.850326/arm_navigation/arm_navigation_msgs/msg/PositionConstraint.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_POSITIONCONSTRAINT_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_POSITIONCONSTRAINT_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012 
00013 #include "ros/macros.h"
00014 
00015 #include "ros/assert.h"
00016 
00017 #include "std_msgs/Header.h"
00018 #include "geometry_msgs/Point.h"
00019 #include "geometry_msgs/Point.h"
00020 #include "arm_navigation_msgs/Shape.h"
00021 #include "geometry_msgs/Quaternion.h"
00022 
00023 namespace arm_navigation_msgs
00024 {
00025 template <class ContainerAllocator>
00026 struct PositionConstraint_ {
00027   typedef PositionConstraint_<ContainerAllocator> Type;
00028 
00029   PositionConstraint_()
00030   : header()
00031   , link_name()
00032   , target_point_offset()
00033   , position()
00034   , constraint_region_shape()
00035   , constraint_region_orientation()
00036   , weight(0.0)
00037   {
00038   }
00039 
00040   PositionConstraint_(const ContainerAllocator& _alloc)
00041   : header(_alloc)
00042   , link_name(_alloc)
00043   , target_point_offset(_alloc)
00044   , position(_alloc)
00045   , constraint_region_shape(_alloc)
00046   , constraint_region_orientation(_alloc)
00047   , weight(0.0)
00048   {
00049   }
00050 
00051   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00052    ::std_msgs::Header_<ContainerAllocator>  header;
00053 
00054   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _link_name_type;
00055   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  link_name;
00056 
00057   typedef  ::geometry_msgs::Point_<ContainerAllocator>  _target_point_offset_type;
00058    ::geometry_msgs::Point_<ContainerAllocator>  target_point_offset;
00059 
00060   typedef  ::geometry_msgs::Point_<ContainerAllocator>  _position_type;
00061    ::geometry_msgs::Point_<ContainerAllocator>  position;
00062 
00063   typedef  ::arm_navigation_msgs::Shape_<ContainerAllocator>  _constraint_region_shape_type;
00064    ::arm_navigation_msgs::Shape_<ContainerAllocator>  constraint_region_shape;
00065 
00066   typedef  ::geometry_msgs::Quaternion_<ContainerAllocator>  _constraint_region_orientation_type;
00067    ::geometry_msgs::Quaternion_<ContainerAllocator>  constraint_region_orientation;
00068 
00069   typedef double _weight_type;
00070   double weight;
00071 
00072 
00073   typedef boost::shared_ptr< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct PositionConstraint
00077 typedef  ::arm_navigation_msgs::PositionConstraint_<std::allocator<void> > PositionConstraint;
00078 
00079 typedef boost::shared_ptr< ::arm_navigation_msgs::PositionConstraint> PositionConstraintPtr;
00080 typedef boost::shared_ptr< ::arm_navigation_msgs::PositionConstraint const> PositionConstraintConstPtr;
00081 
00082 
00083 template<typename ContainerAllocator>
00084 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> & v)
00085 {
00086   ros::message_operations::Printer< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> >::stream(s, "", v);
00087   return s;}
00088 
00089 } // namespace arm_navigation_msgs
00090 
00091 namespace ros
00092 {
00093 namespace message_traits
00094 {
00095 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > : public TrueType {};
00096 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator>  const> : public TrueType {};
00097 template<class ContainerAllocator>
00098 struct MD5Sum< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "7e3d9697e64b346b9d3cb7311bb88ccb";
00102   }
00103 
00104   static const char* value(const  ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); } 
00105   static const uint64_t static_value1 = 0x7e3d9697e64b346bULL;
00106   static const uint64_t static_value2 = 0x9d3cb7311bb88ccbULL;
00107 };
00108 
00109 template<class ContainerAllocator>
00110 struct DataType< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > {
00111   static const char* value() 
00112   {
00113     return "arm_navigation_msgs/PositionConstraint";
00114   }
00115 
00116   static const char* value(const  ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); } 
00117 };
00118 
00119 template<class ContainerAllocator>
00120 struct Definition< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > {
00121   static const char* value() 
00122   {
00123     return "# This message contains the definition of a position constraint.\n\
00124 Header header\n\
00125 \n\
00126 # The robot link this constraint refers to\n\
00127 string link_name\n\
00128 \n\
00129 # The offset (in the link frame) for the target point on the link we are planning for\n\
00130 geometry_msgs/Point target_point_offset\n\
00131 \n\
00132 # The nominal/target position for the point we are planning for\n\
00133 geometry_msgs/Point position\n\
00134 \n\
00135 # The shape of the bounded region that constrains the position of the end-effector\n\
00136 # This region is always centered at the position defined above\n\
00137 arm_navigation_msgs/Shape constraint_region_shape\n\
00138 \n\
00139 # The orientation of the bounded region that constrains the position of the end-effector. \n\
00140 # This allows the specification of non-axis aligned constraints\n\
00141 geometry_msgs/Quaternion constraint_region_orientation\n\
00142 \n\
00143 # Constraint weighting factor - a weight for this constraint\n\
00144 float64 weight\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: std_msgs/Header\n\
00148 # Standard metadata for higher-level stamped data types.\n\
00149 # This is generally used to communicate timestamped data \n\
00150 # in a particular coordinate frame.\n\
00151 # \n\
00152 # sequence ID: consecutively increasing ID \n\
00153 uint32 seq\n\
00154 #Two-integer timestamp that is expressed as:\n\
00155 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00156 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00157 # time-handling sugar is provided by the client library\n\
00158 time stamp\n\
00159 #Frame this data is associated with\n\
00160 # 0: no frame\n\
00161 # 1: global frame\n\
00162 string frame_id\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: geometry_msgs/Point\n\
00166 # This contains the position of a point in free space\n\
00167 float64 x\n\
00168 float64 y\n\
00169 float64 z\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: arm_navigation_msgs/Shape\n\
00173 byte SPHERE=0\n\
00174 byte BOX=1\n\
00175 byte CYLINDER=2\n\
00176 byte MESH=3\n\
00177 \n\
00178 byte type\n\
00179 \n\
00180 \n\
00181 #### define sphere, box, cylinder ####\n\
00182 # the origin of each shape is considered at the shape's center\n\
00183 \n\
00184 # for sphere\n\
00185 # radius := dimensions[0]\n\
00186 \n\
00187 # for cylinder\n\
00188 # radius := dimensions[0]\n\
00189 # length := dimensions[1]\n\
00190 # the length is along the Z axis\n\
00191 \n\
00192 # for box\n\
00193 # size_x := dimensions[0]\n\
00194 # size_y := dimensions[1]\n\
00195 # size_z := dimensions[2]\n\
00196 float64[] dimensions\n\
00197 \n\
00198 \n\
00199 #### define mesh ####\n\
00200 \n\
00201 # list of triangles; triangle k is defined by tre vertices located\n\
00202 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00203 int32[] triangles\n\
00204 geometry_msgs/Point[] vertices\n\
00205 \n\
00206 ================================================================================\n\
00207 MSG: geometry_msgs/Quaternion\n\
00208 # This represents an orientation in free space in quaternion form.\n\
00209 \n\
00210 float64 x\n\
00211 float64 y\n\
00212 float64 z\n\
00213 float64 w\n\
00214 \n\
00215 ";
00216   }
00217 
00218   static const char* value(const  ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> &) { return value(); } 
00219 };
00220 
00221 template<class ContainerAllocator> struct HasHeader< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > : public TrueType {};
00222 template<class ContainerAllocator> struct HasHeader< const ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> > : public TrueType {};
00223 } // namespace message_traits
00224 } // namespace ros
00225 
00226 namespace ros
00227 {
00228 namespace serialization
00229 {
00230 
00231 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> >
00232 {
00233   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00234   {
00235     stream.next(m.header);
00236     stream.next(m.link_name);
00237     stream.next(m.target_point_offset);
00238     stream.next(m.position);
00239     stream.next(m.constraint_region_shape);
00240     stream.next(m.constraint_region_orientation);
00241     stream.next(m.weight);
00242   }
00243 
00244   ROS_DECLARE_ALLINONE_SERIALIZER;
00245 }; // struct PositionConstraint_
00246 } // namespace serialization
00247 } // namespace ros
00248 
00249 namespace ros
00250 {
00251 namespace message_operations
00252 {
00253 
00254 template<class ContainerAllocator>
00255 struct Printer< ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> >
00256 {
00257   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::PositionConstraint_<ContainerAllocator> & v) 
00258   {
00259     s << indent << "header: ";
00260 s << std::endl;
00261     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00262     s << indent << "link_name: ";
00263     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.link_name);
00264     s << indent << "target_point_offset: ";
00265 s << std::endl;
00266     Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "  ", v.target_point_offset);
00267     s << indent << "position: ";
00268 s << std::endl;
00269     Printer< ::geometry_msgs::Point_<ContainerAllocator> >::stream(s, indent + "  ", v.position);
00270     s << indent << "constraint_region_shape: ";
00271 s << std::endl;
00272     Printer< ::arm_navigation_msgs::Shape_<ContainerAllocator> >::stream(s, indent + "  ", v.constraint_region_shape);
00273     s << indent << "constraint_region_orientation: ";
00274 s << std::endl;
00275     Printer< ::geometry_msgs::Quaternion_<ContainerAllocator> >::stream(s, indent + "  ", v.constraint_region_orientation);
00276     s << indent << "weight: ";
00277     Printer<double>::stream(s, indent + "  ", v.weight);
00278   }
00279 };
00280 
00281 
00282 } // namespace message_operations
00283 } // namespace ros
00284 
00285 #endif // ARM_NAVIGATION_MSGS_MESSAGE_POSITIONCONSTRAINT_H
00286 


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Mon Dec 2 2013 12:31:51