WO2023169265A1 - Robot pathfinding method and apparatus, and device and computer-readable storage medium - Google Patents

Robot pathfinding method and apparatus, and device and computer-readable storage medium Download PDF

Info

Publication number
WO2023169265A1
WO2023169265A1 PCT/CN2023/078899 CN2023078899W WO2023169265A1 WO 2023169265 A1 WO2023169265 A1 WO 2023169265A1 CN 2023078899 W CN2023078899 W CN 2023078899W WO 2023169265 A1 WO2023169265 A1 WO 2023169265A1
Authority
WO
WIPO (PCT)
Prior art keywords
transfer station
path
target
robot
pathfinding
Prior art date
Application number
PCT/CN2023/078899
Other languages
French (fr)
Chinese (zh)
Inventor
朱绍明
任雪
Original Assignee
苏州科瓴精密机械科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州科瓴精密机械科技有限公司 filed Critical 苏州科瓴精密机械科技有限公司
Publication of WO2023169265A1 publication Critical patent/WO2023169265A1/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions

Definitions

  • the present invention relates to computer control technology, and in particular to a robot path-finding method, path-finding device, equipment and computer-readable storage medium.
  • the A*(A-Star) algorithm is the most effective direct search method for solving the shortest path in a static road network. It is also an effective algorithm for solving many search problems. However, when the search space of the A* algorithm is relatively small, the pathfinding speed is relatively fast. However, when the search space is relatively large, the calculation amount is huge, the pathfinding speed of the algorithm is relatively slow, and it is easy to cause memory overflow.
  • the random no-nearest principle means that the robot searches in a certain path-finding direction in the search space. When it encounters an obstacle that cannot be avoided, it searches for a new path-finding direction. This method takes a long time to find a path and has low work efficiency.
  • the technical problem to be solved by embodiments of the present invention is to provide a robot pathfinding method, device, equipment and storage medium, which have the advantages of optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, and improving work efficiency.
  • a first aspect of the present invention provides a robot path finding method. Methods, including: determining the target position and the current position of the robot on the map;
  • a movement path of the robot from the current position to the target position via the target transfer station is planned.
  • the method before obtaining the point weight of each transfer station in the map, the method further includes:
  • the method before obtaining the historical movement path of the robot through at least one transfer station to the target location each time, the method further includes:
  • determining the coordinates of the transfer point in the map includes:
  • the two farthest intersection points are taken as second reference points, and the two second reference points on the same offset edge are offset toward each other by a second predetermined time.
  • Set the step length to obtain four third reference points;
  • the third reference point is used as the transfer point.
  • each transfer point is assigned two different path-finding directions to generate two transfer stations with the same location but different path-finding directions, including:
  • planning the movement path of the robot from the current position through the target transfer station to the target location along the pathfinding direction of the target transfer station includes:
  • the pathfinding direction of the target transfer station set a first path from the current location to the target transfer station, and a second path from the target transfer station to the target location;
  • a movement path is generated from the current location to the target location via the target transfer station.
  • setting the first path from the current location to the target transfer station according to the pathfinding direction of the target transfer station includes:
  • the path from the current position to the target transfer station is used as the first path
  • the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes the obstacle, determine that the robot moves from the current position along the path-finding direction of the target transfer station.
  • the shortest path that bypasses the obstacle to the target transfer station is used as the first path.
  • the second aspect of the present invention also provides a robot pathfinding device, including:
  • the first acquisition module is used to obtain the target position in the map and the current position of the robot
  • the second acquisition module is used to obtain the location, path-finding direction and point weight of each transfer station in the map; where the point weight of the transfer station refers to the robot's search direction along the transfer station at the transfer station. The number of times that the target position is successfully reached when moving in the road direction;
  • the judgment module is used to select the transfer station with the highest point weight as the target transfer station
  • a processing module along the path-finding direction of the target transfer station, plans the movement path of the robot from the current position to the target position via the target transfer station.
  • a third aspect of the present invention also provides a device, including a memory for storing executable instructions
  • a processor configured to implement the robot pathfinding method described in the first aspect when executing executable instructions stored in the memory.
  • a fourth aspect of the present invention also provides a computer-readable storage medium, including program code.
  • program code When the program product is run on an electronic device, the program code is used to cause the electronic device to execute the first step. The steps of the method of any of the aspects.
  • the robot pathfinding method, pathfinding device, equipment and computer-readable storage medium determine the target position and the current position of the robot in the map; obtain the position, pathfinding direction and point weight of each transfer station in the map, Among them, the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station; the transfer station with the highest point weight is regarded as the target transfer station; the path-finding along the target transfer station Direction, planning the movement path of the robot from the current position through the target transfer station to the target position.
  • the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station
  • the transfer station with the highest point weight is regarded as the target transfer station
  • the path-finding along the target transfer station Direction planning the movement path of the robot from the current position through the target transfer station to the target position.
  • Figure 1 is a structural representation of a pathfinding system used to implement the robot pathfinding method of the present invention. intention;
  • Figure 2 is a schematic flow chart of an embodiment of the robot pathfinding method of the present invention.
  • Figure 3 is a schematic diagram illustrating an example of the robot path-finding process of the present invention.
  • Figure 4 is a structural block diagram of the robot pathfinding device of the present invention.
  • Figure 5 is a schematic diagram of a map used in the robot path-finding process of the present invention.
  • Figure 6 is a schematic structural diagram of the terminal equipment provided by the present invention.
  • Figure 7 is a schematic structural diagram of a server provided by the present invention.
  • Figure 1 shows a path-finding system.
  • the method provided by this application can be used in the path-finding system. implemented within.
  • the pathfinding system includes: a mobile service robot 110, a computing device 120 and a charging stand.
  • the computing device 120 is connected to the mobile service robot 110 through wireless communication, and the computing device 120 is used to send control information to the mobile service robot 110 so that the mobile service robot 110 moves toward the charging base.
  • the mobile service robot 110 can be equipped with a terminal device.
  • the terminal device can be a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, or MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) At least one of a player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, and a laptop computer.
  • the computing device 120 may be a server, a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application.
  • the server can communicate with the terminal device through a wired network or a wireless network.
  • the server may have functions such as data processing, data storage, and data sending and receiving, which are not limited in the embodiments of this application.
  • the robot pathfinding method in the embodiment of the present application can be executed by a terminal device or a server.
  • FIG. 2 is a schematic flowchart of an embodiment of the robot pathfinding method of the present invention. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a sequence different from that here.
  • the robot path-finding method includes steps S201 to S204, wherein:
  • the effective area Before determining the current position and target position of the robot in the map, the effective area can be constructed first.
  • the effective area can be constructed through the working path of the robot, which specifically includes the following steps:
  • the working path refers to the walking path of the robot starting from the target position, where the target position is located on the working path.
  • the working path can be represented as a collection of position points, and these position points can be obtained by periodically collecting the position information of the robot using laser acquisition equipment, depth cameras, sensors and other equipment.
  • the outline of the effective area can be constructed based on the working path, or the effective area can be manually preset in advance, and then the obstacles within the outline circled range are identified.
  • the obstacles include non-turf areas and those placed on the lawn. area items.
  • the transfer station can be determined in the following manner, specifically including steps S301-S309, with reference to Figure 3:
  • S301 Draw a circumscribed rectangle of the effective area, and determine a first reference point from the four sides of the circumscribed rectangle.
  • the circumscribed rectangle can be designed to follow the following principles: Minimize the distance between the circumscribed rectangle and the outline of the effective area. area of the area. Under the guidance of this principle, the long and short sides of the circumscribed rectangle do not necessarily extend along the X-axis or Y-axis.
  • S303 Offset a set of opposite sides of the circumscribed rectangle toward the center of the circumscribed rectangle by a first preset step to obtain two offset sides.
  • the center of the circumscribed rectangle refers to the intersection point of the two diagonals of the circumscribed rectangle.
  • the circumscribed rectangle has two sets of opposite sides. Move the two opposite sides of one set of opposite sides toward each other by a first preset step. Take the two farthest intersections from the intersections of each offset side and the edge of the effective area. as the second reference point.
  • S309 Assign two different directions to each transfer point to generate two transfer stations with the same location but different pathfinding directions.
  • contour points in the figure form the outline of the effective area and demarcate the boundary of the walkable area, that is, the area within the outline is the walkable area of the robot.
  • the method chosen in this embodiment is to select the points at both ends of the effective area in the y-axis direction as the required contour points. In the same way, you can also select the x-axis direction, or you can select all edge points. In this case, the two end points in the y-axis direction are used to reduce the amount of data.
  • the minimum circumscribed rectangle is selected because the maximum number of transfer points is set to four, which can satisfy the general lawn shape. Therefore, the minimum circumscribed rectangle can be said to be the shape closest to the effective area, and the generated rectangle does not necessarily have the x-axis as the horizontal direction.
  • the outline rectangle obtained is represented by four points in Figure 5. However, since the obtained four rectangular points do not necessarily fall in the effective area, further offset is needed to make the transfer point fall in the effective area.
  • the method is not limited to this embodiment. This embodiment has gone through two steps, which can also be combined into one step.
  • the R1R2 side uses R1R4 as the horizontal direction translation (offset ⁇ Max) unit, and then uses the R1R4 side to translate to the effective area, which is F1, and the last effective area it translates to is F2;
  • the R3R4 side uses R1R4 as the horizontal direction translation (offset ⁇ Max) unit, and then use the R3R4 edge to translate to the effective area to get F3, and translate to the last effective area to get F4; since the transfer station Fn still has the edge position of the effective area at this time, if the distance between them is greater than When offset, the transfer point Nn inside the effective area can be further obtained; at this time, Fn moves the Y axis forward and reverse directions and moves offset units inward respectively to obtain N1, N2, N3, and N4.
  • the obtained N1, N2, N3, and N4 are the transfer points.
  • Each transfer point is assigned two different directions.
  • the same transfer point is assigned a clockwise transfer station and a counterclockwise transfer station.
  • One transfer point generates two transfer stations with the same location but different pathfinding directions, the obtained N11 (clockwise), N12 (counterclockwise), N21 (clockwise), N22 (counterclockwise), N31 (clockwise), N32 (counterclockwise), N41 (clockwise) and N42 (counterclockwise) are eight transfer stations, and each transfer station determines a transfer direction.
  • the point weight can be determined in the following way:
  • this embodiment provides a target path for the robot to return to the target position after working.
  • the general rules for generating a home path that is, the general rules for the robot to go from the first target transfer point to the second target transfer point:
  • the machine can walk clockwise or counterclockwise; the four candidate transfer points N1, N2, N3, and N4 form a circular path in sequence.
  • the route home is Nm+1, which is the first target transfer point, and Nn, which is the second target transfer point. They are sorted in ascending order, and the number of transfer stations is 4;
  • the home route is Nm as the first target transfer point, Nn as the second target transfer point, sorted in ascending order, and the number of transfer stations is 5-m+n;
  • the path generated by walking clockwise is N2 ⁇ N3- ⁇ N4 ⁇ N1
  • the path generated by walking counterclockwise is N2 ⁇ N1; but starting from point B , in actual circumstances, the machine cannot reach the first target transfer point N2, which conforms to rule g. If the first target transfer point is changed to the next transfer point, the path N3 ⁇ N4 ⁇ N1 will be generated, that is, the transfer station path is N31 (sequentially Clockwise) ⁇ N41 (clockwise) ⁇ N11 (clockwise) to obtain the target transfer path.
  • the corresponding transfer direction in the target transfer path is obtained, and then the transfer station in the transfer point is determined, and then the weight of the determined transfer station is recorded to determine the point of each transfer station. bit weight.
  • the target transfer station with the highest weight from the target position C is N11 (clockwise).
  • a first path from the current location to the target transfer station and a second path from the target transfer station to the target location are set.
  • a moving path from the current location to the target location via the target transfer station is generated.
  • the first path can be determined as follows:
  • the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes through an obstacle, determine the shortest path for the robot to move from the current position along the path-finding direction of the target transfer station around the obstacle to the target transfer station, and The shortest path is used as the first path.
  • the robot moves from the current position along the pathfinding direction of the target transfer station to the target transfer station and passes through obstacles, determine the first moving path from the robot's position to each candidate transfer point, and select the first moving path with the shortest length that does not pass through obstacles.
  • the corresponding transfer point is used as the first transfer point.
  • the first transfer station determines the first transfer station in the same direction as the first transfer point. According to the path from the robot position to the first transfer station, the first transfer station to the target transfer station The path of the station determines the first path.
  • the transfer point N3 corresponding to the first movement path with the shortest length and not passing through obstacles is used as the first transfer point.
  • the target transfer station with the highest point weight is N11 (clockwise).
  • the direction is clockwise, so the first transfer station is N31 (clockwise), and the moving path of the transfer station is N31 (clockwise) ⁇ N41 (clockwise) ⁇ N11 (clockwise).
  • One path is a straight path from the robot position to N31 (clockwise) and N31 (clockwise) ⁇ N41 (clockwise) ⁇ N11 (clockwise).
  • the second path can be determined as follows:
  • the straight path from the target transfer station to the target location is the second path, that is, the straight path from N11 to the target location.
  • the movement path is determined to be the straight-line path from the robot position to the target transfer station and the straight-line path from the target transfer station to the target position. , thereby optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, improving work efficiency, and quickly returning to the target location;
  • the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes an obstacle, determine the shortest path for the robot to move from the current position along the path-finding direction of the target transfer station around the obstacle to the target transfer station.
  • path taking the shortest path as the first path and the second path from the target transfer station to the target location, and generating a moving path from the current location to the target location via the target transfer station based on the first path and the second path. It avoids invalid data processing in disconnected areas, so it can reduce the data calculation amount of the target path on the basis of meeting the data required for path finding.
  • the transfer station with the highest point weight is used as the target transfer station to a certain extent. It can reduce the number of trials and errors, thereby optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, improving work efficiency, and quickly returning to the target location.
  • the path finding device includes a first acquisition module 401 , a second acquisition module 402 , a judgment module 403 and a processing module 404 .
  • the first acquisition module 401 is used to acquire the target position in the map and the current position of the robot;
  • the second acquisition module 402 is used to obtain the location, path-finding direction and point weight of each transfer station in the map; wherein, the point weight of the transfer station refers to the position of the robot along the center of the transfer station. The number of times the target location was successfully reached when moving in the pathfinding direction of the transfer station;
  • the judgment module 403 is used to select the transfer station with the highest point weight as the target transfer station
  • the processing module 404 plans the movement path of the robot from the current position through the target transfer station to the target location along the pathfinding direction of the target transfer station.
  • first acquisition module 401 the second acquisition module 402, and the processing module 404 shown in FIG. 4 may be included in the computing device 120 described with reference to FIG. 1 .
  • the modules shown in Figure 4 may perform steps or actions in methods or processes with reference to embodiments of the present disclosure.
  • FIG. 6 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application.
  • the terminal device 600 can be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, moving picture Expert compression of standard audio levels 4) players, laptops or desktop computers.
  • the terminal device 700 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
  • the terminal device 600 includes: a processor 601 and a memory 602.
  • the processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 601 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
  • the processor 601 may also include a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
  • the processor 601 may be integrated with a GPU (Graphics Processing Unit, image processor), which is responsible for rendering and drawing the content to be displayed on the display screen. system.
  • the processor 601 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 602 may include one or more computer-readable storage media, which may be non-transitory. Memory 602 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 601 to implement the robot search provided by the method embodiment in this application. road method.
  • the terminal device 600 optionally further includes: a peripheral device interface 603 and at least one peripheral device.
  • the processor 601, the memory 602 and the peripheral device interface 603 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 603 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera component 606, an audio circuit 607, a positioning component 608 and a power supply 609.
  • the peripheral device interface 603 may be used to connect at least one I/O (Input/Output) related peripheral device to the processor 601 and the memory 602 .
  • the processor 601, the memory 602 and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 601, the memory 602 and the peripheral device interface 603 or Both of them can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
  • the radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • Radio frequency circuitry 604 communicates with communication networks and other communication devices through electromagnetic signals.
  • the radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
  • Radio frequency circuitry 604 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocols include but are not limited to: World Wide Web, urban Area network, intranet, mobile communication networks of all generations (2G, 3G, 4G and 5G), wireless LAN and/or WiFi (Wireless Fidelity, wireless fidelity) network.
  • the radio frequency circuit 604 may also include NFC (Near Field Communication) related circuits, which is not limited in this application.
  • the display screen 605 is used to display UI (User Interface, user interface).
  • the UI can include graphics, text, icons, videos, and any combination thereof.
  • display screen 605 is a touch display screen
  • display screen 605 also has the ability to collect touch signals on or above the surface of display screen 605 .
  • the touch signal can be input to the processor 601 as a control signal for processing.
  • the display screen 705 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 605 may be a flexible display screen, disposed on the curved surface or folding surface of the terminal device 600. Even, the display screen 605 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen.
  • the display screen 605 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
  • the camera assembly 606 is used to capture images or videos.
  • the camera assembly 606 includes a front camera and a rear camera.
  • the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
  • there are at least two rear cameras one of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera to realize the background blur function.
  • camera assembly 606 may also include a flash.
  • the flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • Audio circuitry 607 may include a microphone and speakers.
  • Microphone is used to collect user and environment sound wave, and convert the sound wave into an electrical signal and input it to the processor 601 for processing, or input it to the radio frequency circuit 604 to realize voice communication.
  • the microphone can also be an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves.
  • the loudspeaker can be a traditional membrane loudspeaker or a piezoelectric ceramic loudspeaker.
  • audio circuitry 607 may also include a headphone jack.
  • the positioning component 608 is used to locate the current geographical location of the terminal device 600 to implement navigation or LBS (LocationBased Service, location-based service).
  • the positioning component 608 may be a positioning component based on the American GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.
  • the power supply 609 is used to provide power to various components in the terminal device 600 .
  • Power source 609 may be AC, DC, disposable batteries, or rechargeable batteries.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils.
  • the rechargeable battery can also be used to support fast charging technology.
  • the terminal device 600 further includes one or more sensors 610.
  • the one or more sensors 610 include, but are not limited to: an acceleration sensor 611, a gyroscope sensor 612, a pressure sensor 613, a fingerprint sensor 614, an optical sensor 615, and a proximity sensor 616.
  • the acceleration sensor 611 can detect the acceleration on the three coordinate axes of the coordinate system established by the terminal device 600 .
  • the acceleration sensor 611 can be used to detect the components of gravity acceleration on three coordinate axes.
  • the processor 601 can control the display screen 605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 611 .
  • the acceleration sensor 611 can also be used to collect game or user motion data.
  • the gyro sensor 612 can detect the body direction and rotation angle of the terminal device 600.
  • the gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect the user's 3D movements on the terminal device 600 .
  • the processor 601 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 613 may be provided on the side frame of the terminal device 600 and/or on the lower layer of the display screen 605 .
  • the pressure sensor 613 When the pressure sensor 613 is disposed on the side frame of the terminal device 600, it can detect the user's grip signal on the terminal device 600, and the processor 601 performs left and right hand recognition or quick operation based on the grip signal collected by the pressure sensor 613.
  • the processor 601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 605.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 614 is used to collect the user's fingerprint.
  • the processor 601 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the user's identity based on the collected fingerprint.
  • the processor 601 authorizes the user to perform relevant sensitive operations.
  • the sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings.
  • the fingerprint sensor 614 may be provided on the front, back or side of the terminal device 600 . When the terminal device 600 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 614 can be integrated with the physical button or the manufacturer's logo.
  • the optical sensor 615 is used to collect ambient light intensity.
  • the processor 601 can control the display brightness of the display screen 605 according to the ambient light intensity collected by the optical sensor 615 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased.
  • the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615 .
  • the proximity sensor 616 also called a distance sensor, is usually provided on the front panel of the terminal device 600.
  • the proximity sensor 616 is used to collect the distance between the user and the front of the terminal device 600 .
  • the processor 601 controls the display screen 605 to switch from the screen-on state to the screen-off state; when the proximity sensor 616 detects that the user When the distance from the front of the terminal device 600 gradually increases, the processor 601 controls the display screen 605 to switch from the screen-off state to the screen-on state.
  • FIG. 6 does not constitute a limitation on the terminal device 600, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • FIG. 7 is a schematic structural diagram of a server provided by an embodiment of the present application.
  • the server 700 may vary greatly due to different configurations or performance, and may include one or more processors 701 and one or more memories 702, where, At least one program code is stored in the one or more memories 702, and the at least one program code is loaded and executed by the one or more processors 701 to implement the robot pathfinding method provided by the above method embodiments.
  • Processor 701 is a CPU.
  • the server 700 may also have components such as wired or wireless network interfaces, keyboards, and input and output interfaces for input and output.
  • the server 700 may also include other components for implementing device functions, which will not be described again here.
  • a computer-readable storage medium is also provided. At least one program code is stored in the storage medium. The at least one program code is loaded and executed by the processor to enable the electronic device to implement any of the above. Robot pathfinding methods.
  • the above computer-readable storage medium can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), read-only compact disc (Compact Disc Read-OnlyMemory, CD-ROM) , tapes, floppy disks and optical data storage devices, etc.
  • a computer program or computer program product is also provided. At least one computer instruction is stored in the computer program or computer program product, and the at least one computer instruction is loaded and executed by the processor, so that the computer implements Any of the above robot pathfinding methods.
  • the robot pathfinding method, pathfinding device, equipment and computer-readable storage medium determine the target position and the current position of the robot in the map; obtain the position, pathfinding direction and point weight of each transfer station in the map, Among them, the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station; the transfer station with the highest point weight is regarded as the target transfer station; the path-finding along the target transfer station Direction, planning the movement path of the robot from the current position through the target transfer station to the target position.
  • the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station
  • the transfer station with the highest point weight is regarded as the target transfer station
  • the path-finding along the target transfer station Direction planning the movement path of the robot from the current position through the target transfer station to the target position.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

A robot pathfinding method and apparatus, and a device and a computer-readable storage medium. The method comprises: determining a target position and the current position of a robot in a map (S201); acquiring the position, a pathfinding direction and a point position weight of each transfer station in the map (S202), wherein the point position weight of a transfer station refers to the number of times the robot successfully reaches the target position when the robot moves in the transfer station in the pathfinding direction of the transfer station; using a transfer station, which has the highest point position weight, as a target transfer station (S203); and in the pathfinding direction of the target transfer station, planning a movement path of the robot from the current position to the target position via the target transfer station (S204). The present application has the advantages of optimizing the speed of path retrieval, reducing the number of times of trial and error, shortening the pathfinding time and improving the working efficiency.

Description

机器人寻路方法、寻路装置、设备和计算机可读存储介质Robot pathfinding method, pathfinding device, equipment and computer-readable storage medium 技术领域Technical field
本发明涉及计算机控制技术,特别是涉及一种机器人寻路方法、寻路装置、设备和计算机可读存储介质。The present invention relates to computer control technology, and in particular to a robot path-finding method, path-finding device, equipment and computer-readable storage medium.
背景技术Background technique
在生活场景中割草机器人的运用已逐渐普遍,帮助人们更好的提高工作效率。The use of lawn mowing robots has gradually become more common in daily life scenarios, helping people to better improve work efficiency.
现有技术中,机器人寻路方法有很多方式,较为常见的有A*算法和随机无就近原则。In the existing technology, there are many methods for robot pathfinding. The more common ones are the A* algorithm and the random no-nearest principle.
A*(A-Star)算法是一种静态路网中求解最短路径最有效的直接搜索方法,也是解决许多搜索问题的有效算法。然而,A*算法在搜索空间相对较小时,寻路速度相对较快,但搜索空间相对较大时,计算量庞大,算法寻路速度相对较慢,且易造成内存溢出。The A*(A-Star) algorithm is the most effective direct search method for solving the shortest path in a static road network. It is also an effective algorithm for solving many search problems. However, when the search space of the A* algorithm is relatively small, the pathfinding speed is relatively fast. However, when the search space is relatively large, the calculation amount is huge, the pathfinding speed of the algorithm is relatively slow, and it is easy to cause memory overflow.
随机无就近原则为机器人在搜索空间里沿某一寻路方向搜索,当遇到障碍物无法躲避时,重新换新的寻路方向搜索路径,此方法寻路时间长,工作效率低。The random no-nearest principle means that the robot searches in a certain path-finding direction in the search space. When it encounters an obstacle that cannot be avoided, it searches for a new path-finding direction. This method takes a long time to find a path and has low work efficiency.
发明内容Contents of the invention
本发明实施例所要解决的技术问题在于,提供一种机器人寻路方法、装置、设备和存储介质,具有优化检索路径的速度,减少试错次数,缩短寻路时间,提高工作效率的优点。The technical problem to be solved by embodiments of the present invention is to provide a robot pathfinding method, device, equipment and storage medium, which have the advantages of optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, and improving work efficiency.
为了解决上述技术问题,本发明的第一方面提供了一种机器人寻路方 法,包括:在地图中确定目标位置和机器人的当前位置;In order to solve the above technical problems, a first aspect of the present invention provides a robot path finding method. Methods, including: determining the target position and the current position of the robot on the map;
获取地图中各中转站的位置、寻路方向和点位权重,其中,所述中转站的点位权重指所述机器人在所述中转站沿所述中转站的寻路方向运动时成功到达所述目标位置的次数;Obtain the location, path-finding direction and point weight of each transfer station in the map, where the point weight of the transfer station means that the robot successfully arrives at the transfer station when it moves along the transfer station's path-finding direction. The number of times the target position is stated;
将点位权重最高的中转站作为目标中转站;Use the transfer station with the highest point weight as the target transfer station;
沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径。Along the path-finding direction of the target transfer station, a movement path of the robot from the current position to the target position via the target transfer station is planned.
在一个可行的实现方式中,所述获取地图中各中转站的点位权重之前,还包括:In a feasible implementation, before obtaining the point weight of each transfer station in the map, the method further includes:
获取所述机器人每次经至少一个中转站到所述目标位置的历史移动路径;Obtain the historical movement path of the robot to the target location through at least one transfer station each time;
对所述历史移动路径中距离所述目标位置最近且具有与该历史移动路径相同寻路方向的中转站进行点位权重记录,确定每个中转站的点位权重。Record the point weights of the transfer stations in the historical movement path that are closest to the target position and have the same pathfinding direction as the historical movement path, and determine the point weight of each transfer station.
在一个可行的实现方式中,所述获取所述机器人每次经至少一个中转站到所述目标位置的历史移动路径之前,还包括:In a feasible implementation, before obtaining the historical movement path of the robot through at least one transfer station to the target location each time, the method further includes:
确定地图中中转点位的坐标;Determine the coordinates of the transfer point on the map;
为每个中转点位赋予两个不同的方向,生成两个位置相同但寻路方向不同的中转站。Assign two different directions to each transfer point to generate two transfer stations with the same location but different pathfinding directions.
在一个可行的实现方式中,所述确定地图中中转点位的坐标,包括:In a feasible implementation, determining the coordinates of the transfer point in the map includes:
确定地图中的有效区域;Determine the valid area in the map;
绘制所述有效区域的外切矩形,从所述外切矩形的四条边上分别确定一个第一基准点;Draw a circumscribed rectangle of the effective area, and determine a first reference point from the four sides of the circumscribed rectangle;
将所述外切矩形的一组对边向所述外切矩形的中心偏移第一预设步长,得到两条偏移边;Offset a set of opposite sides of the circumscribed rectangle toward the center of the circumscribed rectangle by a first preset step to obtain two offset sides;
从每条偏移边与所述有效区域的边缘的交点中取两个相距最远的交点作为第二基准点,并将处于同一偏移边的两个第二基准点相向偏移第二预 设步长,得到四个第三基准点;From the intersection points of each offset edge and the edge of the effective area, the two farthest intersection points are taken as second reference points, and the two second reference points on the same offset edge are offset toward each other by a second predetermined time. Set the step length to obtain four third reference points;
将所述第三基准点作为所述中转点。The third reference point is used as the transfer point.
在一个可行的实现方式中,所述为每个中转点位赋予两个不同的寻路方向,生成两个位置相同但寻路方向不同的中转站,包括:In a feasible implementation, each transfer point is assigned two different path-finding directions to generate two transfer stations with the same location but different path-finding directions, including:
为每个中转点分别赋予顺时针旋转方向和逆时针旋转方向,获得两个位置相同但寻路方向不同的中转站。Assign clockwise and counterclockwise rotation directions to each transfer point to obtain two transfer stations with the same location but different pathfinding directions.
在一个可行的实现方式中,沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径,包括:In a feasible implementation, planning the movement path of the robot from the current position through the target transfer station to the target location along the pathfinding direction of the target transfer station includes:
根据所述目标中转站的寻路方向,设置从所述当前位置到所述目标中转站的第一路径,以及从所述目标中转站到所述目标位置的第二路径;According to the pathfinding direction of the target transfer station, set a first path from the current location to the target transfer station, and a second path from the target transfer station to the target location;
根据所述第一路径和所述第二路径,生成从所述当前位置经所述目标中转站到所述目标位置的移动路径。According to the first path and the second path, a movement path is generated from the current location to the target location via the target transfer station.
在一个可行的实现方式中,所述根据所述目标中转站的寻路方向,设置从所述当前位置到所述目标中转站的第一路径,包括:In a feasible implementation, setting the first path from the current location to the target transfer station according to the pathfinding direction of the target transfer station includes:
如果所述机器人从所述当前位置沿所述目标中转站的寻路方向移动至所述目标中转站不经过障碍物,则将所述当前位置到所述目标中转站的路径作为所述第一路径;If the robot moves from the current position to the target transfer station along the pathfinding direction of the target transfer station without passing an obstacle, then the path from the current position to the target transfer station is used as the first path;
如果所述机器人从所述当前位置沿所述目标中转站的寻路方向移动至所述目标中转站经过障碍物,确定所述机器人从所述当前位置沿着所述目标中转站的寻路方向绕过所述障碍物到达所述目标中转站的最短路径,并将所述最短路径作为所述第一路径。If the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes the obstacle, determine that the robot moves from the current position along the path-finding direction of the target transfer station. The shortest path that bypasses the obstacle to the target transfer station is used as the first path.
相应地,本发明第二方面还提供了一种机器人寻路装置,包括:Correspondingly, the second aspect of the present invention also provides a robot pathfinding device, including:
第一获取模块,用于获取地图中目标位置和机器人的当前位置;The first acquisition module is used to obtain the target position in the map and the current position of the robot;
第二获取模块,用于获取地图中各中转站的位置、寻路方向和点位权重;其中,所述中转站的点位权重指所述机器人在所述中转站沿所述中转站的寻路方向运动时成功到达所述目标位置的次数; The second acquisition module is used to obtain the location, path-finding direction and point weight of each transfer station in the map; where the point weight of the transfer station refers to the robot's search direction along the transfer station at the transfer station. The number of times that the target position is successfully reached when moving in the road direction;
判断模块,用于将点位权重最高的中转站作为目标中转站;The judgment module is used to select the transfer station with the highest point weight as the target transfer station;
处理模块,沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径。A processing module, along the path-finding direction of the target transfer station, plans the movement path of the robot from the current position to the target position via the target transfer station.
相应地,本发明的第三方面还提供了一种设备,包括存储器,用于存储可执行指令;Correspondingly, a third aspect of the present invention also provides a device, including a memory for storing executable instructions;
处理器,用于执行所述存储器中存储的可执行指令时,实现第一方面所述的机器人寻路方法。A processor, configured to implement the robot pathfinding method described in the first aspect when executing executable instructions stored in the memory.
相应地,本发明的第四方面还提供了一种计算机可读存储介质,包括程序代码,当所述程序产品在电子设备上运行时,所述程序代码用于使所述电子设备执行第一方面中任一所述方法的步骤。Correspondingly, a fourth aspect of the present invention also provides a computer-readable storage medium, including program code. When the program product is run on an electronic device, the program code is used to cause the electronic device to execute the first step. The steps of the method of any of the aspects.
实施本发明,具有如下有益效果:Implementing the present invention has the following beneficial effects:
本发明提供的机器人寻路方法、寻路装置、设备和计算机可读存储介质,在地图中确定目标位置和机器人的当前位置;获取地图中各中转站的位置、寻路方向和点位权重,其中,中转站的点位权重指机器人在中转站沿中转站的寻路方向运动时成功到达目标位置的次数;将点位权重最高的中转站作为目标中转站;沿着目标中转站的寻路方向,规划机器人从当前位置经目标中转站到目标位置的移动路径。相较于现有的寻路方式,通过优化检索路径的速度,减少试错次数,缩短寻路时间,从而提高工作效率。The robot pathfinding method, pathfinding device, equipment and computer-readable storage medium provided by the invention determine the target position and the current position of the robot in the map; obtain the position, pathfinding direction and point weight of each transfer station in the map, Among them, the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station; the transfer station with the highest point weight is regarded as the target transfer station; the path-finding along the target transfer station Direction, planning the movement path of the robot from the current position through the target transfer station to the target position. Compared with existing path-finding methods, by optimizing the speed of retrieval paths, the number of trials and errors is reduced, and path-finding time is shortened, thereby improving work efficiency.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the present application.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理,并不构成对本申请的不当限定。The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the description to explain the principles of the present application, and do not constitute undue limitations on the present application.
图1是本发明用于实施本发明的机器人寻路方法的寻路系统的结构示 意图;Figure 1 is a structural representation of a pathfinding system used to implement the robot pathfinding method of the present invention. intention;
图2是本发明用于机器人寻路方法的实施例流程示意图;Figure 2 is a schematic flow chart of an embodiment of the robot pathfinding method of the present invention;
图3是本发明用于机器人寻路过程的示例说明示意图;Figure 3 is a schematic diagram illustrating an example of the robot path-finding process of the present invention;
图4是本发明机器人寻路装置的结构框图;Figure 4 is a structural block diagram of the robot pathfinding device of the present invention;
图5是本发明用于机器人寻路过程的地图示意图;Figure 5 is a schematic diagram of a map used in the robot path-finding process of the present invention;
图6是本发明提供的终端设备的结构示意图;Figure 6 is a schematic structural diagram of the terminal equipment provided by the present invention;
图7是本发明提供的服务器的结构示意图。Figure 7 is a schematic structural diagram of a server provided by the present invention.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本发明。但是本发明能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似改进,因此本发明不受下面公开的具体实施例的限制。In order to make the above objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the invention. However, the present invention can be implemented in many other ways different from those described here. Those skilled in the art can make similar improvements without departing from the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
需要说明的是,当元件被称为“固定于”另一个元件,它可以直接在另一个元件上或者也可以存在居中的元件。当一个元件被认为是“连接”另一个元件,它可以是直接连接到另一个元件或者可能同时存在居中元件。本文所使用的术语“垂直的”、“水平的”、“左”、“右”以及类似的表述只是为了说明的目的。It should be noted that when an element is referred to as being "fixed" to another element, it can be directly on the other element or intervening elements may also be present. When an element is said to be "connected" to another element, it can be directly connected to the other element or there may also be intervening elements present. The terms "vertical," "horizontal," "left," "right" and similar expressions are used herein for illustrative purposes only.
除非另有定义,本文所使用的所有的技术和科学术语与属于本发明的技术领域的技术人员通常理解的含义相同。本文中在本发明的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本发明。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which the invention belongs. The terminology used herein in the description of the invention is for the purpose of describing specific embodiments only and is not intended to limit the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
实施例1Example 1
参考图1,图1示出了一种寻路系统,本申请提供的方法可在寻路系统 内实施。Referring to Figure 1, Figure 1 shows a path-finding system. The method provided by this application can be used in the path-finding system. implemented within.
图1中,寻路系统包括:移动式服务机器人110、计算设备120和充电座。其中,计算设备120与移动式服务机器人110以无线通讯方式连接,计算设备120用于向移动式服务机器人110发送控制信息,以使移动式服务机器人110向充电座移动。In Figure 1, the pathfinding system includes: a mobile service robot 110, a computing device 120 and a charging stand. The computing device 120 is connected to the mobile service robot 110 through wireless communication, and the computing device 120 is used to send control information to the mobile service robot 110 so that the mobile service robot 110 moves toward the charging base.
移动式服务机器人110可以搭载终端设备,终端设备可以是智能手机、游戏主机、台式计算机、平板电脑、电子书阅读器、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器和膝上型便携计算机中的至少一种。The mobile service robot 110 can be equipped with a terminal device. The terminal device can be a smartphone, a game console, a desktop computer, a tablet computer, an e-book reader, or MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3) At least one of a player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4) player, and a laptop computer.
计算设备120可以为一台服务器,或者为多台服务器组成的服务器集群,或者为云计算平台和虚拟化中心中的任意一种,本申请实施例对此不加以限定。服务器可以与终端设备通过有线网络或无线网络进行通信连接。服务器可以具有数据处理、数据存储以及数据收发等功能,在本申请实施例中不加以限定。The computing device 120 may be a server, a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server can communicate with the terminal device through a wired network or a wireless network. The server may have functions such as data processing, data storage, and data sending and receiving, which are not limited in the embodiments of this application.
本申请实施例中的机器人寻路方法可以由终端设备或者服务器执行。The robot pathfinding method in the embodiment of the present application can be executed by a terminal device or a server.
实施例2Example 2
参照图2,图2是本发明用于机器人寻路方法的实施例流程示意图。需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或者所描述的步骤。在本实施例中,该机器人寻路方法包括步骤S201~S204,其中:Referring to Figure 2, Figure 2 is a schematic flowchart of an embodiment of the robot pathfinding method of the present invention. It should be noted that although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a sequence different from that here. In this embodiment, the robot path-finding method includes steps S201 to S204, wherein:
S201、在地图中确定目标位置和机器人的当前位置。S201. Determine the target position and the current position of the robot on the map.
在确定地图中机器人的当前位置和目标位置之前,可以先构建有效区域。Before determining the current position and target position of the robot in the map, the effective area can be constructed first.
本发明可选实施例中,可以通过机器人的工作路径来构建有效区域,具体包括步骤: In an optional embodiment of the present invention, the effective area can be constructed through the working path of the robot, which specifically includes the following steps:
获取机器人在草坪区域的工作路径,该工作路径是指机器人以目标位置为起点的行走路径,其中目标位置位于工作路径上。工作路径可以表示为位置点的集合,可以使用激光采集设备、深度相机、传感器等设备周期性采集机器人的位置信息来获得这些位置点。Obtain the working path of the robot in the lawn area. The working path refers to the walking path of the robot starting from the target position, where the target position is located on the working path. The working path can be represented as a collection of position points, and these position points can be obtained by periodically collecting the position information of the robot using laser acquisition equipment, depth cameras, sensors and other equipment.
根据工作路径构建有效区域。在一种可能的实现方式中,可以根据工作路径构建有效区域的轮廓,也可以提前人工预设有效区域,然后将轮廓圈定范围内的障碍物标识出来,障碍物包括非草坪区域以及放置在草坪区域的物品。Construct the valid area based on the working path. In one possible implementation, the outline of the effective area can be constructed based on the working path, or the effective area can be manually preset in advance, and then the obstacles within the outline circled range are identified. The obstacles include non-turf areas and those placed on the lawn. area items.
在有效区域中确定机器人的当前位置和目标位置。其中,如图5所示,阴影部分为有效,B为机器人的当前位置,C为目标位置。Determine the current position and target position of the robot in the effective area. Among them, as shown in Figure 5, the shaded part is valid, B is the current position of the robot, and C is the target position.
S202、获取地图中各中转站的位置、寻路方向和点位权重。S202. Obtain the location, pathfinding direction and point weight of each transfer station in the map.
本发明可选实施例中,中转站可以通过如下方式确定,具体包括步骤S301-S309,参照图3:In an optional embodiment of the present invention, the transfer station can be determined in the following manner, specifically including steps S301-S309, with reference to Figure 3:
S301:绘制有效区域的外切矩形,从外切矩形的四条边上分别确定一个第一基准点。S301: Draw a circumscribed rectangle of the effective area, and determine a first reference point from the four sides of the circumscribed rectangle.
由于有效区域更大概率是不规则图形,为了使后续偏移确定的点能够尽可能的落到有效区域内,可以设计外切矩形遵循如下原则:尽量减小外切矩形与有效区域轮廓之间的区域面积。在这一原则指导下,外切矩形的长边和短边不一定是沿X轴或者Y轴延伸。Since the effective area is more likely to be an irregular shape, in order to make the points determined by subsequent offsets fall within the effective area as much as possible, the circumscribed rectangle can be designed to follow the following principles: Minimize the distance between the circumscribed rectangle and the outline of the effective area. area of the area. Under the guidance of this principle, the long and short sides of the circumscribed rectangle do not necessarily extend along the X-axis or Y-axis.
S303:将外切矩形的一组对边向外切矩形的中心偏移第一预设步长,得到两条偏移边。S303: Offset a set of opposite sides of the circumscribed rectangle toward the center of the circumscribed rectangle by a first preset step to obtain two offset sides.
其中,外切矩形的中心是指外切矩形的两条对角线的相交点。外切矩形有两组对边,使其中一组对边的两条边相向移动第一预设步长,从每条偏移边与有效区域的边缘的交点中取两个相距最远的交点作为第二基准点。Among them, the center of the circumscribed rectangle refers to the intersection point of the two diagonals of the circumscribed rectangle. The circumscribed rectangle has two sets of opposite sides. Move the two opposite sides of one set of opposite sides toward each other by a first preset step. Take the two farthest intersections from the intersections of each offset side and the edge of the effective area. as the second reference point.
S305:将处于同一偏移边的两个第二基准点相向偏移第二预设步长,得到四个第三基准点。 S305: Offset the two second reference points on the same offset side toward each other by a second preset step to obtain four third reference points.
S307:将第三基准点作为中转点。S307: Use the third reference point as the transfer point.
S309:为每个中转点位赋予两个不同的方向,生成两个位置相同但寻路方向不同的中转站。S309: Assign two different directions to each transfer point to generate two transfer stations with the same location but different pathfinding directions.
请参照图5,图中轮廓点组成有效区域的轮廓,划分出可行走区域的边界,即轮廓以内为机器人可行走区域。Please refer to Figure 5. The contour points in the figure form the outline of the effective area and demarcate the boundary of the walkable area, that is, the area within the outline is the walkable area of the robot.
本实施例选择的方式是,以y轴方向,选取有效区域的两端的点为所需轮廓点。同理也可以选择x轴方向,亦可选取所有边缘点,本案使用y轴方向两端点是为了减少数据量。The method chosen in this embodiment is to select the points at both ends of the effective area in the y-axis direction as the required contour points. In the same way, you can also select the x-axis direction, or you can select all edge points. In this case, the two end points in the y-axis direction are used to reduce the amount of data.
本实施例选择外接最小矩形,是因为设定中转点最多为四个,可以满足一般草坪形状。所以最小外接矩形可以说是最贴近有效区域的形状,生成的矩形不一定是以x轴为水平方向。In this embodiment, the minimum circumscribed rectangle is selected because the maximum number of transfer points is set to four, which can satisfy the general lawn shape. Therefore, the minimum circumscribed rectangle can be said to be the shape closest to the effective area, and the generated rectangle does not necessarily have the x-axis as the horizontal direction.
本实施例得到轮廓矩形如图5用四个点位表示。但是由于获取到的矩形四点并不一定满足落在有效区域,所以需要进一步进行偏移,让中转点位落在有效区域。In this embodiment, the outline rectangle obtained is represented by four points in Figure 5. However, since the obtained four rectangular points do not necessarily fall in the effective area, further offset is needed to make the transfer point fall in the effective area.
为了让中转点位落在有效区域内,不局限于本实施例方法。本实施例经历了两步骤,也可合为一步。In order to ensure that the transfer point is located within the effective area, the method is not limited to this embodiment. This embodiment has gone through two steps, which can also be combined into one step.
因为定位系统精度在3m左右,本实施例以2倍精度为偏移基准值,如offset=6m,其中Max为整个有效区域最大的尺寸。Because the accuracy of the positioning system is about 3m, this embodiment uses 2 times the accuracy as the offset reference value, such as offset=6m, where Max is the largest size of the entire effective area.
R1R2边以R1R4为水平线方向平移(offset~Max)单位,再以R1R4边平移至到的有效区域即得F1,平移到的最后一个有效区域即得F2;R3R4边以R1R4为水平线方向平移(offset~Max)单位,再以R3R4边平移至到的有效区域即得F3,平移到的最后一个有效区域即得F4;由于此时中转站Fn还是存在有效区域的边缘位置,如果满足之间间距大于offset时,可以进一步得到有效区域内部的中转点Nn;此时Fn移动Y轴正反方向分别向内移动offset单位,获得N1、N2、N3、N4。 The R1R2 side uses R1R4 as the horizontal direction translation (offset~Max) unit, and then uses the R1R4 side to translate to the effective area, which is F1, and the last effective area it translates to is F2; the R3R4 side uses R1R4 as the horizontal direction translation (offset ~Max) unit, and then use the R3R4 edge to translate to the effective area to get F3, and translate to the last effective area to get F4; since the transfer station Fn still has the edge position of the effective area at this time, if the distance between them is greater than When offset, the transfer point Nn inside the effective area can be further obtained; at this time, Fn moves the Y axis forward and reverse directions and moves offset units inward respectively to obtain N1, N2, N3, and N4.
获得的N1、N2、N3、N4即为中转点。The obtained N1, N2, N3, and N4 are the transfer points.
为每个中转点位赋予两个不同的方向,在一种可能的实现方式中,在同一个中转点赋予一个顺时针方向的中转站,一个赋予逆时针方向的中转站,一个中转点生成两个位置相同但寻路方向不同的中转站,获得的N11(顺时针)、N12(逆时针)、N21(顺时针)、N22(逆时针)、N31(顺时针)、N32(逆时针)、N41(顺时针)、N42(逆时针)即为八个中转站,每个中转站确定一个中转方向。Each transfer point is assigned two different directions. In one possible implementation, the same transfer point is assigned a clockwise transfer station and a counterclockwise transfer station. One transfer point generates two transfer stations with the same location but different pathfinding directions, the obtained N11 (clockwise), N12 (counterclockwise), N21 (clockwise), N22 (counterclockwise), N31 (clockwise), N32 (counterclockwise), N41 (clockwise) and N42 (counterclockwise) are eight transfer stations, and each transfer station determines a transfer direction.
在获取八个中转站及对应的中转方向后,在一种可能的实现方式中,点位权重可以通过如下方式确定:After obtaining eight transfer stations and corresponding transfer directions, in a possible implementation, the point weight can be determined in the following way:
获取机器人每次经至少一个中转站到目标位置的历史移动路径;对历史移动路径中距离目标位置最近且具有与该历史移动路径相同寻路方向的中转站进行点位权重记录,确定每个中转站的点位权重。Obtain the historical movement path of the robot to the target location through at least one transfer station each time; record the point weight of the transfer station in the historical movement path that is closest to the target location and has the same pathfinding direction as the historical movement path, and determine each transfer The point weight of the station.
从中转点中确定与机器人位置对应的第一目标中转点和与目标位置对应的第二目标中转点;获取从第一目标中转点到第二目标中转点的所有候选中转路径;将长度最短且不经过障碍物的候选路径作为中转路径,其中机器人位置到中转点位置长度最短且不经过障碍物的作为第一目标中转点,目标位置到中转点位置长度最短且不经过障碍物的作为第二目标中转点。Determine the first target transfer point corresponding to the robot position and the second target transfer point corresponding to the target position from the transfer points; obtain all candidate transfer paths from the first target transfer point to the second target transfer point; divide the shortest length and The candidate path that does not pass through obstacles is regarded as the transfer path, among which the shortest length from the robot position to the transfer point position and does not pass through obstacles is regarded as the first target transfer point, and the shortest length from the target position to the transfer point position and does not pass through obstacles is regarded as the second target transfer point. Target transfer point.
选取中转点Ni(i=1,2,3,4)中两点分别为第一目标中转点和第二目标中转点,其中机器人位置距离最近的第一目标中转点为Sm(m=1,2,3,4),目标位置距离最近的第二目标中转点为En(n=1,2,3,4);Select two points in the transfer point Ni (i=1, 2, 3, 4) as the first target transfer point and the second target transfer point respectively. Among them, the first target transfer point closest to the robot position is Sm (m=1, 2,3,4), the second target transfer point closest to the target position is En(n=1,2,3,4);
参照图5,本实施例提供了一种机器人的工作后回目标位置的目标路径,机器人距离最近的第一目标中转点为N2,即m=2;距目标位置最近的第二目标中转点为N1,即n=1;因此取第一目标中转点为S2,第二目标中转点为E1;Referring to Figure 5, this embodiment provides a target path for the robot to return to the target position after working. The first target transfer point closest to the robot is N2, that is, m=2; the second target transfer point closest to the target position is N1, that is, n=1; therefore, the first target transfer point is S2, and the second target transfer point is E1;
产生回家路径的一般规则,即机器人从第一目标中转点到第二目标中转点的一般规则: The general rules for generating a home path, that is, the general rules for the robot to go from the first target transfer point to the second target transfer point:
机器可以执行顺时针行走,也可以执行逆时针行走;其中N1、N2、N3、N4四个候选中转点按顺序依次构成一个循环路径。The machine can walk clockwise or counterclockwise; the four candidate transfer points N1, N2, N3, and N4 form a circular path in sequence.
a.如果m=n,若顺时针,回家路径为Nm+1为第一目标中转点,Nn为第二目标中转点,依次递增排序,中转站数量为4;a. If m=n, if clockwise, the route home is Nm+1, which is the first target transfer point, and Nn, which is the second target transfer point. They are sorted in ascending order, and the number of transfer stations is 4;
b.如果m=n,若逆时针,回家路径为Nm-1为第一目标中转点,Nn为第二目标中转点,依次递减排序,中转站数量为4;b. If m=n, if counterclockwise, the home route is Nm-1 is the first target transfer point, Nn is the second target transfer point, in descending order, the number of transfer stations is 4;
c.如果m<n,若顺时针,回家路径为Nm为第一目标中转点,Nn为第二目标中转点,依次递增排序,中转站数量为n-m+1;c. If m<n, if clockwise, the home route is Nm as the first target transfer point, Nn as the second target transfer point, sorted in ascending order, and the number of transfer stations is n-m+1;
d.如果m<n,若逆时针,回家路径为Nm为第一目标中转点,Nn为第二目标中转点,依次递减排序,中转站数量为5-n+m;d. If m<n, if counterclockwise, the home route is Nm as the first target transfer point, Nn as the second target transfer point, in descending order, the number of transfer stations is 5-n+m;
e.如果m>n,若顺时针,回家路径为Nm为第一目标中转点,Nn为第二目标中转点,依次递增排序,中转站数量为5-m+n;e. If m>n, if clockwise, the home route is Nm as the first target transfer point, Nn as the second target transfer point, sorted in ascending order, and the number of transfer stations is 5-m+n;
f.如果m>n,若逆时针,回家路径为Nm为第一目标中转点,Nn为第二目标中转点,依次递减排序,中转站数量为m-n+1;f. If m>n, if counterclockwise, the home route is Nm as the first target transfer point, Nn as the second target transfer point, in descending order, the number of transfer stations is m-n+1;
g.当顺时针、逆时针均无法走到第一目标中转点时,则更改第一目标中转点为路径中下一个中转点;g. When it is impossible to reach the first target transfer point in both clockwise and counterclockwise directions, change the first target transfer point to the next transfer point on the path;
m=2,n=1,m>n,符合规则e和f,按顺时针行走生成路径为N2→N3-→N4→N1,按逆时针行走生成路径为N2→N1;但是从B点出发,实际情况下机器是无法到达第一目标中转点N2点,符合规则g,改第一目标中转点为下一个中转点,就会生成路径N3→N4→N1,即中转站路径为N31(顺时针)→N41(顺时针)→N11(顺时针)得到目标中转路径。m=2, n=1, m>n, conforming to the rules e and f, the path generated by walking clockwise is N2→N3-→N4→N1, and the path generated by walking counterclockwise is N2→N1; but starting from point B , in actual circumstances, the machine cannot reach the first target transfer point N2, which conforms to rule g. If the first target transfer point is changed to the next transfer point, the path N3→N4→N1 will be generated, that is, the transfer station path is N31 (sequentially Clockwise) → N41 (clockwise) → N11 (clockwise) to obtain the target transfer path.
在第一目标中转点成功到达第二目标点后,获取目标中转路径中对应的中转方向,进而确定中转点中的中转站,再对确定的中转站进行权重记录,确定每个中转站的点位权重。通过记录每个中转站的寻路方向、点位权重,从而在下一次寻路时,可以直接读取中转站的寻路方向与点位权重,优化检索路径,减少试错次数,缩短寻路时间。 After the first target transfer point successfully reaches the second target point, the corresponding transfer direction in the target transfer path is obtained, and then the transfer station in the transfer point is determined, and then the weight of the determined transfer station is recorded to determine the point of each transfer station. bit weight. By recording the pathfinding direction and point weight of each transfer station, you can directly read the pathfinding direction and point weight of the transfer station during the next pathfinding, optimize the search path, reduce the number of trials and errors, and shorten the pathfinding time. .
S203、将点位权重最高的中转站作为目标中转站。S203. Use the transfer station with the highest point weight as the target transfer station.
确定目标位置到各中转点的移动路径,将长度最短且不经过障碍物的移动路径所对应的中转点作为目标中转点,将目标中转点中点位权重次数最多的中转站作为目标中转站。Determine the moving path from the target position to each transfer point, use the transfer point corresponding to the shortest moving path that does not pass through obstacles as the target transfer point, and use the transfer station with the largest number of weights in the target transfer point as the target transfer station.
参见图5,离目标位置C点位权重最高的目标中转站为N11(顺时针)。Referring to Figure 5, the target transfer station with the highest weight from the target position C is N11 (clockwise).
S204、沿着目标中转站的寻路方向,规划机器人从当前位置经目标中转站到目标位置的移动路径。S204. Plan the movement path of the robot from the current position through the target transfer station to the target position along the pathfinding direction of the target transfer station.
根据目标中转站的寻路方向,设置从当前位置到目标中转站的第一路径,以及从目标中转站到目标位置的第二路径。According to the pathfinding direction of the target transfer station, a first path from the current location to the target transfer station and a second path from the target transfer station to the target location are set.
根据第一路径和第二路径,生成从当前位置经目标中转站到目标位置的移动路径。According to the first path and the second path, a moving path from the current location to the target location via the target transfer station is generated.
在一种可能实现的方式中,第一路径可以通过如下方式确定:In one possible implementation, the first path can be determined as follows:
如果机器人从当前位置沿目标中转站的寻路方向移动至目标中转站不经过障碍物,则将当前位置到目标中转站的路径作为第一路径;If the robot moves from the current position to the target transfer station along the path-finding direction of the target transfer station without passing obstacles, then the path from the current position to the target transfer station is used as the first path;
如果机器人从当前位置沿目标中转站的寻路方向移动至目标中转站经过障碍物,确定机器人从当前位置沿着目标中转站的寻路方向绕过障碍物到达目标中转站的最短路径,并将最短路径作为第一路径。If the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes through an obstacle, determine the shortest path for the robot to move from the current position along the path-finding direction of the target transfer station around the obstacle to the target transfer station, and The shortest path is used as the first path.
当机器人从当前位置沿目标中转站的寻路方向移动至目标中转站经过障碍物时,确定机器人位置到各候选中转点的第一移动路径,将长度最短且不经过障碍物的第一移动路径所对应的中转点作为第一中转点,沿着目标中转站的方向,确定第一中转点相同方向的第一中转站,根据机器人位置到第一中转站的路径,第一中转站到目标中转站的路径确定第一路径。When the robot moves from the current position along the pathfinding direction of the target transfer station to the target transfer station and passes through obstacles, determine the first moving path from the robot's position to each candidate transfer point, and select the first moving path with the shortest length that does not pass through obstacles. The corresponding transfer point is used as the first transfer point. Along the direction of the target transfer station, determine the first transfer station in the same direction as the first transfer point. According to the path from the robot position to the first transfer station, the first transfer station to the target transfer station The path of the station determines the first path.
参照图5,长度最短且不经过障碍物的第一移动路径所对应的中转点N3作为第一中转点,同时历史移动路径中,点位权重最高的目标中转站为N11(顺时针),中转方向为顺顺时针,所以第一中转站为N31(顺时针),中转站的移动路径为N31(顺时针)→N41(顺时针)→N11(顺时针),第 一路径为机器人位置到N31(顺时针)的直线路径和N31(顺时针)→N41(顺时针)→N11(顺时针)。Referring to Figure 5, the transfer point N3 corresponding to the first movement path with the shortest length and not passing through obstacles is used as the first transfer point. At the same time, in the historical movement path, the target transfer station with the highest point weight is N11 (clockwise). The direction is clockwise, so the first transfer station is N31 (clockwise), and the moving path of the transfer station is N31 (clockwise) → N41 (clockwise) → N11 (clockwise). One path is a straight path from the robot position to N31 (clockwise) and N31 (clockwise) → N41 (clockwise) → N11 (clockwise).
在一种可能实现的方式中,第二路径可以通过如下方式确定:In one possible implementation, the second path can be determined as follows:
确定目标中转站到目标位置的直线路径为第二路径。Determine the straight path from the target transfer station to the target location as the second path.
参照图5,目标中转站到目标位置的直线路径为第二路径,即N11到目标位置的直线路径。Referring to Figure 5, the straight path from the target transfer station to the target location is the second path, that is, the straight path from N11 to the target location.
一方面,在机器人从当前位置沿目标中转站的寻路方向移动至目标中转站不经过障碍物时,确定移动路径为机器人位置到目标中转站的直线路径和目标中转站到目标位置的直线路径,从而优化检索路径的速度,减少试错次数,缩短寻路时间,提高工作效率,可以快速回到目标位置;On the one hand, when the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station without passing through obstacles, the movement path is determined to be the straight-line path from the robot position to the target transfer station and the straight-line path from the target transfer station to the target position. , thereby optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, improving work efficiency, and quickly returning to the target location;
另一方面在机器人从当前位置沿目标中转站的寻路方向移动至目标中转站经过障碍物时,确定机器人从当前位置沿着目标中转站的寻路方向绕过障碍物到达目标中转站的最短路径,并将最短路径作为第一路径,以及从目标中转站到目标位置的第二路径,根据第一路径和第二路径,生成从当前位置经目标中转站到目标位置的移动路径。避免了不连通的区域的无效数据处理,因而可以在满足寻路所需数据的基础上,降低目标路径的数据计算量,同时将点位权重最高的中转站作为目标中转站,也在一定程度上可以降低试错次数,从而优化检索路径的速度,减少试错次数,缩短寻路时间,提高工作效率,可以快速回到目标位置。On the other hand, when the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes an obstacle, determine the shortest path for the robot to move from the current position along the path-finding direction of the target transfer station around the obstacle to the target transfer station. path, taking the shortest path as the first path and the second path from the target transfer station to the target location, and generating a moving path from the current location to the target location via the target transfer station based on the first path and the second path. It avoids invalid data processing in disconnected areas, so it can reduce the data calculation amount of the target path on the basis of meeting the data required for path finding. At the same time, the transfer station with the highest point weight is used as the target transfer station to a certain extent. It can reduce the number of trials and errors, thereby optimizing the speed of retrieval paths, reducing the number of trials and errors, shortening pathfinding time, improving work efficiency, and quickly returning to the target location.
实施例3Example 3
图4示出了根据本公开的实施例的寻路装置的框图。请参照图4,寻路装置包括第一获取模块401、第二获取模块402、判断模块403和处理模块404。4 shows a block diagram of a pathfinding device according to an embodiment of the present disclosure. Referring to FIG. 4 , the path finding device includes a first acquisition module 401 , a second acquisition module 402 , a judgment module 403 and a processing module 404 .
第一获取模块401,用于获取地图中目标位置和机器人的当前位置;The first acquisition module 401 is used to acquire the target position in the map and the current position of the robot;
第二获取模块402,用于获取地图中各中转站的位置、寻路方向和点位权重;其中,所述中转站的点位权重指所述机器人在所述中转站沿所述中 转站的寻路方向运动时成功到达所述目标位置的次数;The second acquisition module 402 is used to obtain the location, path-finding direction and point weight of each transfer station in the map; wherein, the point weight of the transfer station refers to the position of the robot along the center of the transfer station. The number of times the target location was successfully reached when moving in the pathfinding direction of the transfer station;
判断模块403,用于将点位权重最高的中转站作为目标中转站;The judgment module 403 is used to select the transfer station with the highest point weight as the target transfer station;
处理模块404,沿着目标中转站的寻路方向,规划机器人从当前位置经目标中转站到目标位置的移动路径。The processing module 404 plans the movement path of the robot from the current position through the target transfer station to the target location along the pathfinding direction of the target transfer station.
应当理解,图4中所示出的第一获取模块401、第二获取模块402以及处理模块404可以被包括在参考图1所描述的计算设备120中。而且,应当理解,图4中所示出的模块可以执行参考本公开的实施例的方法或过程中的步骤或动作。It should be understood that the first acquisition module 401, the second acquisition module 402, and the processing module 404 shown in FIG. 4 may be included in the computing device 120 described with reference to FIG. 1 . Furthermore, it should be understood that the modules shown in Figure 4 may perform steps or actions in methods or processes with reference to embodiments of the present disclosure.
实施例4Example 4
图6示出了本申请一个示例性实施例提供的终端设备的结构框图。该终端设备600可以是便携式移动终端,比如:智能手机、平板电脑、MP3(Moving Picture ExpertsGroup Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving PictureExperts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端设备700还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。Figure 6 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application. The terminal device 600 can be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, moving picture experts compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, moving picture Expert compression of standard audio levels 4) players, laptops or desktop computers. The terminal device 700 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal, and other names.
通常,终端设备600包括有:处理器601和存储器602。Generally, the terminal device 600 includes: a processor 601 and a memory 602.
处理器601可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器601可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器601也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器601可以集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘 制。一些实施例中,处理器601还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 601 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). accomplish. The processor 601 may also include a main processor and a co-processor. The main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit, image processor), which is responsible for rendering and drawing the content to be displayed on the display screen. system. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
存储器602可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器602还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器602中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器601所执行以实现本申请中方法实施例提供的机器人寻路方法。Memory 602 may include one or more computer-readable storage media, which may be non-transitory. Memory 602 may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 602 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 601 to implement the robot search provided by the method embodiment in this application. road method.
在一些实施例中,终端设备600还可选包括有:外围设备接口603和至少一个外围设备。处理器601、存储器602和外围设备接口603之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口603相连。具体地,外围设备包括:射频电路604、显示屏605、摄像头组件606、音频电路607、定位组件608和电源609中的至少一种。In some embodiments, the terminal device 600 optionally further includes: a peripheral device interface 603 and at least one peripheral device. The processor 601, the memory 602 and the peripheral device interface 603 may be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 603 through a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display screen 605, a camera component 606, an audio circuit 607, a positioning component 608 and a power supply 609.
外围设备接口603可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器601和存储器602。在一些实施例中,处理器601、存储器602和外围设备接口603被集成在同一芯片或电路板上;在一些其他实施例中,处理器601、存储器602和外围设备接口603中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 603 may be used to connect at least one I/O (Input/Output) related peripheral device to the processor 601 and the memory 602 . In some embodiments, the processor 601, the memory 602 and the peripheral device interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 601, the memory 602 and the peripheral device interface 603 or Both of them can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
射频电路604用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路604通过电磁信号与通信网络以及其他通信设备进行通信。射频电路604将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路604包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路604可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城 域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路604还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 604 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. Radio frequency circuitry 604 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 604 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. Radio frequency circuitry 604 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include but are not limited to: World Wide Web, urban Area network, intranet, mobile communication networks of all generations (2G, 3G, 4G and 5G), wireless LAN and/or WiFi (Wireless Fidelity, wireless fidelity) network. In some embodiments, the radio frequency circuit 604 may also include NFC (Near Field Communication) related circuits, which is not limited in this application.
显示屏605用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏605是触摸显示屏时,显示屏605还具有采集在显示屏605的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器601进行处理。此时,显示屏705还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏605可以为一个,设置在终端设备600的前面板;在另一些实施例中,显示屏605可以为至少两个,分别设置在终端设备600的不同表面或呈折叠设计;在另一些实施例中,显示屏605可以是柔性显示屏,设置在终端设备600的弯曲表面上或折叠面上。甚至,显示屏605还可以设置成非矩形的不规则图形,也即异形屏。显示屏605可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 605 is used to display UI (User Interface, user interface). The UI can include graphics, text, icons, videos, and any combination thereof. When display screen 605 is a touch display screen, display screen 605 also has the ability to collect touch signals on or above the surface of display screen 605 . The touch signal can be input to the processor 601 as a control signal for processing. At this time, the display screen 705 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 605, which is disposed on the front panel of the terminal device 600; in other embodiments, there may be at least two display screens 605, which are disposed on different surfaces of the terminal device 600 or folded. Design; in other embodiments, the display screen 605 may be a flexible display screen, disposed on the curved surface or folding surface of the terminal device 600. Even, the display screen 605 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 605 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
摄像头组件606用于采集图像或视频。可选地,摄像头组件606包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件606还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 606 is used to capture images or videos. Optionally, the camera assembly 606 includes a front camera and a rear camera. Usually, the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal. In some embodiments, there are at least two rear cameras, one of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera to realize the background blur function. Integrated with a wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
音频电路607可以包括麦克风和扬声器。麦克风用于采集用户及环境 的声波,并将声波转换为电信号输入至处理器601进行处理,或者输入至射频电路604以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端设备600的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器601或射频电路604的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路607还可以包括耳机插孔。Audio circuitry 607 may include a microphone and speakers. Microphone is used to collect user and environment sound wave, and convert the sound wave into an electrical signal and input it to the processor 601 for processing, or input it to the radio frequency circuit 604 to realize voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 600 . The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional membrane loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves that are audible to humans, but also convert electrical signals into sound waves that are inaudible to humans for purposes such as ranging. In some embodiments, audio circuitry 607 may also include a headphone jack.
定位组件608用于定位终端设备600的当前地理位置,以实现导航或LBS(LocationBased Service,基于位置的服务)。定位组件608可以是基于美国的GPS(GlobalPositioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。The positioning component 608 is used to locate the current geographical location of the terminal device 600 to implement navigation or LBS (LocationBased Service, location-based service). The positioning component 608 may be a positioning component based on the American GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.
电源609用于为终端设备600中的各个组件进行供电。电源609可以是交流电、直流电、一次性电池或可充电电池。当电源609包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 609 is used to provide power to various components in the terminal device 600 . Power source 609 may be AC, DC, disposable batteries, or rechargeable batteries. When the power source 609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,终端设备600还包括有一个或多个传感器610。该一个或多个传感器610包括但不限于:加速度传感器611、陀螺仪传感器612、压力传感器613、指纹传感器614、光学传感器615以及接近传感器616。In some embodiments, the terminal device 600 further includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: an acceleration sensor 611, a gyroscope sensor 612, a pressure sensor 613, a fingerprint sensor 614, an optical sensor 615, and a proximity sensor 616.
加速度传感器611可以检测以终端设备600建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器611可以用于检测重力加速度在三个坐标轴上的分量。处理器601可以根据加速度传感器611采集的重力加速度信号,控制显示屏605以横向视图或纵向视图进行用户界面的显示。加速度传感器611还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 611 can detect the acceleration on the three coordinate axes of the coordinate system established by the terminal device 600 . For example, the acceleration sensor 611 can be used to detect the components of gravity acceleration on three coordinate axes. The processor 601 can control the display screen 605 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 611 . The acceleration sensor 611 can also be used to collect game or user motion data.
陀螺仪传感器612可以检测终端设备600的机体方向及转动角度,陀 螺仪传感器612可以与加速度传感器611协同采集用户对终端设备600的3D动作。处理器601根据陀螺仪传感器612采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyro sensor 612 can detect the body direction and rotation angle of the terminal device 600. The gyroscope sensor 612 can cooperate with the acceleration sensor 611 to collect the user's 3D movements on the terminal device 600 . Based on the data collected by the gyro sensor 612, the processor 601 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
压力传感器613可以设置在终端设备600的侧边框和/或显示屏605的下层。当压力传感器613设置在终端设备600的侧边框时,可以检测用户对终端设备600的握持信号,由处理器601根据压力传感器613采集的握持信号进行左右手识别或快捷操作。当压力传感器613设置在显示屏605的下层时,由处理器601根据用户对显示屏605的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 613 may be provided on the side frame of the terminal device 600 and/or on the lower layer of the display screen 605 . When the pressure sensor 613 is disposed on the side frame of the terminal device 600, it can detect the user's grip signal on the terminal device 600, and the processor 601 performs left and right hand recognition or quick operation based on the grip signal collected by the pressure sensor 613. When the pressure sensor 613 is provided on the lower layer of the display screen 605, the processor 601 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 605. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
指纹传感器614用于采集用户的指纹,由处理器601根据指纹传感器614采集到的指纹识别用户的身份,或者,由指纹传感器614根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器601授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器614可以被设置在终端设备600的正面、背面或侧面。当终端设备600上设置有物理按键或厂商Logo时,指纹传感器614可以与物理按键或厂商Logo集成在一起。The fingerprint sensor 614 is used to collect the user's fingerprint. The processor 601 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the user's identity based on the collected fingerprint. When the user's identity is recognized as a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations. The sensitive operations include unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 614 may be provided on the front, back or side of the terminal device 600 . When the terminal device 600 is provided with a physical button or a manufacturer's logo, the fingerprint sensor 614 can be integrated with the physical button or the manufacturer's logo.
光学传感器615用于采集环境光强度。在一个实施例中,处理器601可以根据光学传感器615采集的环境光强度,控制显示屏605的显示亮度。具体地,当环境光强度较高时,调高显示屏605的显示亮度;当环境光强度较低时,调低显示屏605的显示亮度。在另一个实施例中,处理器601还可以根据光学传感器615采集的环境光强度,动态调整摄像头组件606的拍摄参数。The optical sensor 615 is used to collect ambient light intensity. In one embodiment, the processor 601 can control the display brightness of the display screen 605 according to the ambient light intensity collected by the optical sensor 615 . Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is decreased. In another embodiment, the processor 601 can also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615 .
接近传感器616,也称距离传感器,通常设置在终端设备600的前面板。接近传感器616用于采集用户与终端设备600的正面之间的距离。在一个 实施例中,当接近传感器616检测到用户与终端设备600的正面之间的距离逐渐变小时,由处理器601控制显示屏605从亮屏状态切换为息屏状态;当接近传感器616检测到用户与终端设备600的正面之间的距离逐渐变大时,由处理器601控制显示屏605从息屏状态切换为亮屏状态。The proximity sensor 616, also called a distance sensor, is usually provided on the front panel of the terminal device 600. The proximity sensor 616 is used to collect the distance between the user and the front of the terminal device 600 . in a In the embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the terminal device 600 gradually becomes smaller, the processor 601 controls the display screen 605 to switch from the screen-on state to the screen-off state; when the proximity sensor 616 detects that the user When the distance from the front of the terminal device 600 gradually increases, the processor 601 controls the display screen 605 to switch from the screen-off state to the screen-on state.
本领域技术人员可以理解,图6中示出的结构并不构成对终端设备600的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 6 does not constitute a limitation on the terminal device 600, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
图7为本申请实施例提供的服务器的结构示意图,该服务器700可因配置或性能不同而产生比较大的差异,可以包括一个或多个处理器701和一个或多个的存储器702,其中,该一个或多个存储器702中存储有至少一条程序代码,该至少一条程序代码由该一个或多个处理器701加载并执行以实现上述各个方法实施例提供的机器人寻路方法,示例性的,处理器701为CPU。当然,该服务器700还可以具有有线或无线网络接口、键盘以及输入输出接口等部件,以便进行输入输出,该服务器700还可以包括其他用于实现设备功能的部件,在此不做赘述。Figure 7 is a schematic structural diagram of a server provided by an embodiment of the present application. The server 700 may vary greatly due to different configurations or performance, and may include one or more processors 701 and one or more memories 702, where, At least one program code is stored in the one or more memories 702, and the at least one program code is loaded and executed by the one or more processors 701 to implement the robot pathfinding method provided by the above method embodiments. For example, Processor 701 is a CPU. Of course, the server 700 may also have components such as wired or wireless network interfaces, keyboards, and input and output interfaces for input and output. The server 700 may also include other components for implementing device functions, which will not be described again here.
在示例性实施例中,还提供了一种计算机可读存储介质,该存储介质中存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行,以使电子设备实现上述任一种机器人寻路方法。In an exemplary embodiment, a computer-readable storage medium is also provided. At least one program code is stored in the storage medium. The at least one program code is loaded and executed by the processor to enable the electronic device to implement any of the above. Robot pathfinding methods.
可选地,上述计算机可读存储介质可以是只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、只读光盘(Compact Disc Read-OnlyMemory,CD-ROM)、磁带、软盘和光数据存储设备等。Optionally, the above computer-readable storage medium can be read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), read-only compact disc (Compact Disc Read-OnlyMemory, CD-ROM) , tapes, floppy disks and optical data storage devices, etc.
在示例性实施例中,还提供了一种计算机程序或计算机程序产品,该计算机程序或计算机程序产品中存储有至少一条计算机指令,该至少一条计算机指令由处理器加载并执行,以使计算机实现上述任一种机器人寻路方法。 In an exemplary embodiment, a computer program or computer program product is also provided. At least one computer instruction is stored in the computer program or computer program product, and the at least one computer instruction is loaded and executed by the processor, so that the computer implements Any of the above robot pathfinding methods.
本发明提供的机器人寻路方法、寻路装置、设备和计算机可读存储介质,在地图中确定目标位置和机器人的当前位置;获取地图中各中转站的位置、寻路方向和点位权重,其中,中转站的点位权重指机器人在中转站沿中转站的寻路方向运动时成功到达目标位置的次数;将点位权重最高的中转站作为目标中转站;沿着目标中转站的寻路方向,规划机器人从当前位置经目标中转站到目标位置的移动路径。相对于其他寻路算法,通过优化检索路径的速度,减少试错次数,缩短寻路时间,从而提高工作效率。The robot pathfinding method, pathfinding device, equipment and computer-readable storage medium provided by the invention determine the target position and the current position of the robot in the map; obtain the position, pathfinding direction and point weight of each transfer station in the map, Among them, the point weight of the transfer station refers to the number of times the robot successfully reaches the target position when the robot moves along the path-finding direction of the transfer station; the transfer station with the highest point weight is regarded as the target transfer station; the path-finding along the target transfer station Direction, planning the movement path of the robot from the current position through the target transfer station to the target position. Compared with other path-finding algorithms, by optimizing the speed of retrieval paths, the number of trials and errors is reduced, and the path-finding time is shortened, thereby improving work efficiency.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that "plurality" mentioned in this article means two or more. "And/or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the related objects are in an "or" relationship.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
以上仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims (10)

  1. 一种机器人寻路方法,其特征在于,包括:A robot path-finding method, characterized by including:
    在地图中确定目标位置和机器人的当前位置;Determine the target location and the current location of the robot on the map;
    获取地图中各中转站的位置、寻路方向和点位权重,其中,所述中转站的点位权重指所述机器人在所述中转站沿所述中转站的寻路方向运动时成功到达所述目标位置的次数;Obtain the location, path-finding direction and point weight of each transfer station in the map, where the point weight of the transfer station means that the robot successfully arrives at the transfer station when it moves along the transfer station's path-finding direction. The number of times the target position is stated;
    将点位权重最高的中转站作为目标中转站;Use the transfer station with the highest point weight as the target transfer station;
    沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径。Along the path-finding direction of the target transfer station, a movement path of the robot from the current position to the target position via the target transfer station is planned.
  2. 根据权利要求1所述的机器人寻路方法,其特征在于,所述获取地图中各中转站的点位权重之前,还包括:The robot pathfinding method according to claim 1, characterized in that before obtaining the point weight of each transfer station in the map, it further includes:
    获取所述机器人每次经至少一个中转站到所述目标位置的历史移动路径;Obtain the historical movement path of the robot to the target location through at least one transfer station each time;
    对所述历史移动路径中距离所述目标位置最近且具有与该历史移动路径相同寻路方向的中转站进行点位权重记录,确定每个中转站的点位权重。Record the point weights of the transfer stations in the historical movement path that are closest to the target position and have the same pathfinding direction as the historical movement path, and determine the point weight of each transfer station.
  3. 根据权利要求2所述的机器人寻路方法,其特征在于,所述获取所述机器人每次经至少一个中转站到所述目标位置的历史移动路径之前,还包括:The robot pathfinding method according to claim 2, characterized in that, before obtaining the historical movement path of the robot to the target location through at least one transfer station, it further includes:
    确定地图中中转点位的坐标;Determine the coordinates of the transfer point on the map;
    为每个中转点位赋予两个不同的方向,生成两个位置相同但寻路方向不同的中转站。Assign two different directions to each transfer point to generate two transfer stations with the same location but different pathfinding directions.
  4. 根据权利要求3所述的机器人寻路方法,其特征在于,所述确定地 图中中转点位的坐标,包括:The robot pathfinding method according to claim 3, characterized in that the determined The coordinates of the transfer points in the figure include:
    确定地图中的有效区域;Determine the valid area in the map;
    绘制所述有效区域的外切矩形,从所述外切矩形的四条边上分别确定一个第一基准点;Draw a circumscribed rectangle of the effective area, and determine a first reference point from the four sides of the circumscribed rectangle;
    将所述外切矩形的一组对边向所述外切矩形的中心偏移第一预设步长,得到两条偏移边;Offset a set of opposite sides of the circumscribed rectangle toward the center of the circumscribed rectangle by a first preset step to obtain two offset sides;
    从每条偏移边与所述有效区域的边缘的交点中取两个相距最远的交点作为第二基准点,并将处于同一偏移边的两个第二基准点相向偏移第二预设步长,得到四个第三基准点;From the intersection points of each offset edge and the edge of the effective area, the two farthest intersection points are taken as second reference points, and the two second reference points on the same offset edge are offset toward each other by a second predetermined time. Set the step length to obtain four third reference points;
    将所述第三基准点作为所述中转点。The third reference point is used as the transfer point.
  5. 根据权利要求3所述的机器人寻路方法,其特征在于,所述为每个中转点位赋予两个不同的寻路方向,生成两个位置相同但寻路方向不同的中转站,包括:The robot path-finding method according to claim 3, characterized in that, assigning two different path-finding directions to each transfer point to generate two transfer stations with the same position but different path-finding directions, including:
    为每个中转点分别赋予顺时针旋转方向和逆时针旋转方向,获得两个位置相同但寻路方向不同的中转站。Assign clockwise and counterclockwise rotation directions to each transfer point to obtain two transfer stations with the same location but different pathfinding directions.
  6. 根据权利要求1所述的机器人的寻路方法,其特征在于,沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径,包括:The path-finding method of the robot according to claim 1, characterized in that, along the path-finding direction of the target transfer station, a moving path of the robot from the current position to the target position via the target transfer station is planned. ,include:
    根据所述目标中转站的寻路方向,设置从所述当前位置到所述目标中转站的第一路径,以及从所述目标中转站到所述目标位置的第二路径;According to the pathfinding direction of the target transfer station, set a first path from the current location to the target transfer station, and a second path from the target transfer station to the target location;
    根据所述第一路径和所述第二路径,生成从所述当前位置经所述目标中转站到所述目标位置的移动路径。According to the first path and the second path, a movement path is generated from the current location to the target location via the target transfer station.
  7. 根据权利要求6所述的机器人的寻路方法,其特征在于,所述根据 所述目标中转站的寻路方向,设置从所述当前位置到所述目标中转站的第一路径,包括:The path-finding method of a robot according to claim 6, characterized in that, according to The pathfinding direction of the target transfer station, setting the first path from the current location to the target transfer station, includes:
    如果所述机器人从所述当前位置沿所述目标中转站的寻路方向移动至所述目标中转站不经过障碍物,则将所述当前位置到所述目标中转站的路径作为所述第一路径;If the robot moves from the current position to the target transfer station along the pathfinding direction of the target transfer station without passing an obstacle, then the path from the current position to the target transfer station is used as the first path;
    如果所述机器人从所述当前位置沿所述目标中转站的寻路方向移动至所述目标中转站经过障碍物,确定所述机器人从所述当前位置沿着所述目标中转站的寻路方向绕过所述障碍物到达所述目标中转站的最短路径,并将所述最短路径作为所述第一路径。If the robot moves from the current position along the path-finding direction of the target transfer station to the target transfer station and passes the obstacle, determine that the robot moves from the current position along the path-finding direction of the target transfer station. The shortest path that bypasses the obstacle to the target transfer station is used as the first path.
  8. 一种机器人寻路装置,其特征在于,包括:A robot path-finding device, characterized by including:
    第一获取模块,用于获取地图中目标位置和机器人的当前位置;The first acquisition module is used to obtain the target position in the map and the current position of the robot;
    第二获取模块,用于获取地图中各中转站的位置、寻路方向和点位权重;其中,所述中转站的点位权重指所述机器人在所述中转站沿所述中转站的寻路方向运动时成功到达所述目标位置的次数;The second acquisition module is used to obtain the location, path-finding direction and point weight of each transfer station in the map; where the point weight of the transfer station refers to the robot's search direction along the transfer station at the transfer station. The number of times that the target position is successfully reached when moving in the road direction;
    判断模块,用于将点位权重最高的中转站作为目标中转站;The judgment module is used to select the transfer station with the highest point weight as the target transfer station;
    处理模块,沿着所述目标中转站的寻路方向,规划所述机器人从当前位置经所述目标中转站到所述目标位置的移动路径。A processing module, along the path-finding direction of the target transfer station, plans the movement path of the robot from the current position to the target position via the target transfer station.
  9. 一种设备,其特征在于,A device characterized by,
    包括:include:
    存储器,用于存储可执行指令;Memory, used to store executable instructions;
    处理器,用于执行所述存储器中存储的可执行指令时,实现权利要求1至7一项所述的机器人寻路方法。A processor, configured to implement the robot path-finding method described in one of claims 1 to 7 when executing executable instructions stored in the memory.
  10. 一种计算机可读存储介质,其特征在于,其包括程序代码,当所述 程序产品在电子设备上运行时,所述程序代码用于使所述电子设备执行权利要求1至7中任一所述方法的步骤。 A computer-readable storage medium, characterized in that it includes program code, when the When the program product is run on an electronic device, the program code is used to cause the electronic device to execute the steps of the method described in any one of claims 1 to 7.
PCT/CN2023/078899 2022-03-10 2023-03-01 Robot pathfinding method and apparatus, and device and computer-readable storage medium WO2023169265A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210235617.6A CN116774686A (en) 2022-03-10 2022-03-10 Robot path-finding method, path-finding device, apparatus, and computer-readable storage medium
CN202210235617.6 2022-03-10

Publications (1)

Publication Number Publication Date
WO2023169265A1 true WO2023169265A1 (en) 2023-09-14

Family

ID=87937216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/078899 WO2023169265A1 (en) 2022-03-10 2023-03-01 Robot pathfinding method and apparatus, and device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN116774686A (en)
WO (1) WO2023169265A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143372A1 (en) * 2010-12-06 2012-06-07 Samsung Electronics Co., Ltd. Robot and method for planning path of the same
CN110595482A (en) * 2019-10-28 2019-12-20 深圳市银星智能科技股份有限公司 Path planning method and device with obstacle avoidance weight and electronic equipment
CN110632921A (en) * 2019-09-05 2019-12-31 北京百度网讯科技有限公司 Robot path planning method and device, electronic equipment and storage medium
US20210080272A1 (en) * 2017-04-11 2021-03-18 Ping An Technology (Shenzhen) Co., Ltd. Path planning system and method for robot, robot and medium
CN113137972A (en) * 2020-01-16 2021-07-20 北京京东乾石科技有限公司 Path planning method and device
WO2022000960A1 (en) * 2020-06-30 2022-01-06 珠海一微半导体股份有限公司 Obstacle-crossing termination determination method, obstacle-crossing control method, chip, and robot

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120143372A1 (en) * 2010-12-06 2012-06-07 Samsung Electronics Co., Ltd. Robot and method for planning path of the same
US20210080272A1 (en) * 2017-04-11 2021-03-18 Ping An Technology (Shenzhen) Co., Ltd. Path planning system and method for robot, robot and medium
CN110632921A (en) * 2019-09-05 2019-12-31 北京百度网讯科技有限公司 Robot path planning method and device, electronic equipment and storage medium
CN110595482A (en) * 2019-10-28 2019-12-20 深圳市银星智能科技股份有限公司 Path planning method and device with obstacle avoidance weight and electronic equipment
CN113137972A (en) * 2020-01-16 2021-07-20 北京京东乾石科技有限公司 Path planning method and device
WO2022000960A1 (en) * 2020-06-30 2022-01-06 珠海一微半导体股份有限公司 Obstacle-crossing termination determination method, obstacle-crossing control method, chip, and robot

Also Published As

Publication number Publication date
CN116774686A (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US11565181B2 (en) Virtual object control method and apparatus, computer device, and storage medium
US11189037B2 (en) Repositioning method and apparatus in camera pose tracking process, device, and storage medium
US11205282B2 (en) Relocalization method and apparatus in camera pose tracking process and storage medium
JP7026819B2 (en) Camera positioning method and equipment, terminals and computer programs
WO2020114275A1 (en) Virtual prop transfer method and apparatus, and electronic device and computer storage medium
US11954200B2 (en) Control information processing method and apparatus, electronic device, and storage medium
CN113424142A (en) Electronic device for providing augmented reality user interface and method of operating the same
CN109166150B (en) Pose acquisition method and device storage medium
CN108460725B (en) Map-indication method, device, equipment and storage medium
CN110570465B (en) Real-time positioning and map construction method and device and computer readable storage medium
JP7483056B2 (en) Method, device, equipment, and computer program for determining selection target
CN110633336B (en) Method and device for determining laser data search range and storage medium
CN114092655A (en) Map construction method, device, equipment and storage medium
CN111563201A (en) Content pushing method, device, server and storage medium
WO2023169265A1 (en) Robot pathfinding method and apparatus, and device and computer-readable storage medium
CN111596925B (en) Method, device, computer equipment and medium for automatically generating codes
WO2023155928A1 (en) Path finding method and apparatus for robot, and device and computer-readable storage medium
CN112365088B (en) Method, device and equipment for determining travel key points and readable storage medium
CN112990421B (en) Method, device and storage medium for optimizing operation process of deep learning network
US11263564B2 (en) Mobile service robots scheduling utilizing merged tasks
KR102488359B1 (en) Method and apparatus for processing lexical database
CN111061918B (en) Graph data processing method, device and storage medium
WO2019233299A1 (en) Mapping method and apparatus, and computer readable storage medium
CN111984755A (en) Method and device for determining target parking point, electronic equipment and storage medium
CN111523876A (en) Payment mode display method, device and system and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23765843

Country of ref document: EP

Kind code of ref document: A1