ReactiveGrasp.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-object_manipulation/doc_stacks/2014-10-06_02-51-20.607186/object_manipulation/object_manipulation_msgs/srv/ReactiveGrasp.srv */
00002 #ifndef OBJECT_MANIPULATION_MSGS_SERVICE_REACTIVEGRASP_H
00003 #define OBJECT_MANIPULATION_MSGS_SERVICE_REACTIVEGRASP_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 "ros/service_traits.h"
00018 
00019 #include "object_manipulation_msgs/ReactiveGraspGoal.h"
00020 
00021 
00022 #include "object_manipulation_msgs/ReactiveGraspResult.h"
00023 
00024 namespace object_manipulation_msgs
00025 {
00026 template <class ContainerAllocator>
00027 struct ReactiveGraspRequest_ {
00028   typedef ReactiveGraspRequest_<ContainerAllocator> Type;
00029 
00030   ReactiveGraspRequest_()
00031   : goal()
00032   {
00033   }
00034 
00035   ReactiveGraspRequest_(const ContainerAllocator& _alloc)
00036   : goal(_alloc)
00037   {
00038   }
00039 
00040   typedef  ::object_manipulation_msgs::ReactiveGraspGoal_<ContainerAllocator>  _goal_type;
00041    ::object_manipulation_msgs::ReactiveGraspGoal_<ContainerAllocator>  goal;
00042 
00043 
00044   typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > Ptr;
00045   typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator>  const> ConstPtr;
00046   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00047 }; // struct ReactiveGraspRequest
00048 typedef  ::object_manipulation_msgs::ReactiveGraspRequest_<std::allocator<void> > ReactiveGraspRequest;
00049 
00050 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspRequest> ReactiveGraspRequestPtr;
00051 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspRequest const> ReactiveGraspRequestConstPtr;
00052 
00053 
00054 
00055 template <class ContainerAllocator>
00056 struct ReactiveGraspResponse_ {
00057   typedef ReactiveGraspResponse_<ContainerAllocator> Type;
00058 
00059   ReactiveGraspResponse_()
00060   : result()
00061   {
00062   }
00063 
00064   ReactiveGraspResponse_(const ContainerAllocator& _alloc)
00065   : result(_alloc)
00066   {
00067   }
00068 
00069   typedef  ::object_manipulation_msgs::ReactiveGraspResult_<ContainerAllocator>  _result_type;
00070    ::object_manipulation_msgs::ReactiveGraspResult_<ContainerAllocator>  result;
00071 
00072 
00073   typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > Ptr;
00074   typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator>  const> ConstPtr;
00075   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00076 }; // struct ReactiveGraspResponse
00077 typedef  ::object_manipulation_msgs::ReactiveGraspResponse_<std::allocator<void> > ReactiveGraspResponse;
00078 
00079 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspResponse> ReactiveGraspResponsePtr;
00080 typedef boost::shared_ptr< ::object_manipulation_msgs::ReactiveGraspResponse const> ReactiveGraspResponseConstPtr;
00081 
00082 
00083 struct ReactiveGrasp
00084 {
00085 
00086 typedef ReactiveGraspRequest Request;
00087 typedef ReactiveGraspResponse Response;
00088 Request request;
00089 Response response;
00090 
00091 typedef Request RequestType;
00092 typedef Response ResponseType;
00093 }; // struct ReactiveGrasp
00094 } // namespace object_manipulation_msgs
00095 
00096 namespace ros
00097 {
00098 namespace message_traits
00099 {
00100 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > : public TrueType {};
00101 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator>  const> : public TrueType {};
00102 template<class ContainerAllocator>
00103 struct MD5Sum< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > {
00104   static const char* value() 
00105   {
00106     return "fde3180ff0964f8a830e8d6786a9186b";
00107   }
00108 
00109   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> &) { return value(); } 
00110   static const uint64_t static_value1 = 0xfde3180ff0964f8aULL;
00111   static const uint64_t static_value2 = 0x830e8d6786a9186bULL;
00112 };
00113 
00114 template<class ContainerAllocator>
00115 struct DataType< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > {
00116   static const char* value() 
00117   {
00118     return "object_manipulation_msgs/ReactiveGraspRequest";
00119   }
00120 
00121   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> &) { return value(); } 
00122 };
00123 
00124 template<class ContainerAllocator>
00125 struct Definition< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "\n\
00129 ReactiveGraspGoal goal\n\
00130 \n\
00131 \n\
00132 ================================================================================\n\
00133 MSG: object_manipulation_msgs/ReactiveGraspGoal\n\
00134 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00135 # an action for reactive grasping\n\
00136 # a reactive grasp starts from the current pose of the gripper and ends\n\
00137 # at a desired grasp pose, presumably using the touch sensors along the way\n\
00138 \n\
00139 # the name of the arm being used\n\
00140 string arm_name\n\
00141 \n\
00142 # the object to be grasped\n\
00143 manipulation_msgs/GraspableObject target\n\
00144 \n\
00145 # the desired grasp pose for the hand\n\
00146 geometry_msgs/PoseStamped final_grasp_pose\n\
00147 \n\
00148 # the joint trajectory to use for the approach (if available)\n\
00149 # this trajectory is expected to start at the current pose of the gripper\n\
00150 # and end at the desired grasp pose\n\
00151 trajectory_msgs/JointTrajectory trajectory\n\
00152 \n\
00153 # the name of the support surface in the collision environment, if any\n\
00154 string collision_support_surface_name\n\
00155 \n\
00156 # The internal posture of the hand for the pre-grasp\n\
00157 # only positions are used\n\
00158 sensor_msgs/JointState pre_grasp_posture\n\
00159 \n\
00160 # The internal posture of the hand for the grasp\n\
00161 # positions and efforts are used\n\
00162 sensor_msgs/JointState grasp_posture\n\
00163 \n\
00164 # The max contact force to use while grasping (<=0 to disable)\n\
00165 float32 max_contact_force\n\
00166 \n\
00167 \n\
00168 ================================================================================\n\
00169 MSG: manipulation_msgs/GraspableObject\n\
00170 # an object that the object_manipulator can work on\n\
00171 \n\
00172 # a graspable object can be represented in multiple ways. This message\n\
00173 # can contain all of them. Which one is actually used is up to the receiver\n\
00174 # of this message. When adding new representations, one must be careful that\n\
00175 # they have reasonable lightweight defaults indicating that that particular\n\
00176 # representation is not available.\n\
00177 \n\
00178 # the tf frame to be used as a reference frame when combining information from\n\
00179 # the different representations below\n\
00180 string reference_frame_id\n\
00181 \n\
00182 # potential recognition results from a database of models\n\
00183 # all poses are relative to the object reference pose\n\
00184 household_objects_database_msgs/DatabaseModelPose[] potential_models\n\
00185 \n\
00186 # the point cloud itself\n\
00187 sensor_msgs/PointCloud cluster\n\
00188 \n\
00189 # a region of a PointCloud2 of interest\n\
00190 SceneRegion region\n\
00191 \n\
00192 # the name that this object has in the collision environment\n\
00193 string collision_name\n\
00194 ================================================================================\n\
00195 MSG: household_objects_database_msgs/DatabaseModelPose\n\
00196 # Informs that a specific model from the Model Database has been \n\
00197 # identified at a certain location\n\
00198 \n\
00199 # the database id of the model\n\
00200 int32 model_id\n\
00201 \n\
00202 # if the object was recognized by the ORK pipeline, its type will be in here\n\
00203 # if this is not empty, then the string in here will be converted to a household_objects_database id\n\
00204 # leave this empty if providing an id in the model_id field\n\
00205 object_recognition_msgs/ObjectType type\n\
00206 \n\
00207 # the pose that it can be found in\n\
00208 geometry_msgs/PoseStamped pose\n\
00209 \n\
00210 # a measure of the confidence level in this detection result\n\
00211 float32 confidence\n\
00212 \n\
00213 # the name of the object detector that generated this detection result\n\
00214 string detector_name\n\
00215 \n\
00216 ================================================================================\n\
00217 MSG: object_recognition_msgs/ObjectType\n\
00218 ################################################## OBJECT ID #########################################################\n\
00219 \n\
00220 # Contains information about the type of a found object. Those two sets of parameters together uniquely define an\n\
00221 # object\n\
00222 \n\
00223 # The key of the found object: the unique identifier in the given db\n\
00224 string key\n\
00225 \n\
00226 # The db parameters stored as a JSON/compressed YAML string. An object id does not make sense without the corresponding\n\
00227 # database. E.g., in object_recognition, it can look like: \"{'type':'CouchDB', 'root':'http://localhost'}\"\n\
00228 # There is no conventional format for those parameters and it's nice to keep that flexibility.\n\
00229 # The object_recognition_core as a generic DB type that can read those fields\n\
00230 # Current examples:\n\
00231 # For CouchDB:\n\
00232 #   type: 'CouchDB'\n\
00233 #   root: 'http://localhost:5984'\n\
00234 #   collection: 'object_recognition'\n\
00235 # For SQL household database:\n\
00236 #   type: 'SqlHousehold'\n\
00237 #   host: 'wgs36'\n\
00238 #   port: 5432\n\
00239 #   user: 'willow'\n\
00240 #   password: 'willow'\n\
00241 #   name: 'household_objects'\n\
00242 #   module: 'tabletop'\n\
00243 string db\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: geometry_msgs/PoseStamped\n\
00247 # A Pose with reference coordinate frame and timestamp\n\
00248 Header header\n\
00249 Pose pose\n\
00250 \n\
00251 ================================================================================\n\
00252 MSG: std_msgs/Header\n\
00253 # Standard metadata for higher-level stamped data types.\n\
00254 # This is generally used to communicate timestamped data \n\
00255 # in a particular coordinate frame.\n\
00256 # \n\
00257 # sequence ID: consecutively increasing ID \n\
00258 uint32 seq\n\
00259 #Two-integer timestamp that is expressed as:\n\
00260 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00261 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00262 # time-handling sugar is provided by the client library\n\
00263 time stamp\n\
00264 #Frame this data is associated with\n\
00265 # 0: no frame\n\
00266 # 1: global frame\n\
00267 string frame_id\n\
00268 \n\
00269 ================================================================================\n\
00270 MSG: geometry_msgs/Pose\n\
00271 # A representation of pose in free space, composed of postion and orientation. \n\
00272 Point position\n\
00273 Quaternion orientation\n\
00274 \n\
00275 ================================================================================\n\
00276 MSG: geometry_msgs/Point\n\
00277 # This contains the position of a point in free space\n\
00278 float64 x\n\
00279 float64 y\n\
00280 float64 z\n\
00281 \n\
00282 ================================================================================\n\
00283 MSG: geometry_msgs/Quaternion\n\
00284 # This represents an orientation in free space in quaternion form.\n\
00285 \n\
00286 float64 x\n\
00287 float64 y\n\
00288 float64 z\n\
00289 float64 w\n\
00290 \n\
00291 ================================================================================\n\
00292 MSG: sensor_msgs/PointCloud\n\
00293 # This message holds a collection of 3d points, plus optional additional\n\
00294 # information about each point.\n\
00295 \n\
00296 # Time of sensor data acquisition, coordinate frame ID.\n\
00297 Header header\n\
00298 \n\
00299 # Array of 3d points. Each Point32 should be interpreted as a 3d point\n\
00300 # in the frame given in the header.\n\
00301 geometry_msgs/Point32[] points\n\
00302 \n\
00303 # Each channel should have the same number of elements as points array,\n\
00304 # and the data in each channel should correspond 1:1 with each point.\n\
00305 # Channel names in common practice are listed in ChannelFloat32.msg.\n\
00306 ChannelFloat32[] channels\n\
00307 \n\
00308 ================================================================================\n\
00309 MSG: geometry_msgs/Point32\n\
00310 # This contains the position of a point in free space(with 32 bits of precision).\n\
00311 # It is recommeded to use Point wherever possible instead of Point32.  \n\
00312 # \n\
00313 # This recommendation is to promote interoperability.  \n\
00314 #\n\
00315 # This message is designed to take up less space when sending\n\
00316 # lots of points at once, as in the case of a PointCloud.  \n\
00317 \n\
00318 float32 x\n\
00319 float32 y\n\
00320 float32 z\n\
00321 ================================================================================\n\
00322 MSG: sensor_msgs/ChannelFloat32\n\
00323 # This message is used by the PointCloud message to hold optional data\n\
00324 # associated with each point in the cloud. The length of the values\n\
00325 # array should be the same as the length of the points array in the\n\
00326 # PointCloud, and each value should be associated with the corresponding\n\
00327 # point.\n\
00328 \n\
00329 # Channel names in existing practice include:\n\
00330 #   \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00331 #              This is opposite to usual conventions but remains for\n\
00332 #              historical reasons. The newer PointCloud2 message has no\n\
00333 #              such problem.\n\
00334 #   \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00335 #           (R,G,B) values packed into the least significant 24 bits,\n\
00336 #           in order.\n\
00337 #   \"intensity\" - laser or pixel intensity.\n\
00338 #   \"distance\"\n\
00339 \n\
00340 # The channel name should give semantics of the channel (e.g.\n\
00341 # \"intensity\" instead of \"value\").\n\
00342 string name\n\
00343 \n\
00344 # The values array should be 1-1 with the elements of the associated\n\
00345 # PointCloud.\n\
00346 float32[] values\n\
00347 \n\
00348 ================================================================================\n\
00349 MSG: manipulation_msgs/SceneRegion\n\
00350 # Point cloud\n\
00351 sensor_msgs/PointCloud2 cloud\n\
00352 \n\
00353 # Indices for the region of interest\n\
00354 int32[] mask\n\
00355 \n\
00356 # One of the corresponding 2D images, if applicable\n\
00357 sensor_msgs/Image image\n\
00358 \n\
00359 # The disparity image, if applicable\n\
00360 sensor_msgs/Image disparity_image\n\
00361 \n\
00362 # Camera info for the camera that took the image\n\
00363 sensor_msgs/CameraInfo cam_info\n\
00364 \n\
00365 # a 3D region of interest for grasp planning\n\
00366 geometry_msgs/PoseStamped  roi_box_pose\n\
00367 geometry_msgs/Vector3      roi_box_dims\n\
00368 \n\
00369 ================================================================================\n\
00370 MSG: sensor_msgs/PointCloud2\n\
00371 # This message holds a collection of N-dimensional points, which may\n\
00372 # contain additional information such as normals, intensity, etc. The\n\
00373 # point data is stored as a binary blob, its layout described by the\n\
00374 # contents of the \"fields\" array.\n\
00375 \n\
00376 # The point cloud data may be organized 2d (image-like) or 1d\n\
00377 # (unordered). Point clouds organized as 2d images may be produced by\n\
00378 # camera depth sensors such as stereo or time-of-flight.\n\
00379 \n\
00380 # Time of sensor data acquisition, and the coordinate frame ID (for 3d\n\
00381 # points).\n\
00382 Header header\n\
00383 \n\
00384 # 2D structure of the point cloud. If the cloud is unordered, height is\n\
00385 # 1 and width is the length of the point cloud.\n\
00386 uint32 height\n\
00387 uint32 width\n\
00388 \n\
00389 # Describes the channels and their layout in the binary data blob.\n\
00390 PointField[] fields\n\
00391 \n\
00392 bool    is_bigendian # Is this data bigendian?\n\
00393 uint32  point_step   # Length of a point in bytes\n\
00394 uint32  row_step     # Length of a row in bytes\n\
00395 uint8[] data         # Actual point data, size is (row_step*height)\n\
00396 \n\
00397 bool is_dense        # True if there are no invalid points\n\
00398 \n\
00399 ================================================================================\n\
00400 MSG: sensor_msgs/PointField\n\
00401 # This message holds the description of one point entry in the\n\
00402 # PointCloud2 message format.\n\
00403 uint8 INT8    = 1\n\
00404 uint8 UINT8   = 2\n\
00405 uint8 INT16   = 3\n\
00406 uint8 UINT16  = 4\n\
00407 uint8 INT32   = 5\n\
00408 uint8 UINT32  = 6\n\
00409 uint8 FLOAT32 = 7\n\
00410 uint8 FLOAT64 = 8\n\
00411 \n\
00412 string name      # Name of field\n\
00413 uint32 offset    # Offset from start of point struct\n\
00414 uint8  datatype  # Datatype enumeration, see above\n\
00415 uint32 count     # How many elements in the field\n\
00416 \n\
00417 ================================================================================\n\
00418 MSG: sensor_msgs/Image\n\
00419 # This message contains an uncompressed image\n\
00420 # (0, 0) is at top-left corner of image\n\
00421 #\n\
00422 \n\
00423 Header header        # Header timestamp should be acquisition time of image\n\
00424                      # Header frame_id should be optical frame of camera\n\
00425                      # origin of frame should be optical center of cameara\n\
00426                      # +x should point to the right in the image\n\
00427                      # +y should point down in the image\n\
00428                      # +z should point into to plane of the image\n\
00429                      # If the frame_id here and the frame_id of the CameraInfo\n\
00430                      # message associated with the image conflict\n\
00431                      # the behavior is undefined\n\
00432 \n\
00433 uint32 height         # image height, that is, number of rows\n\
00434 uint32 width          # image width, that is, number of columns\n\
00435 \n\
00436 # The legal values for encoding are in file src/image_encodings.cpp\n\
00437 # If you want to standardize a new string format, join\n\
00438 # ros-users@lists.sourceforge.net and send an email proposing a new encoding.\n\
00439 \n\
00440 string encoding       # Encoding of pixels -- channel meaning, ordering, size\n\
00441                       # taken from the list of strings in include/sensor_msgs/image_encodings.h\n\
00442 \n\
00443 uint8 is_bigendian    # is this data bigendian?\n\
00444 uint32 step           # Full row length in bytes\n\
00445 uint8[] data          # actual matrix data, size is (step * rows)\n\
00446 \n\
00447 ================================================================================\n\
00448 MSG: sensor_msgs/CameraInfo\n\
00449 # This message defines meta information for a camera. It should be in a\n\
00450 # camera namespace on topic \"camera_info\" and accompanied by up to five\n\
00451 # image topics named:\n\
00452 #\n\
00453 #   image_raw - raw data from the camera driver, possibly Bayer encoded\n\
00454 #   image            - monochrome, distorted\n\
00455 #   image_color      - color, distorted\n\
00456 #   image_rect       - monochrome, rectified\n\
00457 #   image_rect_color - color, rectified\n\
00458 #\n\
00459 # The image_pipeline contains packages (image_proc, stereo_image_proc)\n\
00460 # for producing the four processed image topics from image_raw and\n\
00461 # camera_info. The meaning of the camera parameters are described in\n\
00462 # detail at http://www.ros.org/wiki/image_pipeline/CameraInfo.\n\
00463 #\n\
00464 # The image_geometry package provides a user-friendly interface to\n\
00465 # common operations using this meta information. If you want to, e.g.,\n\
00466 # project a 3d point into image coordinates, we strongly recommend\n\
00467 # using image_geometry.\n\
00468 #\n\
00469 # If the camera is uncalibrated, the matrices D, K, R, P should be left\n\
00470 # zeroed out. In particular, clients may assume that K[0] == 0.0\n\
00471 # indicates an uncalibrated camera.\n\
00472 \n\
00473 #######################################################################\n\
00474 #                     Image acquisition info                          #\n\
00475 #######################################################################\n\
00476 \n\
00477 # Time of image acquisition, camera coordinate frame ID\n\
00478 Header header    # Header timestamp should be acquisition time of image\n\
00479                  # Header frame_id should be optical frame of camera\n\
00480                  # origin of frame should be optical center of camera\n\
00481                  # +x should point to the right in the image\n\
00482                  # +y should point down in the image\n\
00483                  # +z should point into the plane of the image\n\
00484 \n\
00485 \n\
00486 #######################################################################\n\
00487 #                      Calibration Parameters                         #\n\
00488 #######################################################################\n\
00489 # These are fixed during camera calibration. Their values will be the #\n\
00490 # same in all messages until the camera is recalibrated. Note that    #\n\
00491 # self-calibrating systems may \"recalibrate\" frequently.              #\n\
00492 #                                                                     #\n\
00493 # The internal parameters can be used to warp a raw (distorted) image #\n\
00494 # to:                                                                 #\n\
00495 #   1. An undistorted image (requires D and K)                        #\n\
00496 #   2. A rectified image (requires D, K, R)                           #\n\
00497 # The projection matrix P projects 3D points into the rectified image.#\n\
00498 #######################################################################\n\
00499 \n\
00500 # The image dimensions with which the camera was calibrated. Normally\n\
00501 # this will be the full camera resolution in pixels.\n\
00502 uint32 height\n\
00503 uint32 width\n\
00504 \n\
00505 # The distortion model used. Supported models are listed in\n\
00506 # sensor_msgs/distortion_models.h. For most cameras, \"plumb_bob\" - a\n\
00507 # simple model of radial and tangential distortion - is sufficent.\n\
00508 string distortion_model\n\
00509 \n\
00510 # The distortion parameters, size depending on the distortion model.\n\
00511 # For \"plumb_bob\", the 5 parameters are: (k1, k2, t1, t2, k3).\n\
00512 float64[] D\n\
00513 \n\
00514 # Intrinsic camera matrix for the raw (distorted) images.\n\
00515 #     [fx  0 cx]\n\
00516 # K = [ 0 fy cy]\n\
00517 #     [ 0  0  1]\n\
00518 # Projects 3D points in the camera coordinate frame to 2D pixel\n\
00519 # coordinates using the focal lengths (fx, fy) and principal point\n\
00520 # (cx, cy).\n\
00521 float64[9]  K # 3x3 row-major matrix\n\
00522 \n\
00523 # Rectification matrix (stereo cameras only)\n\
00524 # A rotation matrix aligning the camera coordinate system to the ideal\n\
00525 # stereo image plane so that epipolar lines in both stereo images are\n\
00526 # parallel.\n\
00527 float64[9]  R # 3x3 row-major matrix\n\
00528 \n\
00529 # Projection/camera matrix\n\
00530 #     [fx'  0  cx' Tx]\n\
00531 # P = [ 0  fy' cy' Ty]\n\
00532 #     [ 0   0   1   0]\n\
00533 # By convention, this matrix specifies the intrinsic (camera) matrix\n\
00534 #  of the processed (rectified) image. That is, the left 3x3 portion\n\
00535 #  is the normal camera intrinsic matrix for the rectified image.\n\
00536 # It projects 3D points in the camera coordinate frame to 2D pixel\n\
00537 #  coordinates using the focal lengths (fx', fy') and principal point\n\
00538 #  (cx', cy') - these may differ from the values in K.\n\
00539 # For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will\n\
00540 #  also have R = the identity and P[1:3,1:3] = K.\n\
00541 # For a stereo pair, the fourth column [Tx Ty 0]' is related to the\n\
00542 #  position of the optical center of the second camera in the first\n\
00543 #  camera's frame. We assume Tz = 0 so both cameras are in the same\n\
00544 #  stereo image plane. The first camera always has Tx = Ty = 0. For\n\
00545 #  the right (second) camera of a horizontal stereo pair, Ty = 0 and\n\
00546 #  Tx = -fx' * B, where B is the baseline between the cameras.\n\
00547 # Given a 3D point [X Y Z]', the projection (x, y) of the point onto\n\
00548 #  the rectified image is given by:\n\
00549 #  [u v w]' = P * [X Y Z 1]'\n\
00550 #         x = u / w\n\
00551 #         y = v / w\n\
00552 #  This holds for both images of a stereo pair.\n\
00553 float64[12] P # 3x4 row-major matrix\n\
00554 \n\
00555 \n\
00556 #######################################################################\n\
00557 #                      Operational Parameters                         #\n\
00558 #######################################################################\n\
00559 # These define the image region actually captured by the camera       #\n\
00560 # driver. Although they affect the geometry of the output image, they #\n\
00561 # may be changed freely without recalibrating the camera.             #\n\
00562 #######################################################################\n\
00563 \n\
00564 # Binning refers here to any camera setting which combines rectangular\n\
00565 #  neighborhoods of pixels into larger \"super-pixels.\" It reduces the\n\
00566 #  resolution of the output image to\n\
00567 #  (width / binning_x) x (height / binning_y).\n\
00568 # The default values binning_x = binning_y = 0 is considered the same\n\
00569 #  as binning_x = binning_y = 1 (no subsampling).\n\
00570 uint32 binning_x\n\
00571 uint32 binning_y\n\
00572 \n\
00573 # Region of interest (subwindow of full camera resolution), given in\n\
00574 #  full resolution (unbinned) image coordinates. A particular ROI\n\
00575 #  always denotes the same window of pixels on the camera sensor,\n\
00576 #  regardless of binning settings.\n\
00577 # The default setting of roi (all values 0) is considered the same as\n\
00578 #  full resolution (roi.width = width, roi.height = height).\n\
00579 RegionOfInterest roi\n\
00580 \n\
00581 ================================================================================\n\
00582 MSG: sensor_msgs/RegionOfInterest\n\
00583 # This message is used to specify a region of interest within an image.\n\
00584 #\n\
00585 # When used to specify the ROI setting of the camera when the image was\n\
00586 # taken, the height and width fields should either match the height and\n\
00587 # width fields for the associated image; or height = width = 0\n\
00588 # indicates that the full resolution image was captured.\n\
00589 \n\
00590 uint32 x_offset  # Leftmost pixel of the ROI\n\
00591                  # (0 if the ROI includes the left edge of the image)\n\
00592 uint32 y_offset  # Topmost pixel of the ROI\n\
00593                  # (0 if the ROI includes the top edge of the image)\n\
00594 uint32 height    # Height of ROI\n\
00595 uint32 width     # Width of ROI\n\
00596 \n\
00597 # True if a distinct rectified ROI should be calculated from the \"raw\"\n\
00598 # ROI in this message. Typically this should be False if the full image\n\
00599 # is captured (ROI not used), and True if a subwindow is captured (ROI\n\
00600 # used).\n\
00601 bool do_rectify\n\
00602 \n\
00603 ================================================================================\n\
00604 MSG: geometry_msgs/Vector3\n\
00605 # This represents a vector in free space. \n\
00606 \n\
00607 float64 x\n\
00608 float64 y\n\
00609 float64 z\n\
00610 ================================================================================\n\
00611 MSG: trajectory_msgs/JointTrajectory\n\
00612 Header header\n\
00613 string[] joint_names\n\
00614 JointTrajectoryPoint[] points\n\
00615 ================================================================================\n\
00616 MSG: trajectory_msgs/JointTrajectoryPoint\n\
00617 float64[] positions\n\
00618 float64[] velocities\n\
00619 float64[] accelerations\n\
00620 duration time_from_start\n\
00621 ================================================================================\n\
00622 MSG: sensor_msgs/JointState\n\
00623 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00624 #\n\
00625 # The state of each joint (revolute or prismatic) is defined by:\n\
00626 #  * the position of the joint (rad or m),\n\
00627 #  * the velocity of the joint (rad/s or m/s) and \n\
00628 #  * the effort that is applied in the joint (Nm or N).\n\
00629 #\n\
00630 # Each joint is uniquely identified by its name\n\
00631 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00632 # in one message have to be recorded at the same time.\n\
00633 #\n\
00634 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00635 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00636 # effort associated with them, you can leave the effort array empty. \n\
00637 #\n\
00638 # All arrays in this message should have the same size, or be empty.\n\
00639 # This is the only way to uniquely associate the joint name with the correct\n\
00640 # states.\n\
00641 \n\
00642 \n\
00643 Header header\n\
00644 \n\
00645 string[] name\n\
00646 float64[] position\n\
00647 float64[] velocity\n\
00648 float64[] effort\n\
00649 \n\
00650 ";
00651   }
00652 
00653   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> &) { return value(); } 
00654 };
00655 
00656 } // namespace message_traits
00657 } // namespace ros
00658 
00659 
00660 namespace ros
00661 {
00662 namespace message_traits
00663 {
00664 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > : public TrueType {};
00665 template<class ContainerAllocator> struct IsMessage< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator>  const> : public TrueType {};
00666 template<class ContainerAllocator>
00667 struct MD5Sum< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > {
00668   static const char* value() 
00669   {
00670     return "eb66ddf1bad009330070ddb3ebea8f76";
00671   }
00672 
00673   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> &) { return value(); } 
00674   static const uint64_t static_value1 = 0xeb66ddf1bad00933ULL;
00675   static const uint64_t static_value2 = 0x0070ddb3ebea8f76ULL;
00676 };
00677 
00678 template<class ContainerAllocator>
00679 struct DataType< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > {
00680   static const char* value() 
00681   {
00682     return "object_manipulation_msgs/ReactiveGraspResponse";
00683   }
00684 
00685   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> &) { return value(); } 
00686 };
00687 
00688 template<class ContainerAllocator>
00689 struct Definition< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > {
00690   static const char* value() 
00691   {
00692     return "\n\
00693 \n\
00694 ReactiveGraspResult result\n\
00695 \n\
00696 ================================================================================\n\
00697 MSG: object_manipulation_msgs/ReactiveGraspResult\n\
00698 # ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00699 \n\
00700 # the result of the reactive grasp attempt\n\
00701 \n\
00702 ManipulationResult manipulation_result\n\
00703 \n\
00704 \n\
00705 ================================================================================\n\
00706 MSG: object_manipulation_msgs/ManipulationResult\n\
00707 # Result codes for manipulation tasks\n\
00708 \n\
00709 # task completed as expected\n\
00710 # generally means you can proceed as planned\n\
00711 int32 SUCCESS = 1\n\
00712 \n\
00713 # task not possible (e.g. out of reach or obstacles in the way)\n\
00714 # generally means that the world was not disturbed, so you can try another task\n\
00715 int32 UNFEASIBLE = -1\n\
00716 \n\
00717 # task was thought possible, but failed due to unexpected events during execution\n\
00718 # it is likely that the world was disturbed, so you are encouraged to refresh\n\
00719 # your sensed world model before proceeding to another task\n\
00720 int32 FAILED = -2\n\
00721 \n\
00722 # a lower level error prevented task completion (e.g. joint controller not responding)\n\
00723 # generally requires human attention\n\
00724 int32 ERROR = -3\n\
00725 \n\
00726 # means that at some point during execution we ended up in a state that the collision-aware\n\
00727 # arm navigation module will not move out of. The world was likely not disturbed, but you \n\
00728 # probably need a new collision map to move the arm out of the stuck position\n\
00729 int32 ARM_MOVEMENT_PREVENTED = -4\n\
00730 \n\
00731 # specific to grasp actions\n\
00732 # the object was grasped successfully, but the lift attempt could not achieve the minimum lift distance requested\n\
00733 # it is likely that the collision environment will see collisions between the hand/object and the support surface\n\
00734 int32 LIFT_FAILED = -5\n\
00735 \n\
00736 # specific to place actions\n\
00737 # the object was placed successfully, but the retreat attempt could not achieve the minimum retreat distance requested\n\
00738 # it is likely that the collision environment will see collisions between the hand and the object\n\
00739 int32 RETREAT_FAILED = -6\n\
00740 \n\
00741 # indicates that somewhere along the line a human said \"wait, stop, this is bad, go back and do something else\"\n\
00742 int32 CANCELLED = -7\n\
00743 \n\
00744 # the actual value of this error code\n\
00745 int32 value\n\
00746 \n\
00747 ";
00748   }
00749 
00750   static const char* value(const  ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> &) { return value(); } 
00751 };
00752 
00753 template<class ContainerAllocator> struct IsFixedSize< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > : public TrueType {};
00754 } // namespace message_traits
00755 } // namespace ros
00756 
00757 namespace ros
00758 {
00759 namespace serialization
00760 {
00761 
00762 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> >
00763 {
00764   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00765   {
00766     stream.next(m.goal);
00767   }
00768 
00769   ROS_DECLARE_ALLINONE_SERIALIZER;
00770 }; // struct ReactiveGraspRequest_
00771 } // namespace serialization
00772 } // namespace ros
00773 
00774 
00775 namespace ros
00776 {
00777 namespace serialization
00778 {
00779 
00780 template<class ContainerAllocator> struct Serializer< ::object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> >
00781 {
00782   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00783   {
00784     stream.next(m.result);
00785   }
00786 
00787   ROS_DECLARE_ALLINONE_SERIALIZER;
00788 }; // struct ReactiveGraspResponse_
00789 } // namespace serialization
00790 } // namespace ros
00791 
00792 namespace ros
00793 {
00794 namespace service_traits
00795 {
00796 template<>
00797 struct MD5Sum<object_manipulation_msgs::ReactiveGrasp> {
00798   static const char* value() 
00799   {
00800     return "c0563380fdf71847bb0a949c87f47445";
00801   }
00802 
00803   static const char* value(const object_manipulation_msgs::ReactiveGrasp&) { return value(); } 
00804 };
00805 
00806 template<>
00807 struct DataType<object_manipulation_msgs::ReactiveGrasp> {
00808   static const char* value() 
00809   {
00810     return "object_manipulation_msgs/ReactiveGrasp";
00811   }
00812 
00813   static const char* value(const object_manipulation_msgs::ReactiveGrasp&) { return value(); } 
00814 };
00815 
00816 template<class ContainerAllocator>
00817 struct MD5Sum<object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > {
00818   static const char* value() 
00819   {
00820     return "c0563380fdf71847bb0a949c87f47445";
00821   }
00822 
00823   static const char* value(const object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> &) { return value(); } 
00824 };
00825 
00826 template<class ContainerAllocator>
00827 struct DataType<object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> > {
00828   static const char* value() 
00829   {
00830     return "object_manipulation_msgs/ReactiveGrasp";
00831   }
00832 
00833   static const char* value(const object_manipulation_msgs::ReactiveGraspRequest_<ContainerAllocator> &) { return value(); } 
00834 };
00835 
00836 template<class ContainerAllocator>
00837 struct MD5Sum<object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > {
00838   static const char* value() 
00839   {
00840     return "c0563380fdf71847bb0a949c87f47445";
00841   }
00842 
00843   static const char* value(const object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> &) { return value(); } 
00844 };
00845 
00846 template<class ContainerAllocator>
00847 struct DataType<object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> > {
00848   static const char* value() 
00849   {
00850     return "object_manipulation_msgs/ReactiveGrasp";
00851   }
00852 
00853   static const char* value(const object_manipulation_msgs::ReactiveGraspResponse_<ContainerAllocator> &) { return value(); } 
00854 };
00855 
00856 } // namespace service_traits
00857 } // namespace ros
00858 
00859 #endif // OBJECT_MANIPULATION_MSGS_SERVICE_REACTIVEGRASP_H
00860 


object_manipulation_msgs
Author(s): Matei Ciocarlie
autogenerated on Mon Oct 6 2014 02:58:12