A robot intelligence control method, an instrument panel installation method, and a robot
By using intelligent robot control methods and employing cameras to detect the coordinates of the center of the positioning hole and calculate the trajectory of the end effector, the problem of low instrument panel installation accuracy was solved, achieving efficient and precise instrument panel installation and reducing costs and risks.
Patent Information
- Application Number
- CN202410394247.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-04-02
AI Technical Summary
In the existing technology, the installation accuracy of passenger car dashboards is low, resulting in high production costs and poor quality. Semi-automatic methods are labor-intensive and have high labor costs, while fully automatic methods have large installation errors and low efficiency.
By employing intelligent robot control methods, images are acquired through cameras for target detection, the center coordinates of the positioning holes are determined, and the movement trajectory of the end effector is calculated to achieve precise positioning and installation of the dashboard.
It improves the accuracy and efficiency of dashboard installation, reduces labor costs, minimizes production risks caused by worker factors, and enhances production quality and efficiency.
Smart Images

Figure CN118046392B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of robotics, and in particular to a robot intelligent control method, an instrument panel installation method, and a robot. Background Technology
[0002] The dashboard is a component in passenger vehicles located in the driver's cab that reflects the vehicle's basic driving status and operating parameters. The installation of the dashboard onto the vehicle body requires high precision. Currently, most dashboard installations are done using controlled robots, including semi-automatic and fully automatic methods. Semi-automatic methods, which combine semi-automatic robotic arms with human labor, are labor-intensive, resulting in high labor costs and production risks due to human error, leading to high production costs and low efficiency. Fully automatic methods, using robots to install dashboards, have significant installation errors, resulting in lower actual installation accuracy and consequently higher production costs and lower manufacturing quality. Summary of the Invention
[0003] To overcome the problems existing in related technologies, an exemplary embodiment of this disclosure provides a robot intelligent control method in the first aspect. The robot is used to fix an instrument panel to a mounting hole in a vehicle body, wherein a positioning hole is provided below the mounting hole. The robot includes: an end effector for fixing the instrument panel to the mounting hole, and a camera fixed at a position relative to the end effector. The robot intelligent control method includes: acquiring an image through the camera; performing target detection based on the image to obtain the center coordinates of the positioning hole; and calculating and determining the movement trajectory of the end effector based on the center coordinates of the positioning hole, wherein the end effector fixes the instrument panel to the mounting hole based on the movement trajectory.
[0004] In some embodiments, the step of performing target detection based on the image to obtain the center coordinates of the positioning hole includes: performing noise reduction processing on the image to obtain a noise-reduced image; and obtaining the center coordinates of the positioning hole by patch detection based on the noise-reduced image.
[0005] In some embodiments, the step of performing noise reduction processing on the image to obtain a noise-reduced image includes: performing Gaussian filtering on the image to obtain a filtered image; performing edge detection on the filtered image to obtain an edge image; performing binarization on the edge image to obtain a binary image; and performing morphological operator processing on the binary image to obtain the noise-reduced image.
[0006] In some embodiments, before performing noise reduction processing on the image to obtain a noise-reduced image, the step of performing target detection on the image to obtain the center coordinates of the positioning hole further includes: converting the image to grayscale to obtain a grayscale image; performing median blurring on the grayscale image to obtain a noise-reduced grayscale image; performing Hough transform on the noise-reduced grayscale image to obtain the outline, center coordinates, and radius of each circle in the noise-reduced grayscale image; and masking the interference portion in the noise-reduced grayscale image based on the outline, center coordinates, and radius of the largest circle in the noise-reduced grayscale image to obtain the image of the positioning hole.
[0007] In some embodiments, the step of masking the interference portion in the denoised grayscale image based on the outline, center coordinates, and radius of the largest circle in the denoised grayscale image to obtain the image of the positioning hole includes: obtaining the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle based on the outline, center coordinates, and radius of the largest circle in the image; and partially masking the image based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle to obtain the image of the positioning hole.
[0008] In some embodiments, the step of partially masking the image based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle to obtain the image of the positioning hole includes: reducing the size by 1-5 pixels based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle to obtain the masking coordinates; and partially masking the image based on the masking coordinates to obtain the image of the positioning hole.
[0009] Secondly, according to some other exemplary embodiments, this disclosure also provides a dashboard installation method, including: grasping the dashboard by a robot; coarsely locating the dashboard installation position; determining the movement trajectory of the end effector according to the robot intelligent control method as described in the first aspect; and controlling the robot to install the dashboard onto the vehicle body according to the movement trajectory of the end effector.
[0010] Thirdly, according to some other exemplary embodiments, this disclosure also provides a robot for performing the dashboard installation method as described in the second aspect, the robot comprising: an end effector for securing the dashboard to the mounting hole; and a camera fixed in a position relative to the end effector.
[0011] In some embodiments, the robot further includes a camera aperture fixed relative to the end effector, wherein the camera is mounted in the camera aperture.
[0012] In some embodiments, the cross-section of the camera aperture is polygonal or elliptical; or, the inner surface of the camera aperture is coated with one or more colors.
[0013] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
[0014] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: Through the intelligent control method of the robot, the camera installed on the robot identifies the positioning hole below the mounting hole. The positioning hole is part of the vehicle body structure and requires no additional processing. Using the positioning hole as the target detection position brings the target detection position closer to the mounting hole, effectively reducing positioning errors and improving the accuracy of dashboard installation. By controlling the robot to detect, identify, and install the positioning hole, the accuracy of dashboard installation is higher, and production efficiency is effectively improved. The fully automated intelligent robot control method eliminates manual control, effectively reducing labor costs and production risks caused by individual worker factors. It effectively improves the accuracy of dashboard installation, effectively improves production quality and efficiency, and reduces production costs. Attached Figure Description
[0015] This disclosure can be better understood by describing exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, in which:
[0016] Figure 1 This is a schematic diagram of a robot structure shown according to an exemplary embodiment disclosed in a publication;
[0017] Figure 2 This is a schematic diagram of the instrument panel mounting location structure according to an exemplary embodiment disclosed in a publication;
[0018] Figure 3 This is a flowchart illustrating a robot intelligent control method according to an exemplary embodiment disclosed in a book.
[0019] Figure 4 This is a schematic diagram of target detection results illustrated according to an exemplary embodiment of a public document;
[0020] Figure 5 This is a flowchart illustrating a robot intelligent control method according to another exemplary embodiment disclosed;
[0021] Figure 6 This is a flowchart illustrating a robot intelligent control method according to another exemplary embodiment disclosed;
[0022] Figure 7 This is a schematic diagram illustrating the noise reduction processing result according to an exemplary embodiment of a disclosed document;
[0023] Figure 8 This is a flowchart illustrating a robot intelligent control method according to another exemplary embodiment disclosed;
[0024] Figure 9This is a schematic diagram of target detection results shown according to another exemplary embodiment disclosed;
[0025] Figure 10 This is a flowchart illustrating a robot intelligent control method according to another exemplary embodiment disclosed;
[0026] Figure 11 This is a flowchart illustrating a robot intelligent control method according to another exemplary embodiment disclosed;
[0027] Figure 12 This is a flowchart illustrating a dashboard installation method according to an exemplary embodiment of a published document;
[0028] Figure 13 This is a schematic diagram of a coarse positioning process illustrated according to an exemplary embodiment of a published document. Detailed Implementation
[0029] The following describes specific embodiments of this disclosure. It should be noted that, in order to maintain brevity, this specification cannot provide a detailed description of all features of the actual embodiments. It should be understood that, in the actual implementation of any embodiment, just as in any engineering or design project, various specific decisions are often made to achieve the developer's specific goals and to meet system-related or business-related constraints, and this can change from one embodiment to another. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content of this disclosure, changes in design, manufacturing, or production based on the technical content disclosed herein are merely conventional technical means and should not be construed as insufficient content of this disclosure.
[0030] Unless otherwise defined, the technical or scientific terms used in the claims and description shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in the specification and claims of this patent application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. The terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the element or object preceding “comprising” or “including” encompasses the element or object listed following “comprising” or “including” and its equivalents, and do not exclude other elements or objects. The terms “connected” or “linked” and similar terms are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.
[0031] like Figure 1 As shown, a robot used to fix a dashboard to a mounting hole in the vehicle body may include: an end effector for fixing the dashboard to the mounting hole 410, and a camera fixed in position relative to the end effector. The end effector may include a tightening gun for tightening screws and nuts on the dashboard mounting hole 410 according to torque requirements, thus fixing the dashboard to the mounting hole 410 in the vehicle body; the end effector may also include grippers for holding the dashboard. The camera may be an industrial camera for acquiring video or images to facilitate determining the dashboard position. The camera is mounted on the robot and fixed in position relative to the end effector. Figure 2 As shown, a positioning hole 420 is provided below the mounting hole 410 on the vehicle body. The positioning hole 420 is part of the vehicle body and requires no additional drilling. Furthermore, the positioning hole 420 and the mounting hole 410 are located on the same component of the vehicle body. Detection using the positioning hole 420 as the target can reduce errors in the instrument panel installation accuracy caused by dimensional chain errors. The positioning hole 420 can be circular. The positioning hole 420 is located close to the mounting hole 410, and the distance between the positioning hole 420 and the mounting hole 410 is fixed. The distance between the camera and the end effector can be equal to the distance between the positioning hole 420 and the mounting hole 410. The camera can acquire an image of the positioning hole 420, allowing the robot to install the instrument panel onto the mounting hole 410 based on the camera image and the distance between the positioning hole 420 and the mounting hole 410.
[0032] In some related technologies, a fully automated method is used to control a robot to position and install the dashboard into the mounting holes on the vehicle body. During the dashboard installation, feature points need to be collected to facilitate the positioning of the mounting holes. In these technologies, the feature points collected during the guidance process are on the left and right fenders, not the dashboard mounting holes. The fenders are welded to the vehicle body in the body shop, and the dashboard is installed in a different shop. During dashboard installation, there is a dimensional chain error of ±2mm from the fender to the mounting hole, resulting in a large positioning error, low installation accuracy, and failure to meet precision requirements. This leads to poor installation quality, large errors, and a low actual installation accuracy rate, resulting in the dashboard installation failing to meet accuracy requirements, higher production costs, and lower manufacturing quality. For dashboard installation, maintaining an installation error of ±1.17mm achieves better results. This disclosure proposes a robot intelligent control method 100, which can effectively improve the installation accuracy of the dashboard, reduce installation errors, and improve the installation quality.
[0033] like Figure 3 The robot intelligent control method 100 disclosed herein may include steps S10, S20, and S30, which are described in detail below:
[0034] Step S10: Acquire images using a camera. The camera can be mounted on the robot, with its relative position to the end effector fixed. As the robot moves, the camera's orientation is the same as the end effector's orientation. The camera can capture video or images. When the camera captures video, the robot can acquire the video and then segment it into multiple images based on the video's frame rate to obtain the images captured by the camera. When the camera captures images, the robot can directly acquire the images for subsequent processing. When installing the dashboard onto the vehicle body, the robot can grasp the dashboard and perform coarse positioning of the dashboard mounting position 400. Subsequently, the robot intelligent control method 100 determines the movement trajectory of the end effector. The camera can begin capturing images after coarse positioning is completed. After coarse positioning, the end effector is located near the mounting hole 410 and the positioning hole 420. At this point, the camera begins capturing images, ensuring that the images acquired by the camera include image information of the positioning hole 420, facilitating subsequent target detection. The camera can be fixed to the robot, with its relative position to the end effector fixed. Since the positioning hole 420 and the mounting hole 410 are in a fixed relative position, the camera needs to capture an image of the positioning hole 420, and the end effector needs to mount the instrument panel onto the mounting hole 410. This fixed relative position facilitates capturing an image of the positioning hole 420 and allows the end effector to align with the mounting hole 410. In some embodiments, the distance between the camera and the end effector can be equal to the distance between the positioning hole 420 and the mounting hole 410. This allows the end effector to move closer to the mounting hole 410 when the camera is close to the positioning hole 420 to acquire an image. This simplifies the subsequent planning of the end effector trajectory based on the position of the positioning hole 420. The trajectory of the end effector moving to the mounting hole 410 can be planned only based on the center position of the positioning hole 420 in the image captured by the camera, without considering the offset caused by the distance between the mounting hole 410 and the positioning hole 420. This makes controlling the robot to install the instrument panel much simpler.
[0035] In some embodiments, the camera can be preset to a shooting focal length or perform autofocus. Before the camera starts shooting, the robot can perform coarse positioning to facilitate the camera to acquire an image of the positioning hole 420. After coarse positioning, the robot camera and end effector are located near the positioning hole 420 and the mounting hole 410. The shooting focal length of the camera can be preset according to the distance between the coarsely positioned camera and the positioning hole 420. The camera can also be an autofocus camera to facilitate camera focusing, capture clear images, and improve the detection effect of subsequent target detection on the image.
[0036] Step S20: Perform target detection based on the image to obtain the center coordinates of the positioning hole 420. Based on the image acquired from the camera, perform target detection using a visual algorithm to determine the position of the positioning hole 420 and obtain the coordinates of the center of the positioning hole 420 in the image. Target detection requires detecting the position of the positioning hole 420. The positioning hole 420 can be circular; therefore, the position of the positioning hole 420 can be determined by detecting circles in the image. Target detection can be achieved by detecting the edges of circles in the image. Based on the detected circular edges, the position of the positioning hole 420 is determined, and the center coordinates of the positioning hole 420 are output. The result of the target detection is as follows: Figure 4 As shown. Target detection can also be achieved by detecting circular patches in the image. Based on the detected circular patches, the position of the positioning hole 420 is determined, and the coordinates of the center of the positioning hole 420 are obtained. Preprocessing the image before target detection can improve image quality and clarity, effectively improving the accuracy of target detection and thus enhancing the installation precision of the mounting hole 410.
[0037] Step S30: Based on the center coordinates of the positioning hole 420, the movement trajectory of the end effector is determined by calculation. The end effector fixes the instrument panel to the mounting hole 410 based on the movement trajectory. The robot intelligent control method 100 of this disclosure acquires images using a camera and detects the center position of the positioning hole 420. By calculating and planning the movement trajectory, when determining the movement trajectory of the end effector, it is necessary to align the end effector with the center of the mounting hole 410 at the end of the movement trajectory. Since the distance between the positioning hole 420 and the mounting hole 410 is fixed, the center coordinates of the mounting hole 410 can be calculated based on the center coordinates of the positioning hole 420. The center coordinates of the positioning hole 420 are determined through images captured by the camera, and the distance between the camera and the end effector is fixed. The robot can acquire the real-time pose of the end effector to determine the camera's pose. Based on the camera's pose and the center coordinates of the positioning hole 420, the center coordinates of the mounting hole 410 are determined, thereby determining the positional relationship between the end effector and the center of the mounting hole 410, and thus determining the movement trajectory of the end effector.
[0038] Since the relative positions of the camera and the end effector are fixed, and the relative positions of the positioning hole 420 and the mounting hole 410 are also fixed, when the relative distance and position angle between the camera and the end effector are the same as those between the positioning hole 420 and the mounting hole 410, the movement trajectory of the end effector can be determined based on the center coordinates of the positioning hole 420 and the current pose of the robot's end effector. When the relative distance and position angle between the camera and the end effector are different from those between the positioning hole 420 and the mounting hole 410, the movement trajectory of the end effector can be determined based on the difference between the relative distance and position angle, the center coordinates of the positioning hole 420, and the current pose of the robot's end effector. The robot can calculate and obtain the movement trajectory of the end effector, and control the end effector to move along the movement trajectory to the mounting hole 410 when installing the instrument panel, and then fix the instrument panel to the mounting hole 410.
[0039] In some embodiments, step S30 can be performed as follows: Based on the center coordinates of the positioning hole 420 in the image, obtain the pixel matrix of the center, record the obtained center coordinates as (u, v), and calculate the pixel matrix of the center as [u, v, 0, 0, 0, 2]′. Obtain the coordinate matrix T of the robot base relative to the end effector by reading the robot controller. BaseTool Then, hand-eye calibration is performed on the robot to obtain the coordinate matrix T of the end effector relative to the camera. BaseCamera According to the center pixel matrix, T BaseTool And T BaseCamera The coordinate matrix T of the center of the positioning hole 420 relative to the robot base can be obtained by the following calculation:
[0040] T = T BaseTool ×T ToolCamera ×[u,v,0,0,0,2]′
[0041] This method of determining the movement trajectory of the robot's end effector simplifies data acquisition, reduces computational load during trajectory determination, and is simple and rapid, thereby improving the efficiency of target detection and thus the efficiency of dashboard installation.
[0042] To control a robot to install a car dashboard, it is necessary to select a suitable location as the robot's feature acquisition point so that the robot can correctly guide the end effector to the installation position 400. In this disclosure, step S20 selects the positioning hole 420 below the mounting hole 410 as the feature acquisition location, and selects the center of the positioning hole 420 as the feature acquisition point. The position of the positioning hole 420 relative to the mounting hole 410 is fixed, and the positioning hole 420 and the mounting hole 410 are located on the same part of the car body. This results in higher accuracy when obtaining the center coordinates of the positioning hole 420 through target detection, thereby achieving higher positioning accuracy for the dashboard installation and keeping the positioning error within ±1.17mm, resulting in better installation accuracy. Trajectory planning based on the center position of the positioning hole 420 can effectively improve production efficiency. Through the fully automatic robot intelligent control method 100, labor costs are effectively reduced, production risks caused by individual worker factors are reduced, and production quality and efficiency are effectively improved.
[0043] In some embodiments, such as Figure 5 As shown, step S20, which involves target detection based on the image to obtain the center coordinates of the positioning hole 420, may include: step S21, performing noise reduction processing on the image to obtain a denoised image; and step S22, obtaining the center coordinates of the positioning hole 420 through patch detection based on the denoised image. During the digitization and transmission of images acquired by the camera, interference from equipment and the external environment can cause noise in the image. This noise can affect target detection and recognition. Therefore, before performing target detection on the image, noise reduction processing can be performed to reduce noise, improve image quality, and obtain a clearer denoised image. Based on the denoised image, the center coordinates of the positioning hole 420 can be obtained through patch detection. Patch detection can detect connected regions or spots in the denoised image that are significantly different from the surrounding area. Through patch detection, the position of the positioning hole 420 in the denoised image can be determined. Patch detection can provide the edges and centers of the detected patches; therefore, the center coordinates of the positioning hole 420 in the denoised image can be obtained through patch detection. Step S21, which denoises the image, effectively improves image clarity and quality, thereby optimizing target detection and making detection more accurate and effective. This facilitates target detection and significantly improves its accuracy. Step S22 then performs patch detection on the denoised image, efficiently extracting targets and obtaining the coordinates of the center of the positioning hole 420. This effectively improves the stability and accuracy of the robot intelligent control method 100.
[0044] In some embodiments, such as Figure 6As shown, step S21, based on the image, performs noise reduction processing to obtain a denoised image, which may include: step S211, performing Gaussian filtering on the image to obtain a filtered image; step S212, performing edge detection on the filtered image to obtain an edge image; step S213, performing binarization on the edge image to obtain a binary image; and step S214, performing morphological operator processing on the binary image to obtain a denoised image. By performing Gaussian filtering on the image, high-frequency components in the image are filtered out, while low-frequency components are retained, thereby effectively suppressing Gaussian noise in the image and making the image smoother, resulting in a filtered image, as shown. Figure 7 As shown in (a). Edge detection is performed on the filtered image, which can detect edges and contours in the image and enhance image contrast, making the edges and contours clearer. The edge image obtained from edge detection has continuous and clear edge lines, which can eliminate some noise and facilitate the identification of the detection target, i.e., the contour of the positioning hole 420. The resulting edge image is shown below. Figure 7 As shown in (b), binarization is performed on the edge image. Since binarization requires converting each pixel in the edge image into one of two specific grayscale values, for ease of calculation, the edge image can be grayscaled before binarization to obtain a grayscale edge image. The grayscale value of each pixel in the grayscale edge image can be converted into a binary value (generally 0 and 255), which can eliminate noise and make the edge contours obtained by edge detection more prominent, resulting in a binary image, such as... Figure 7 As shown in (c), this makes the edge features of the positioning hole 420 more prominent, facilitating target detection. Based on the binary image, morphological operators are used to remove noise from the binary image through erosion, dilation, opening, and closing operations. The boundaries of the positioning hole 420 in the binary image are smoothed, and holes affecting recognition are filled in the image, making the positioning hole 420 appear as circular patches in the image, resulting in a denoised image, such as... Figure 7 As shown in (d), the positioning hole 420 is easily identifiable. Through steps S211 to S214, the image is denoised, effectively reducing noise in the image, improving the accuracy of target detection, and thus effectively improving the precision of dashboard installation.
[0045] In some embodiments, such as Figure 8As shown, before denoising the image in step S21 to obtain the denoised image, step S20 performs target detection based on the image to obtain the center coordinates of the positioning hole 420. This may also include: step S23 converting the image to grayscale to obtain a grayscale image; step S24 performing median blurring on the grayscale image to obtain a denoised grayscale image; step S25 performing a Hough transform on the denoised grayscale image to obtain the outline, center coordinates, and radius of each circle in the denoised grayscale image; and step S26 using the outline, center coordinates, and radius of the largest circle in the denoised grayscale image to mask the interference parts in the denoised grayscale image, thus obtaining the image of the positioning hole 420. When performing target detection, step S23 can be performed first to convert the image to grayscale, transforming the three-channel image acquired by the camera into a single-channel grayscale image, as shown below. Figure 9 As shown in (a), this improves the efficiency and accuracy of target detection, thereby enhancing the robot's positioning accuracy during dashboard installation. During target detection, step S24 can be used to denoise the image. This denoising process can be a median blurring operation, using the median of the neighborhood surrounding each pixel as its value. This reduces noise in the image, improves image quality, and yields a denoised grayscale image, thus improving the accuracy of target detection and enhancing the robot's positioning accuracy during dashboard installation. Step S25 performs a Hough transform based on the denoised grayscale image to identify circles in the image. When the acquired image only contains the positioning hole 420, the outline, center coordinates, and radius of the positioning hole 420 can be directly obtained from the denoised grayscale image, as shown below. Figure 9 As shown in (b). In some embodiments, the camera can be installed in a camera hole near the end effector of the robotic arm. The camera hole is circular. Therefore, the image acquired by the camera includes the camera hole. In this case, the contours, center coordinates, and radii of the camera hole and the positioning hole 420 can be obtained by Hough transform. In the image acquired by the camera, the camera hole is much larger than the positioning hole 420. Therefore, the contours, center coordinates, and radii of the positioning hole 420 in the denoised grayscale image can be determined according to the size and radius of the circular contour. According to step S26, the interference part in the denoised grayscale image is masked. The interference part can be a related structure outside the positioning hole 420. In some embodiments, the camera can be installed in a camera hole near the end effector of the robotic arm. The camera hole can be circular. The image acquired by the camera includes a circular camera hole, which will affect the target detection effect. The interference part can include the camera hole. The contour of the camera hole can be at least partially masked to avoid the influence of the camera hole on the target detection, and finally the image of the positioning hole 420 is obtained. By covering the interfering parts, the influence of other structures near the positioning hole 420 on the target detection accuracy can be avoided, ensuring the accuracy of target detection. At the same time, the amount of data that needs to be processed for target detection is reduced, thus improving the efficiency of target detection.
[0046] In some embodiments, such as Figure 10 As shown, step S26, which involves masking the interference portion of the largest circle in the denoised grayscale image based on its outline, center coordinates, and radius, to obtain the image of the positioning hole 420, may include: step S261, obtaining the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle based on its outline, center coordinates, and radius; and step S262, partially masking the image based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle to obtain the image of the positioning hole 420. When the camera is installed in the camera hole near the end effector of the robotic arm, and the camera hole is circular, the image obtained by the camera may contain the circular camera hole, which may affect the identification of the positioning hole 420. Therefore, according to step S261, the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle are obtained based on its outline, center coordinates, and radius. In this image, the largest circle can be the camera hole. Using the outline, center coordinates, and radius of the largest circle, the coordinates of the pixels at the four corners of the rectangle circumscribed by the largest circle can be calculated. The coordinates of a set of diagonal pixels of the rectangle circumscribed by the largest circle can be obtained; these can be the coordinates of the upper left and lower right corners, or the lower left and upper right corners. Based on these diagonal pixel coordinates, the position, outline, and size of the rectangle circumscribed by the largest circle can be determined. According to step S262, based on the coordinates of the diagonal pixels of the rectangle circumscribed by the largest circle, a partial mask is applied to the image, resulting in the image of the positioning hole 420. Based on the coordinates of the diagonal pixels of the rectangle circumscribed by the largest circle, the size and position of the rectangle circumscribed by the largest circle can be determined, i.e., the size and position of the rectangle circumscribed by the camera hole in the image. Subsequently, a partial mask can be applied to the image based on the rectangle circumscribed by the largest circle in the image. The image can be masked by using the circumscribed rectangle of the largest circle as the boundary, while retaining the portion inside the circumscribed rectangle. Alternatively, the coordinates of the diagonal pixels of the circumscribed rectangle can be reduced to obtain the coordinates of a rectangle smaller than the circumscribed rectangle. Using these rectangle coordinates as a reference, the portion outside the rectangle can be masked while retaining the portion inside. This effectively reduces the amount of image data processed for target detection, avoids the influence of irrelevant information in the image on target detection, and improves the efficiency and accuracy of target detection.
[0047] In some embodiments, such as Figure 11As shown, step S262, based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle, partially masks the image to obtain the image of the positioning hole 420; this may include: step S2621, based on the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle, reducing them by 1-5 pixels to obtain mask coordinates; step S2622, based on the mask coordinates, partially masking the image to obtain the image of the positioning hole 420. By reducing the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle by a certain number of pixels, a set of mask coordinates is obtained. From the mask coordinates, a mask rectangle smaller than the circumscribed rectangle of the largest circle can be obtained. The part of the image outside the mask rectangle is masked, while the part inside the mask rectangle is retained, resulting in an image where the interior of the mask rectangle contains the positioning hole 420. The image of the positioning hole 420 contains the positioning hole 420. By reducing the coordinates of the diagonal pixels of the rectangle circumscribed by the largest circle by 1-5 pixels, the masking rectangle formed by the reduced masking coordinates does not contain the complete largest circle. This avoids the influence of the largest circle outside the positioning hole 420 on target detection. At the same time, the entire image outside the masking rectangle is masked, reducing the area to be detected. This effectively improves detection efficiency and accuracy, thereby increasing the efficiency of robot instrument panel installation and reducing installation errors.
[0048] In some embodiments, step S2621 reduces the size by 1-5 pixels based on the coordinates of the diagonal pixels of the rectangle circumscribed by the largest circle to obtain the mask coordinates; based on the mask coordinates, the image is partially masked to obtain the image of the positioning hole 420, which can be achieved by the following method: based on the center coordinates (i, j) of the largest circle and the radius r of the circle, the coordinate positions of the two pixels at the upper left and lower right corners of the square circumscribed by the largest circle are determined, and calculated using the following formula:
[0049] Point top (i,j)=(ir,jr)
[0050] Point bottom (i,j)=(i+r,j+r)
[0051] Where, Point top (i,j) are the pixel coordinates of the top-left corner of the square circumscribed by the largest circle. Point bottom (i,j) represents the pixel coordinates of the bottom right corner of the square circumscribed by the largest circle. The pixel coordinates of the top left and bottom right corners of the square circumscribed by the largest circle are each reduced by 2 pixels, resulting in two mask coordinates: Point... top ′(i,j) and Point bottom′(i,j). The image within the square region formed by the two masking coordinates is retained, and the remaining region is masked to obtain the image of the positioning hole 420, which contains information about the positioning hole 420. The square region enclosed by the reduced masking coordinates does not contain a complete maximum circle, thus effectively avoiding the influence of the maximum circle in the image on target detection. Simultaneously, because the image is masked, the area to be detected is reduced, effectively improving detection efficiency and accuracy, thereby reducing the installation error of the dashboard.
[0052] Based on the same inventive concept, such as Figure 12 As shown, this disclosure also provides a dashboard installation method 200, including: using a robot to grasp the dashboard, coarsely positioning the dashboard installation position 400, determining the movement trajectory of an end effector according to the robot intelligent control method 100 as described in any of the foregoing embodiments; and controlling the robot to install the dashboard onto the vehicle body according to the movement trajectory of the end effector. The above steps are described in detail below:
[0053] The robot picks up the dashboard. The dashboard can be set at the pickup station for easy robot gripping. The robot moves to the preset pickup station and uses its grippers to pick up the dashboard at the pickup location. The dashboard can be fixed to the pickup station with screws. After the robot moves to the preset pickup station, it can drive the robot's tightening gun to loosen the screws on the dashboard before picking it up with its grippers.
[0054] Coarse positioning is performed on the dashboard mounting location 400. After grasping the dashboard, the robot's end effector and dashboard can be coarsely positioned to be near the dashboard mounting location 400 inside the vehicle body. During the coarse positioning of the dashboard mounting location 400, a following point can be set on the vehicle body, enabling the robot to identify the following point and track it in a timely manner when the following point moves, moving synchronously with it. This allows the robot's end effector and dashboard to achieve the same speed as the vehicle body in the flow direction, enabling them to follow the vehicle body and synchronize with its position, facilitating the positioning of the mounting location 400. In some embodiments, an AprilTags QR code can be set at the following point on the vehicle body. A camera can recognize the QR code and control the robot's end effector and dashboard to follow the QR code, achieving speed and position synchronization between the end effector and the vehicle body. When the robot performs coarse positioning of the dashboard mounting position 400, the end effector needs to be extended into the vehicle body and moved to the vicinity of the mounting position 400. To prevent the robot from colliding with the vehicle body during the process of extending the end effector and the dashboard into the vehicle body, a sensor can be installed on the robot's end effector. A laser sensor can be installed to identify the distance between the end effector and the vehicle body. The movement trajectory of the end effector to avoid collision with the vehicle body is calculated, and the robot is controlled to move and deliver the dashboard to the vicinity of the mounting position 400, thus completing the coarse positioning of the dashboard mounting position 400.
[0055] In some embodiments, such as Figure 13 As shown, after the robot grasps the dashboard, it can move to the synchronization waiting position in the workstation, ready to synchronize with the vehicle body. The robot then transmits a signal to the PLC, informing it to prepare for synchronization. Upon receiving the robot's signal, the PLC monitors the vehicle body in real time to confirm whether it has entered the workstation. Once the PLC recognizes the vehicle body's entry, it transmits a synchronization command to the robot servo system. Upon receiving the synchronization command, the robot servo system tracks the following point on the vehicle body, ensuring the robot maintains synchronized operation. Subsequently, the PLC controls the steering column and tightening gun to maintain their positions. The robot's end effector grasps the dashboard while simultaneously performing a B-pillar anti-collision scan to prevent collisions between the dashboard or the robot end effector and the B-pillar, which could cause damage. Based on the anti-collision scan results, the robot's offset trajectory to avoid collisions is calculated. Based on this collision-avoidance trajectory, the robot's movement is controlled to deliver the dashboard to the installation position approximately 400 degrees, completing the coarse positioning. Through communication between the PLC and the robot servo system, as well as the robot's anti-collision scanning and path planning, coarse positioning of the instrument panel installation position 400 can be achieved, so that the instrument panel installation position 400 can be precisely positioned in the future, thereby improving the efficiency and accuracy of instrument panel installation and making the instrument panel installation safer and more accurate.
[0056] According to the robot intelligent control method 100 of any of the foregoing embodiments, the movement trajectory of the end effector is determined. Images are acquired by a camera, and target detection is performed based on the images to obtain the center coordinates of the positioning hole 420. Based on the center coordinates of the positioning hole 420, the movement trajectory of the end effector to move to the mounting hole 410 is finally determined by calculation.
[0057] Based on the movement trajectory of the end effector, the robot is controlled to install the dashboard onto the vehicle body. Following the predetermined movement trajectory of the end effector, the robot grips and moves the dashboard, installing it into the mounting hole 410. Then, according to the given torque requirements, the fasteners on the dashboard are tightened to secure it to the vehicle body.
[0058] By using the instrument panel installation method 200, the installation position 400 of the instrument panel is coarsely and precisely positioned, and the instrument panel is finally installed on the vehicle body. This improves the positioning accuracy of the instrument panel, thereby improving the installation accuracy. At the same time, it prevents the instrument panel from interfering with the vehicle body and causing damage during the installation process, thus improving the safety of the instrument panel installation process.
[0059] Based on the same inventive concept, this disclosure also provides a robot 300 for performing the dashboard installation method 200 as described in any of the foregoing embodiments. The robot 300 includes: an end effector 310 for fixing the dashboard to a mounting hole 410; and a camera 320 fixed in a relative position to the end effector 310. The end effector 310 may include grippers for grasping and placing the dashboard; the end effector 310 may also include a tightening gun for tightening or loosening screws on the dashboard, facilitating the installation and removal of the dashboard. The camera 320 may be an industrial camera capable of capturing video or images, facilitating target detection at the dashboard installation position 400. The camera 320 may be positioned close to the robot's end effector 310, and the distance between the camera 320 and the end effector 310 remains constant during the operation of the robot 300; the relative position of the camera 320 and the end effector 310 may remain unchanged. The distance between the end effector 310 and the camera 320 can be equal to the distance between the mounting hole 410 and the positioning hole 420. When installing the instrument panel, the camera 320 detects the position of the positioning hole 420 and aligns the camera 320 with the positioning hole 420. The end effector 310 can be directly aligned with the mounting hole 410, making the positioning and installation of the instrument panel simpler and faster, while ensuring positioning accuracy, thereby improving the installation accuracy of the instrument panel.
[0060] In some embodiments, the robot 300 may further include: a camera hole, fixed in a relative position to the end effector 310, with a camera 320 mounted in the camera hole. The camera hole may be located near the end effector 310, and the opening direction of the camera hole may be the same as the direction of the end effector 310. Mounting the camera 320 in the camera hole allows the camera's viewfinder to be aligned with the direction of the end effector 310, facilitating the camera 320 to capture images at the positioning hole 420. This ensures that the camera 320 and the end effector 310 are aligned, maintaining a fixed relative position during the installation of the dashboard. This prevents positional or angular deviations between the camera 320 and the end effector 310 from causing accuracy errors during dashboard installation, effectively improving the accuracy of dashboard installation.
[0061] In some embodiments, the cross-section of the camera hole is polygonal or elliptical; or, the inner surface of the camera hole is coated with one or more colors. Since the camera 320 is disposed within the camera hole, the image acquired by the camera 320 will include the outline of the camera hole. When performing target detection on the image, it is necessary to identify circles in the image. A circular camera hole can easily affect the accuracy of identifying the mounting hole 410. Therefore, the cross-section of the camera hole can be set to polygonal or elliptical. The camera hole can be irregularly shaped, or it can be a rectangle, triangle, or other polygon that is clearly distinct from a circle, so that the outline of the camera hole in the image acquired by the camera 320 is non-circular. This effectively avoids the influence of the camera hole during target detection. The camera hole can also be elliptical. During target detection, by setting the roundness parameter of the target detection, the robot can only detect the circular positioning hole 420, effectively avoiding the influence of an elliptical camera hole. The inner surface of the camera hole can also be coated with one or more colors, or a single-color coating, so that the inner surface of the camera hole can be clearly distinguished from the positioning hole 420 in the image. A single-color coating can also be partially applied to the inner surface of the camera aperture. In image patch detection, this makes the inner surface of the camera aperture appear as multiple discontinuous patches in the image, effectively distinguishing the camera aperture from the positioning aperture 420 and preventing false detection. Alternatively, the inner surface of the camera aperture can be coated with multiple colors, making it appear as patches of different colors in the image, clearly distinguishing it from the positioning aperture 420. In image patch detection, this also makes the inner surface of the camera aperture appear as multiple patches in the image, effectively distinguishing it from the positioning aperture 420. When acquiring images through the camera 320, the coated inner surface of the camera aperture can be clearly distinguished from the positioning aperture 420, allowing it to be promptly excluded during target detection and preventing false identification of the camera aperture. By changing the shape of the camera hole or the coating on its inner surface, it is possible to distinguish the camera hole captured in the image from the positioning hole 420, which is the target, after the camera 320 acquires the image. This avoids misidentification of the camera hole, effectively improves the accuracy of target detection, and effectively improves the installation accuracy of the dashboard.
[0062] This application uses specific terms to describe embodiments of the application. Terms such as "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of the application. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Furthermore, certain features, structures, or characteristics in one or more embodiments of the application can be appropriately combined.
[0063] In the context of this application, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0064] Similarly, it should be noted that, in order to simplify the description of the present application and thus aid in the understanding of one or more embodiments, the foregoing description of the embodiments of the present application sometimes combines multiple features into a single embodiment, drawing, or description thereof. However, this disclosure method does not imply that the subject matter of the present application requires more features than those mentioned in the claims. In fact, the embodiments contain fewer features than all the features of the single embodiments disclosed above.
[0065] The basic concepts have been described above. Obviously, for those skilled in the art, the above disclosure is merely illustrative and does not constitute a limitation of this application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this application. Such modifications, improvements, and corrections are suggested in this application, and therefore remain within the spirit and scope of the embodiments of this application.
Claims
1. A robot intelligent control method, wherein the robot is used to fix a dashboard to a mounting hole in the vehicle body, wherein, A positioning hole is provided below the mounting hole; the robot includes: an end effector for fixing the instrument panel to the mounting hole, and a camera fixed in a position relative to the end effector; The robot intelligent control method includes: Images are acquired using the camera; Target detection based on the image to obtain the center coordinates of the positioning hole includes: converting the image to grayscale to obtain a grayscale image; performing median blurring on the grayscale image to obtain a denoised grayscale image; performing Hough transform on the denoised grayscale image to obtain the contour, center coordinates, and radius of each circle in the denoised grayscale image; obtaining the coordinates of the diagonal pixels of the circumscribed rectangle of the largest circle based on the contour, center coordinates, and radius of the largest circle in the image; reducing the size of the diagonal pixels of the circumscribed rectangle of the largest circle by 1-5 pixels to obtain mask coordinates; partially masking the image based on the mask coordinates to obtain an image of the positioning hole; performing denoising processing on the image to obtain a denoised image; and obtaining the center coordinates of the positioning hole through patch detection based on the denoised image. The movement trajectory of the end effector is determined by calculation based on the center coordinates of the positioning hole, wherein the end effector fixes the instrument panel to the mounting hole based on the movement trajectory.
2. The robot intelligent control method according to claim 1, wherein, The step of performing noise reduction processing on the image to obtain a noise-reduced image includes: Based on the image, a Gaussian filter is performed to obtain the filtered image; Based on the filtered image, edge detection is performed to obtain an edge image; Based on the edge image, binarization is performed to obtain a binary image; Based on the binary image, morphological operators are applied to obtain the denoised image.
3. A method for installing a dashboard, comprising: The dashboard is retrieved by a robot; Roughly locate the instrument panel mounting position; The movement trajectory of the end effector is determined according to the robot intelligent control method as described in any one of claims 1-2; Based on the movement trajectory of the end effector, the robot is controlled to install the dashboard onto the vehicle body.
4. A robot for performing the dashboard installation method as described in claim 3, the robot comprising: An end effector for securing the instrument panel to the mounting hole; The camera is fixed in position relative to the end effector.
5. The robot according to claim 4, wherein, The robot also includes a camera hole, which is fixed in position relative to the end effector, and the camera is mounted in the camera hole.
6. The robot according to claim 5, wherein, The cross-section of the camera aperture is polygonal or elliptical; or, The inner surface of the camera hole is coated with one or more colors.
Citation Information
Patent Citations
Round hole detection method and device, electronic equipment and storage medium
CN112184639A
Instrument panel gripper, industrial robot and instrument panel gripping and mounting method
CN115847461A
