Method, robot, device, medium and product for controlling operation of a robot arm
By constructing a three-dimensional model and determining the contour centerline through depth images, combined with stiffness testing, it solves the problem of inaccurate operation of specific acupuncture points or muscle areas in traditional robotic arm operations, and achieves precise operation of the robotic arm.
Patent Information
- Application Number
- CN202211582270.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-12-09
AI Technical Summary
Traditional robotic arm operation and control methods require manual pre-operation and cannot accurately operate specific acupuncture points or muscle areas.
By acquiring the depth image of the target object, constructing a three-dimensional model, determining the contour centerline, demarcating the area to be operated, and conducting stiffness testing to screen the target area, the robot arm can accurately operate a specific area.
It achieves precise operation of specific parts, improves the operating accuracy and efficiency of the robotic arm, and reduces manual intervention.
Smart Images

Figure CN115972202B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of robot vision and mechanical arm precision force control, and in particular to a method, robot, computer equipment, medium and product for controlling the operation of a mechanical arm. Background Art
[0002] With the continuous development of modern science and technology, more and more robots are used to replace manual operations. For example, robotic arms are used to massage the human body. During massage, the acupoints or muscle areas need to be massaged repeatedly in a specific way.
[0003] In traditional technology, when controlling the operation of a robotic arm, it is usually done manually in advance (such as by a masseur performing a manual massage). The visual and force data generated during the manual operation will be recorded and processed by the robotic arm, and then the robotic arm will imitate based on this data.
[0004] However, this method still requires manual operation in advance to obtain a fixed operation route, which makes it impossible for the robotic arm to accurately perform designated operations on certain areas, such as massaging certain specific acupoints or muscles. Summary of the invention
[0005] Based on this, it is necessary to provide a method, robot, computer equipment, medium and product that can accurately control the operation of the robotic arm in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for controlling the operation of a robotic arm, the method comprising:
[0007] Acquire a depth image of the target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image;
[0008] Acquire multiple target feature points in the target three-dimensional model, and determine the contour center line of the target object based on the multiple target feature points and the depth image;
[0009] Determine the area to be operated on the target object based on the center line of the contour;
[0010] Control the robot arm to perform a stiffness test on the area to be operated, and select a target area from the area to be operated according to the stiffness test result;
[0011] Control the robotic arm to perform specified operations on the target area of the target object.
[0012] In one of the embodiments, the step of obtaining a target three-dimensional model of the target object according to the depth image includes: obtaining a standard three-dimensional model;
[0013] Acquire model parameters of a three-dimensional model of the target object according to the depth image;
[0014] Obtain the three-dimensional coordinates corresponding to the target object based on the model parameters;
[0015] The standard 3D model is adjusted based on the 3D coordinates to obtain a 3D model of the target object.
[0016] In one embodiment, the step of determining the contour centerline of the target object based on the plurality of target feature points and the depth image comprises:
[0017] Segment the depth image to obtain the two-dimensional plane contour of the target object;
[0018] A plurality of target feature points are projected to the area where the two-dimensional plane contour is located, and the contour center line of the target object is obtained based on the projected target feature points.
[0019] In one embodiment, the target feature point is a feature point on the central trunk of the target three-dimensional model, and the target feature point includes a first feature point, a second feature point, and a third feature point; and the step of obtaining the contour center line of the target object based on the projected target feature point includes:
[0020] Uniformly inserting a first number of feature points between the projected first feature point and the second feature point;
[0021] uniformly inserting a second number of feature points between the projected second feature point and the third feature point;
[0022] The straight line connecting the feature point and the projected target feature point is used as the contour centerline of the target object.
[0023] In one embodiment, the step of determining the target object's area to be operated based on the contour centerline includes:
[0024] Get the starting point and end point of the target line segment of the contour centerline;
[0025] Obtain a first straight line passing through the starting point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment respectively;
[0026] Determine a first intersection point where the first straight line intersects the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects the right side of the two-dimensional plane contour;
[0027] The midpoint of the line between the first intersection point and the starting point is used as the first target vertex, and the midpoint of the line between the second intersection point and the starting point is used as the second target vertex;
[0028] Determine a third intersection point where the second straight line intersects the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects the right side of the two-dimensional plane contour;
[0029] The midpoint of the line between the third intersection point and the end point is used as the third target vertex, and the midpoint of the line between the fourth intersection point and the end point is used as the fourth target vertex;
[0030] A rectangle formed by the first target vertex, the second target vertex, the third target vertex and the fourth target vertex is used as a to-be-operated area of the target object.
[0031] In one embodiment, the step of controlling the robot arm to perform a stiffness test on the area to be operated, and screening the target area from the area to be operated according to the stiffness test result includes:
[0032] The area to be operated is divided according to a preset standard to obtain multiple grid areas;
[0033] Control the robotic arm to perform stiffness tests on each grid area to obtain multiple stiffness values;
[0034] A mesh area corresponding to a stiffness value that meets the target value requirement among multiple stiffness values is used as the target area.
[0035] In a second aspect, the present application further provides a device for controlling the operation of a robotic arm, the device comprising:
[0036] A three-dimensional model acquisition module is used to acquire a depth image of a target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image;
[0037] A contour centerline determination module is used to obtain a plurality of target feature points in a target three-dimensional model, and determine a contour centerline of the target object based on the plurality of target feature points and the depth image;
[0038] A module for determining an area to be operated, used for determining an area to be operated on a target object based on a contour center line;
[0039] A target area screening module is used to perform a stiffness test on the area to be operated, and screen the target area from the area to be operated according to the stiffness test result;
[0040] The robot arm operation module is used to control the robot arm to perform specified operations on the target area of the target object.
[0041] In a third aspect, the present application further provides a robot, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing any one of the method steps in the first aspect when executing the computer program.
[0042] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the method steps in the first aspect when executing the computer program.
[0043] In a fifth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method steps of any one of the first aspects are implemented.
[0044] In a sixth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method steps of any one of the first aspects.
[0045] The above-mentioned method, device, robot, computer equipment, storage medium and computer program product for controlling the operation of the robotic arm obtain a depth image of the target object in a preset posture, and obtain a target three-dimensional model of the target object based on the depth image, and then determine the contour center line of the target object based on the feature points and the depth image in the target three-dimensional model, determine the area to be operated of the target object based on the contour center line, and then control the robotic arm to perform a stiffness test on the area to be operated, and screen the target area from the area to be operated based on the stiffness test result, so as to control the robotic arm to perform a specified operation on the target area of the target object, and can accurately obtain the target area of the target object that needs to be operated, and realize precise operation on a specific part. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A diagram of an application environment of a method for controlling the operation of a robotic arm in one embodiment;
[0047] Figure 2 A schematic flow chart of a method for controlling the operation of a robotic arm in one embodiment;
[0048] Figure 3 A schematic diagram of a process for obtaining a target three-dimensional model in one embodiment;
[0049] Figure 4 is a schematic diagram of the structure of a standard three-dimensional model in an embodiment;
[0050] Figure 5 is a schematic diagram of comparison between depth information and a three-dimensional model in one embodiment;
[0051] Figure 6 A schematic diagram of the structure of the contour center line in one embodiment;
[0052] Figure 7 A schematic diagram of a process for obtaining a target area in an embodiment;
[0053] Figure 8 A schematic diagram of a process flow of a massage method using AI vision and robot force control in one embodiment;
[0054] Fig. 9A schematic diagram of a process for optimizing a three-dimensional human body model in one embodiment;
[0055] Fig.10 is a structural block diagram of a device for controlling a robotic arm in one embodiment;
[0056] Fig.11 is a block diagram of the internal structure of a robot in one embodiment;
[0057] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] The method for controlling the operation of a mechanical arm provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the computer device 102 communicates with the robot 104 through the network. Among them, the computer device 102 and the robot 104 can be used separately to execute the control robot arm operation method of the present application, or can be used together to execute the control robot arm operation method of the present application. Taking the computer device and the robot as an example, the computer device 102 or the robot 104 is used to obtain a depth image of the target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image, obtain multiple target feature points in the target three-dimensional model, and determine the contour center line of the target object according to the multiple target feature points and the depth image, determine the target object based on the contour center line. The area to be operated, and control the robot arm to perform a stiffness test on the area to be operated. The computer device 102 or the robot 104 is also used to filter the target area from the area to be operated according to the stiffness test results, and control the robot arm to perform a specified operation on the target area of the target object. Among them, the computer device 102 can be, but is not limited to, various personal computers, laptops, tablet computers and various robots.
[0060] In one embodiment, Figure 2 As shown, a method for controlling the operation of a robotic arm is provided, and the method is applied to Figure 1 The computer device 102 in the example is used as an example, wherein the computer device 102 may be a terminal. The method includes the following steps:
[0061] S202: Acquire a depth image of the target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image.
[0062] Among them, the preset postures may include but are not limited to prone posture, side-lying posture, etc. Taking controlling the robotic arm to massage the human back as an example, the depth camera collects a depth image (RGBD) of the target object in the prone posture within the field of view, and the terminal obtains the collected depth image from the depth camera, and uses deep learning to obtain the parameters of the human body three-dimensional model, where the parameters represent the three-dimensional coordinates of each point in the human body. The terminal adjusts the standard three-dimensional model based on the parameters of the human body three-dimensional model obtained from the depth image to obtain the target three-dimensional model of the target object.
[0063] Among them, the depth image is an image that uses the distance (depth) from the image collector to each point in the scene as the pixel value, which can reflect the geometric shape of the visible surface of the scene. The standard 3D model refers to the 3D model of the human body in the camera coordinate system obtained according to the human body mesh recovery algorithm. The camera coordinate system is an image coordinate system in which the origin is the optical center of the camera, the X-axis and Y-axis are parallel to the X-axis and Y-axis of the image coordinate system respectively, and the Z-axis is the optical axis of the camera. The terminal adjusts the points in the standard 3D model according to the 3D coordinates of each point in the human body to obtain the target 3D model of the target object.
[0064] S204: Acquire multiple target feature points in the target three-dimensional model, and determine the contour center line of the target object according to the multiple target feature points and the depth image.
[0065] Here, we still take controlling a robotic arm to massage the human back as an example. Multiple target feature points in the target three-dimensional model are all points along the back spine of the target object. The terminal uses a segmentation algorithm to segment the depth image to obtain the two-dimensional contour range of the target object, that is, the two-dimensional plane back image of the target object. Then, multiple feature points in the three-dimensional model are projected into the two-dimensional contour range of the target object to obtain feature points along the back spine in the two-dimensional plane of the target object. The terminal evenly inserts a number of feature points between these feature points to obtain all feature points along the two-dimensional spine of the target object. These feature points are connected, and the resulting connecting line is represented as the two-dimensional spine of the target object, that is, the contour centerline of the target object.
[0066] S206: Determine a to-be-operated area of the target object based on the contour center line.
[0067] Among them, the contour center line and the two-dimensional contour range can represent all areas of the target object on the two-dimensional plane. The area to be operated can be represented by a part of the contour center line. For the back of the human body, the massage focus is usually on the lower back waist. In this way, the terminal obtains the end part of the contour center line, and according to the contour center line of the end part, obtains the back contour range corresponding to the end part as the target object with operation area. In actual applications, the area to be operated can also be the contour range of the upper end of the back. According to actual application requirements, the terminal can obtain any part on the contour center line to obtain the area to be operated.
[0068] S208: Control the robot arm to perform a stiffness test on the area to be operated, and select a target area from the area to be operated according to the stiffness test result.
[0069] Among them, stiffness refers to the ability of a material or structure to resist elastic deformation when subjected to force. After determining the area to be operated of the target object, the terminal sends the area information to the robotic arm, and controls the robotic arm to perform a stiffness test on the corresponding area to be operated on the back of the target object. The robotic arm presses different points of the back area to be operated of the target object with a fixed force, and sends the reaction force received by the end of the robotic arm to the terminal for storage. The reaction force is the stiffness. The stiffness of different areas of the back of the human body is not the same. For example, the bone position is the position with the greatest stiffness. The terminal screens according to the saved stiffness data. First, the data with excessive stiffness can be eliminated, and the corresponding points can be excluded to screen the target area from the area to be operated.
[0070] S210: Control the robot arm to perform a designated operation on a target area of the target object.
[0071] Among them, the terminal sends the target area information to the robotic arm, and controls the robotic arm to operate the target area in a specified manner, such as massaging the target area on the back of the target object with a certain force.
[0072] In the above method for controlling the operation of the robotic arm, a depth image of the target object in a preset posture is obtained, and a target three-dimensional model of the target object is obtained based on the depth image, and then the contour centerline of the target object is determined based on the feature points in the target three-dimensional model and the depth image, and the area to be operated of the target object is determined based on the contour centerline, and then the robotic arm is controlled to perform a stiffness test on the area to be operated, and the target area is screened from the area to be operated according to the stiffness test result, so as to control the robotic arm to perform specified operations on the target area of the target object, so as to accurately obtain the target area of the target object that needs to be operated, and realize precise operation of specific parts.
[0073] In one embodiment, Figure 3 As shown, the step of obtaining a target three-dimensional model of the target object according to the depth image includes:
[0074] S302: Acquire a standard three-dimensional model.
[0075] Among them, the standard 3D model refers to the 3D model of the human body in the camera coordinate system obtained by the human body mesh recovery algorithm, which can also be called a human body parameterized model (A Skinned Multi-Person Linear Model, SMPL). The human body can be understood as the sum of a basic model and deformation based on the model. Principal component analysis (PCA) is performed on the deformation to obtain low-dimensional parameters that describe the shape - shape parameters (shape). At the same time, a motion tree is used to represent the posture of the human body, that is, the rotation relationship between each joint point and the parent node of the motion tree. This relationship can be expressed as a 3D vector. Finally, the local rotation vector of each joint point constitutes the posture parameter (pose) of the model. Specifically, Figure 4 As shown, Figure 4 It is the SMPL human body model, which is a standard three-dimensional model.
[0076] S304: Acquire model parameters of the three-dimensional model of the target object according to the depth image.
[0077] Among them, after the terminal obtains the depth image, deep learning is used to obtain the parameters of the human body three-dimensional model.
[0078] S306: Acquire the three-dimensional coordinates corresponding to the target object based on the model parameters.
[0079] Among them, the parameters represent the three-dimensional coordinates of each point in the human body, that is, the three-dimensional coordinates corresponding to the target object.
[0080] S308: Adjust the standard three-dimensional model based on the three-dimensional coordinates to obtain a three-dimensional model of the target object.
[0081] Among them, Figure 5 As shown in the figure, the black points represent the standard 3D model, and the black entities are the human body model and the actual scene obtained based on the image. It can be seen that compared with the human body model in the actual 3D scene obtained based on the depth image, the standard 3D model has differences in posture and position of the target object. The terminal adjusts the standard 3D model based on the 3D coordinates obtained from the depth image to obtain the 3D model of the target object.
[0082] In this embodiment, by obtaining a standard three-dimensional model and obtaining model parameters of the three-dimensional model of the target object based on the depth image, and then obtaining the three-dimensional coordinates corresponding to the target object based on the model parameters, and adjusting the standard three-dimensional model based on the three-dimensional coordinates, the three-dimensional model of the target object can be accurately obtained, providing a basis for obtaining the contour centerline of the target object.
[0083] In one embodiment, the step of determining the contour centerline of the target object based on multiple target feature points and a depth image includes: segmenting the depth image to obtain a two-dimensional plane contour of the target object; projecting multiple target feature points to the area where the two-dimensional plane contour is located, and obtaining the contour centerline of the target object based on the projected target feature points.
[0084] Among them, Figure 4 As shown, multiple target feature points: 3012, 3502 and 3159 are all points along the back spine of the human body. When the terminal adjusts the three-dimensional model, the positions of the multiple feature points are fixed, which can represent the points along the back spine of the target object, such as Figure 5 As shown in the figure, the gray straight line indicates the direction of the back spine. In actual applications, the spine line is different due to the different postures of the target object. Therefore, the terminal performs segmentation processing on the actual depth image to obtain the two-dimensional plane contour of the target object. Then, the terminal projects multiple target feature points to the area where the two-dimensional plane contour is located, and evenly inserts several feature points between these feature points to obtain all feature points along the two-dimensional spine line of the target object. These feature points are connected, and the resulting connection line is represented as the two-dimensional spine line of the target object, that is, the center line of the target object's contour.
[0085] In this embodiment, the depth image is segmented to obtain the two-dimensional plane contour of the target object, and then multiple target feature points are projected to the area where the two-dimensional plane contour is located, and the contour center line of the target object is obtained based on the projected target feature points. The actual contour center line of the target object can be accurately obtained, thereby ensuring that the area to be operated of the target object can be accurately obtained according to the contour center line.
[0086] In one embodiment, the target feature points are feature points on the central trunk of the target three-dimensional model, and the target feature points include a first feature point, a second feature point and a third feature point; the step of obtaining the contour centerline of the target object based on the projected target feature points includes: uniformly inserting a first number of feature points between the projected first feature point and the second feature point; uniformly inserting a second number of feature points between the projected second feature point and the third feature point; and using the straight line connecting the feature points and the projected target feature points as the contour centerline of the target object.
[0087] Among them, Figure 6 As shown, the first feature point after projection is A, the second feature point is B, and the third feature point is C. The terminal inserts 10 feature points between AB, that is, Figure 6 The small black dots in the figure are inserted between BC and 4 assumed feature points, so that the lines connecting these feature points with A, B, and C are the contour center lines of the target object, such as Figure 6 The gray line in the
[0088] In this embodiment, by evenly inserting a first number of feature points between the projected first feature point and the second feature point, and evenly inserting a second number of feature points between the projected second feature point and the third feature point, and then using the straight line connecting the feature points and the projected target feature points as the contour centerline of the target object, the actual contour centerline of the target object can be accurately obtained, thereby ensuring that the target object's area to be operated can be accurately obtained based on the contour centerline.
[0089] In one embodiment, the step of determining the target object's area to be operated based on the contour center line includes: obtaining the starting point and the end point of the target line segment of the contour center line; respectively obtaining a first straight line passing through the starting point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment; determining a first intersection point where the first straight line intersects with the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of the line between the first intersection point and the starting point as the first target vertex, and taking the midpoint of the line between the second intersection point and the starting point as the second target vertex; determining a third intersection point where the second straight line intersects with the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of the line between the third intersection point and the end point as the third target vertex, and taking the midpoint of the line between the fourth intersection point and the end point as the fourth target vertex; and taking the rectangle formed by the first target vertex, the second target vertex, the third target vertex and the fourth target vertex as the target object's area to be operated.
[0090] Among them, Figure 6 As shown, the starting point and end point of the target line segment of the contour centerline are obtained. The target line segment is the line segment BC between the feature points B and C. The starting point is the feature point B, and the end point is the feature point C. A perpendicular line is made through point B to BC. The first intersection point intersecting with the left side of the two-dimensional plane contour is B1, and the second intersection point intersecting with the right side of the two-dimensional plane contour is B2. The midpoint of the line between B1 and B is used as the first target vertex B3, and the midpoint of the line between B2 and B is used as the second target vertex B4. Similarly, a perpendicular line is made through point C to BC, and the third intersection point intersecting with the left side of the two-dimensional plane contour is C1, and the fourth intersection point intersecting with the right side of the two-dimensional plane contour is C2. The midpoint of the line between C1 and C is used as the third target vertex C3, and the midpoint of the line between C2 and C is used as the fourth target vertex C4. The rectangle formed by B3, B4, C3, and C4 is used as the target object's operation area, as shown in FIG. Figure 6 The shaded area in .
[0091] In this embodiment, the starting point and the end point of the target line segment of the contour centerline are obtained, and a first straight line passing through the starting point and perpendicular to the target line segment and a second straight line passing through the end point and perpendicular to the target line segment are respectively obtained. Based on the first straight line and the second straight line, the target object's area to be operated can be obtained, so that the target area can be accurately obtained to control the robot arm to perform a specified operation on the target area.
[0092] In one embodiment, Figure 7 As shown, the steps of controlling the robot arm to perform a stiffness test on the area to be operated, and screening the target area from the area to be operated according to the stiffness test result include:
[0093] S702: Segment the area to be operated according to a preset standard to obtain a plurality of grid areas.
[0094] The terminal divides the area to be operated according to a preset standard, for example, evenly divides the area to be operated into 5×5 grids to obtain multiple grid areas.
[0095] S704: Control the robot arm to perform a stiffness test on each grid area to obtain a plurality of stiffness values.
[0096] The terminal controls the end of the robotic arm to move to each grid position, and presses the grid area on the back of the target object with a given force perpendicular to the back plane, and records the reaction force received by the end of the robotic arm, which is the stiffness value.
[0097] S706: Using a grid area corresponding to a stiffness value that meets the target value requirement among the multiple stiffness values as the target area.
[0098] Among them, the stiffness of the bone position is usually the largest, the stiffness of the muscle stiffness position is the second largest, and the stiffness of the fat area is the smallest. In this way, based on multiple stiffness values, the grid area of the muscle stiffness position is screened out as the target area.
[0099] In this embodiment, the area to be operated is divided according to preset standards to obtain multiple grid areas, and the robotic arm is controlled to perform stiffness tests on each grid area to obtain multiple stiffness values. The grid area corresponding to the stiffness value that meets the target value requirements among the multiple stiffness values is used as the target area. The target area can be accurately obtained, thereby controlling the robotic arm to perform specified operations on the target area of the target object, thereby achieving precise operations on specific parts.
[0100] In one embodiment, Figure 8 As shown, a massage method based on AI vision and robot force control is provided, and the method includes the following steps:
[0101] (1) Use a depth camera to collect RGBD images of a prone human body in the field of view.
[0102] (2) Use the mouse to select three points A, B, and C along the back spine from the SMPL human body 3D model (template); ② Generate a rough 3D human body model in the camera coordinate system.
[0103] (3) Given the positions of the key points of the human body and combining them with the depth information in the RGBD image, the posture and position of the human body 3D model in step (1) are optimized to obtain an accurate human body 3D model.
[0104] like Fig. 9 As shown, the human body 3D model obtained based on the algorithm is a rough model, that is, a rough human body 3D model in the camera coordinate system. Based on the 2D human body key points, the key points along the back spine are selected with the mouse in the human body 3D model. For example, points A, B, and C are shown in the figure. The rough human body 3D model is calibrated with the three-dimensional coordinates of these key points to obtain an accurate human body 3D model that optimizes the human body posture and position.
[0105] (4) The segmentation algorithm obtains the range of the human body contour in the RGB image, and projects the three-dimensional coordinates of the three points A, B, and C obtained in step (3) onto the two-dimensional plane. Ten and four points are uniformly interpolated between AB and BC. The straight line connecting these points and A, B, and C is the spine.
[0106] (5) Draw a straight line perpendicular to BC through point B to find the two points B1 and B2 where the human body and the background intersect. Similarly, find points C1 and C2. Find the midpoints of points B and B1, B and B2, C and C1, and C and C2. That is, the four points B3, B4, C3, and C4 are the vertices of the rectangle that contains the massage area.
[0107] (6) The rectangular area enclosed by B3, B4, C3, and C4 is evenly divided into a 5 x 5 grid. The end of the robotic arm is then controlled to move to each grid position perpendicular to the back plane. A given force is applied and the reaction force received by the end of the robotic arm is recorded, which is the stiffness. The reaction force at the bone position is the largest, followed by the muscle stiffness position, and the smallest at the fat area.
[0108] (7) Based on the recorded reaction force, the fatigue muscle area is determined, and combined with the visual algorithm results, the bone (spinal) area), muscle stiffness area and fat area are determined.
[0109] (8) Control the robotic arm to massage the muscle stiffness area and avoid the bone (spinal) area.
[0110] In this embodiment, based on the AI vision module, the human body is firstly three-dimensionally modeled, and the key points on the human body are automatically identified to obtain the position and approximate range of the area to be massaged. Then, the robotic arm is controlled to use force control technology to estimate the stiffness of the massage area given by the vision module to avoid sensitive areas such as the spine. Finally, the robotic arm performs acupoint and massage on the entire area.
[0111] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0112] Based on the same inventive concept, the embodiment of the present application also provides a device for controlling the operation of a robotic arm for implementing the method for controlling the operation of a robotic arm involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations of one or more embodiments of the device for controlling the operation of a robotic arm provided below can refer to the limitations of the method for controlling the operation of a robotic arm above, and will not be repeated here.
[0113] In one embodiment, Fig.10 As shown, a device for controlling the operation of a robotic arm is provided, comprising: a three-dimensional model acquisition module 10, a contour centerline determination module 20, a to-be-operated area determination module 30, a target area screening module 40 and a robotic arm operation module 50, wherein:
[0114] The three-dimensional model acquisition module 10 is used to acquire a depth image of the target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image;
[0115] The contour centerline determination module 20 is used to obtain a plurality of target feature points in the target three-dimensional model, and determine the contour centerline of the target object according to the plurality of target feature points and the depth image;
[0116] A module 30 for determining an area to be operated, for determining an area to be operated on a target object based on a contour center line;
[0117] The target area screening module 40 is used to control the robot arm to perform a stiffness test on the area to be operated, and screen the target area from the area to be operated according to the stiffness test result;
[0118] The robot arm operation module 50 is used to control the robot arm to perform a designated operation on a target area of a target object.
[0119] In one embodiment, the three-dimensional model acquisition module 10 includes: a standard model acquisition unit, a model parameter acquisition unit, a three-dimensional coordinate acquisition unit and a three-dimensional model acquisition unit, wherein:
[0120] The standard model acquisition unit is used to acquire a standard three-dimensional model.
[0121] The model parameter acquisition unit is used to acquire model parameters of the three-dimensional model of the target object according to the depth image.
[0122] The three-dimensional coordinate acquisition unit is used to acquire the three-dimensional coordinates corresponding to the target object based on the model parameters.
[0123] The three-dimensional model acquisition unit is used to adjust the standard three-dimensional model based on the three-dimensional coordinates to obtain the three-dimensional model of the target object.
[0124] In one embodiment, the contour centerline determination module 20 includes: a plane contour acquisition unit and a contour centerline acquisition unit, wherein:
[0125] The plane contour acquisition unit is used to segment the depth image to obtain the two-dimensional plane contour of the target object.
[0126] The contour centerline acquisition unit is used to project multiple target feature points to the area where the two-dimensional plane contour is located, and obtain the contour centerline of the target object based on the projected target feature points.
[0127] In one embodiment, the target feature point is a feature point on the central trunk of the target three-dimensional model, the target feature point includes a first feature point, a second feature point and a third feature point, and the contour centerline acquisition unit includes: a first insertion subunit, a second insertion subunit and a centerline determination subunit, wherein:
[0128] A first insertion subunit, used to uniformly insert a first number of feature points between the projected first feature point and the second feature point;
[0129] A second insertion subunit, used to uniformly insert a second number of feature points between the projected second feature point and the third feature point;
[0130] The centerline determination subunit is used to use the straight line connecting the feature point and the projected target feature point as the contour centerline of the target object.
[0131] In one embodiment, the module 30 for determining the area to be operated is also used to obtain the starting point and the end point of the terminal segment of the center line of the contour; obtain a first straight line passing through the starting point and perpendicular to the terminal segment, and a second straight line passing through the end point and perpendicular to the terminal segment, respectively; determine a first intersection point where the first straight line intersects with the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects with the right side of the two-dimensional plane contour; take the midpoint of the line between the first intersection point and the starting point as the first target vertex, and take the midpoint of the line between the second intersection point and the starting point as the second target vertex; determine a third intersection point where the second straight line intersects with the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects with the right side of the two-dimensional plane contour; take the midpoint of the line between the third intersection point and the end point as the third target vertex, and take the midpoint of the line between the fourth intersection point and the end point as the fourth target vertex; take the rectangle formed by the first target vertex, the second target vertex, the third target vertex and the fourth target vertex as the area to be operated of the target object.
[0132] In one embodiment, the target region screening module 40 includes: a grid region segmentation unit, a stiffness value acquisition unit and a target region acquisition unit, wherein:
[0133] A grid area segmentation unit is used to segment the area to be operated according to a preset standard to obtain a plurality of grid areas;
[0134] A stiffness value acquisition unit is used to control the robot arm to perform stiffness tests on each grid area to obtain multiple stiffness values;
[0135] The target region acquisition unit is used to take the grid region corresponding to the stiffness value that meets the target value requirement among the multiple stiffness values as the target region.
[0136] Each module in the above-mentioned device for controlling the operation of the robot arm can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0137] In one embodiment, a robot 1100 is provided. The robot may include a server. The internal structure of the server may be as shown in FIG. Fig.11As shown. The robot 1100 includes a processor 1102, a memory and a network interface 1108 connected through a system bus 1101. Among them, the processor 1102 of the robot 1100 is used to provide computing and control capabilities. The memory of the robot 1100 includes a non-volatile storage medium 1103 and an internal memory 1107. The non-volatile storage medium 1103 stores an operating system 1104, a computer program 1105 and a database 116. The internal memory 1107 provides an environment for the operation of the operating system 1104 and the computer program 1105 in the non-volatile storage medium 1103. The database 1106 of the robot 1100 is used to store data. The network interface 1108 of the robot 1100 is used to communicate with an external terminal through a network connection. When the computer program 1105 is executed by the processor 1102, a method for controlling the operation of a robotic arm is implemented.
[0138] Those skilled in the art will understand that Fig.11 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the robot to which the scheme of the present application is applied. The specific robot may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0139] In one embodiment, a robot is further provided, including a memory, a processor and a robotic arm. A computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0140] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for controlling the operation of a robotic arm is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0141] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0142] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining a depth image of a target object in a preset posture, and obtaining a target three-dimensional model of the target object based on the depth image; obtaining multiple target feature points in the target three-dimensional model, and determining a contour center line of the target object based on the multiple target feature points and the depth image; determining a to-be-operated area of the target object based on the contour center line; controlling a robotic arm to perform a stiffness test on the to-be-operated area, and screening a target area from the to-be-operated area based on the stiffness test result; and controlling the robotic arm to perform a specified operation on the target area of the target object.
[0143] In one embodiment, the process of obtaining a target three-dimensional model of a target object based on a depth image when a processor executes a computer program includes: obtaining a standard three-dimensional model; obtaining model parameters of the three-dimensional model of the target object based on the depth image; obtaining three-dimensional coordinates corresponding to the target object based on the model parameters; and adjusting the standard three-dimensional model based on the three-dimensional coordinates to obtain the three-dimensional model of the target object.
[0144] In one embodiment, the processor executes a computer program that involves determining the contour centerline of the target object based on multiple target feature points and a depth image, including: segmenting the depth image to obtain a two-dimensional plane contour of the target object; projecting multiple target feature points to an area where the two-dimensional plane contour is located, and obtaining the contour centerline of the target object based on the projected target feature points.
[0145] In one embodiment, the target feature points involved when the processor executes the computer program are feature points on the central trunk of the target three-dimensional model, and the target feature points include a first feature point, a second feature point, and a third feature point; the contour centerline of the target object is obtained based on the projected target feature points, including: uniformly inserting a first number of feature points between the projected first feature point and the second feature point; uniformly inserting a second number of feature points between the projected second feature point and the third feature point; and using a straight line connecting the feature points and the projected target feature points as the contour centerline of the target object.
[0146] In one embodiment, the method of determining the target object's operating area based on the contour centerline when the processor executes a computer program includes: obtaining the starting point and the end point of the target line segment of the contour centerline; respectively obtaining a first straight line passing through the starting point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment; determining a first intersection point where the first straight line intersects with the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of the line between the first intersection point and the starting point as the first target vertex, and taking the midpoint of the line between the second intersection point and the starting point as the second target vertex; determining a third intersection point where the second straight line intersects with the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of the line between the third intersection point and the end point as the third target vertex, and taking the midpoint of the line between the fourth intersection point and the end point as the fourth target vertex; and taking the rectangle formed by the first target vertex, the second target vertex, the third target vertex and the fourth target vertex as the target object's operating area.
[0147] In one embodiment, when the processor executes a computer program, the control robot arm involved performs a stiffness test on the area to be operated, and screens out a target area from the area to be operated according to the stiffness test result, including: dividing the area to be operated according to a preset standard to obtain a plurality of grid areas; controlling the robot arm to perform a stiffness test on each grid area to obtain a plurality of stiffness values; and taking the grid area corresponding to the stiffness value that meets the target value requirement among the plurality of stiffness values as the target area.
[0148] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a depth image of a target object in a preset posture, and obtaining a target three-dimensional model of the target object based on the depth image; obtaining multiple target feature points in the target three-dimensional model, and determining a contour centerline of the target object based on the multiple target feature points and the depth image; determining an area to be operated of the target object based on the contour centerline; controlling a robotic arm to perform a stiffness test on the area to be operated, and screening a target area from the area to be operated based on the stiffness test result; and controlling the robotic arm to perform a specified operation on the target area of the target object.
[0149] In one embodiment, the computer program executed by a processor involves obtaining a target three-dimensional model of a target object based on a depth image, including: obtaining a standard three-dimensional model; obtaining model parameters of the three-dimensional model of the target object based on the depth image; obtaining three-dimensional coordinates corresponding to the target object based on the model parameters; and adjusting the standard three-dimensional model based on the three-dimensional coordinates to obtain the three-dimensional model of the target object.
[0150] In one embodiment, when a computer program is executed by a processor, it involves determining the contour centerline of a target object based on multiple target feature points and a depth image, including: segmenting the depth image to obtain a two-dimensional plane contour of the target object; projecting multiple target feature points to an area where the two-dimensional plane contour is located, and obtaining the contour centerline of the target object based on the projected target feature points.
[0151] In one embodiment, the target feature points involved when the computer program is executed by the processor are feature points on the central trunk of the target three-dimensional model, and the target feature points include a first feature point, a second feature point and a third feature point; the contour center line of the target object is obtained based on the projected target feature points, including: uniformly inserting a first number of feature points between the projected first feature point and the second feature point; uniformly inserting a second number of feature points between the projected second feature point and the third feature point; and using the straight line connecting the feature points and the projected target feature points as the contour center line of the target object.
[0152] In one embodiment, when a computer program is executed by a processor, the method involves determining an operation area of a target object based on a contour centerline, including: obtaining a start point and an end point of a target line segment of the contour centerline; obtaining a first straight line passing through the start point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment, respectively; determining a first intersection point where the first straight line intersects with the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of a line connecting the first intersection point and the start point as a first target vertex, and taking the midpoint of a line connecting the second intersection point and the start point as a second target vertex; determining a third intersection point where the second straight line intersects with the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of a line connecting the third intersection point and the end point as a third target vertex, and taking the midpoint of a line connecting the fourth intersection point and the end point as a fourth target vertex; and taking a rectangle formed by the first target vertex, the second target vertex, the third target vertex, and the fourth target vertex as the operation area of the target object.
[0153] In one embodiment, when the computer program is executed by a processor, the control robot arm involved performs a stiffness test on the area to be operated, and screens out a target area from the area to be operated according to the stiffness test result, including: dividing the area to be operated according to a preset standard to obtain a plurality of grid areas; controlling the robot arm to perform a stiffness test on each grid area to obtain a plurality of stiffness values; and taking the grid area corresponding to the stiffness value that meets the target value requirement among the plurality of stiffness values as the target area.
[0154] In one embodiment, a computer program product is provided, including a computer program, which, when executed by a processor, implements the following steps: obtaining a depth image of a target object in a preset posture, and obtaining a target three-dimensional model of the target object based on the depth image; obtaining multiple target feature points in the target three-dimensional model, and determining a contour centerline of the target object based on the multiple target feature points and the depth image; determining a to-be-operated area of the target object based on the contour centerline; controlling a robotic arm to perform a stiffness test on the to-be-operated area, and screening a target area from the to-be-operated area based on the stiffness test result; and controlling the robotic arm to perform a specified operation on the target area of the target object.
[0155] In one embodiment, the computer program executed by a processor involves obtaining a target three-dimensional model of a target object based on a depth image, including: obtaining a standard three-dimensional model; obtaining model parameters of the three-dimensional model of the target object based on the depth image; obtaining three-dimensional coordinates corresponding to the target object based on the model parameters; and adjusting the standard three-dimensional model based on the three-dimensional coordinates to obtain the three-dimensional model of the target object.
[0156] In one embodiment, when a computer program is executed by a processor, it involves determining the contour centerline of a target object based on multiple target feature points and a depth image, including: segmenting the depth image to obtain a two-dimensional plane contour of the target object; projecting multiple target feature points to an area where the two-dimensional plane contour is located, and obtaining the contour centerline of the target object based on the projected target feature points.
[0157] In one embodiment, the target feature points involved when the computer program is executed by the processor are feature points on the central trunk of the target three-dimensional model, and the target feature points include a first feature point, a second feature point and a third feature point; the contour center line of the target object is obtained based on the projected target feature points, including: uniformly inserting a first number of feature points between the projected first feature point and the second feature point; uniformly inserting a second number of feature points between the projected second feature point and the third feature point; and using the straight line connecting the feature points and the projected target feature points as the contour center line of the target object.
[0158] In one embodiment, when a computer program is executed by a processor, the method involves determining an operation area of a target object based on a contour centerline, including: obtaining a start point and an end point of a target line segment of the contour centerline; obtaining a first straight line passing through the start point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment, respectively; determining a first intersection point where the first straight line intersects with the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of a line connecting the first intersection point and the start point as a first target vertex, and taking the midpoint of a line connecting the second intersection point and the start point as a second target vertex; determining a third intersection point where the second straight line intersects with the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects with the right side of the two-dimensional plane contour; taking the midpoint of a line connecting the third intersection point and the end point as a third target vertex, and taking the midpoint of a line connecting the fourth intersection point and the end point as a fourth target vertex; and taking a rectangle formed by the first target vertex, the second target vertex, the third target vertex, and the fourth target vertex as the operation area of the target object.
[0159] In one embodiment, when the computer program is executed by a processor, the control robot arm involved performs a stiffness test on the area to be operated, and screens out a target area from the area to be operated according to the stiffness test result, including: dividing the area to be operated according to a preset standard to obtain a plurality of grid areas; controlling the robot arm to perform a stiffness test on each grid area to obtain a plurality of stiffness values; and taking the grid area corresponding to the stiffness value that meets the target value requirement among the plurality of stiffness values as the target area.
[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0161] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0162] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling the operation of a robotic arm, characterized in that: The method comprises: Acquire a depth image of a target object in a preset posture, and obtain a target three-dimensional model of the target object according to the depth image; Acquire a plurality of target feature points in the target three-dimensional model, and determine a contour centerline of the target object based on the plurality of target feature points and the depth image; Determine the area to be operated on the target object based on the contour center line; Controlling the robot arm to perform a stiffness test on the area to be operated, and screening a target area from the area to be operated according to the stiffness test result; The robot arm is controlled to perform a designated operation on a target area of the target object.
2. The method according to claim 1, characterized in that The step of obtaining a target three-dimensional model of the target object according to the depth image comprises: Obtain a standard three-dimensional model; Acquire model parameters of the three-dimensional model of the target object according to the depth image; Acquire the three-dimensional coordinates corresponding to the target object based on the model parameters; The standard three-dimensional model is adjusted based on the three-dimensional coordinates to obtain a three-dimensional model of the target object.
3. The method according to claim 1, wherein determining the contour centerline of the target object according to the plurality of target feature points and the depth image comprises: Segmenting the depth image to obtain a two-dimensional plane contour of the target object; The plurality of target feature points are projected to the area where the two-dimensional plane contour is located, and the contour center line of the target object is obtained based on the projected target feature points.
4. The method according to claim 3, characterized in that The target feature points are feature points on the central trunk of the target three-dimensional model, and the target feature points include a first feature point, a second feature point, and a third feature point; and obtaining the contour center line of the target object based on the projected target feature points includes: Uniformly inserting a first number of feature points between the projected first feature point and the second feature point; uniformly inserting a second number of feature points between the projected second feature point and the third feature point; The straight line connecting the feature point and the projected target feature point is used as the contour center line of the target object.
5. The method according to claim 3, characterized in that: The determining the area to be operated on the target object based on the contour center line includes: Obtaining the starting point and the end point of the target line segment of the contour centerline; Respectively obtain a first straight line passing through the starting point and perpendicular to the target line segment, and a second straight line passing through the end point and perpendicular to the target line segment; Determine a first intersection point where the first straight line intersects the left side of the two-dimensional plane contour, and a second intersection point where the first straight line intersects the right side of the two-dimensional plane contour; The midpoint of the line between the first intersection point and the starting point is used as the first target vertex, and the midpoint of the line between the second intersection point and the starting point is used as the second target vertex; Determine a third intersection point where the second straight line intersects the left side of the two-dimensional plane contour, and a fourth intersection point where the second straight line intersects the right side of the two-dimensional plane contour; The midpoint of the line between the third intersection point and the end point is used as the third target vertex, and the midpoint of the line between the fourth intersection point and the end point is used as the fourth target vertex; A rectangle formed by the first target vertex, the second target vertex, the third target vertex, and the fourth target vertex is used as a to-be-operated area of the target object.
6. The method according to claim 1, characterized in that The controlling mechanical arm performs a stiffness test on the area to be operated, and selects a target area from the area to be operated according to the stiffness test result, including: Dividing the area to be operated according to a preset standard to obtain a plurality of grid areas; Controlling the robot arm to perform stiffness test on each of the grid areas to obtain a plurality of stiffness values; A grid area corresponding to a stiffness value that meets the target value requirement among the multiple stiffness values is used as the target area.
7. A robot comprising a memory, a processor and a robotic arm, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
