00001
00002 #ifndef OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIACTIONGOAL_H
00003 #define OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIACTIONGOAL_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 "actionlib_msgs/GoalID.h"
00019 #include "object_recognition_gui/ObjectRecognitionGuiGoal.h"
00020
00021 namespace object_recognition_gui
00022 {
00023 template <class ContainerAllocator>
00024 struct ObjectRecognitionGuiActionGoal_ {
00025 typedef ObjectRecognitionGuiActionGoal_<ContainerAllocator> Type;
00026
00027 ObjectRecognitionGuiActionGoal_()
00028 : header()
00029 , goal_id()
00030 , goal()
00031 {
00032 }
00033
00034 ObjectRecognitionGuiActionGoal_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , goal_id(_alloc)
00037 , goal(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef ::actionlib_msgs::GoalID_<ContainerAllocator> _goal_id_type;
00045 ::actionlib_msgs::GoalID_<ContainerAllocator> goal_id;
00046
00047 typedef ::object_recognition_gui::ObjectRecognitionGuiGoal_<ContainerAllocator> _goal_type;
00048 ::object_recognition_gui::ObjectRecognitionGuiGoal_<ContainerAllocator> goal;
00049
00050
00051 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<std::allocator<void> > ObjectRecognitionGuiActionGoal;
00056
00057 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiActionGoal> ObjectRecognitionGuiActionGoalPtr;
00058 typedef boost::shared_ptr< ::object_recognition_gui::ObjectRecognitionGuiActionGoal const> ObjectRecognitionGuiActionGoalConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "e9351c4dd7bd646f1f371db4c7fd13af";
00080 }
00081
00082 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0xe9351c4dd7bd646fULL;
00084 static const uint64_t static_value2 = 0x1f371db4c7fd13afULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "object_recognition_gui/ObjectRecognitionGuiActionGoal";
00092 }
00093
00094 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00102 \n\
00103 Header header\n\
00104 actionlib_msgs/GoalID goal_id\n\
00105 ObjectRecognitionGuiGoal goal\n\
00106 \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: actionlib_msgs/GoalID\n\
00127 # The stamp should store the time at which this goal was requested.\n\
00128 # It is used by an action server when it tries to preempt all\n\
00129 # goals that were requested before a certain time\n\
00130 time stamp\n\
00131 \n\
00132 # The id provides a way to associate feedback and\n\
00133 # result message with specific goal requests. The id\n\
00134 # specified must be unique.\n\
00135 string id\n\
00136 \n\
00137 \n\
00138 ================================================================================\n\
00139 MSG: object_recognition_gui/ObjectRecognitionGuiGoal\n\
00140 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00141 \n\
00142 #the original sensor data (depth/disparity image)\n\
00143 sensor_msgs/Image image\n\
00144 sensor_msgs/CameraInfo camera_info\n\
00145 \n\
00146 #list of mesh/pose hypotheses for each recognized point cluster\n\
00147 ModelHypothesisList[] model_hypotheses\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: sensor_msgs/Image\n\
00151 # This message contains an uncompressed image\n\
00152 # (0, 0) is at top-left corner of image\n\
00153 #\n\
00154 \n\
00155 Header header # Header timestamp should be acquisition time of image\n\
00156 # Header frame_id should be optical frame of camera\n\
00157 # origin of frame should be optical center of cameara\n\
00158 # +x should point to the right in the image\n\
00159 # +y should point down in the image\n\
00160 # +z should point into to plane of the image\n\
00161 # If the frame_id here and the frame_id of the CameraInfo\n\
00162 # message associated with the image conflict\n\
00163 # the behavior is undefined\n\
00164 \n\
00165 uint32 height # image height, that is, number of rows\n\
00166 uint32 width # image width, that is, number of columns\n\
00167 \n\
00168 # The legal values for encoding are in file src/image_encodings.cpp\n\
00169 # If you want to standardize a new string format, join\n\
00170 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00171 \n\
00172 string encoding # Encoding of pixels -- channel meaning, ordering, size\n\
00173 # taken from the list of strings in src/image_encodings.cpp\n\
00174 \n\
00175 uint8 is_bigendian # is this data bigendian?\n\
00176 uint32 step # Full row length in bytes\n\
00177 uint8[] data # actual matrix data, size is (step * rows)\n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: sensor_msgs/CameraInfo\n\
00181 # This message defines meta information for a camera. It should be in a\n\
00182 # camera namespace on topic \"camera_info\" and accompanied by up to five\n\
00183 # image topics named:\n\
00184 #\n\
00185 # image_raw - raw data from the camera driver, possibly Bayer encoded\n\
00186 # image - monochrome, distorted\n\
00187 # image_color - color, distorted\n\
00188 # image_rect - monochrome, rectified\n\
00189 # image_rect_color - color, rectified\n\
00190 #\n\
00191 # The image_pipeline contains packages (image_proc, stereo_image_proc)\n\
00192 # for producing the four processed image topics from image_raw and\n\
00193 # camera_info. The meaning of the camera parameters are described in\n\
00194 # detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n\
00195 #\n\
00196 # The image_geometry package provides a user-friendly interface to\n\
00197 # common operations using this meta information. If you want to, e.g.,\n\
00198 # project a 3d point into image coordinates, we strongly recommend\n\
00199 # using image_geometry.\n\
00200 #\n\
00201 # If the camera is uncalibrated, the matrices D, K, R, P should be left\n\
00202 # zeroed out. In particular, clients may assume that K[0] == 0.0\n\
00203 # indicates an uncalibrated camera.\n\
00204 \n\
00205 #######################################################################\n\
00206 # Image acquisition info #\n\
00207 #######################################################################\n\
00208 \n\
00209 # Time of image acquisition, camera coordinate frame ID\n\
00210 Header header # Header timestamp should be acquisition time of image\n\
00211 # Header frame_id should be optical frame of camera\n\
00212 # origin of frame should be optical center of camera\n\
00213 # +x should point to the right in the image\n\
00214 # +y should point down in the image\n\
00215 # +z should point into the plane of the image\n\
00216 \n\
00217 \n\
00218 #######################################################################\n\
00219 # Calibration Parameters #\n\
00220 #######################################################################\n\
00221 # These are fixed during camera calibration. Their values will be the #\n\
00222 # same in all messages until the camera is recalibrated. Note that #\n\
00223 # self-calibrating systems may \"recalibrate\" frequently. #\n\
00224 # #\n\
00225 # The internal parameters can be used to warp a raw (distorted) image #\n\
00226 # to: #\n\
00227 # 1. An undistorted image (requires D and K) #\n\
00228 # 2. A rectified image (requires D, K, R) #\n\
00229 # The projection matrix P projects 3D points into the rectified image.#\n\
00230 #######################################################################\n\
00231 \n\
00232 # The image dimensions with which the camera was calibrated. Normally\n\
00233 # this will be the full camera resolution in pixels.\n\
00234 uint32 height\n\
00235 uint32 width\n\
00236 \n\
00237 # The distortion model used. Supported models are listed in\n\
00238 # sensor_msgs/distortion_models.h. For most cameras, \"plumb_bob\" - a\n\
00239 # simple model of radial and tangential distortion - is sufficent.\n\
00240 string distortion_model\n\
00241 \n\
00242 # The distortion parameters, size depending on the distortion model.\n\
00243 # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n\
00244 float64[] D\n\
00245 \n\
00246 # Intrinsic camera matrix for the raw (distorted) images.\n\
00247 # [fx 0 cx]\n\
00248 # K = [ 0 fy cy]\n\
00249 # [ 0 0 1]\n\
00250 # Projects 3D points in the camera coordinate frame to 2D pixel\n\
00251 # coordinates using the focal lengths (fx, fy) and principal point\n\
00252 # (cx, cy).\n\
00253 float64[9] K # 3x3 row-major matrix\n\
00254 \n\
00255 # Rectification matrix (stereo cameras only)\n\
00256 # A rotation matrix aligning the camera coordinate system to the ideal\n\
00257 # stereo image plane so that epipolar lines in both stereo images are\n\
00258 # parallel.\n\
00259 float64[9] R # 3x3 row-major matrix\n\
00260 \n\
00261 # Projection/camera matrix\n\
00262 # [fx' 0 cx' Tx]\n\
00263 # P = [ 0 fy' cy' Ty]\n\
00264 # [ 0 0 1 0]\n\
00265 # By convention, this matrix specifies the intrinsic (camera) matrix\n\
00266 # of the processed (rectified) image. That is, the left 3x3 portion\n\
00267 # is the normal camera intrinsic matrix for the rectified image.\n\
00268 # It projects 3D points in the camera coordinate frame to 2D pixel\n\
00269 # coordinates using the focal lengths (fx', fy') and principal point\n\
00270 # (cx', cy') - these may differ from the values in K.\n\
00271 # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n\
00272 # also have R = the identity and P[1:3,1:3] = K.\n\
00273 # For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n\
00274 # position of the optical center of the second camera in the first\n\
00275 # camera's frame. We assume Tz = 0 so both cameras are in the same\n\
00276 # stereo image plane. The first camera always has Tx = Ty = 0. For\n\
00277 # the right (second) camera of a horizontal stereo pair, Ty = 0 and\n\
00278 # Tx = -fx' * B, where B is the baseline between the cameras.\n\
00279 # Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n\
00280 # the rectified image is given by:\n\
00281 # [u v w]' = P * [X Y Z 1]'\n\
00282 # x = u / w\n\
00283 # y = v / w\n\
00284 # This holds for both images of a stereo pair.\n\
00285 float64[12] P # 3x4 row-major matrix\n\
00286 \n\
00287 \n\
00288 #######################################################################\n\
00289 # Operational Parameters #\n\
00290 #######################################################################\n\
00291 # These define the image region actually captured by the camera #\n\
00292 # driver. Although they affect the geometry of the output image, they #\n\
00293 # may be changed freely without recalibrating the camera. #\n\
00294 #######################################################################\n\
00295 \n\
00296 # Binning refers here to any camera setting which combines rectangular\n\
00297 # neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n\
00298 # resolution of the output image to\n\
00299 # (width / binning_x) x (height / binning_y).\n\
00300 # The default values binning_x = binning_y = 0 is considered the same\n\
00301 # as binning_x = binning_y = 1 (no subsampling).\n\
00302 uint32 binning_x\n\
00303 uint32 binning_y\n\
00304 \n\
00305 # Region of interest (subwindow of full camera resolution), given in\n\
00306 # full resolution (unbinned) image coordinates. A particular ROI\n\
00307 # always denotes the same window of pixels on the camera sensor,\n\
00308 # regardless of binning settings.\n\
00309 # The default setting of roi (all values 0) is considered the same as\n\
00310 # full resolution (roi.width = width, roi.height = height).\n\
00311 RegionOfInterest roi\n\
00312 \n\
00313 ================================================================================\n\
00314 MSG: sensor_msgs/RegionOfInterest\n\
00315 # This message is used to specify a region of interest within an image.\n\
00316 #\n\
00317 # When used to specify the ROI setting of the camera when the image was\n\
00318 # taken, the height and width fields should either match the height and\n\
00319 # width fields for the associated image; or height = width = 0\n\
00320 # indicates that the full resolution image was captured.\n\
00321 \n\
00322 uint32 x_offset # Leftmost pixel of the ROI\n\
00323 # (0 if the ROI includes the left edge of the image)\n\
00324 uint32 y_offset # Topmost pixel of the ROI\n\
00325 # (0 if the ROI includes the top edge of the image)\n\
00326 uint32 height # Height of ROI\n\
00327 uint32 width # Width of ROI\n\
00328 \n\
00329 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
00330 # ROI in this message. Typically this should be False if the full image\n\
00331 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
00332 # used).\n\
00333 bool do_rectify\n\
00334 \n\
00335 ================================================================================\n\
00336 MSG: object_recognition_gui/ModelHypothesisList\n\
00337 ModelHypothesis[] hypotheses\n\
00338 \n\
00339 #initial guess if this can be a correct recognition result at all\n\
00340 bool accept\n\
00341 ================================================================================\n\
00342 MSG: object_recognition_gui/ModelHypothesis\n\
00343 #describes a hypothesis about a recognized object (mesh+pose)\n\
00344 \n\
00345 arm_navigation_msgs/Shape mesh\n\
00346 geometry_msgs/PoseStamped pose\n\
00347 \n\
00348 ================================================================================\n\
00349 MSG: arm_navigation_msgs/Shape\n\
00350 byte SPHERE=0\n\
00351 byte BOX=1\n\
00352 byte CYLINDER=2\n\
00353 byte MESH=3\n\
00354 \n\
00355 byte type\n\
00356 \n\
00357 \n\
00358 #### define sphere, box, cylinder ####\n\
00359 # the origin of each shape is considered at the shape's center\n\
00360 \n\
00361 # for sphere\n\
00362 # radius := dimensions[0]\n\
00363 \n\
00364 # for cylinder\n\
00365 # radius := dimensions[0]\n\
00366 # length := dimensions[1]\n\
00367 # the length is along the Z axis\n\
00368 \n\
00369 # for box\n\
00370 # size_x := dimensions[0]\n\
00371 # size_y := dimensions[1]\n\
00372 # size_z := dimensions[2]\n\
00373 float64[] dimensions\n\
00374 \n\
00375 \n\
00376 #### define mesh ####\n\
00377 \n\
00378 # list of triangles; triangle k is defined by tre vertices located\n\
00379 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00380 int32[] triangles\n\
00381 geometry_msgs/Point[] vertices\n\
00382 \n\
00383 ================================================================================\n\
00384 MSG: geometry_msgs/Point\n\
00385 # This contains the position of a point in free space\n\
00386 float64 x\n\
00387 float64 y\n\
00388 float64 z\n\
00389 \n\
00390 ================================================================================\n\
00391 MSG: geometry_msgs/PoseStamped\n\
00392 # A Pose with reference coordinate frame and timestamp\n\
00393 Header header\n\
00394 Pose pose\n\
00395 \n\
00396 ================================================================================\n\
00397 MSG: geometry_msgs/Pose\n\
00398 # A representation of pose in free space, composed of postion and orientation. \n\
00399 Point position\n\
00400 Quaternion orientation\n\
00401 \n\
00402 ================================================================================\n\
00403 MSG: geometry_msgs/Quaternion\n\
00404 # This represents an orientation in free space in quaternion form.\n\
00405 \n\
00406 float64 x\n\
00407 float64 y\n\
00408 float64 z\n\
00409 float64 w\n\
00410 \n\
00411 ";
00412 }
00413
00414 static const char* value(const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> &) { return value(); }
00415 };
00416
00417 template<class ContainerAllocator> struct HasHeader< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > : public TrueType {};
00418 template<class ContainerAllocator> struct HasHeader< const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> > : public TrueType {};
00419 }
00420 }
00421
00422 namespace ros
00423 {
00424 namespace serialization
00425 {
00426
00427 template<class ContainerAllocator> struct Serializer< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> >
00428 {
00429 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00430 {
00431 stream.next(m.header);
00432 stream.next(m.goal_id);
00433 stream.next(m.goal);
00434 }
00435
00436 ROS_DECLARE_ALLINONE_SERIALIZER;
00437 };
00438 }
00439 }
00440
00441 namespace ros
00442 {
00443 namespace message_operations
00444 {
00445
00446 template<class ContainerAllocator>
00447 struct Printer< ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> >
00448 {
00449 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::object_recognition_gui::ObjectRecognitionGuiActionGoal_<ContainerAllocator> & v)
00450 {
00451 s << indent << "header: ";
00452 s << std::endl;
00453 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00454 s << indent << "goal_id: ";
00455 s << std::endl;
00456 Printer< ::actionlib_msgs::GoalID_<ContainerAllocator> >::stream(s, indent + " ", v.goal_id);
00457 s << indent << "goal: ";
00458 s << std::endl;
00459 Printer< ::object_recognition_gui::ObjectRecognitionGuiGoal_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00460 }
00461 };
00462
00463
00464 }
00465 }
00466
00467 #endif // OBJECT_RECOGNITION_GUI_MESSAGE_OBJECTRECOGNITIONGUIACTIONGOAL_H
00468