Positioning method and device, computer equipment and storage medium

By receiving target parking space information and constructing a parking lot map, and using parking space identification images to match the target location, the problem of inaccurate positioning of traditional charging robots is solved and higher positioning accuracy is achieved.

CN118538047APending Publication Date: 2024-08-23CSG POWER GENERATION (GUANGDONG) ENERGY STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410371324.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-28
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The positioning accuracy of traditional mobile charging robots is affected by the wear and movement deviation of the robot wheels, resulting in poor positioning.

Method used

By receiving the target parking space information, the parking lot map is constructed, the movement path is planned, and the parking space identification image is used to match the target location information to confirm arrival at the target parking space.

Benefits of technology

It improves the positioning accuracy of the mobile charging robot and reduces positioning errors caused by robot wheel wear and motion deviation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538047A
    Figure CN118538047A
Patent Text Reader

Abstract

The invention relates to a positioning method and device, computer equipment, a storage medium and a computer program product. The method comprises the following steps: receiving target parking space information, and determining target position information corresponding to the target parking space information; according to a pre-constructed parking lot map, performing path planning processing on a moving path from the current position information to the target position information to obtain target path information of a target parking space associated with the target position information; obtaining a parking space identification image collected when moving according to the target path information; and if the position information corresponding to the parking space identification image is detected to be matched with the target position information, determining that the parking space arrives at the target parking space. By adopting the method, the accuracy of positioning and moving the mobile charging robot to the target parking space can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle-to-grid (V2G) two-way interaction, and in particular to a positioning method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] Vehicle-to-Grid (V2G) technology is a technology that connects battery electric vehicles (BEV) or plug-in hybrid electric vehicles (PHEV) to the power grid to achieve two-way energy flow between the vehicle and the grid. The new mobile charging robot can actively go to the location of the electric vehicle to provide charging and discharging services, and accurately locating the location of the electric vehicle is one of its key technologies.

[0003] In traditional technology, the position of a mobile charging robot is usually calculated based on the movement mileage of the robot's wheels. However, the robot's wheels are affected by the processing technology and daily wear and tear, and errors are prone to becoming larger and larger, resulting in poor positioning accuracy of the mobile charging robot. Summary of the invention

[0004] Based on this, it is necessary to provide a positioning method, device, computer equipment, computer-readable storage medium and computer program product that can improve the positioning accuracy of the mobile charging robot in response to the above technical problems.

[0005] In a first aspect, the present application provides a positioning method. The method comprises:

[0006] Receive target parking space information, and determine target position information corresponding to the target parking space information;

[0007] According to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information;

[0008] Acquire a parking space identification image collected when moving according to the target path information;

[0009] If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0010] In one embodiment, before receiving the target parking space information, the method further includes:

[0011] Get the parking space information of the parking lot;

[0012] Performing point mapping processing on the parking space information to obtain map position information corresponding to the parking space information; the map position information represents information describing points based on a two-dimensional array;

[0013] The parking lot map is constructed according to the map location information.

[0014] In one embodiment, according to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current location information to the target location information to obtain target path information to a target parking space associated with the target location information, including:

[0015] determining a lateral movement distance from the current position information to the target position information according to a difference between a lateral axis coordinate value of the current position information and a lateral axis coordinate value of the target position information;

[0016] Determine a longitudinal moving distance from the current position information to the target position information according to a difference between a longitudinal axis coordinate value of the current position information and a longitudinal axis coordinate value of the target position information;

[0017] Determining a lateral moving direction of the lateral moving distance and a longitudinal moving direction of the longitudinal moving distance according to the parking lot map;

[0018] The target path information to the target parking space is obtained according to the lateral moving distance, the lateral moving direction, the longitudinal moving distance and the longitudinal moving direction.

[0019] In one of the embodiments, the target parking space information includes parking space coding information and area coding information;

[0020] The receiving target parking space information and determining target position information corresponding to the target parking space information includes:

[0021] Receiving a charging and discharging service request sent by a client, and acquiring the parking space coding information and the area coding information carried in the charging and discharging service request;

[0022] Point mapping processing is performed on the parking space coding information and the area coding information to obtain the target position information corresponding to the parking space coding information and the area coding information.

[0023] In one embodiment, after acquiring the parking space identification image collected when moving according to the target path information, the method further includes:

[0024] If it is detected that the position information corresponding to the parking space identification image does not match the target position information, obtaining the current moved distance;

[0025] If the moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the parking space identification image of the target parking space is not recognized.

[0026] In one embodiment, after confirming that the target parking space has been reached, the method further includes:

[0027] Control the winding mechanism to perform charging and discharging preparatory actions;

[0028] After confirming that the electric vehicle located at the target parking space is successfully connected to the electric vehicle, charging and discharging services are provided to the electric vehicle.

[0029] In a second aspect, the present application also provides a positioning device. The device comprises:

[0030] A position determination module, used to receive target parking space information and determine target position information corresponding to the target parking space information;

[0031] A path planning module is used to perform path planning processing on a moving path from the current position information to the target position information according to a pre-constructed parking lot map, and obtain target path information to a target parking space associated with the target position information;

[0032] An image acquisition module, used to acquire a parking space identification image acquired when moving according to the target path information;

[0033] The position detection module is used to confirm that the target parking space has been reached if it is detected that the position information corresponding to the parking space identification image matches the target position information.

[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0035] Receive target parking space information, and determine target position information corresponding to the target parking space information;

[0036] According to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information;

[0037] Acquire a parking space identification image collected when moving according to the target path information;

[0038] If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0039] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0040] Receive target parking space information, and determine target position information corresponding to the target parking space information;

[0041] According to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information;

[0042] Acquire a parking space identification image collected when moving according to the target path information;

[0043] If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0044] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0045] Receive target parking space information, and determine target position information corresponding to the target parking space information;

[0046] According to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information;

[0047] Acquire a parking space identification image collected when moving according to the target path information;

[0048] If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0049] The above positioning method, device, computer equipment, storage medium and computer program product receive target parking space information, determine the target position information corresponding to the target parking space information; perform path planning processing on the moving path from the current position information to the target position information according to the pre-constructed parking lot map, and obtain the target path information to the target parking space associated with the target position information; obtain the parking space identification image collected when moving according to the target path information; if the position information corresponding to the parking space identification image is detected to match the target position information, it is confirmed that the target parking space has been reached. Using this method, the position of the target parking space in the parking lot map is first determined through the mapping relationship between the target parking space information and the target position information, and then the position of the mobile charging robot in the parking lot map is judged through the position information corresponding to the parking space identification image, so as to determine whether the target parking space has been reached. It will not be affected by the wear or movement deviation of the robot wheels, and effectively improves the accuracy of the mobile charging robot in positioning and moving to the target parking space. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 A diagram of an application environment of a positioning method in an embodiment;

[0051] Figure 2 is a schematic flow chart of a positioning method in an embodiment;

[0052] Figure 3 A schematic diagram of a process for constructing a parking lot map in one embodiment;

[0053] Figure 4 A schematic diagram of obtaining target path information to a target parking space in one embodiment;

[0054] Figure 5 is a flow chart of a positioning method in another embodiment;

[0055] Figure 6 is a flowchart of a positioning method in yet another embodiment;

[0056] Figure 7 is a structural block diagram of a positioning device in an embodiment;

[0057] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, parking space information, location information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0060] The positioning method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 101, the mobile charging robot 102 and the server 103 communicate through the network. The data storage system can store the data that the server 103 needs to process. The data storage system can be integrated on the server 103, or it can be placed on the cloud or other network servers. Among them, the terminal 101 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices held by users, and the Internet of Things devices can be smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The mobile charging robot 102 refers to an intelligent robot with data processing capabilities, autonomous mobility functions, and can provide charging, discharging (or electricity sales) services for electric vehicles. The server 103 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0061] In one embodiment, Figure 2 As shown, a positioning method is provided, which is applied to Figure 1 The mobile charging robot in the example is used to illustrate, including the following steps:

[0062] Step S201, receiving target parking space information, and determining target position information corresponding to the target parking space information.

[0063] The target parking space information refers to the number of the target parking space where the electric vehicle that needs the mobile charging robot to provide charging and discharging services is parked. The target position information refers to the information describing the position of the target parking space in the parking lot from a two-dimensional perspective.

[0064] Specifically, after an electric car enters a parking lot and selects a parking space (i.e., a target parking space) for parking, the user can scan the parking QR code of the target parking space through the terminal to obtain the target parking space information of the target parking space, and then the terminal reports the target parking space information to the server, which sends the target parking space information to a mobile charging robot (hereinafter referred to as a charging robot). The charging robot receives the target parking space information, and then maps the coded information represented by the target parking space information to the target position information according to the custom coded instructions.

[0065] Step S202 , based on a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information.

[0066] The parking lot map refers to a mapping table constructed based on the two-dimensional points of each parking space in the parking lot. The current location information refers to the current location information of the charging robot.

[0067] Specifically, the charging robot can pre-build a parking lot map and plan the shortest path from the current location information to the target location information through the shortest path planning algorithm. For the charging robot, the shortest path can be regarded as a linear map, that is, mapping the real parking lot from a high-dimensional space to a low-dimensional space. The charging robot can reduce the dimension when performing path planning, thereby being able to process data such as location information more quickly and efficiently.

[0068] Step S203, obtaining a parking space identification image collected when moving according to the target path information.

[0069] Among them, the parking space identification image refers to an image obtained by photographing the parking space identification of the parking space in the scene. For example, the parking space identification image can be a photographed image of the parking space identification. It should be noted that the parking space identification image is associated with the parking space in the parking lot. For example, in an actual parking lot, the parking space identification can be displayed in front of each parking space by printing or other means, and the display position of the parking space identification is easy to be recognized by the charging robot, so that the charging robot can easily collect the parking space identification image of the parking space when passing by the parking space, so as to obtain the parking space information of the parking space and the location information of the parking space in the parking lot map.

[0070] Specifically, the charging robot is also equipped with a camera; when the charging robot moves to the target parking space according to the target path information, the camera it is equipped with can collect the parking space signs displayed on the ground in real time to obtain a parking space sign image. The charging robot identifies the parking space information corresponding to the parking space sign image; for example, the charging robot can perform target detection processing on the parking space sign image to obtain the parking space sign in the parking space sign image, and then obtain the parking space information corresponding to the parking space sign based on the corresponding relationship between the parking space sign and the parking space information. In actual applications, part of the parking space information can also be directly used as the parking space sign, for example, the parking space coding information can be used as the parking space sign of the parking space.

[0071] Furthermore, the charging robot performs point mapping processing on the parking space information corresponding to the parking space identification image through the parking lot map to obtain the position information corresponding to the parking space identification image.

[0072] Step S204: If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0073] Among them, the target parking space refers to the parking space for electric vehicles that require mobile charging robots to provide charging and discharging services.

[0074] Specifically, the charging robot determines whether the location information corresponding to the parking space identification image matches the target location information; if not, it is confirmed that the target parking space has not yet been reached and continues to move according to the target path information; if it matches, it is confirmed that the target parking space has been reached. In addition, the charging robot can also determine whether the parking space identification image matches the location information contained in the target path information, and confirm whether the current driving has deviated from the planned path.

[0075] For example, when the charging robot is driving, it uses a camera to collect parking space marking images on the ground, identifies the parking space code from the parking space marking image, and compares the parking space code with the parking lot map in real time to determine whether the current driving path matches the planned target path information and confirm whether it has reached the target parking space.

[0076] In the above positioning method, the target parking space information is received, and the target position information corresponding to the target parking space information is determined; according to the pre-constructed parking lot map, the moving path from the current position information to the target position information is planned and processed to obtain the target path information to the target parking space associated with the target position information; the parking space identification image collected when moving according to the target path information is obtained; if the position information corresponding to the parking space identification image is detected to match the target position information, it is confirmed that the target parking space has been reached. Using this method, the position of the target parking space in the parking lot map is first determined through the mapping relationship between the target parking space information and the target position information, and then the position of the mobile charging robot in the parking lot map is judged through the position information corresponding to the parking space identification image, so as to determine whether the target parking space has been reached. It will not be affected by the wear of the robot wheels or the movement deviation, and effectively improves the accuracy of the mobile charging robot in positioning and moving to the target parking space.

[0077] In one embodiment, Figure 3 As shown, before the above step S201, receiving the target parking space information, it also includes:

[0078] Step S301, obtaining parking space information of parking spaces in a parking lot.

[0079] The parking space information refers to coded information related to the parking space; for example, the parking space information may be coded information such as parking space coding information and area coding information.

[0080] Step S302, performing point mapping processing on the parking space information to obtain map position information corresponding to the parking space information; the map position information represents information describing points based on a two-dimensional array.

[0081] Among them, a point refers to the coordinate point of a specific location (such as a parking space).

[0082] Step S303: construct a parking lot map according to the map location information.

[0083] The parking lot map refers to map data represented by a low-dimensional array consisting of map location information of each parking lot.

[0084] Specifically, the server can send the parking space information (such as parking space coding information and area coding information, etc.) of all parking spaces in the parking lot to the charging robot in advance. The charging robot performs point mapping processing on each parking space information according to the parking space coding algorithm or the processing instructions corresponding to the parking space coding algorithm, such as mapping the parking space coding information and area coding information in each parking space information into map location information in the form of a two-dimensional array, and then combining the map location information corresponding to all parking space information into a parking lot map. Therefore, the parking lot map can also be regarded as a map location information set composed of multiple two-dimensional arrays. For example, the parking lot map includes: {1, 2}; {1, 3}; {2, 2}; {2, 4}. The parking lot map is stored locally in the charging robot, so that the charging robot can quickly perform path planning and position judgment locally.

[0085] In this embodiment, the parking space information of the parking spaces in the parking lot is point-mapped to obtain the map location information corresponding to the parking space information; then, a parking lot map is constructed based on the map location information, thereby realizing the mapping transformation between the parking space information of the parking spaces and the map location information; then, a parking lot map of the parking lot is constructed from the map location information, thus laying the foundation for the subsequent positioning service provided by the charging robot.

[0086] In one embodiment, the above step S202 performs path planning processing on the moving path from the current position information to the target position information according to a pre-constructed parking lot map to obtain target path information to the target parking space associated with the target position information, specifically including the following contents: determining the lateral moving distance from the current position information to the target position information according to the difference between the lateral axis coordinate value of the current position information and the lateral axis coordinate value of the target position information; determining the longitudinal moving distance from the current position information to the target position information according to the difference between the longitudinal axis coordinate value of the current position information and the longitudinal axis coordinate value of the target position information; determining the lateral moving direction of the lateral moving distance and the longitudinal moving direction of the longitudinal moving distance according to the parking lot map; and obtaining the target path information to the target parking space according to the lateral moving distance, the lateral moving direction, the longitudinal moving distance and the longitudinal moving direction.

[0087] The current position information represents the current position of the charging robot in the parking lot map. The horizontal movement distance represents the distance that the charging robot needs to move in the x-axis direction. The vertical movement distance represents the distance that the charging robot needs to move in the y-axis direction.

[0088] Specifically, the current position information of the charging robot and the target position information of the target parking space are both low-dimensional data, that is, two-dimensional arrays. The charging robot can use a heuristic search algorithm to find the shortest path from the current position information to the target position information in the parking map. For example, the charging robot can plan the target path information from the current position information to the target position information based on the A* algorithm; the charging robot can calculate the difference between the horizontal axis coordinate value of the current position information and the horizontal axis coordinate value of the target position information, and determine the product of the difference and the horizontal spacing of the parking space as the horizontal moving distance required for the charging robot to move from the current position information to the target position information; similarly, calculate the difference between the vertical axis coordinate value of the current position information and the vertical axis coordinate value of the target position information, and determine the product of the difference and the vertical spacing of the parking space as the vertical moving distance required for the charging robot to move from the current position information to the target position information; according to the current position information and the position of the target parking space in the parking map, determine in which direction the charging robot moves on the x-axis and y-axis, that is, determine the horizontal moving direction and the vertical moving direction.

[0089] Furthermore, the charging robot can also calculate the total moving distance required to move from the current position information to the target position information. The charging robot uses the lateral moving distance, lateral moving direction, longitudinal moving distance, longitudinal moving direction and total moving distance as the target path information from the current position information to the target parking space.

[0090] For example, Figure 4A schematic diagram of the target path information to the target parking space. As shown in the figure, the rectangle on the left represents the charging robot, the ellipse on the right represents the target parking space, the current position information of the charging robot is (2,2), and the target position information of the target parking space is (2,5). At this time, the longitudinal coordinates of the current position information and the target position information are both 2, and the charging robot does not need to move in the longitudinal direction; the difference in the horizontal coordinates is 3, that is, the charging robot needs to move 3 parking spaces in the horizontal direction. The target path information can be regarded as a path table. For example, the path table for moving from (2,2) to (2,5) can include: {(2,2), (2,3), (2,4), (2,5)}.

[0091] In this embodiment, the charging robot determines the direction difference and distance difference between the current position information and the target position information on the horizontal and vertical axes based on the parking lot map, thereby obtaining the shortest target path information to the target parking space, thereby achieving simple, fast and accurate acquisition of the target path information, greatly improving the efficiency and accuracy of path planning, and allowing the charging robot to quickly go to the target parking space to provide charging and discharging services to electric vehicles.

[0092] In one embodiment, the target parking space information includes parking space coding information and area coding information. The above step S201, receiving the target parking space information and determining the target position information corresponding to the target parking space information, specifically includes the following contents: receiving the charging and discharging service request sent by the client, obtaining the parking space coding information and area coding information carried in the charging and discharging service request; performing point-to-point mapping processing on the parking space coding information and the area coding information, and obtaining the target position information corresponding to the parking space coding information and the area coding information.

[0093] The parking space coding information refers to the use of a certain regular coding to represent the serial number of a parking space, such as parking space No. 001, No. 002. The area coding information refers to the use of a certain regular coding to represent the serial number of an area in a parking lot, such as area A and area B of a parking lot.

[0094] Specifically, the charging robot receives the target parking space information forwarded by the server, extracts the parking space coding information, the area coding information and the regional coding information from the target parking space information; the charging robot performs point mapping processing on the parking space coding information, the area coding information and the regional coding information according to the parking space coding algorithm or the processing instructions corresponding to the parking space coding algorithm to obtain the corresponding target location information. Further, the charging robot determines whether the target location information is valid, for example, whether the target location information matches a certain map location information in the parking lot map. If it matches, the target location information is confirmed to be valid, and the subsequent path planning steps are continued. If it does not match, the target location information is confirmed to be invalid, that is, the map location information corresponding to the target parking space information does not exist in the parking lot map, and the charging robot generates an error prompt message and sends it to the server, and the server forwards the error prompt message to the terminal, so that the terminal can re-enter the target parking space information based on the received error prompt message.

[0095] In this embodiment, by performing point mapping processing on the parking space coding information and the area coding information, the target position information corresponding to the parking space coding information and the area coding information is obtained, thereby realizing the mapping of the coding information such as the parking space coding information and the area coding information in the target parking space information to a low-dimensional map position. Then, the charging robot can quickly locate the position of the target parking space in the parking lot map according to the target parking space information, thereby improving the charging robot's positioning efficiency for the target parking space.

[0096] In one embodiment, in the above step S203, after obtaining the parking space identification image collected when moving according to the target path information, it also includes: if it is detected that the position information corresponding to the parking space identification image does not match the target position information, then obtaining the current moved distance; if the moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the parking space identification image of the target parking space has not been recognized.

[0097] Specifically, when the charging robot is driving according to the target path information, the parking space identification image of the parking space passed by can be collected in real time through the camera installed on it, and the parking space identification image can be identified to obtain the corresponding parking space information, and then the parking space information can be processed to obtain the position information. Detect whether the position information corresponding to the parking space identification image matches the position information in the target path information. If they match, confirm that the target path information has not deviated from the plan. If the position information corresponding to the parking space identification image does not match the position information in the target path information, but there is a match with the position information in the parking lot map, the current position information is obtained again, and the path planning process is performed again on the moving path from the current position information to the target position information, and the updated target path information to the target parking space associated with the target position information is obtained, and the vehicle is driven to the target position information according to the updated target path information.

[0098] Furthermore, when the charging robot is driving according to the target path information, if the parking space identification images of one or more parking spaces are blocked, resulting in the charging robot failing to detect them, and if the detected moved distance does not exceed the total moving distance corresponding to the target path information, it will not affect the normal driving of the charging robot, and the charging robot will still drive according to the longitudinal / lateral moving distance and longitudinal / lateral moving direction in the target path information as usual. However, the parking space identification image of the target parking space must be detected before the charging robot can confirm that it has reached the target parking space. If the parking space identification image of the target parking space is blocked, resulting in the charging robot failing to detect it, and the current moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the charging robot has not recognized the parking space identification image of the target parking space, and an error message indicating that the parking space identification image of the target parking space has not been recognized is reported to the server.

[0099] From the above, it can be seen that the parking space identification image on the target path information has no correlation with the charging robot's judgment on whether it has reached the destination (i.e., the target parking space), and only serves to assist the charging robot in understanding the current position and judging the driving path. The parking space identification image at the destination is an important basis for the charging robot to judge whether it has reached the destination. Therefore, it does not matter if the parking space identification image of one or more parking spaces on the way of the charging robot is blocked. The key is that the parking space identification image of the target parking space cannot be blocked.

[0100] In this embodiment, if it is detected that the position information corresponding to the parking space identification image does not match the target position information, the current moved distance is obtained to determine whether the moved distance exceeds the total moving distance corresponding to the target path information; if the charging robot still has not obtained the parking space identification image of the target parking space after exceeding the total moving distance, it is confirmed that the charging robot has not recognized the parking space identification image of the target parking space; through the dual verification method of target path information and parking space identification image, it is possible to more accurately determine whether the target parking space has been reached, and it also provides fault-tolerant redundancy for the recognition and detection of parking space identification images during driving. The movement of the charging robot will not be affected by the failure to collect some parking space identification images during driving, which greatly improves the reliability of the charging robot's positioning and moving to the target parking space.

[0101] In one embodiment, in the above step S204, after confirming that the target parking space has been reached, the method further includes: controlling the winding mechanism to perform a charge and discharge preparation action; and providing charge and discharge services to the electric vehicle after confirming that the power connection with the electric vehicle located in the target parking space is successful.

[0102] Among them, the winding mechanism refers to the mechanical structure on the charging robot used for charging and discharging.

[0103] Specifically, after the charging robot confirms that it has reached the target parking space, the charging robot can respond to the charging and discharging instructions of the terminal and control the winding mechanism to perform the charging and discharging preparatory action, that is, to put down the winding mechanism; the charging robot can also actively put down the winding mechanism after confirming that it has reached the target parking space. The user connects the winding mechanism to the electric vehicle, and after the connection is completed, the charging robot provides charging and discharging services to the electric vehicle.

[0104] In this embodiment, after the charging robot moves to the target parking space, it can control its winding mechanism to perform charging and discharging preparatory actions, and after successfully connecting with the electric vehicle, it can formally provide charging and discharging services to the electric vehicle, thereby realizing two-way interaction between the electric vehicle and the power grid through the mobile charging robot.

[0105] In one embodiment, Figure 5 As shown, another positioning method is provided, which is applied to Figure 1 The charging robot in the example is used to illustrate, including the following steps:

[0106] Step S501, obtaining parking space information of parking spaces in a parking lot.

[0107] Step S502, performing point mapping processing on the parking space information to obtain map position information corresponding to the parking space information; and constructing a parking lot map according to the map position information.

[0108] Step S503: receiving target parking space information and determining target position information corresponding to the target parking space information.

[0109] Step S504: performing path planning processing on the moving path from the current position information to the target position information according to the pre-constructed parking lot map, and obtaining target path information to the target parking space associated with the target position information.

[0110] Step S505: acquiring a parking space identification image collected when moving according to the target path information.

[0111] After step S505, it is determined whether the position information corresponding to the parking space identification image matches the target position information; if they match, the process jumps to step S506; if they do not match, the process jumps to step S507.

[0112] Step S506: If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

[0113] Step S507: if it is detected that the position information corresponding to the parking space identification image does not match the target position information, the current moved distance is obtained.

[0114] Step S508: If the moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the parking space identification image of the target parking space is not recognized.

[0115] The above positioning method can achieve the following beneficial effects: first, the position of the target parking space in the parking lot map is determined through the mapping relationship between the target parking space information and the target position information, and then the current position of the mobile charging robot in the parking lot map is judged through the position information corresponding to the parking space identification image, thereby determining whether the target parking space has been reached. It will not be affected by the wear or motion deviation of the robot's wheels, and effectively improves the accuracy of the mobile charging robot's positioning and movement to the target parking space.

[0116] In order to more clearly illustrate the positioning method provided by the embodiment of the present disclosure, the above positioning method is specifically described below with a specific embodiment. Figure 6 As shown, another positioning method is provided, which can be applied to Figure 1 The charging robot in the system includes the following contents:

[0117] (1) The server inputs the parking space code of the parking lot into the charging and discharging robot, and the charging and discharging cluster generates a parking lot map in the form of two-dimensional data based on the parking space code.

[0118] (2) The server sends the charging parking space to the charging and discharging robot; the charging and discharging robot analyzes the parking space information of the charging parking space and obtains the target position in the form of a two-dimensional array corresponding to the charging parking space. Check whether the parking lot map contains the target position; if not, report to the management platform in the server that an abnormal parking space has been detected; if detected, the charging robot plans a driving path to the target position based on the parking lot map. During driving, the charging robot collects the parking space code through the camera and compares the position corresponding to the parking space code with the position in the parking lot map to determine whether the position corresponding to the parking space code is the same as the target position; if they are the same, the charging robot puts down the winding mechanism to perform charging operations; if they are not the same, the route is continued to be planned and driven.

[0119] In this embodiment, the position of the target parking space in the parking lot map is first determined through the mapping relationship between the target parking space information and the target position information, and then the current position of the mobile charging robot in the parking lot map is judged through the position information corresponding to the parking space identification image, so as to determine whether the target parking space has been reached. This will not be affected by the wear or motion deviation of the robot's wheels, and effectively improves the accuracy of the mobile charging robot in positioning and moving to the target parking space.

[0120] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0121] Based on the same inventive concept, the embodiment of the present application also provides a positioning device for implementing the positioning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more positioning device embodiments provided below can refer to the limitations of the positioning method above, and will not be repeated here.

[0122] In one embodiment, Figure 7 As shown, a positioning device 700 is provided, comprising: a position determination module 701, a path planning module 702, an image acquisition module 703 and a position detection module 704, wherein:

[0123] The position determination module 701 is used to receive target parking space information and determine target position information corresponding to the target parking space information.

[0124] The path planning module 702 is used to perform path planning processing on the moving path from the current position information to the target position information according to the pre-constructed parking lot map, and obtain the target path information to the target parking space associated with the target position information.

[0125] The image acquisition module 703 is used to acquire the parking space identification image collected when moving according to the target path information.

[0126] The position detection module 704 is used to confirm that the target parking space has been reached if it is detected that the position information corresponding to the parking space identification image matches the target position information.

[0127] In one embodiment, the positioning device 700 also includes a map construction module, which is used to obtain parking space information of parking spaces in a parking lot; perform point mapping processing on the parking space information to obtain map location information corresponding to the parking space information; the map location information represents information describing points based on a two-dimensional array; and construct the parking lot map based on the map location information.

[0128] In one embodiment, the path planning module 702 is further used to determine the lateral movement distance from the current position information to the target position information according to the difference between the lateral axis coordinate value of the current position information and the lateral axis coordinate value of the target position information; determine the longitudinal movement distance from the current position information to the target position information according to the difference between the longitudinal axis coordinate value of the current position information and the longitudinal axis coordinate value of the target position information; determine the lateral movement direction of the lateral movement distance and the longitudinal movement direction of the longitudinal movement distance according to the parking lot map; and obtain the target path information to the target parking space according to the lateral movement distance, the lateral movement direction, the longitudinal movement distance and the longitudinal movement direction.

[0129] In one embodiment, the target parking space information includes parking space coding information and area coding information; the location determination module 701 is also used to receive a charging and discharging service request sent by the client, and obtain the parking space coding information and the area coding information carried in the charging and discharging service request; perform point mapping processing on the parking space coding information and the area coding information to obtain the target location information corresponding to the parking space coding information and the area coding information.

[0130] In one embodiment, the positioning device 700 also includes an information mismatch module, which is used to obtain the current moved distance if it is detected that the position information corresponding to the parking space identification image does not match the target position information; if the moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the parking space identification image of the target parking space is not recognized.

[0131] In one embodiment, the positioning device 700 further includes an action control module for controlling the winding mechanism to perform a charge and discharge preparatory action; after confirming that the electric vehicle located at the target parking space is successfully connected to the electric vehicle, the charging and discharging service is provided to the electric vehicle.

[0132] Each module in the above positioning device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0133] In one embodiment, a computer device is provided. The computer device may be a charging and discharging robot, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as parking lot maps. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a positioning method is implemented.

[0134] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0139] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0140] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A positioning method, characterized in that: The method comprises: Receive target parking space information, and determine target position information corresponding to the target parking space information; According to a pre-constructed parking lot map, a path planning process is performed on a moving path from the current position information to the target position information to obtain target path information to a target parking space associated with the target position information; Acquire a parking space identification image collected when moving according to the target path information; If it is detected that the position information corresponding to the parking space identification image matches the target position information, it is confirmed that the target parking space has been reached.

2. The method according to claim 1, characterized in that Before receiving the target parking space information, it also includes: Get the parking space information of the parking lot; Performing point mapping processing on the parking space information to obtain map position information corresponding to the parking space information; the map position information represents information describing points based on a two-dimensional array; The parking lot map is constructed according to the map location information.

3. The method according to claim 2, characterized in that The method of performing path planning processing on the moving path from the current position information to the target position information according to the pre-constructed parking lot map to obtain target path information to the target parking space associated with the target position information includes: determining a lateral movement distance from the current position information to the target position information according to a difference between a lateral axis coordinate value of the current position information and a lateral axis coordinate value of the target position information; Determine a longitudinal moving distance from the current position information to the target position information according to a difference between a longitudinal axis coordinate value of the current position information and a longitudinal axis coordinate value of the target position information; Determining a lateral moving direction of the lateral moving distance and a longitudinal moving direction of the longitudinal moving distance according to the parking lot map; The target path information to the target parking space is obtained according to the lateral moving distance, the lateral moving direction, the longitudinal moving distance and the longitudinal moving direction.

4. The method according to claim 2, characterized in that: The target parking space information includes parking space coding information and area coding information; The receiving target parking space information and determining target position information corresponding to the target parking space information includes: Receiving a charging and discharging service request sent by a client, and acquiring the parking space coding information and the area coding information carried in the charging and discharging service request; Point mapping processing is performed on the parking space coding information and the area coding information to obtain the target position information corresponding to the parking space coding information and the area coding information.

5. The method according to claim 1, characterized in that After acquiring the parking space identification image collected when moving according to the target path information, the method further includes: If it is detected that the position information corresponding to the parking space identification image does not match the target position information, obtaining the current moved distance; If the moved distance exceeds the total moving distance corresponding to the target path information, it is confirmed that the parking space identification image of the target parking space is not recognized.

6. The method according to claim 1, characterized in that After confirming that the target parking space has been reached, the method further includes: Control the winding mechanism to perform charging and discharging preparatory actions; After confirming that the electric vehicle located at the target parking space is successfully connected to the electric vehicle, charging and discharging services are provided to the electric vehicle.

7. A positioning device, characterized in that: The device comprises: A position determination module, used to receive target parking space information and determine target position information corresponding to the target parking space information; A path planning module is used to perform path planning processing on a moving path from the current position information to the target position information according to a pre-constructed parking lot map, and obtain target path information to a target parking space associated with the target position information; An image acquisition module, used to acquire a parking space identification image acquired when moving according to the target path information; The position detection module is used to confirm that the target parking space has been reached if it is detected that the position information corresponding to the parking space identification image matches the target position information.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.