Go to the documentation of this file.00001
00002 #ifndef PR2_GRASP_ADJUST_MESSAGE_GRASPADJUSTGOAL_H
00003 #define PR2_GRASP_ADJUST_MESSAGE_GRASPADJUSTGOAL_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 "sensor_msgs/PointCloud2.h"
00018 #include "geometry_msgs/PoseStamped.h"
00019
00020 namespace pr2_grasp_adjust
00021 {
00022 template <class ContainerAllocator>
00023 struct GraspAdjustGoal_ {
00024 typedef GraspAdjustGoal_<ContainerAllocator> Type;
00025
00026 GraspAdjustGoal_()
00027 : cloud()
00028 , pose_stamped()
00029 , use_orientation(false)
00030 , seed_index(0)
00031 , search_mode(0)
00032 {
00033 }
00034
00035 GraspAdjustGoal_(const ContainerAllocator& _alloc)
00036 : cloud(_alloc)
00037 , pose_stamped(_alloc)
00038 , use_orientation(false)
00039 , seed_index(0)
00040 , search_mode(0)
00041 {
00042 }
00043
00044 typedef ::sensor_msgs::PointCloud2_<ContainerAllocator> _cloud_type;
00045 ::sensor_msgs::PointCloud2_<ContainerAllocator> cloud;
00046
00047 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _pose_stamped_type;
00048 ::geometry_msgs::PoseStamped_<ContainerAllocator> pose_stamped;
00049
00050 typedef uint8_t _use_orientation_type;
00051 uint8_t use_orientation;
00052
00053 typedef int32_t _seed_index_type;
00054 int32_t seed_index;
00055
00056 typedef uint8_t _search_mode_type;
00057 uint8_t search_mode;
00058
00059 enum { GLOBAL_SEARCH = 0 };
00060 enum { LOCAL_SEARCH = 1 };
00061 enum { SINGLE_POSE = 2 };
00062
00063 typedef boost::shared_ptr< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> > Ptr;
00064 typedef boost::shared_ptr< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> const> ConstPtr;
00065 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00066 };
00067 typedef ::pr2_grasp_adjust::GraspAdjustGoal_<std::allocator<void> > GraspAdjustGoal;
00068
00069 typedef boost::shared_ptr< ::pr2_grasp_adjust::GraspAdjustGoal> GraspAdjustGoalPtr;
00070 typedef boost::shared_ptr< ::pr2_grasp_adjust::GraspAdjustGoal const> GraspAdjustGoalConstPtr;
00071
00072
00073 template<typename ContainerAllocator>
00074 std::ostream& operator<<(std::ostream& s, const ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> & v)
00075 {
00076 ros::message_operations::Printer< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> >::stream(s, "", v);
00077 return s;}
00078
00079 }
00080
00081 namespace ros
00082 {
00083 namespace message_traits
00084 {
00085 template<class ContainerAllocator> struct IsMessage< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> > : public TrueType {};
00086 template<class ContainerAllocator> struct IsMessage< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> const> : public TrueType {};
00087 template<class ContainerAllocator>
00088 struct MD5Sum< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "060fcd54eb8073631ee72fceac5fcf37";
00092 }
00093
00094 static const char* value(const ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> &) { return value(); }
00095 static const uint64_t static_value1 = 0x060fcd54eb807363ULL;
00096 static const uint64_t static_value2 = 0x1ee72fceac5fcf37ULL;
00097 };
00098
00099 template<class ContainerAllocator>
00100 struct DataType< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> > {
00101 static const char* value()
00102 {
00103 return "pr2_grasp_adjust/GraspAdjustGoal";
00104 }
00105
00106 static const char* value(const ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> &) { return value(); }
00107 };
00108
00109 template<class ContainerAllocator>
00110 struct Definition< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> > {
00111 static const char* value()
00112 {
00113 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00114 #goal definition\n\
00115 \n\
00116 sensor_msgs/PointCloud2 cloud\n\
00117 geometry_msgs/PoseStamped pose_stamped\n\
00118 bool use_orientation\n\
00119 int32 seed_index\n\
00120 uint8 search_mode\n\
00121 \n\
00122 int32 GLOBAL_SEARCH = 0\n\
00123 int32 LOCAL_SEARCH = 1\n\
00124 int32 SINGLE_POSE = 2\n\
00125 \n\
00126 \n\
00127 ================================================================================\n\
00128 MSG: sensor_msgs/PointCloud2\n\
00129 # This message holds a collection of N-dimensional points, which may\n\
00130 # contain additional information such as normals, intensity, etc. The\n\
00131 # point data is stored as a binary blob, its layout described by the\n\
00132 # contents of the \"fields\" array.\n\
00133 \n\
00134 # The point cloud data may be organized 2d (image-like) or 1d\n\
00135 # (unordered). Point clouds organized as 2d images may be produced by\n\
00136 # camera depth sensors such as stereo or time-of-flight.\n\
00137 \n\
00138 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00139 # points).\n\
00140 Header header\n\
00141 \n\
00142 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00143 # 1 and width is the length of the point cloud.\n\
00144 uint32 height\n\
00145 uint32 width\n\
00146 \n\
00147 # Describes the channels and their layout in the binary data blob.\n\
00148 PointField[] fields\n\
00149 \n\
00150 bool is_bigendian # Is this data bigendian?\n\
00151 uint32 point_step # Length of a point in bytes\n\
00152 uint32 row_step # Length of a row in bytes\n\
00153 uint8[] data # Actual point data, size is (row_step*height)\n\
00154 \n\
00155 bool is_dense # True if there are no invalid points\n\
00156 \n\
00157 ================================================================================\n\
00158 MSG: std_msgs/Header\n\
00159 # Standard metadata for higher-level stamped data types.\n\
00160 # This is generally used to communicate timestamped data \n\
00161 # in a particular coordinate frame.\n\
00162 # \n\
00163 # sequence ID: consecutively increasing ID \n\
00164 uint32 seq\n\
00165 #Two-integer timestamp that is expressed as:\n\
00166 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00167 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00168 # time-handling sugar is provided by the client library\n\
00169 time stamp\n\
00170 #Frame this data is associated with\n\
00171 # 0: no frame\n\
00172 # 1: global frame\n\
00173 string frame_id\n\
00174 \n\
00175 ================================================================================\n\
00176 MSG: sensor_msgs/PointField\n\
00177 # This message holds the description of one point entry in the\n\
00178 # PointCloud2 message format.\n\
00179 uint8 INT8 = 1\n\
00180 uint8 UINT8 = 2\n\
00181 uint8 INT16 = 3\n\
00182 uint8 UINT16 = 4\n\
00183 uint8 INT32 = 5\n\
00184 uint8 UINT32 = 6\n\
00185 uint8 FLOAT32 = 7\n\
00186 uint8 FLOAT64 = 8\n\
00187 \n\
00188 string name # Name of field\n\
00189 uint32 offset # Offset from start of point struct\n\
00190 uint8 datatype # Datatype enumeration, see above\n\
00191 uint32 count # How many elements in the field\n\
00192 \n\
00193 ================================================================================\n\
00194 MSG: geometry_msgs/PoseStamped\n\
00195 # A Pose with reference coordinate frame and timestamp\n\
00196 Header header\n\
00197 Pose pose\n\
00198 \n\
00199 ================================================================================\n\
00200 MSG: geometry_msgs/Pose\n\
00201 # A representation of pose in free space, composed of postion and orientation. \n\
00202 Point position\n\
00203 Quaternion orientation\n\
00204 \n\
00205 ================================================================================\n\
00206 MSG: geometry_msgs/Point\n\
00207 # This contains the position of a point in free space\n\
00208 float64 x\n\
00209 float64 y\n\
00210 float64 z\n\
00211 \n\
00212 ================================================================================\n\
00213 MSG: geometry_msgs/Quaternion\n\
00214 # This represents an orientation in free space in quaternion form.\n\
00215 \n\
00216 float64 x\n\
00217 float64 y\n\
00218 float64 z\n\
00219 float64 w\n\
00220 \n\
00221 ";
00222 }
00223
00224 static const char* value(const ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> &) { return value(); }
00225 };
00226
00227 }
00228 }
00229
00230 namespace ros
00231 {
00232 namespace serialization
00233 {
00234
00235 template<class ContainerAllocator> struct Serializer< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> >
00236 {
00237 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00238 {
00239 stream.next(m.cloud);
00240 stream.next(m.pose_stamped);
00241 stream.next(m.use_orientation);
00242 stream.next(m.seed_index);
00243 stream.next(m.search_mode);
00244 }
00245
00246 ROS_DECLARE_ALLINONE_SERIALIZER;
00247 };
00248 }
00249 }
00250
00251 namespace ros
00252 {
00253 namespace message_operations
00254 {
00255
00256 template<class ContainerAllocator>
00257 struct Printer< ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> >
00258 {
00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_grasp_adjust::GraspAdjustGoal_<ContainerAllocator> & v)
00260 {
00261 s << indent << "cloud: ";
00262 s << std::endl;
00263 Printer< ::sensor_msgs::PointCloud2_<ContainerAllocator> >::stream(s, indent + " ", v.cloud);
00264 s << indent << "pose_stamped: ";
00265 s << std::endl;
00266 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.pose_stamped);
00267 s << indent << "use_orientation: ";
00268 Printer<uint8_t>::stream(s, indent + " ", v.use_orientation);
00269 s << indent << "seed_index: ";
00270 Printer<int32_t>::stream(s, indent + " ", v.seed_index);
00271 s << indent << "search_mode: ";
00272 Printer<uint8_t>::stream(s, indent + " ", v.search_mode);
00273 }
00274 };
00275
00276
00277 }
00278 }
00279
00280 #endif // PR2_GRASP_ADJUST_MESSAGE_GRASPADJUSTGOAL_H
00281