Garbage recycling robot control method and related equipment

The garbage collection robot control method that combines lidar and cameras solves the problem of low efficiency of garbage collection and dumping tasks in trash cans by automated cleaning robots in complex indoor environments and office scenes, achieving efficient and intelligent garbage collection and all-weather operation. Operation.

CN118778644APending Publication Date: 2024-10-15SHENZHEN UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410770354.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing automated cleaning robots perform poorly in garbage collection and dumping tasks in trash cans in complex indoor environments and office scenarios, are inefficient and cannot operate around the clock.

Method used

The garbage recycling robot control method is used to construct an environmental map through lidar scanning, and the camera is used for target detection, autonomous navigation to the trash can, picking up and dumping the garbage in the trash can, and using ultrasonic waves to determine whether the bucket is full to realize automated garbage collection. Recycle.

Benefits of technology

It has improved the automation and intelligence level of garbage collection, significantly improved the efficiency and accuracy of indoor cleaning operations, and achieved all-weather operation capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778644A_ABST
    Figure CN118778644A_ABST
Patent Text Reader

Abstract

The invention provides a garbage collection robot control method and related equipment, and the method comprises the steps: controlling a laser radar of a garbage collection robot to scan floors, and constructing an environment map; the garbage recycling robot is initialized; controlling the garbage collection robot to navigate to the target room; the garbage collection robot is controlled to explore autonomously in a room, image collection is carried out through a camera, target detection is carried out on each frame of image, and whether a garbage can capable of being clamped exists in each frame of image or not is judged; if the garbage cans capable of being clamped exist, the target pose of the garbage recycling robot for clamping the garbage cans is calculated according to the target detection result; and according to the target pose, a navigation task is issued to the garbage recycling robot, the garbage recycling robot is controlled to clamp the garbage can, and garbage in the garbage can is poured into a car hopper of the garbage recycling robot. According to the invention, the automation and intelligence level of garbage collection can be improved, and the efficiency and accuracy of indoor cleaning operation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of garbage collection robot control, and in particular to a garbage collection robot control method and related equipment. Background Art

[0002] With the rapid development of urbanization, indoor environmental sanitation management has become particularly important, especially in office environments. At present, indoor cleaning mainly relies on manual labor, which is inefficient and cannot be operated around the clock. Existing automated cleaning robots are mainly used for floor cleaning, but their performance is still unsatisfactory in terms of navigation in complex indoor environments and garbage collection and dumping in trash cans, especially in office scenarios.

[0003] Therefore, it is necessary to propose a control method for the garbage recycling robot for improvement. Summary of the invention

[0004] The technical problem to be solved by the present invention is: a garbage collection robot control method and related equipment, aiming to realize automatic garbage collection.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a garbage collection robot control method, comprising the steps of:

[0006] The laser radar that controls the garbage collection robot scans the floor and builds an environmental map;

[0007] When the garbage collection robot starts to perform the garbage collection task, the garbage collection robot is initialized;

[0008] Control the garbage collection robot to navigate to the target room;

[0009] Control the garbage collection robot to explore the room autonomously, collect images through the camera, perform target detection on each frame, and determine whether there is a trash can that can be picked up in each frame;

[0010] If there is a trash can that can be picked up, the target posture of the garbage collection robot picking up the trash can is calculated based on the target detection result;

[0011] According to the target posture, a navigation task is issued to control the garbage collection robot, which controls the garbage collection robot to clamp the garbage can and dump the garbage in the garbage can into the bucket of the garbage collection robot.

[0012] Furthermore, the control method of the garbage collection robot further includes the steps of:

[0013] After dumping the garbage in the trash can into the bucket of the garbage recycling robot, the garbage recycling robot uses ultrasound to determine whether the bucket is full. If the bucket is not full, the garbage recycling robot is controlled to dump the garbage in the next target room. If the bucket is full, the garbage recycling robot is controlled to dump the garbage at the garbage station.

[0014] Furthermore, if the garbage collection robot does not detect a garbage can in the target room, it will autonomously explore the target room and record the explored room as explored.

[0015] Furthermore, the laser radar of the garbage collection robot is controlled to scan the floor and build an environmental map including:

[0016] Control the front and rear laser radars of the garbage collection robot to scan the floors;

[0017] Synchronize radar data of the garbage collection robot’s front and rear lidars through timestamps;

[0018] Fusing the radar data of the rear laser radar after time stamp synchronization into the radar data of the front laser radar;

[0019] The fused data is used as the input of the SLAM algorithm, which constructs the map.

[0020] Furthermore, when the garbage collection robot starts to perform the garbage collection task, the garbage collection robot is initialized including:

[0021] The garbage collection robot's motor position initialization, environment map initialization, database initialization, garbage collection robot posture initialization and mark removal.

[0022] Furthermore, if there is a trash can that can be gripped, the target posture of the garbage collection robot gripping the trash can is calculated based on the target detection result, specifically including:

[0023] Using the pixel coordinates of the trash can obtained by target detection, calculate the polar angle of the trash can in the camera coordinate system;

[0024] Find the position of the trash can in the radar coordinate system through point-by-point matching;

[0025] Read the distance between the trash can and the lidar from the radar data;

[0026] The polar coordinates are converted into rectangular coordinates through coordinate transformation, so as to calculate the posture of the garbage recycling robot grabbing the garbage bin.

[0027] Furthermore, the camera of the garbage collection robot is controlled to collect images, and target detection is performed on each frame of the image to determine whether there is a trash can that can be picked up in each frame of the image. Specifically,

[0028] Control the camera of the garbage collection robot to collect images;

[0029] The YOLO target detection algorithm is used to detect targets in each frame of the image, and to detect in real time whether there are trash cans that can be picked up in the environment;

[0030] If there is a trash can that can be picked up, the pixel coordinates of the rectangular frame where the trash can is located are calculated, and the state of the trash can is identified, and the state of the trash can includes a full state, an empty state, a fallen state, and a state blocked by an obstacle.

[0031] The present invention also provides a garbage collection robot control device, comprising:

[0032] The map building module is used to control the laser radar of the garbage collection robot to scan the floor and build an environmental map;

[0033] An initialization module, used to initialize the garbage collection robot when the garbage collection robot starts to perform the garbage collection task;

[0034] A navigation module, used to control the garbage collection robot to navigate to the target room;

[0035] The target detection module is used to control the garbage collection robot to explore the room autonomously, collect images through the camera, perform target detection on each frame of the image, and determine whether there is a trash can that can be picked up in each frame of the image;

[0036] A posture solving module is used to solve the target posture of the garbage collection robot to grasp the garbage can according to the target detection result if there is a garbage can that can be grasped;

[0037] The recycling control module is used to issue navigation tasks to the garbage recycling robot according to the target posture, control the garbage recycling robot to clamp the garbage can, and dump the garbage in the garbage can into the bucket of the garbage recycling robot.

[0038] The present invention also provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the garbage collection robot control method as described above is implemented.

[0039] The present invention also provides a storage medium, which stores a computer program. When the computer program is executed by a processor, the garbage collection robot control method as described above can be implemented.

[0040] The beneficial effects of the present invention are that by integrating advanced indoor navigation positioning, map construction, and target detection, not only the automation and intelligence level of garbage collection is improved, but also the efficiency and accuracy of indoor cleaning operations are greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The specific structure of the present invention is described in detail below in conjunction with the accompanying drawings.

[0042] Figure 1 This is a flow chart of a control method for a garbage collection robot according to an embodiment of the present invention;

[0043] Figure 2 A flowchart of a map construction according to an embodiment of the present invention;

[0044] Figure 3 This is a target picking flow chart of an embodiment of the present invention;

[0045] Figure 4 A system communication framework diagram of an embodiment of the present invention;

[0046] Figure 5 A radar data fusion diagram according to an embodiment of the present invention;

[0047] Figure 6 This is a navigation and positioning framework diagram of an embodiment of the present invention;

[0048] Figure 7 This is a flow chart of an autonomous exploration algorithm according to an embodiment of the present invention;

[0049] Figure 8 A block diagram of a control device for a garbage collection robot according to an embodiment of the present invention;

[0050] Fig. 9 A schematic block diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0051] 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.

[0052] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0053] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0054] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0055] In the present invention, the motion control part of the garbage collection robot includes a mobile control part, a mechanical claw control part and a bucket control part. The mobile control part converts the desired speed into the rotation speed of the drive motor based on the kinematic model of the robot chassis, and controls the motor to reach the target rotation speed through the speed PID, so that the garbage collection robot moves at the target speed. The mechanical claw control part uses the position PID to control the mechanical claw opening and closing motor and the mechanical claw lifting motor to move to the specified position, so that the mechanical claw can complete the opening, lifting, lowering and closing actions, thereby grabbing the garbage can and pouring the garbage can into the bucket. The bucket control part also uses the position PID to control the bucket lifting motor and the bucket reversing motor to reach the specified position, so that the robot can complete the bucket lifting and reversing actions, thereby dumping the garbage in the bucket.

[0056] like Figure 4 As shown in the figure, the data transmission part includes the data transmission part between MCU and NX and the data transmission part between NX and the sensor. The chassis MCU sends the calculated robot speed to NX through the serial port, and receives the speed control, mechanical gripper control and bucket control instructions from NX. The data transmission part between NX and radar. The data transmission part between NX and radar builds a small local area network through a router, and the radar sends data to NX through the local area network. The monocular camera transmits the image to NX through the USB protocol.

[0057] like Figure 1 As shown, an embodiment of the present invention is: a garbage collection robot control method, comprising:

[0058] The map construction process is as follows Figure 2 As shown:

[0059] Step S10, controlling the laser radar of the garbage collection robot to scan the floor and construct an environment map;

[0060] Step S10 specifically includes:

[0061] S11, controlling the front laser radar and the rear laser radar of the garbage collection robot to scan the floor;

[0062] S12, synchronizing radar data of the front laser radar and the rear laser radar of the garbage collection robot through timestamps;

[0063] S13, fusing the radar data of the rear laser radar after time stamp synchronization into the radar data of the front laser radar;

[0064] S14. The fused data is used as the input of the SLAM algorithm, and the SLAM algorithm is used to construct the map.

[0065] like Figure 5 As shown, the radar data fusion is based on the cosine theorem. In the radar raw data, a point is described by angle and distance, so r2 and θ2 can be read from the rear radar raw data. The purpose of data fusion is to fuse the data of the two radars into a coordinate system. In the present invention, the data of the rear radar is converted to the coordinate system of the front radar. Taking point T as an example, the polar coordinate conversion from the rear radar to the front radar is as follows:

[0066]

[0067] Where R1 is the position of the front radar, R2 is the position of the rear radar, the two radars are on the same axis, T is a data point of the rear radar, r1 is the polar distance of T in the polar coordinate system of the front radar, Θ1 is the polar angle, the polar coordinate system sweeps counterclockwise, and the value range is [-π,π].

[0068] The laser SLAM (Simultaneous Localization and Mapping) part uses the Cartographer algorithm, which is an advanced SLAM technology widely used in robots and autonomous vehicles. The Cartographer algorithm is mainly based on graph optimization and real-time loop detection technology to achieve high-precision and real-time map construction and positioning.

[0069] Target pickup Figure 3 As shown:

[0070] Step S20: Initialize the garbage collection robot when the garbage collection robot starts to perform the garbage collection task;

[0071] Among them, initialization includes the motor position initialization of the garbage recycling robot, the environment map initialization, the database initialization, the garbage recycling robot posture initialization and mark removal.

[0072] Step S30, controlling the garbage collection robot to navigate to the target room;

[0073] In this step, the navigation and positioning part includes the positioning part and the point-to-point navigation part. The positioning part uses the AMCL (Adaptive Monte Carlo Localization) algorithm to estimate the current position and posture of the garbage collection robot in real time. The point-to-point navigation part includes global path planning and local path planning. The global path planning uses the hybrid A* algorithm to plan a kinematically feasible path from the current position of the garbage collection robot to the target position. The local path planning uses the TEB (Time Elastic Band) algorithm to calculate the expected linear velocity and angular velocity of the garbage collection robot tracking the global path in real time, so that the garbage collection robot can accurately reach the target posture.

[0074] refer to Fig. 9 The navigation and positioning part includes positioning, global path planning and local path planning. Initially, a global map and a local map are established based on the pre-established environmental map and radar data. The global map is used for global path planning, and the local map is used for local path planning. When the global planning receives the target coordinates, it obtains the current position according to the positioning algorithm, plans a path from the current position to the target position, and publishes the path to the local path planning. The local path planning takes into account the kinematic constraints of the robot, calculates the expected linear velocity and angular velocity required to track the path points on the global path, and publishes the velocity command to the motion controller, thereby controlling the robot to reach the target point along the global path.

[0075] Step S40: Control the garbage collection robot to autonomously explore the room, collect images through the camera, perform target detection on each frame of the image, and determine whether there is a garbage can that can be picked up in each frame of the image;

[0076] Step S40 specifically includes:

[0077] S41, controlling the camera of the garbage collection robot to collect images;

[0078] S42, using the YOLO target detection algorithm to perform target detection on each frame of the image, and detecting in real time whether there is a trash can that can be picked up in the environment;

[0079] S43. If there is a trash can that can be picked up, the pixel coordinates of the rectangular frame where the trash can is located are calculated, and the state of the trash can is identified, where the state of the trash can includes a full state, an empty state, a fallen state, and a state blocked by an obstacle.

[0080] The target detection part adopts the Yolov8 target detection algorithm and uses a self-made data set for model training. The data set contains more than 3,000 common trash cans in different scenes and different states. The model is deployed on the Jetson NX main control board and can reach 30FPS after GPU acceleration, with a recognition accuracy of 99%.

[0081] Step S50: If there is a trash can that can be gripped, then the target posture of the garbage collection robot gripping the trash can is calculated according to the target detection result;

[0082] Step S50 specifically includes:

[0083] S51, using the pixel coordinates of the trash can obtained by target detection, calculating the polar angle of the trash can in the camera coordinate system;

[0084] S52, finding the position of the trash can in the radar coordinate system by point-by-point matching;

[0085] S53, reading the distance between the trash can and the laser radar from the radar data;

[0086] S54, converting the polar coordinates into rectangular coordinates through coordinate transformation, thereby calculating the posture of the garbage recycling robot gripping the garbage bin.

[0087] The pose solution is based on the camera pinhole imaging model, coordinate transformation and radar point cloud matching. First, the pixel coordinates obtained by target detection are obtained, and then the coordinates of the robot in the camera coordinate system are calculated through the rotation matrix and the camera intrinsic parameter matrix, see formula 3 and formula 4, and finally the angle between the object and the Z axis in the camera coordinate system is obtained through the inverse trigonometric function, see formula 5, and the transformation formula is:

[0088]

[0089] The camera is placed on the top of the robot with its image plane tilted upward. The camera coordinate system is defined as the coordinate system that rotates the camera imaging plane to be parallel to the ground. R is the rotation matrix, I is the intrinsic parameter matrix, and θ is the angle between the line connecting the object and the origin of the camera coordinate system and the Z axis. The rotation matrix R and the camera intrinsic parameter matrix I are obtained by Zhang Zhengyou's single-target positioning method.

[0090] After Θ is obtained according to the above formula, along the Θ direction, step is the step length, and a point C is taken in the Θ direction every step. The coordinates (xc, yc) of point C in the camera coordinate system can be calculated through the number of steps i, the step length step and the angle Θ. Then, the coordinates (xr, yr) of C in the radar coordinate system are calculated according to the relative positions of the camera and the radar. Then, the distance d between the object and the radar can be obtained, and d is compared with the actual distance d_real measured by the radar. If the difference between d and d_real is zero (a certain tolerance should be given in actual work, which is 2 cm in the present invention), it means that this point is a point P on the object, and the polar coordinates of P are (Θ, d_real). Then, the polar coordinates are converted into rectangular coordinates. Finally, the coordinates of the object in the radar coordinate system are transferred to the map coordinate system, thereby solving the coordinates of the object.

[0091] Step S60: issuing a navigation task to the garbage collection robot according to the target posture, controlling the garbage collection robot to clamp the garbage can and dump the garbage in the garbage can into the bucket of the garbage collection robot.

[0092] In a specific embodiment, the garbage collection robot control method further includes the steps of:

[0093] Step S70: After dumping the garbage in the trash can into the bucket of the garbage recycling robot, the garbage recycling robot uses ultrasound to determine whether the bucket is full. If the bucket is not full, the garbage recycling robot is controlled to dump the garbage in the next target room. If the bucket is full, the garbage recycling robot is controlled to dump the garbage at the garbage station.

[0094] In a specific embodiment, if the garbage collection robot does not detect a garbage can in the target room, it will autonomously explore the target room and record the explored room as explored.

[0095] The autonomous exploration part includes two parts: exploration point expansion and exploration point access. The exploration point expansion is based on the improved RRT (Rapidly-exploring Random Trees) algorithm, which is used to determine the points that the garbage collection robot needs to pass through to explore the environment. The exploration point access part is used to control the garbage collection robot to go to the exploration points in sequence and mark the areas that have been explored. Based on the classic RRT algorithm, the improved RRT algorithm improves the sampling strategy and adds information gain module evaluation. The improvement of the sampling strategy enables the algorithm to approach the location of the trash can faster, and the addition of the information gain evaluation module greatly reduces the repeated areas of the exploration points, thereby improving the efficiency of the garbage collection robot in exploring the target.

[0096] like Figure 7 As shown in the figure, the autonomous target exploration part includes two parts: exploration point expansion and exploration point access. The exploration point expansion part needs to initialize the random sampling ratio of probability sampling, random number seed, and information gain threshold, etc. The probability sampling and random sampling are allocated according to a pre-set ratio, for example, a ratio of 7:3. Then, according to the node expansion rule of the RRT algorithm, new nodes are expanded, and then the information gain brought by the new nodes is evaluated. If the information gain is too small, the node is discarded, otherwise the node is added to the random tree, and this process is repeated until all areas are explored. The exploration point expansion part first selects the node with the largest ratio of information gain to the current distance of the robot from the RRT tree, then publishes the navigation task, and marks the area passed by the robot on the way as visited to prevent repeated exploration.

[0097] The beneficial effects of the embodiments of the present invention are:

[0098] The embodiment of the present invention successfully creates an efficient indoor garbage autonomous recycling system by integrating advanced indoor navigation positioning, map construction, target detection and robot autonomous exploration technology. This system not only improves the automation and intelligence level of garbage recycling, but also greatly improves the efficiency and accuracy of indoor cleaning operations. Its multifunctional design makes it not limited to the field of garbage recycling, but can also be widely used in other indoor services, such as food delivery and express delivery, providing more convenience and efficiency for daily life and work.

[0099] Furthermore, in terms of autonomous exploration, the present invention adopts an improved RRT algorithm to expand the exploration points. The improved RRT algorithm effectively improves the efficiency of the robot's exploration of the environment by optimizing the sampling strategy and introducing information gain evaluation, especially when close to a target such as a trash can. Compared with the traditional RRT algorithm, the improved algorithm reduces the robot's exploration time and reduces the frequency of visits to repeated areas during the exploration process, significantly improving the robot's work efficiency and adaptability in complex environments.

[0100] Furthermore, in terms of posture calculation technology, the present invention combines a monocular camera and a single-line laser radar to achieve positioning accuracy comparable to that of an expensive binocular vision system, which reduces system costs while ensuring the efficiency and accuracy of target detection. Compared with the binocular vision system, the application of the monocular system greatly simplifies the calculation process, allowing the robot to process more data in real time and respond quickly to environmental changes.

[0101] Furthermore, the innovation of the present invention in radar data processing greatly simplifies the data processing process and improves the speed of data processing by directly utilizing the original radar signal instead of converting it into cumbersome point cloud data.

[0102] like Figure 8 As shown, an embodiment of the present invention further provides a garbage collection robot control device, comprising:

[0103] A map construction module 10 is used to control the laser radar of the garbage collection robot to scan the floor and construct an environment map;

[0104] An initialization module 20, used to initialize the garbage collection robot when the garbage collection robot starts to perform a garbage collection task;

[0105] A navigation module 30, used to control the garbage collection robot to navigate to a target room;

[0106] The target detection module 40 is used to control the garbage collection robot to autonomously explore the room, collect images through the camera, perform target detection on each frame of the image, and determine whether there is a garbage can that can be picked up in each frame of the image;

[0107] A posture solving module 50 is used to solve the target posture of the garbage collection robot for grasping the garbage can according to the target detection result if there is a garbage can that can be grasped;

[0108] The recycling control module 60 is used to issue navigation tasks to the garbage recycling robot according to the target posture, control the garbage recycling robot to clamp the garbage can, and dump the garbage in the garbage can into the bucket of the garbage recycling robot.

[0109] Specifically, the garbage collection robot control device also includes:

[0110] The bucket status judgment module is used to determine whether the bucket is full after the garbage in the trash can is dumped into the bucket of the garbage recycling robot. If the bucket is not full, the garbage recycling robot is controlled to dump the garbage in the next target room. If the bucket is full, the garbage recycling robot is controlled to dump the garbage at the garbage station.

[0111] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned garbage collection robot control device can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.

[0112] The above-mentioned garbage collection robot control device can be implemented in the form of a computer program, which can be used in Fig. 9 Runs on the computer device shown.

[0113] See also Fig. 9 , Fig. 9 5 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.

[0114] See also Fig. 9 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0115] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a garbage collection robot control method.

[0116] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0117] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a garbage collection robot control method.

[0118] The network interface 505 is used to communicate with other devices over the network. Fig. 9 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0119] The processor 502 is used to run the computer program 5032 stored in the memory to implement the garbage collection robot control method as described above.

[0120] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0121] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0122] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the garbage collection robot control method as described above.

[0123] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, or any other computer-readable storage medium that can store program codes.

[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0125] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0126] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0127] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0128] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A control method for a garbage collection robot, It is characterized in that Including steps, Control the laser radar of the garbage collection robot to scan the floor and build an environmental map; When the garbage collection robot starts to perform the garbage collection task, the garbage collection robot is initialized; Control the garbage collection robot to navigate to the target room; Control the garbage collection robot to explore the room autonomously, collect images through the camera, perform target detection on each frame, and determine whether there is a trash can that can be picked up in each frame; If there is a trash can that can be picked up, the target posture of the garbage collection robot picking up the trash can is calculated based on the target detection result; According to the target posture, a navigation task is issued to control the garbage collection robot, which controls the garbage collection robot to clamp the garbage can and dump the garbage in the garbage can into the bucket of the garbage collection robot.

2. The control method of the garbage collection robot according to claim 1, It is characterized in that Also includes the steps, After dumping the garbage in the trash can into the bucket of the garbage recycling robot, the garbage recycling robot uses ultrasound to determine whether the bucket is full. If the bucket is not full, the garbage recycling robot is controlled to dump the garbage in the next target room. If the bucket is full, the garbage recycling robot is controlled to dump the garbage at the garbage station.

3. The control method of the garbage collection robot according to claim 1, It is characterized in that If the garbage collection robot does not detect a garbage can in the target room, it will autonomously explore the target room and record the explored rooms as explored.

4. The control method of the garbage collection robot according to claim 1, It is characterized in that The laser radar that controls the garbage collection robot scans the floor and builds an environmental map including: Control the front and rear laser radars of the garbage collection robot to scan the floors; Synchronize radar data of the garbage collection robot’s front and rear lidars through timestamps; Fusing the radar data of the rear laser radar after time stamp synchronization into the radar data of the front laser radar; The fused data is used as the input of the SLAM algorithm, which constructs the map.

5. The control method of the garbage collection robot according to claim 1, It is characterized in that When the garbage collection robot starts to perform the garbage collection task, the initialization of the garbage collection robot includes: The garbage collection robot's motor position initialization, environment map initialization, database initialization, garbage collection robot posture initialization and mark removal.

6. The control method of the garbage collection robot according to claim 1, It is characterized in that If there is a trash can that can be picked up, the target posture of the garbage collection robot picking up the trash can is calculated based on the target detection results, including: Using the pixel coordinates of the trash can obtained by target detection, calculate the polar angle of the trash can in the camera coordinate system; Find the position of the trash can in the radar coordinate system through point-by-point matching; Read the distance between the trash can and the lidar from the radar data; The polar coordinates are converted into rectangular coordinates through coordinate transformation, so as to calculate the posture of the garbage recycling robot grabbing the garbage bin.

7. The control method of the garbage collection robot according to claim 1, It is characterized in that Control the camera of the garbage collection robot to collect images, perform target detection on each frame of the image, and determine whether there is a trash can that can be picked up in each frame of the image. Specifically, Control the camera of the garbage collection robot to collect images; The YOLO target detection algorithm is used to detect targets in each frame of the image, and to detect in real time whether there are trash cans that can be picked up in the environment; If there is a trash can that can be picked up, the pixel coordinates of the rectangular frame where the trash can is located are calculated, and the state of the trash can is identified, and the state of the trash can includes a full state, an empty state, a fallen state, and a state blocked by an obstacle.

8. A garbage collection robot control device, It is characterized in that include, The map building module is used to control the laser radar of the garbage collection robot to scan the floor and build an environmental map; An initialization module, used to initialize the garbage collection robot when the garbage collection robot starts to perform the garbage collection task; A navigation module, used to control the garbage collection robot to navigate to the target room; The target detection module is used to control the garbage collection robot to explore the room autonomously, collect images through the camera, perform target detection on each frame of the image, and determine whether there is a trash can that can be picked up in each frame of the image; A posture solving module is used to solve the target posture of the garbage collection robot to grasp the garbage can according to the target detection result if there is a garbage can that can be grasped; The recycling control module is used to issue navigation tasks to the garbage recycling robot according to the target posture, control the garbage recycling robot to clamp the garbage can, and dump the garbage in the garbage can into the bucket of the garbage recycling robot.

9. A computer device, Features: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the garbage collection robot control method as described in any one of claims 1 to 7 when executing the computer program.

10. A storage medium, Features: The storage medium stores a computer program, and when the computer program is executed by a processor, it can implement the garbage collection robot control method as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Building garbage can carrying robot system

    CN119821874A