DEVICE AND METHOD FOR CONTROLLING A ROBOT FOR PICKING UP AN OBJECT
A machine learning-based approach identifies non-grasp areas in camera images, enabling robots to safely pick up objects by determining a gripping pose that avoids sensitive areas, thus improving robotic handling flexibility and reliability.
Patent Information
- Application Number
- DE102021201921
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2024-11-07
- Estimated Expiration
- 2041-03-01
AI Technical Summary
Existing robotic systems struggle to safely pick up objects in various positions without grasping sensitive areas or obscuring features like barcodes, leading to potential damage or functionality loss.
A method using a machine learning model trained to identify non-grasp areas in camera images, combined with depth information and 3D modeling, allows the robot to determine a safe gripping pose by avoiding these areas.
Enables safe and flexible object manipulation by the robot, ensuring that sensitive areas are not gripped and critical features like barcodes remain visible, enhancing the reliability and versatility of robotic handling.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[0001] The present disclosure relates to apparatus and methods for controlling a robot to pick up an object.
[0002] In order to enable flexible production or processing of objects by a robot, it is desirable for the robot to be able to handle an object regardless of the position in which the object is placed in the robot's workspace. Therefore, the robot should be able to recognize the position of the object, at least insofar as it is relevant for picking up (e.g. gripping) the object. This means that it should be able to determine a picking pose (e.g. a gripping pose) for the object in order to correctly align its end effector (e.g. with a gripper) and move it to the correct position. However, as a side condition, the case may arise that an object may not be grasped everywhere, for example because otherwise a bar code would be covered by the gripper or because the object could be damaged if it is grasped at a sensitive point.Therefore, control methods for a robot device for picking up an object in different positions, which avoid gripping at certain locations of the object, are desirable.
[0003] Methods relating to aspects of robot control are known from DE 10 2019 122 790 A1, DE 11 2019 001 507 T5, DE 10 2017 108 727 A1, DE 10 2014 223 167 A1, EP 3 702 108 A1 and EP 2 263 837 B1.
[0004] According to various embodiments, a method for controlling a robot for picking up an object is provided, comprising: receiving a camera image of an object, determining an image region in the camera image that shows a location of the object where it should not be picked up by feeding the camera image to a machine learning model that is trained to assign values to regions in camera images that represent whether the regions show locations of an object where it should not be picked up, assigning the determined image region to a spatial region; and controlling the robot to grasp the object in a spatial region other than the determined one.
[0005] The method described above enables the safe picking up (e.g. gripping) of an object for any position of the object, while avoiding that the object is gripped at a position where it should not be gripped.
[0006] The object of the invention is therefore to enable the secure picking up (e.g., gripping) of an object in any position of the object, while preventing the object from being gripped at a location where it should not be. This object is achieved by a method and a device having the features of the independent claims.
[0007] Various examples of implementation are given below.
[0008] Embodiment 1 is the method for controlling a robot to pick up an object in different positions as described above.
[0009] Embodiment 2 is the method according to embodiment 1, comprising determining the image area for the object by training the machine learning model for mapping camera images of the object onto descriptor images, wherein a descriptor image onto which a camera image is to be mapped has a descriptor value of the location of the object for a location on the object that the camera image shows at an image position, at the image position, obtaining descriptor values of the location of the object at which it is not to be recorded, mapping the camera image onto a descriptor image using the trained machine learning model, determining an area in the descriptor image that has the acquired descriptor values, and determining the image area as the area of the camera image at the image position that corresponds to the determined area in the descriptor image.
[0010] Training such a machine learning model to determine the image area that shows a location of the object where it should not be captured also enables (with little additional effort) the detection of the object in space and thus appropriate control of the robot to capture the object.
[0011] Embodiment 3 is the method according to embodiment 2, wherein obtaining descriptor values of the location of the object at which it should not be recorded comprises mapping a camera image in which an area is marked as an area showing a location at which the object should not be recorded onto a descriptor image by means of the machine learning model, and selecting the descriptor values of the marked area from the descriptor image.
[0012] For example, a user can mark the area once (i.e. for one camera image) and areas that show a location of the object where it should not be recorded can then be determined using the descriptor values for all further camera images.
[0013] Embodiment 4 is the method according to embodiment 2 or 3, wherein the determined image area is assigned to the spatial area by means of the trained machine learning model by determining a 3D model of the object, wherein the 3D model has a grid of vertices to which descriptor values are assigned, determining a correspondence between positions in the camera image and vertices of the 3D model by assigning positions to vertices that have the same descriptor values as those that the descriptor image has at the positions, and assigning the determined image area to a location of the object according to the determined correspondence between positions in the camera image and vertices of the 3D model.
[0014] In this way, the machine learning model can also be used to assign the image area to the corresponding spatial area with little additional effort.
[0015] Embodiment 5 is the method according to embodiment 1, comprising determining the image area by training the machine learning model using a plurality of camera images and markings of one or more image areas in the camera images that show locations where an object should not be recorded, for detecting image areas in camera images that show locations of objects where objects should not be recorded, and determining the image area by feeding the camera image to the trained machine learning model.
[0016] If training data is available for such training of the machine learning model, e.g. images with examples of objects from barcodes that must not be covered, this offers an efficient way to determine the image area that shows a place of the object where it should not be recorded.
[0017] Embodiment 6 is the method according to one of the embodiments 1 to 5, wherein depth information for the image area of the camera image is received and the determined image area is assigned to the spatial area by means of the depth information.
[0018] The use of depth information, e.g. provided by an RGB-D camera, enables the determined image area to be assigned to a spatial area with little computational effort.
[0019] Embodiment 7 is a robot control device configured to perform a method according to any one of embodiments 1 to 6.
[0020] Embodiment 8 is a computer program comprising instructions that, when executed by a processor, cause the processor to perform a method according to any one of embodiments 1 to 6.
[0021] Embodiment 9 is a computer-readable medium storing instructions that, when executed by a processor, cause the processor to perform a method according to any one of embodiments 1 to 6.
[0022] In the drawings, similar reference characters generally refer to the same parts throughout the several views. The drawings are not necessarily to scale, emphasis instead being generally placed upon illustrating the principles of the invention. In the following description, various aspects are described with reference to the following drawings, in which: Fig. 1 shows a robot. Fig. 2 illustrates training a neural network according to one embodiment. Fig. 3 illustrates a method for determining a grasping pose. Fig. 4 illustrates the training for the related Fig. 3 described procedures for the case where a dense object network is used. Fig. Figure 5 illustrates the training for the related Fig. 3 described procedures for the case where a machine learning model is trained to detect non-grasp areas in camera images. Fig. 6 shows a method for controlling a robot to pick up an object.
[0023] The following detailed description refers to the accompanying drawings, which illustrate specific details and aspects of this disclosure in which the invention may be practiced. Other aspects may be utilized, and structural, logical, and electrical changes may be made without departing from the scope of the invention. The various aspects of this disclosure are not necessarily mutually exclusive, as some aspects of this disclosure may be combined with one or more other aspects of this disclosure to form new aspects.
[0024] Various examples are described in more detail below.
[0025] Fig. 1 shows a robot 100.
[0026] The robot 100 includes a robot arm 101, for example, an industrial robot arm for handling or assembling a workpiece (or one or more other objects). The robot arm 101 includes manipulators 102, 103, 104 and a base (or mount) 105 by means of which the manipulators 102, 103, 104 are supported. The term "manipulator" refers to the movable components of the robot arm 101, the actuation of which enables physical interaction with the environment, e.g., to perform a task. For control, the robot 100 includes a (robot) controller 106 designed to implement the interaction with the environment according to a control program. The last component 104 (furthest from the support 105) of the manipulators 102, 103, 104 is also referred to as the end effector 104 and may include one or more tools, such as a welding torch, a gripping instrument, a painting device or the like.
[0027] The other manipulators 102, 103 (located closer to the base 105) can form a positioning device, so that, together with the end effector 104, the robot arm 101 is provided with the end effector 104 at its end. The robot arm 101 is a mechanical arm that can provide similar functions to a human arm (possibly with a tool at its end).
[0028] The robot arm 101 may include joint elements 107, 108, 109 that connect the manipulators 102, 103, 104 to each other and to the support 105. A joint element 107, 108, 109 may have one or more joints, each of which can provide rotational movement (i.e., rotary movement) and / or translational movement (i.e., displacement) for associated manipulators relative to each other. The movement of the manipulators 102, 103, 104 may be initiated by actuators controlled by the controller 106.
[0029] The term "actuator" can be understood as a component configured to effect a mechanism or process in response to its drive. The actuator can implement instructions generated by the controller 106 (the so-called activation) into mechanical movements. The actuator, e.g., an electromechanical converter, can be configured to convert electrical energy into mechanical energy in response to its drive.
[0030] The term "controller" can be understood as any type of logic-implementing entity, which may, for example, include a circuit and / or a processor capable of executing software, firmware, or a combination thereof stored in a storage medium, and which can issue instructions, e.g., to an actuator in the present example. The controller can, for example, be configured by program code (e.g., software) to control the operation of a system, a robot in the present example.
[0031] In the present example, the controller 106 includes one or more processors 110 and a memory 111 that stores program code and data based on which the processor 110 controls the robot arm 101. According to various embodiments, the controller 106 controls the robot arm 101 based on a machine learning model 112 stored in the memory 111.
[0032] According to various embodiments, the machine learning model 112 is designed and trained to enable the robot 100 (specifically the controller) to recognize locations on an object 113 where the object 113 should not be grasped. For example, the object 113 may have a part 115 that is sensitive (e.g., a box-shaped object may have a cut-out window where it can be easily damaged), or a barcode (or QR code) 116 may be provided that should not be obscured by the end effector 114 because it should be read when the robot arm 101 holds the object 113. By recognizing the locations on the object 113 where the object 113 should not be grasped (hereinafter also referred to as non-grasping locations), the robot 100 is enabled to handle objects that have such locations, which occurs in many applications.
[0033] For example, robot 100 may be equipped with one or more cameras 114 that allow it to capture images of its workspace. Camera 114 is attached, for example, to robot arm 101, allowing the robot to capture images of object 113 from different perspectives by moving robot arm 101 around.
[0034] This allows the robot 100, on the one hand, to determine the pose of the object 113, and on the other hand, the machine learning model 111 can be trained to identify areas in a camera image that show non-graspable locations. By knowing the pose 113 and the non-graspable locations, the controller 106 can determine a grasping pose for the robot (i.e., the position and orientation of the end effector 104) for grasping (or generally for picking up) the object 113, which prevents the robot from grasping a non-graspable location of the robot.
[0035] The camera 114 provides, for example, images with depth information (e.g., RGB-D images) that enable the control device 106 to determine the pose of the object 113 from one or more camera images (possibly from different perspectives).
[0036] However, the control device 106 can also implement such a machine learning model 112, the output of which it can use to determine the pickup pose (e.g., a grasping pose or a suction pose) for the object 113.
[0037] An example of such a machine learning model 112 for object recognition is a dense object network. A dense object network maps an image (e.g., an RGB image provided by the camera 114) to an arbitrary dimensional (dimension D) descriptor space image. However, other machine learning models 112 can also be used to determine the grasping pose of the object 113, in particular those that do not necessarily generate a "dense" feature map, but merely assign descriptor values to specific points (e.g., corners) of the object.
[0038] The dense object network is a neural network trained using self-supervised learning to output a descriptor space image for an input image. If a 3D model (e.g., a CAD (computer-aided design) model) of the object is known, which is typically the case for industrial assembly or machining tasks, the dense object network can also be trained using supervised learning.
[0039] For this purpose, for example, a target image is generated for each camera image, i.e. pairs of camera images and target images are formed and these pairs of training input image and associated target image are used as training data to train a neural network, as in Fig. 2 illustrates.
[0040] Fig. 2 illustrates training a neural network 200 according to one embodiment.
[0041] The neural network 200 is a fully convolutional network that maps an h × w × 3 tensor (input image) to an h × w × D tensor (output image).
[0042] It comprises several stages 204 of convolutional layers, followed by a pooling layer, upsampling layers 205 and skip connections 206 to combine the outputs of different layers.
[0043] For training, the neural network 200 receives a training input image 201 and outputs an output image 202 with pixel values in descriptor space (e.g., color components according to descriptor vector components). A training loss is computed between the output image 202 and the target image 203 associated with the training input image. This can be done for a batch of training input images, and the training loss can be averaged across the training input images. The weights of the neural network 200 are trained using stochastic gradient descent using the training loss. The training loss computed between the output image 202 and the target image 203 is, for example, an L2 loss function (to minimize a pixel-wise least-squares error between the target image 203 and the output image 202).
[0044] The training input image 201 depicts an object, and the target image and the output image contain vectors in the descriptor space. The vectors in the descriptor space can be mapped to colors, so that the output image 202 (as well as the target image 203) resemble a heatmap of the object.
[0045] The vectors in the descriptor space (also called (dense) descriptors) are d-dimensional vectors (e.g., d is 1, 2, or 3) assigned to each pixel in the respective image (e.g., each pixel of the input image 201, assuming that the input image 201 and the output image 202 have the same dimension). The dense descriptors implicitly encode the surface topology of the object shown in the input image 201, invariant to its pose or the camera position.
[0046] If the machine learning model 112 is used to generate camera images from descriptor images (like a dense object network), the procedure is as follows, for example: a. Registering camera images for an object type (e.g., a specific box) from different perspectives. This can be done using a robot with a camera attached or with a handheld camera. b. Training the machine learning model 112 to output a descriptor image for camera images of this object type. This results in a machine learning model that assigns a descriptor value (e.g., feature vector) to each surface point of the object, regardless of the perspective in the camera image. c. In a representative camera image of the object, the user marks the non-graspable area (or areas) for the object shown. d. By tracking the surface points of the object thus identified by the user using the descriptor values, the controller 106 can automatically detect non-grasp areas (i.e., areas showing non-graspable locations of the object) in newly acquired camera images.
[0047] As an alternative to the above procedure, the machine learning model 112 can also be trained to recognize non-grasping areas directly in the camera images. For example, the machine learning model is a convolutional network (e.g., a Mask-RCNN) that is trained to segment camera images accordingly. This is possible if training images with labels of non-grasping areas are available. This can be suitable, for example, in the case that the non-grasping areas are those that have barcodes, because then the machine learning model 112 can be trained to find barcodes in images. Instead of the target image 203 with descriptor values in Fig. 3, for example, a target image appears that indicates a segmentation of the input camera image 201 (e.g., into barcode areas and non-barcode areas). The architecture of the neural network can be adapted accordingly to this task.
[0048] Fig. 3 illustrates a method for determining a grasping pose, e.g., performed by the controller 106.
[0049] A camera 114 captures a camera image 301 of the object 113 to be grasped, e.g., an RGB-D image. This image is fed to a trained machine learning model 302, e.g., a dense object net or a neural network for detecting non-graspable areas in camera images. From the output of the neural network, the controller determines the non-graspable areas 303 in the camera image (either via the descriptor values assigned to the various image areas or directly via the segmentation of the camera image output by the neural network).
[0050] At 304, the controller 106 projects each non-grasping area 303 onto 3D coordinates, e.g., onto non-grasping points of the object or also into 3D coordinates in the workspace of the robot arm 101, e.g., 3D coordinates in the coordinate system of a robot cell (using the known geometry of the robot workspace and intrinsic and extrinsic calibration of the camera). This can be done using depth information. Alternatively, this can be done using the descriptor values by determining the object pose that matches the observed camera image (so that the descriptor values appear at the correct locations in the camera image or the associated descriptor image). For this purpose, the associated PnP (Perspective-n-Point) problem is solved.
[0051] The controller then excludes the determined 3D coordinates from the possible grasp poses (ie, grasp poses that would grasp the object at locations that overlap with the determined 3D coordinates) in 305.
[0052] The control device (e.g., a grasping plan module) then determines a safe grasping pose 306 in which the non-grasping points of the object are not grasped.
[0053] Fig. 4 illustrates the training for the related Fig. 3 described methods for the case where a dense object network (or more generally a machine learning model that maps camera images to descriptor images) is used.
[0054] In 401, camera images are recorded from different perspectives of the object type to be grasped.
[0055] At 402, the dense object network is trained using the camera images to map camera images to descriptor images (according to a mapping of surface points (e.g., vertices) of the object to descriptor values, which can be predefined for supervised learning or learned simultaneously for unsupervised learning). Herein, as is common in the context of 3D models, the grid points of a 3D object model are referred to as "vertices" (singular "vertex").
[0056] In 403, a user defines the non-graspable area in one of the images, e.g., by specifying a rectangular frame of the non-graspable area with the mouse.
[0057] This results in a trained learning model 404 that can recognize the non-grasp location of the object, which the user has specified by defining the non-grasp area in the camera image, in newly captured camera images regardless of the perspective.
[0058] Fig. Figure 5 illustrates the training for the related Fig. 3 described procedures for the case where a machine learning model is trained (supervised) to detect non-grasping areas (directly) in camera images, i.e. to segment an input camera image accordingly.
[0059] In 501, images containing examples of non-graspable areas (e.g., barcodes) are collected. In 502, each of the collected images is assigned a label of the non-graspable area in the image (e.g., a corresponding segmentation image). In 503, a neural network for detecting non-graspable areas in newly captured camera images is trained using the training data thus generated.
[0060] In summary, according to various embodiments, a method as in Fig. 6 is provided as an illustration.
[0061] In summary, according to various embodiments, a method is provided as described in Fig. 6 is shown.
[0062] Fig. 6 shows a flowchart for a method for controlling a robot to pick up an object, for example carried out by a control device 106.
[0063] In 601, a camera image of an object is received (e.g., taken by a camera).
[0064] In 602, an image area in the camera image is determined that shows a location of the object where it should not be recorded. This is done by feeding the camera image to a machine learning model that is trained to assign values to areas in camera images that represent whether the areas show locations of an object where it should not be recorded.
[0065] These values could, for example, be descriptor values or values that indicate a segmentation of the camera image (e.g. generated by a convolutional network trained for segmentation).
[0066] In 603, the determined image area is assigned to a spatial area.
[0067] In 604, the robot is controlled to grasp the object in a spatial area other than the determined one.
[0068] In other words, according to various embodiments, a region is identified in a camera image by means of a machine learning model (e.g., by means of a neural network), which region shows a location of an object at which the object should not be captured (e.g., grasped or sucked up). This region of the camera image is then mapped to a spatial region, e.g., using depth information or by solving a PnP problem. This spatial region (i.e., the location of the object in space shown in the identified region) is then excluded from capture, e.g., grasping poses that would grasp (or suck up) the object at this location are excluded from the set of grasping poses from which, for example, a planning software module selects.
[0069] For example, "picking up" means grasping with a gripper. However, other types of holding mechanisms can also be used, such as a suction cup to suck the object in. Furthermore, "picking up" does not necessarily mean moving the object alone; for example, a component of a larger structure can also be picked up and bent without separating it from the larger structure.
[0070] The machine learning model is, for example, a neural network. However, other machine learning models can also be used if they are trained accordingly.
[0071] According to various embodiments, the machine learning model assigns descriptors to pixels of the object (in the image plane of the respective camera image). This can be viewed as indirectly encoding the surface topology of the object. This connection between descriptors and the surface topology can be made explicit by rendering to map the descriptors to the image plane. It should be noted that descriptor values at faces (i.e., points that are not vertices) of the object model can be determined using interpolation. For example, if a face is given by three vertices of the object model with their respective descriptor values y1, y2, y3, then at any point on the face, the descriptor value y can be calculated as a weighted sum of these values w1 · y1 + w2 · y2 + w3 · y3. In other words, the descriptor values at the vertices are interpolated.
[0072] According to various embodiments, the machine learning model is trained with training data image pairs, each training data image pair comprising a training input image of the object and a target image, the target image being generated by projecting the descriptors of the vertices visible in the training input image onto the training input image plane according to the pose of the object in the training input image.
[0073] According to another embodiment, the machine learning model is trained with training data images, wherein each training data image has as ground truth a label of the areas of the training data image that show locations of the object that should not be grasped.
[0074] The images together with their associated target images or labels are used for supervised training of the machine learning model.
[0075] The procedure of Fig.6 can be carried out by one or more computers that include one or more data processing devices. The components of the data processing device can be realized by one or more circuits. In one embodiment, a “circuit” is to be understood as any unit that implements logic, and which can be hardware, software, firmware, or a combination thereof. Thus, in one embodiment, a “circuit” can be a hard-wired logic circuit or a programmable logic circuit, such as a programmable processor. A “circuit” can also be understood as a processor that executes software, e.g., any type of computer program, such as a computer program in programming code for a virtual machine. In one embodiment, a “circuit” can be understood as any type of implementation of the functions described herein.
[0076] The camera images are, for example, RGB images or RGB-D images, but can also be other types of camera images, such as thermal images. The grasp pose is determined, for example, to control a robot to pick up an object in a robot cell (e.g., from a box), e.g., to assemble a larger object from sub-objects, to move objects, etc.
[0077] Although specific embodiments have been illustrated and described herein, one of ordinary skill in the art should recognize that a variety of alternative and / or equivalent implementations may be substituted for the specific embodiments shown and described without departing from the scope of the present invention. This application is intended to cover any adaptations or variations of the specific embodiments discussed herein. Therefore, it is intended that this invention be limited only by the claims and their equivalents.
Claims
[1] A method for controlling a robot (100) for picking up an object (113), comprising: Receiving a camera image (301) of an object (113); Determining an image area in the camera image (301) that shows a location of the object (113) where it should not be recorded by feeding the camera image (301) to a machine learning model (404) that is trained to assigning values to areas in camera images (301) that represent whether the areas show locations of an object (113) where it should not be recorded; Assigning the determined image area to a spatial area; and Controlling the robot (100) to grip the object (113) in a spatial area other than the determined one. [2] The method of claim 1, comprising determining the image area by training, for the object (113), the machine learning model (404) for mapping camera images (301) of the object (113) onto descriptor images, wherein a descriptor image onto which a camera image (301) is to be mapped has, for a location of the object (113) which the camera image (301) shows at an image position, a descriptor value of the location of the object (113) at the image position; Obtaining descriptor values of the location of the object (113) at which it should not be recorded; mapping the camera image (301) onto a descriptor image using the trained machine learning model (404); Determining a region in the descriptor image that has the acquired descriptor values; and Determining the image area as the area of the camera image (301) at the image position that corresponds to the determined area in the descriptor image. [3] The method of claim 2, wherein obtaining descriptor values of the location of the object at which it is not to be recorded comprises mapping a camera image in which an area is marked as an area showing a location at which the object (113) is not to be recorded, by means of the machine learning model (404) onto a descriptor image and selecting the descriptor values of the marked area from the descriptor image. [4] Method according to claim 2 or 3, wherein the determined image area is assigned to the spatial area by means of the trained machine learning model (404) by Determining a 3D model of the object (113), the 3D model having a grid of vertices assigned descriptor values; Determining a correspondence between positions in the camera image (301) and vertices of the 3D model by assigning positions to vertices that have the same descriptor values as those that the descriptor image has at the positions; and Assigning the determined image area to a location of the object (113) according to the determined correspondence between positions in the camera image (301) and Vertices of the 3D model. [5] The method according to claim 1, comprising determining the image area by training the machine learning model using a plurality of camera images (301) and markings of one or more image areas in the camera images (301) that show locations at which an object (113) should not be recorded, for detecting image areas in camera images (301) that show locations of objects (113) at which objects (113) should not be recorded; and determining the image area by feeding the camera image (301) to the trained machine learning model (404). [6] Method according to one of claims 1 to 5, wherein depth information for the image area of the camera image (301) is received and the determined image area is assigned to the spatial area by means of the depth information. [7] Robot control device (106) arranged to carry out a method according to one of claims 1 to 6. [8] A computer program comprising instructions which, when executed by a processor (110), cause the processor (110) to perform a method according to any one of claims 1 to 6. [9] A computer-readable medium (111) storing instructions that, when executed by a processor (110), cause the processor (110) to perform a method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Determining Object-Related Gripping Spaces Using a Robot
DE102014223167A1
Method for creating a database with gripper recesses, method for controlling a robot, computer-readable storage medium, and handling system
DE102017108727A1
Robot control system
DE102019122790A1
Method and system for an inventory system and non-volatile computer-readable medium
DE112019001507T5
Operation teaching system and operation teaching method
EP2263837B1
