Mobile robot material taking control method and system, computer equipment and storage medium
The image acquisition device and Hough transformation technology are used to achieve precise positioning and clamping of material platforms in mobile robots, which solves the problem of accurate positioning and clamping of materials in mobile robots in complex environments and ensures precise operation of materials.
Patent Information
- Application Number
- CN202410709350.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-06-03
AI Technical Summary
It is difficult for mobile robots to achieve precise positioning and clamping of materials after moving over long distances. Existing technologies such as debugging parameters and infrared/ultrasonic positioning are difficult to work effectively in complex environments.
The material on the material platform is detected through the image acquisition device, and the Hough transform is used to process the irregular color blocks to extract the maximum circle center coordinates. The preset time interval and fitting technology are combined to achieve precise positioning, and positioning is performed during the intermittent rotation of the material platform. and gripping operations.
It achieves precise positioning and clamping of materials in complex environments, and overcomes the difficulty of accurate clamping caused by accumulated errors after long-distance movement of mobile robots.
Smart Images

Figure BDA0004873554880000141 
Figure HDA0004873554900000031 
Figure HDA0004873554900000051
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a mobile robot material picking control method, system, computer equipment and storage medium. Background Art
[0002] A mobile robot is an intelligent robot that works in complex environments and has the capabilities of self-organization, autonomous operation, and autonomous planning. It integrates computer technology, information technology, communication technology, microelectronics technology, and robotics technology.
[0003] For mobile robots with material picking and placing functions, how to accurately pick and place materials is a hot research topic. Specifically, after a mobile robot moves for a period of time, there will inevitably be an error between its resting position and the pre-set destination position. Such an error will be accumulated in the subsequent material picking and placing operations, making it difficult to accurately pick and place materials. At present, robots mainly reduce errors by debugging parameters, or use infrared / ultrasound for positioning control in conjunction with nearby sites (such as baffles); when the former has a very small debugging parameter range, the error generated by each movement of the robotic arm and the mobile robot still has an impact; and infrared / ultrasound positioning is easily affected by noise interference and has high requirements for the site; these two forms are difficult to accurately locate and clamp materials when the working environment is more complex (for example, the material to be clamped is not always stationary).
[0004] Therefore, it is difficult for current mobile robots to accurately position and grasp materials, which needs to be solved urgently. Summary of the invention
[0005] Based on this, it is necessary to provide a mobile robot material picking control method, system, computer equipment and storage medium to address the above technical issues, so as to solve at least one of the above problems.
[0006] In a first aspect, a mobile robot material picking control method is provided, comprising:
[0007] Control the mobile robot to move from the current position to the material platform, and the material platform performs intermittent rotational motion at a set period;
[0008] After reaching the material platform, the material on the material platform is detected by an image acquisition device;
[0009] When the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold, the mobile robot and its image acquisition device are positioned according to the position of the material;
[0010] The mechanical arm of the mobile robot is controlled to perform a material gripping operation.
[0011] In one embodiment, the material is provided with a color ring for identity identification, and the color rings on different materials have different colors;
[0012] The detecting of the material on the material platform by the image acquisition device includes:
[0013] Continuously acquiring the detection images collected by the image acquisition device;
[0014] Using Hough transform to process irregular color blocks in the continuously acquired detection image, and extracting the largest circle formed by the irregular color blocks;
[0015] Determine the coordinates of the center of the largest circle.
[0016] In one embodiment, when the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold, the mobile robot and its image acquisition device are positioned according to the position of the material, including:
[0017] Continuously acquiring the center coordinates of the largest circle at preset time intervals;
[0018] When the center coordinates of the maximum circle change within a set range around a center point for N consecutive times, the coordinates of the center point are used as the positioning center coordinates; wherein N is an integer greater than 5; the center point is any one of the center coordinates of the maximum circle obtained N consecutive times, or is obtained by fitting the center coordinates of the maximum circle obtained N consecutive times;
[0019] The coordinates of the center of the field of view of the image acquisition device are obtained, and according to the difference between the coordinates of the center of the field of view of the image acquisition device and the coordinates of the positioning center, the movement of the mobile robot and its image acquisition device are controlled to align the center of the image acquisition device with the positioning center to achieve positioning.
[0020] In one embodiment, controlling the mechanical arm of the mobile robot to perform a material gripping operation includes:
[0021] Determining the rotation direction of the material platform;
[0022] Determining the identity of the material;
[0023] Determine the current position information and subsequent position change information of each material according to the identity information of the material, the rotation direction of the material platform, and the preset material arrangement order;
[0024] Based on the current position information and subsequent position change information of each material, the mechanical arm of the mobile robot is controlled to perform the material gripping operation according to the preset material gripping sequence requirements.
[0025] In one embodiment, when performing a gripping operation, an image acquisition device on the robot arm is aimed at the target material from top to bottom;
[0026] After the mechanical arm of the mobile robot is controlled to perform the material gripping operation, the method includes:
[0027] Control the mechanical arm to rise to a set height, call the image acquisition device to acquire images, and obtain color block information in the current image, wherein the color block information at least includes a color block size parameter;
[0028] If the color block size parameter is greater than a set threshold, the mobile robot and the image acquisition device are repositioned.
[0029] In one embodiment, repositioning the mobile robot and the image acquisition device includes:
[0030] Get the center coordinates of the largest circle of the relocated color block, and record them as the secondary positioning center coordinates;
[0031] Calculate the coordinate difference between the secondary positioning center coordinate and the center of the field of view of the image acquisition device;
[0032] Based on the correspondence between the image coordinates and the actual mechanism, the positioning adjustment parameters of the robot arm are calculated.
[0033] In one embodiment, controlling the mobile robot to move from a current position to a material platform includes:
[0034] Collecting site information by an image acquisition device; the site information at least includes: material platform location information, obstacle location information between the current location and the material platform, and site boundary location information;
[0035] Planning a moving path according to the site information, and controlling the mobile robot to move toward the material platform along the moving path;
[0036] Determine the position information of the dangerous section based on the moving path, the obstacle position information, and the site boundary position information; the dangerous section is a section on the moving path that is less than a first set distance from the obstacle position and the site boundary position, and the first set distance is greater than the maximum dimension of the center of the mobile robot body from the periphery, and less than the maximum dimension of the center of the mobile robot body from the horizontal extension end of the robot arm;
[0037] Setting a dangerous point on the moving path and adjusting parameters of the robot arm that match the dangerous point according to the position information of the dangerous zone; the dangerous point is located at a second set distance before entering the dangerous zone on the moving path;
[0038] When the mobile robot moves to the dangerous point, the mechanical arm is controlled to move according to the mechanical arm adjustment parameters.
[0039] In a second aspect, a mobile robot material taking control system is provided, comprising:
[0040] A mobile control unit, used to control the mobile robot to move from a current position to a material platform, wherein the material platform performs intermittent rotational motion at a set period;
[0041] An image detection unit, used to detect the material on the material platform through an image acquisition device after reaching the material platform;
[0042] A positioning unit, used to position the mobile robot and its image acquisition device according to the position of the material when the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold;
[0043] A gripping control unit is used to control the mechanical arm of the mobile robot to perform material gripping operations.
[0044] According to a third aspect, a computer device is provided, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned mobile robot material picking control method when executing the computer-readable instructions.
[0045] In a fourth aspect, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and wherein the computer-readable instructions, when executed by a processor, implement the steps of the mobile robot material picking control method.
[0046] The above-mentioned mobile robot material picking control method, system, computer equipment and storage medium, the method of which includes: controlling the mobile robot to move from the current position to the material platform, the material platform performing intermittent rotational motion at a set period; after reaching the material platform, detecting the material on the material platform through an image acquisition device; when the residence time of the material falling into the detection field of the image acquisition device exceeds a preset threshold, positioning the mobile robot and its image acquisition device according to the position of the material; controlling the mechanical arm of the mobile robot to perform material gripping operations. The embodiment of the present application is aimed at the characteristics of the intermittent rotating material platform, and provides a solution for achieving precise material gripping by a mobile robot in this scenario. Precise material gripping is achieved through precise positioning, which overcomes the problem that a large amount of accumulated errors are generated after the mobile robot moves for a long distance, and thus the material cannot be gripped accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0048] Figure 1 It is a flow chart of a mobile robot material picking control method in one embodiment of the present invention;
[0049] Figure 2 It is a flow chart of a material gripping failure detection method based on a mobile robot material picking control method in one embodiment of the present invention;
[0050] Figure 3 It is a flow chart of a method for setting adjustment parameters of a mechanical arm based on a mobile robot material picking control method in one embodiment of the present invention;
[0051] Figure 4 It is a structural schematic diagram of a mobile robot material taking control system in one embodiment of the present invention;
[0052] Figure 5 It is a schematic diagram of a mechanical arm structure of a mobile robot in one embodiment of the present invention;
[0053] Figure 6 It is a simplified model schematic diagram of solving the positioning adjustment parameters of the robot arm when the reference point D is higher than the position of the point A provided in one embodiment of the present invention;
[0054] Figure 7 It is a simplified model schematic diagram of solving the positioning adjustment parameters of the robot arm when the reference point D is lower than the position of the point A provided in one embodiment of the present invention;
[0055] Figure 8 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] In one embodiment, if Figure 1 As shown, a mobile robot material picking control method is provided, comprising the following steps:
[0058] In step S210, the mobile robot is controlled to move from the current position to the material platform, and the material platform performs intermittent rotational motion at a set period.
[0059] In this embodiment, the mobile robot can be applied to a more complex working environment, such as a robot competition. In this scenario, the venue and materials will be set with more obstacles, interferences and changes to test the working performance of the mobile robot.
[0060] Furthermore, the material platform does not hold the material statically, but performs intermittent rotation at a set period. The material platform is a circular turntable, on which M (M>2) materials are placed at equal intervals. The turntable rotates 360 / M degrees each time, and the turntable stops for a period of time after each rotation, generally 3 to 6 seconds.
[0061] As an example, when M=3, that is, the number of materials is 3, the turntable rotates 120 degrees each time, and the turntable stops intermittently for 4 seconds. In this case, the mobile robot is required to complete its own positioning within the stop time in order to accurately grasp the materials. This will be used as an implementation scenario for description later.
[0062] In this embodiment, the mobile robot is provided with an image acquisition device, namely a camera; it adopts a visual detection method to perform path recognition and positioning, specifically, including the following steps:
[0063] Collecting site information by an image acquisition device; the site information at least includes: material platform location information, obstacle location information between the current location and the material platform, and site boundary location information;
[0064] A moving path is planned according to the site information, and the mobile robot is controlled to move toward the material platform along the moving path.
[0065] It is understandable that the mobile robot mainly relies on the image acquisition device in conjunction with its image processing device to identify all or part of the site information (for example, information such as the site size can be pre-set manually) and perform path planning; in addition, it is not ruled out that the mobile robot can use other related sensors for auxiliary positioning, such as using infrared sensors to assist in obstacle and distance judgment, and using linear displacement sensors, angular displacement sensors, etc. to coordinate displacement and rotation and other movements.
[0066] In step S220, after arriving at the material platform, the material on the material platform is detected by an image acquisition device.
[0067] In this embodiment, after the mobile robot reaches the destination position for preliminary positioning, a large amount of errors are accumulated during its movement process, and the material platform is in a motion cycle of intermittent rotation and stopping, and cannot directly perform material clamping work. Therefore, some positioning work is required, and preliminary detection preparation is required before the positioning work.
[0068] In one case, the material is provided with a color ring for identity identification, that is, each material is provided with a colored ring mark, and the color corresponding to the color ring of each material is different, and the materials can be distinguished by the color ring.
[0069] Furthermore, the detecting of the material on the material platform by the image acquisition device comprises the following steps:
[0070] Continuously acquiring the detection images collected by the image acquisition device;
[0071] Using Hough transform to process irregular color blocks in the continuously acquired detection image, and extracting the largest circle formed by the irregular color blocks;
[0072] Determine the coordinates of the center of the largest circle.
[0073] In this embodiment, after the mobile robot reaches the material platform, the image recognition device is roughly facing the material platform. At this time, the image acquisition device is adjusted to be aligned so that its acquisition direction is vertically aligned with the material area of the material platform from top to bottom, and then the detection image is acquired at a set frequency.
[0074] Furthermore, since a color ring is provided on the material, the identification is focused on the color ring; specifically, the features corresponding to the color ring in the detection image are extracted through Hough transform. During the identification process, the color ring will be presented as irregular color blocks, which can form the approximate outline of the color ring, and then the center coordinates of the largest circle therein, that is, the center coordinates of the largest circle, can be identified and calculated.
[0075] In step S230, when the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold, the mobile robot and the image acquisition device are positioned according to the position of the material.
[0076] In this embodiment, the material platform is in an intermittent rotation mode. When the turntable is in an intermittent stop state, the mobile robot can locate the material based on the stop position of the material falling into the detection field of view. The positioning can be achieved in detail according to the following steps:
[0077] Continuously acquiring the center coordinates of the largest circle at preset time intervals;
[0078] When the center coordinates of the maximum circle change within a set range around a center point for N consecutive times, the coordinates of the center point are used as the positioning center coordinates; wherein N is an integer greater than 5; the center point is any one of the center coordinates of the maximum circle obtained N consecutive times, or is obtained by fitting the center coordinates of the maximum circle obtained N consecutive times;
[0079] The coordinates of the center of the field of view of the image acquisition device are obtained, and according to the difference between the coordinates of the center of the field of view of the image acquisition device and the coordinates of the positioning center, the movement of the mobile robot and its image acquisition device are controlled to align the center of the image acquisition device with the positioning center to achieve positioning.
[0080] In this embodiment, the system obtains the center coordinates of the maximum circle detected and confirmed in the previous step at a preset time interval. The time interval can be preset or confirmed by the mobile robot's instant detection of the rotation state of the rotating material platform. As an example, when the rotation amplitude of the material platform is 120 degrees and the intermittent stop time is 4 seconds, the preset time interval for obtaining the center coordinates of the maximum circle can be set to 40ms to 60ms, preferably 50ms.
[0081] Furthermore, in order to confirm that the material is in a stopped state, it is necessary to continuously detect the material that falls into the detection field of view, and then determine whether the material stays in the image recognition device for a period of time that exceeds a preset threshold. If the material is in motion, the coordinates of the center of its maximum circle will continue to change significantly in the detection image, and if the material stops moving, the coordinates of the center of its maximum circle will basically remain unchanged. However, since the material platform, the mobile robot itself, and the robotic arm will all have different degrees of slight jitter; in actual detection, after the above-mentioned many slight jitter factors are superimposed, the stopped material will still have slight jitter when it falls into the detection field of view, so there will also be a certain degree of jitter on the left side of the corresponding maximum circle center; therefore, it is necessary to set a de-jittering measure according to the above-mentioned jitter factors, specifically, to determine the degree of jitter of the center coordinate of the maximum circle caused by the above-mentioned jitter factors through experiments, and determine an error range accordingly. Then, if the center coordinate of the maximum circle obtained by material recognition changes within a set range around a center point for N consecutive times, it can be considered that the material is in a stationary state.
[0082] In this embodiment, the center point is any one of the maximum circle center coordinates obtained N times in succession. In another case, the center point is obtained by fitting the maximum circle center coordinates obtained N times in succession, and the fitting method can be to make a minimum enclosing circle for the N maximum circle center coordinates, and then obtain the center of the minimum enclosing circle, take the center as the center point, and determine its coordinates.
[0083] In this embodiment, the size of the set range around the center point is determined according to the jitter error range obtained through multiple tests.
[0084] In this embodiment, N is an integer greater than 5. When the material platform stops intermittently for 4 seconds and the preset time interval is 50 ms, the detection time span is 200 ms, which is sufficient for the mobile robot to perform positioning operations.
[0085] In this embodiment, the system determines the displacement and rotation parameters of the mobile robot's body and robotic arm (bound to the image recognition device) according to the difference between the field of view center coordinates of the image acquisition device and the positioning center coordinates, realizes the positioning of the body, and aligns the center of the image acquisition device with the positioning center to achieve dual positioning.
[0086] In step S240, the mechanical arm of the mobile robot is controlled to perform a material gripping operation.
[0087] In this embodiment, after positioning is completed, the subsequent material clamping operation can be performed; in a more complex working environment, the material clamping needs to be implemented in a specific order, for example, in a robot competition, the material clamping needs to be implemented in a specific color order; therefore, before clamping, not only positioning but also the identity information of the material must be determined; the specific material clamping operation includes the following steps:
[0088] Determining the rotation direction of the material platform;
[0089] Determining the identity of the material;
[0090] Determine the current position information and subsequent position change information of each material according to the identity information of the material, the rotation direction of the material platform, and the preset material arrangement order;
[0091] Based on the current position information and subsequent position change information of each material, the mechanical arm of the mobile robot is controlled to perform the material gripping operation according to the preset material gripping sequence requirements.
[0092] In this embodiment, the rotation direction of the material platform can be determined through image recognition. According to the actual scene requirements, if the rotation direction of the rotating platform is known and determined in advance, the parameter can also be manually input in advance.
[0093] The previous steps have completed positioning. In order to avoid the material stop time in the current cycle being insufficient to complete material clamping, it is necessary to wait for the next material to arrive with the rotation of the material platform; when the next material arrives, it is necessary to determine the identity information of the material. In this embodiment, the color of the material's color ring is used as the material's identity information.
[0094] Furthermore, if the arrangement order of other materials on the material platform (i.e., the preset material arrangement order) has been manually pre-set in the program as known information, then by detecting the location of one of the known materials, the current position of other materials can be determined, as well as the subsequent position change information of each material when the material platform rotates. For example, three materials of red, green, and blue are placed at equal intervals on the edge of the material platform disc, and the three materials rotate clockwise with the material platform. If the color data of the material detected by the image acquisition device for the first time after positioning is red (corresponding to the return number 1), it means that the green (corresponding to the return number 2) material is at the left rear, and the blue (corresponding to the return number 3) material is at the right rear. If the preset material gripping order is required to be red-green-blue; first grab the material directly below; then wait for the material platform to rotate 120 degrees, the green material moves to the right rear, and the right rear material is grabbed after waiting for the stop time; after grabbing and waiting for the stop time, the blue material moves from the right rear to the directly below and then to the left rear (two periods of time), so the left rear material is grabbed for the third time.
[0095] Similarly, after positioning, no matter what color is detected, as long as the color of the material directly below is determined, the placement order of the three colors of materials (obtained through the preset material arrangement order) and the rotation direction of the material platform (clockwise or counterclockwise) are known, the current position information of each material and subsequent position change information can be determined, and then each material can be grabbed continuously and uninterruptedly, without having to wait until the material moves to the bottom each time before grabbing it, which greatly saves time and realizes fast operation.
[0096] In an embodiment of the present application, a mobile robot material picking control method is provided, including: controlling the mobile robot to move from the current position to the material platform, the material platform performing intermittent rotational motion at a set period; after reaching the material platform, detecting the material on the material platform through an image acquisition device; when the residence time of the material falling into the detection field of the image acquisition device exceeds a preset threshold, positioning the mobile robot and its image acquisition device according to the position of the material; and controlling the mechanical arm of the mobile robot to perform a material gripping operation. In view of the characteristics of the intermittent rotating material platform, an embodiment of the present application provides a solution for achieving precise material gripping by a mobile robot in this scenario, and achieves precise material gripping through precise positioning, overcoming the problem that a large amount of accumulated errors are generated after the mobile robot moves over a long distance, and thus the material cannot be gripped accurately.
[0097] See also Figure 2 In one embodiment of the present application, in order to prevent material clamping failure from causing confusion in subsequent clamping operations, a material clamping failure detection method needs to be set up.
[0098] Specifically, the image acquisition device (i.e., camera) on the robot arm is placed vertically on the ground. After each material grabbing is completed, the robot arm is raised to a certain height, and the image acquisition device is called again to detect the color block information in the image, and then determine whether the grabbing is successful. The specific steps are as follows:
[0099] Step S310, controlling the mechanical arm to rise to a set height, calling the image acquisition device to acquire an image, and obtaining color block information in the current image, wherein the color block information at least includes a color block size parameter;
[0100] Step S320: If the color block size parameter is greater than a set threshold, the mobile robot and the image acquisition device are repositioned.
[0101] In this embodiment, only the material is provided with an obvious color ring, but not on the material platform. Therefore, image recognition can be used to analyze whether a color block is included to determine whether the material has been clamped away.
[0102] To determine whether a color block is included, a threshold needs to be set based on the noise and impurity interference of the image. If the color block is smaller than the set threshold, it means that the material has been successfully clamped. The return value is then passed directly to the next function to continue clamping the material at the next position.
[0103] If the size of the color block is larger than the set threshold, it means that the capture is not successful. Failure to capture successfully means that there is a deviation in the positioning in the previous step, so repositioning is required, which includes the following steps:
[0104] Get the center coordinates of the largest circle of the relocated color block, and record them as the secondary positioning center coordinates;
[0105] Calculate the coordinate difference between the secondary positioning center coordinate and the center of the field of view of the image acquisition device;
[0106] Based on the correspondence between the image coordinates and the actual mechanism, the positioning adjustment parameters of the robot arm are calculated.
[0107] In one embodiment of the present application, a mechanical arm structure is provided, which includes at least: a mechanical arm base, a large arm, and a small arm. The mechanical arm base is arranged on a mobile robot and can rotate horizontally. The large arm can be rotatably arranged on the base and can pitch and swing. The small arm can be rotatably arranged at the end of the large arm. The rotation of the base, the pitch rotation / swing of the large arm, and the rotation / swing of the small arm based on the large arm are realized by respectively cooperating with each other through their own driving devices and other connecting rod mechanisms. The contents about driving and transmission are not necessary contents about the positioning or repositioning control method here, so they will not be expanded here. The coordinate system of the mobile robot is established based on the above mechanism, such as Figure 5As shown, the center point O of the robot base is taken as the origin, the vertical direction is the z-axis, the horizontal projection direction of the robot arm is the x-axis, and the y-axis is parallel to the rotation axis of the upper arm / lower arm. Figures 5 to 7 The upper arm is connected to the base of the robot arm through a related structure. Therefore, in the coordinate system, the starting point A of the upper arm is located at a set distance above the base, and the distance is recorded as the base compensation height h; point B is the connection point between the upper arm and the lower arm, and point C is the end of the lower arm; the length of the upper arm and the length of the lower arm are l respectively. l , l s .
[0108] In this embodiment, the image acquisition device is fixed / bound to the end of the robotic arm. Based on this, after obtaining the secondary positioning center coordinates, after calculation, assuming that the image coordinate difference between the secondary positioning center coordinates and the center of the field of view of the image acquisition device is K, that is, the two are K*1 pixels apart in the image, then the robotic arm positioning adjustment parameters include: the rotation angle of the base adjusted relative to the origin is the base angle θ1, the rotation angle of the upper arm adjusted relative to the origin is the upper arm angle θ2, and the rotation angle of the forearm adjusted relative to the origin is the forearm angle θ3.
[0109] Furthermore, a reference point D is selected on the robotic arm, and the coordinates of its current position are marked as (x0, y0, z0); if the image acquisition device in the image moves K pixels and is mapped to the actual robotic arm, the reference point D moves a mm, then the expected coordinates of the reference point D after adjustment are (x0, y0+a, z0); in order to accurately obtain the positioning adjustment parameters of the robotic arm, the following inverse solution is performed through two cases.
[0110] In one case, when the end position of the robot arm (i.e., reference point D) is higher than point A, the following can be obtained: Figure 6 The simplified model shown in , according to which we can solve:
[0111]
[0112] θ 22 =arccos((beveledge 2 +l l 2 ―l s 2 ) / (2*l l *beveledge))
[0113] θ 31 =arccos((l s 2 +l l 2 ―beveledge 2 ) / (2*ll *l s ))
[0114] Where, beveledge is the length of |AC|, θ 21 is the angle between |AC| and the horizontal direction, θ 22 =∠BAC,θ 31 is ∠ABC; and then the robot arm positioning adjustment parameters are further calculated according to the following formula:
[0115] θ1=arctan(y0+a) / x0
[0116] θ2=θ 21 +θ 22
[0117] θ3=θ 31 +θ2
[0118] In another case, when the end position of the robot arm (i.e., reference point D) is lower than point A, the following can be obtained: Figure 7 The simplified model shown in , according to which we can solve:
[0119]
[0120] θ 22 =arccos((beveledge 2 +l l 2 ―l s 2 ) / (2*l l *beveledge))
[0121] θ 31 =arccos((l s 2 +l l 2 ―beveledge 2 ) / (2*l l *l s ))
[0122] Where, beveledge is the length of |AC|, θ 21 is ∠OAC, θ 22 =∠BAC,θ 31 is ∠ABC; and then the robot arm positioning adjustment parameters are further calculated according to the following formula:
[0123] θ1=arctan(y0+a) / x0
[0124] θ2=θ 21 +θ 22―90°
[0125] θ3=θ 31 +θ2
[0126] In the above two cases, after solving the robot arm positioning adjustment parameters of the base angle θ1, the upper arm angle θ2, and the lower arm angle θ3, the corresponding drive devices (servos) of the robot arm base, upper arm, and lower arm can be controlled to perform corresponding motion control, and then the robot arm can be controlled to reposition to achieve accurate clamping of materials.
[0127] In one embodiment of the present application, in step S210, if the current position is far from the material platform, the mobile robot may easily collide with the surrounding site due to unreasonable path planning during driving; at the same time, when grabbing and placing materials in a small range or small restricted space, there may also be a collision problem. In addition, the mobile robot will consider the most economical route during path planning, so some sections of the planned path will inevitably be close to the site boundary or obstacles.
[0128] To this end, in the embodiment of the present application, during the process of the mobile robot moving from the starting point (current position) to the material platform, the robot arm implements a posture adjustment strategy during movement; specifically, based on the site information, a series of safety points (hereinafter referred to as robot arm adjustment points) are set during the path planning process of the mobile robot, so that the mobile robot will change the position of the robot arm at the same time during the movement process to avoid collision between the robot arm and obstacles or site boundaries. Figure 3 As shown, the specific steps of the robot arm adjustment parameter setting method are as follows:
[0129] Step S410, determining the position information of the dangerous section based on the moving path, the obstacle position information, and the site boundary position information; the dangerous section is a section on the moving path that is less than a first set distance from the obstacle position and the site boundary position, and the first set distance is greater than the maximum dimension of the center of the mobile robot body to the periphery, and less than the maximum dimension of the center of the mobile robot body to the horizontal extension end of the robot arm;
[0130] Step S420, setting a dangerous point on the moving path and a robot arm adjustment parameter matching the dangerous point according to the position information of the dangerous zone; the dangerous point is located at a set distance before entering the dangerous zone on the moving path;
[0131] Step S430, when the mobile robot moves to the dangerous point, the mechanical arm is controlled to move according to the mechanical arm adjustment parameters.
[0132] In this embodiment, the dangerous interval is an interval on the moving path that is less than the first set distance from the obstacle position or the site boundary position; it can be determined based on the geometric relationship between the coordinate information contained in the moving path, obstacle position information, site boundary position information, etc. Among them, the first set distance can be determined based on the horizontal size of the mobile robot. Specifically, the moving path is planned based on the geometric center point of the mobile robot. Considering the physical size of the mobile robot in the horizontal direction, the geometric center point of the mobile robot body is taken as the body center. Assuming that in the horizontal direction, the maximum size of the mobile robot body center from the periphery is L, and the maximum size of the mobile robot body center from the horizontal extension end of the mechanical arm is M, then the above-mentioned first set distance can be set to a value greater than L but less than M to avoid the collision of the mobile robot body with the obstacle or the site boundary when the mobile robot travels along the moving path.
[0133] It can be understood that when the robotic arm extends outward, its maximum reachable extension distance is greater than L. In order to achieve more precise control of the movement and positioning of the mobile robot and avoid the inconvenience of route planning due to the consideration of the extension size of the robotic arm, the maximum extension size of the robotic arm is not used as the effective size of the body during path planning. However, during the movement, the robotic arm can easily collide with obstacles or site boundaries. Therefore, this embodiment further avoids obstacles by adjusting the posture of the robotic arm.
[0134] Among them, the danger point is located at the second set distance before entering the danger zone on the moving path. The second set distance leaves time and space for the robot arm to adjust according to the robot arm adjustment parameters; the set distance is set accordingly according to the robot arm posture adjustment speed and amplitude.
[0135] Furthermore, the robot arm adjustment parameters satisfy that after adjustment, the robot arm moves in a direction to avoid an obstacle position and a site boundary position.
[0136] In this embodiment, after the relationship between the robot arm adjustment parameters and each point of each mobile robot is set, the mobile robot starts from the starting point, and after passing each point, the robot arm can change its posture in the air according to these robot arm adjustment parameters in turn to avoid obstacles and site boundaries.
[0137] In a scenario with a relatively simple site environment, the interpolation method can be used to directly insert paper between the starting coordinates and the end coordinates to determine the robot arm adjustment parameters; for example, assuming the starting coordinates are (x, y, z) and the end coordinates are (x0, y0, z0), the robot arm adjustment parameters are:
[0138]
[0139] Then, the mobile robot can move through (x i ,y i , z i )These points are used to achieve a simple robot arm anti-collision effect.
[0140] In one embodiment, a mobile robot material picking control system is provided, and the mobile robot material picking control system corresponds one-to-one to the mobile robot material picking control method in the above embodiment. Figure 4 As shown, the mobile robot material picking control system includes a mobile control unit 110, an image detection unit 120, a positioning unit 130 and a gripping control unit 140. The functional modules are described in detail as follows:
[0141] A mobile control unit 110, used to control the mobile robot to move from a current position to a material platform, wherein the material platform performs intermittent rotational motion at a set period;
[0142] An image detection unit 120 is used to detect the material on the material platform through an image acquisition device after reaching the material platform;
[0143] A positioning unit 130, configured to position the mobile robot and its image acquisition device according to the position of the material when the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold;
[0144] The gripping control unit 140 is used to control the mechanical arm of the mobile robot to perform material gripping operations.
[0145] In one embodiment of the present application, the material is provided with a color ring for identity identification, and the color rings on different materials have different colors; the image detection unit 120 is further used to:
[0146] Continuously acquiring the detection images collected by the image acquisition device;
[0147] Using Hough transform to process irregular color blocks in the continuously acquired detection image, and extracting the largest circle formed by the irregular color blocks;
[0148] Determine the coordinates of the center of the largest circle.
[0149] In one embodiment of the present application, the positioning unit 130 is further used for:
[0150] Continuously acquiring the center coordinates of the largest circle at preset time intervals;
[0151] When the center coordinates of the maximum circle change within a set range around a center point for N consecutive times, the coordinates of the center point are used as the positioning center coordinates; wherein N is an integer greater than 5;
[0152] The coordinates of the center of the field of view of the image acquisition device are obtained, and according to the difference between the coordinates of the center of the field of view of the image acquisition device and the coordinates of the positioning center, the movement of the mobile robot and its image acquisition device are controlled to align the center of the image acquisition device with the positioning center to achieve positioning.
[0153] In one embodiment of the present application, the gripping control unit 140 is further used to:
[0154] Determining the rotation direction of the material platform;
[0155] Determining the identity of the material;
[0156] Determine the current position information and subsequent position change information of each material according to the identity information of the material, the rotation direction of the material platform, and the preset material arrangement order;
[0157] Based on the current position information and subsequent position change information of each material, the mechanical arm of the mobile robot is controlled to perform the material gripping operation according to the preset material gripping sequence requirements.
[0158] In one embodiment of the present application, when performing a gripping operation, the image acquisition device on the robot arm is aimed at the target material from top to bottom; wherein the mobile robot material picking control system is further used for:
[0159] Control the mechanical arm to rise to a set height, call the image acquisition device to acquire images, and obtain color block information in the current image, wherein the color block information at least includes a color block size parameter;
[0160] If the color block size parameter is greater than a set threshold, the mobile robot and the image acquisition device are repositioned.
[0161] In an embodiment of the present application, the mobile control unit 110 is further configured to:
[0162] Collecting site information by an image acquisition device; the site information at least includes: material platform location information, obstacle location information between the current location and the material platform, and site boundary location information;
[0163] A moving path is planned according to the site information, and the mobile robot is controlled to move toward the material platform along the moving path.
[0164] In an embodiment of the present application, the mobile control unit 110 is further configured to:
[0165] Determine the location information of the dangerous area based on the moving path, obstacle location information, and site boundary location information;
[0166] Setting a dangerous point on the moving path according to the position information of the dangerous zone and adjusting parameters of the robot arm matching the dangerous point;
[0167] When the mobile robot moves to the dangerous point, the mechanical arm is controlled to move according to the mechanical arm adjustment parameters.
[0168] In the embodiment of the present application, a mobile robot material picking control system is provided, including: a mobile control unit 110, an image detection unit 120, a positioning unit 130 and a gripping control unit 140. The mobile robot material picking control system provides a solution for achieving precise material gripping by a mobile robot in this scenario in view of the characteristics of an intermittent rotating material platform, and achieves precise gripping of materials through precise positioning, thereby overcoming the problem that a large amount of accumulated errors are generated after the mobile robot moves over a long distance, and thus the material cannot be accurately gripped.
[0169] For the specific definition of the mobile robot material picking control system, please refer to the definition of the mobile robot precise positioning method based on visual feedback in the above text, which will not be repeated here. Each module in the above mobile robot material picking control system can be implemented in whole or in part by software, hardware and their combination. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0170] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a mobile robot material picking control method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0171] In an embodiment of the present application, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor. When the processor executes the computer-readable instructions, the steps of the mobile robot material picking control method as described above are implemented.
[0172] In an embodiment of the application, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the mobile robot material picking control method as described above are implemented.
[0173] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0174] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0175] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. A mobile robot material picking control method, characterized in that: The method comprises: Control the mobile robot to move from the current position to the material platform, and the material platform performs intermittent rotational motion at a set period; After reaching the material platform, the material on the material platform is detected by an image acquisition device; When the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold, the mobile robot and its image acquisition device are positioned according to the position of the material; The mechanical arm of the mobile robot is controlled to perform a material gripping operation.
2. The mobile robot material picking control method according to claim 1, characterized in that: The material is provided with a color ring for identity identification, and the color rings on different materials have different colors; The detecting of the material on the material platform by the image acquisition device includes: Continuously acquiring the detection images collected by the image acquisition device; Using Hough transform to process irregular color blocks in the continuously acquired detection image, and extracting the largest circle formed by the irregular color blocks; Determine the coordinates of the center of the largest circle.
3. The mobile robot material picking control method according to claim 2, characterized in that: When the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold, the mobile robot and the image acquisition device are positioned according to the position of the material, including: Continuously acquiring the center coordinates of the largest circle at preset time intervals; When the center coordinates of the maximum circle change within a set range around a center point for N consecutive times, the coordinates of the center point are used as the positioning center coordinates; wherein N is an integer greater than 5; the center point is any one of the center coordinates of the maximum circle obtained N consecutive times, or is obtained by fitting the center coordinates of the maximum circle obtained N consecutive times; The coordinates of the center of the field of view of the image acquisition device are obtained, and according to the difference between the coordinates of the center of the field of view of the image acquisition device and the coordinates of the positioning center, the movement of the mobile robot and its image acquisition device are controlled to align the center of the image acquisition device with the positioning center to achieve positioning.
4. The mobile robot material picking control method according to claim 2, characterized in that: The controlling the mechanical arm of the mobile robot to perform a material gripping operation comprises: Determining the rotation direction of the material platform; Determining the identity of the material; Determine the current position information and subsequent position change information of each material according to the identity information of the material, the rotation direction of the material platform, and the preset material arrangement order; Based on the current position information and subsequent position change information of each material, the mechanical arm of the mobile robot is controlled to perform the material gripping operation according to the preset material gripping sequence requirements.
5. The mobile robot material picking control method according to claim 2, characterized in that: When performing the gripping operation, the image acquisition device on the robot arm is aimed at the target material from top to bottom; After the mechanical arm of the mobile robot is controlled to perform the material gripping operation, the method includes: Control the mechanical arm to rise to a set height, call the image acquisition device to acquire images, and obtain color block information in the current image, wherein the color block information at least includes a color block size parameter; If the color block size parameter is greater than a set threshold, the mobile robot and the image acquisition device are repositioned.
6. The mobile robot material picking control method according to claim 5, characterized in that: The repositioning of the mobile robot and the image acquisition device comprises: Get the center coordinates of the largest circle of the relocated color block, and record them as the secondary positioning center coordinates; Calculate the coordinate difference between the secondary positioning center coordinate and the center of the field of view of the image acquisition device; Based on the correspondence between the image coordinates and the actual mechanism, the positioning adjustment parameters of the robot arm are calculated.
7. The mobile robot material picking control method according to claim 1, characterized in that: The controlling the mobile robot to move from the current position to the material platform comprises: Collecting site information by an image acquisition device; the site information at least includes: material platform location information, obstacle location information between the current location and the material platform, and site boundary location information; Planning a moving path according to the site information, and controlling the mobile robot to move toward the material platform along the moving path; Determine the position information of the dangerous section based on the moving path, the obstacle position information, and the site boundary position information; the dangerous section is a section on the moving path that is less than a first set distance from the obstacle position and the site boundary position, and the first set distance is greater than the maximum dimension of the center of the mobile robot body from the periphery, and less than the maximum dimension of the center of the mobile robot body from the horizontal extension end of the robot arm; Setting a dangerous point on the moving path and adjusting parameters of the robot arm that match the dangerous point according to the position information of the dangerous zone; the dangerous point is located at a second set distance before entering the dangerous zone on the moving path; When the mobile robot moves to the dangerous point, the mechanical arm is controlled to move according to the mechanical arm adjustment parameters.
8. A mobile robot material taking control system, characterized in that: include: A mobile control unit, used to control the mobile robot to move from a current position to a material platform, wherein the material platform performs intermittent rotational motion at a set period; An image detection unit, used to detect the material on the material platform through an image acquisition device after reaching the material platform; A positioning unit, used to position the mobile robot and its image acquisition device according to the position of the material when the residence time of the material falling into the detection field of view of the image acquisition device exceeds a preset threshold; A gripping control unit is used to control the mechanical arm of the mobile robot to perform material gripping operations.
9. A computer device comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer-readable instructions, the steps of the mobile robot material picking control method as described in any one of claims 1 to 7 are implemented.
10. A readable storage medium storing computer-readable instructions, characterized in that: When the computer-readable instructions are executed by a processor, the mobile robot material picking control method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for rapidly and accurately locating by utilizing relative coordinate
CN102506881A
Manipulator motion trail planning method and bolt grabbing detection system
CN112975953A
Electronic component conveyance device, manufacturing method for electronic component conveyance device and rotary table
JP2018095399A
AU2020101932A4
