Charging control method, device, electronic device and readable storage medium

By obtaining the direction and deviation of the charging port of the robot and the charging pile, the robot's charging port and charging pile interface can be accurately aligned, solving the problem of redundant adjustment actions in automatic charging, improving charging efficiency and reducing costs.

CN111897319BActive Publication Date: 2024-09-10YUANLI JUHE (CHONGQING) ROBOTICS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010557212.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-17
Publication Date
2024-09-10
Estimated Expiration
2040-06-17

AI Technical Summary

Technical Problem

During the charging process, the automated navigation robot needs to repeatedly try to access and retreat to reach the charging interface, resulting in a complicated and inefficient charging process with a large number of redundant adjustment actions.

Method used

By obtaining the direction of the charging port of the robot and the charging pile and the deviation of the robot relative to the preset position, precise adjustments can be made to align the robot's charging port with the charging pile interface and reduce redundant adjustment actions.

Benefits of technology

It improves the efficiency of automatic charging, reduces product costs, avoids the need to install sensors in robots and charging piles, and is suitable for commercial applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111897319B
    Figure CN111897319B
Patent Text Reader

Abstract

The present application provides a charging control method, device, electronic device and readable storage medium, the method comprising: obtaining the first direction of the first charging port of the robot when it is at a preset position, obtaining the second direction of the second charging port of the charging pile, and then adjusting the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile are connected for charging. Through the above process, the first charging port of the robot and the second charging port of the charging pile can be aligned before the robot reaches the position of the charging pile, so that the robot does not need to repeatedly try to connect, retreat, and then try to connect for redundant adjustment during the charging process, thereby solving the problem of a large number of redundant adjustment actions in the automatic charging process to a certain extent, and improving the efficiency of automatic charging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of robotics technology, and in particular to a charging control method, device, electronic device and readable storage medium. Background Art

[0002] In the field of warehousing and logistics, automated navigation robots are being used more and more widely. Currently, most robots are battery-powered, which inevitably involves the issue of automatic charging after long-term operation.

[0003] Usually, when charging, the charging pile and the robot's charging port alignment accuracy requirements are high, and the popular laser navigation method on the market is to navigate the robot based on the robot's position in the map, and guide the robot to the location of the charging pile. Although this method can quickly guide the robot to the location of the charging pile, it generally cannot meet the accuracy requirements of the charging port alignment. Therefore, after the robot reaches the location of the charging pile, it is also necessary to continuously perform secondary identification and positioning of the charging pile, and finally achieve successful access to the charging port through repeated attempts to connect, retreat, and then try to connect again. This increases the complexity of the charging process and will result in a large number of redundant adjustment actions. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a charging control method, device, electronic device and readable storage medium to solve the problem that there are a large number of redundant adjustment actions in the current automatic charging process.

[0005] An embodiment of the present application provides a charging control method, including: obtaining a first direction of a first charging port of a robot when the robot is at a preset position; obtaining a second direction of a second charging port of a charging pile; and adjusting the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position so that the first charging port of the robot and the second charging port of the charging pile are connected for charging.

[0006] In the above implementation process, by obtaining the first direction of the first charging port of the robot at the preset position and the second direction of the second charging port of the charging pile, the robot is adjusted according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile are connected, and the robot is automatically charged. Through the above process, the robot can adjust the charging direction of the robot according to the first direction of the first charging port at the preset position, the second direction of the second charging port of the charging pile and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile can be aligned before the robot reaches the position of the charging pile, so that the robot does not need to repeatedly try to connect, retreat, and try to connect again during charging. Redundant adjustments are performed, thereby solving the problem of a large number of redundant adjustment actions in the automatic charging process to a certain extent, and improving the efficiency of automatic charging.

[0007] Furthermore, obtaining a first direction of a first charging port of the robot when at a preset position includes: collecting a third direction of the robot relative to the preset position; and determining the first direction according to a fourth direction of the first charging port in the robot and the third direction.

[0008] In actual application, the fourth direction of the first charging port in the robot is clear, and by collecting the third direction of the robot relative to the preset position, and then the fourth direction and the third direction, the direction of the first charging port in the robot can be converted into the direction in the map, so that the first direction of the first charging port and the second direction of the second charging port can be judged in the same coordinate system.

[0009] In a feasible direction matching determination process, the direction can be determined by setting sensors in the robot and the charging pile, but this will undoubtedly increase the product cost. However, by matching the first direction of the first charging port and the second direction of the second charging port in the above manner, it is not necessary to set sensors in the robot and the charging pile, thereby effectively reducing the product cost and being suitable for commercial application and market launch.

[0010] Furthermore, the robot is adjusted according to the first direction, the second direction and the deviation of the robot relative to the preset position, including: determining whether the first direction and the second direction match, and / or whether the deviation of the robot relative to the preset position is greater than a deviation threshold; adjusting the robot according to the matching of the first direction and the second direction, and the relationship between the deviation and the deviation threshold.

[0011] In actual application, the first charging port and the second charging port connected to each other often have a certain access margin (for example, the first charging port is a plug structure, the second charging port is a socket structure, and the contact metal sheet area in the second charging port is set larger than the metal sheet area of ​​the plug, so that a certain amount of deviation is allowed when the plug is inserted into the socket), so within a certain range, the deviation is allowed. In the above implementation structure, by judging whether the first direction and the second direction match, and judging whether the deviation of the robot relative to the preset position is greater than the deviation threshold, the robot is adjusted, so that the adjustment of the robot can be based on actual needs, thereby ensuring that the present application scheme can be effectively implemented.

[0012] Furthermore, the robot is adjusted according to the matching of the first direction and the second direction, and the relationship between the deviation and the deviation threshold, including: when the first direction and the second direction match and the deviation is less than or equal to the deviation threshold, obtaining the distance between the second charging port and the preset position; and controlling the movement of the robot according to the distance and the first direction.

[0013] In an embodiment of the present application, the first direction and the second direction can be matched by adjusting the robot at a preset position, and the deviation is less than or equal to the deviation threshold, so that the robot does not need to perform redundant adjustments by repeatedly trying to connect, retreat, and then try to connect again, thereby solving the problem of a large number of redundant adjustment actions during the automatic charging process to a certain extent and improving the automatic charging efficiency.

[0014] Furthermore, the robot is adjusted according to the matching of the first direction and the second direction, and the relationship between the deviation and the deviation threshold, including: when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than the deviation threshold, the robot is adjusted; based on the adjusted robot, continuing to execute the step of determining whether the first direction and the second direction match, and / or whether the deviation of the robot relative to the preset position is greater than the deviation threshold.

[0015] Furthermore, when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, the robot is adjusted, including: when the first direction and the second direction match and the deviation is greater than the deviation threshold, controlling the robot to rotate to a target angle.

[0016] Furthermore, the step of obtaining the deviation of the robot relative to the preset position includes: obtaining the deviation between the robot and the marker at the preset position through the robot's lens, wherein the deviation includes at least one of an angle deviation, a lateral position deviation and a longitudinal position deviation.

[0017] It should be understood that in order to accurately determine the deviation of the robot relative to the preset position, in the embodiment of the present application, a mark (such as a QR code or other mark) can be set at the preset position, so that the robot can collect the mark through the lens, thereby determining the deviation between the robot and the mark at the preset position. In this way, the determination of the deviation can be achieved simply and quickly, which is suitable for practical application needs.

[0018] Furthermore, when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, the robot is adjusted, including: when the first direction and the second direction differ by 90 degrees, determining whether the longitudinal position deviation is greater than a preset longitudinal deviation threshold; when the longitudinal position deviation is greater than the preset longitudinal deviation threshold, controlling the robot to move longitudinally in the opposite direction of the deviation by the distance of the longitudinal position deviation, and controlling the robot to rotate 90 degrees so that the first direction after turning matches the second direction.

[0019] It should be understood that in the actual warehousing and logistics process, the running track of the automated robot can be set, and it can only move forward and backward or turn 90 degrees. When the first direction of the first charging port of the robot differs by 90 degrees from the direction of the second charging port of the charging pile, the longitudinal deviation can be adjusted first, so that when the longitudinal deviation is within the preset allowable range, the robot can be controlled to rotate 90 degrees, and the first direction and the second direction can be matched. In this way, the automatic adjustment of the robot direction can be effectively achieved, and there is no need to make redundant adjustments through repeated attempts to connect, retreat, and then try to connect, thereby solving the problem of a large number of redundant adjustment actions in the automatic charging process to a certain extent, and improving the efficiency of automatic charging.

[0020] Furthermore, the method further includes: when the longitudinal position deviation is less than or equal to a preset longitudinal deviation threshold, controlling the robot to rotate 90 degrees so that the first direction after turning matches the second direction.

[0021] Furthermore, when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, the robot is adjusted, including: when the first direction and the second direction are in opposite directions, controlling the robot to rotate 90 degrees.

[0022] When the first direction of the first charging port of the robot is opposite to the direction of the second charging port of the charging pile, the robot can be rotated 90 degrees to make the first direction of the first charging port of the robot 90 degrees different from the second direction, and then adjusted in the same way as when the first direction and the second direction differ by 90 degrees. In this way, the robot direction can be automatically adjusted effectively without the need for repeated attempts to connect, retreat, and then try to connect for redundant adjustments, thereby solving the problem of a large number of redundant adjustment actions during the automatic charging process to a certain extent and improving the efficiency of automatic charging.

[0023] Furthermore, when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, the robot is adjusted, including: when the first direction and the second direction match and the lateral position deviation is greater than a preset lateral deviation threshold, controlling the robot to rotate 90 degrees.

[0024] It should be noted that in actual warehouse logistics, most robots can only move in one direction (i.e., can only move longitudinally), and steering is achieved through special steering wheels. Therefore, when a lateral deviation occurs and the lateral deviation is greater than the preset lateral deviation threshold, the robot can be turned 90 degrees to convert the lateral deviation into a longitudinal deviation, and then adjusted.

[0025] Further, when the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, the robot is adjusted, including: when the first direction and the second direction match, and the angle deviation is greater than a preset angle deviation threshold, the robot is adjusted including: controlling the robot to rotate in the opposite direction of the deviation by an angle corresponding to the angle deviation.

[0026] Furthermore, when a task instruction to end charging and / or charging fails is received, the method also includes: obtaining the distance between the second charging port and the preset position; and controlling the robot to move to the preset position based on the distance and the opposite direction of the first direction.

[0027] In the above implementation process, after charging is completed, the robot can be controlled to exit to the preset position in the opposite direction of the first direction through the distance between the second charging port and the preset position, thereby ending charging.

[0028] Furthermore, the method also includes: when an abnormality occurs, reporting or locally recording at least one of the following information: current position information of the robot; current direction of travel of the robot; and charging task information of the robot.

[0029] In actual application, exceptions are inevitable. In the embodiment of the present application, once an exception occurs during the charging process, the robot can be controlled to report or locally record the robot's current position information, the robot's current direction of travel, the robot's charging task information and other data, so that after the exception is eliminated, the charging task can be quickly restored with the reported or recorded data, thereby ensuring the execution reliability of the charging task and making the charging process have the ability to self-recover from exceptions.

[0030] An embodiment of the present application also provides a charging control device, including: an acquisition module and a control module; the acquisition module is used to acquire a first direction of a first charging port of a robot at a preset position; and acquire a second direction of a second charging port of a charging pile; the control module is used to adjust the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile are connected for charging.

[0031] An embodiment of the present application also provides an electronic device, comprising: a data interface, a processor, a memory and a communication bus; the data interface is used to obtain a target corpus; the communication bus is used to achieve connection and communication between the data interface, the processor and the memory; the processor is used to execute one or more programs stored in the memory to implement any of the above-mentioned charging control methods.

[0032] A readable storage medium is also provided in an embodiment of the present application. The readable storage medium stores one or more programs. The one or more programs can be executed by one or more processors to implement any of the above-mentioned charging control methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 A schematic diagram of a charging control method provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of the position structure of a preset position and a charging pile provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of another preset position and charging pile position structure provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the position structure of a robot and a charging pile provided in an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the structure of a charging control device provided in an embodiment of the present application;

[0039] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0041] Embodiment 1:

[0042] The present application provides a charging control method, which can be executed by the back-end control server of the robot or by the robot. Figure 1 As shown, the charging control method includes:

[0043] S101: Acquire a first direction of a first charging port of the robot at a preset position, and acquire a second direction of a second charging port of a charging pile.

[0044] In the embodiment of the present application, when a charging task needs to be performed, the back-end control server of the robot can first dispatch the robot to a preset position, and then obtain the first direction of the first charging port of the robot at the preset position, and obtain the second direction of the second charging port of the charging pile through the robot. Alternatively, the position coordinates of the preset position in the map can be pre-set in the robot, so that when a charging task needs to be performed, the robot automatically moves to the preset position, and then obtains the first direction of the first charging port at the preset position.

[0045] It should be noted that in the embodiment of the present application, the preset position is located on one side of the charging pile, and after the robot reaches the preset position, the direction of the first charging port can be on the same straight line as the second direction of the second charging port of the charging pile. Figure 2 and Figure 3 shown.

[0046] It should be noted that in actual application, different types of robots may have different charging modes.

[0047] For example, for many robots, they are charged by directly moving in the opposite direction (i.e., in the direction opposite to the second direction) to dock with the second interface of the charging pile. In this case, the preset position should be set on the side pointed by the second direction of the second charging port, such as Figure 2As shown, in the embodiment of the present application, this type of robot is referred to as a first charging type robot.

[0048] However, in addition to this, some robots are charged by moving in the same direction as the second direction, and by inserting or hooking from a preset opening after reaching the charging pile position, so that the first charging port of the robot is connected to the second charging port of the charging pile. In this case, the preset position should be set on the side of the second charging port in the opposite direction of the second direction, such as Figure 3 As shown, in the embodiment of the present application, this type of robot is referred to as a second charging type robot.

[0049] Therefore, in the embodiment of the present application, the position of the preset position can be set by the technician according to actual needs. In addition, the specific position of the preset position can also be selected by the technician according to the actual application environment.

[0050] In the embodiment of the present application, the preset position and the position of the charging pile can be pre-set, so the position information of the second charging port in the charging pile in the map can also be pre-determined. Therefore, the second direction can be pre-stored in the system so that it can be directly obtained when needed.

[0051] As for the first direction of the first charging port of the robot at the preset position, in the embodiment of the present application, it can be obtained in the following manner:

[0052] Method 1: A sensor can be set on the side of the charging pile facing the preset position, and a corresponding sensor can be set on the robot at the same time, so that the orientation of the robot relative to the charging pile can be determined by the sensor, and then combined with the direction of the second direction and the setting orientation of the charging pile, the first direction of the robot's first charging port in the map can be determined.

[0053] For example, a sensor can be set in each of the four directions of the robot (respectively referred to as sensors 1 to 4, assuming that the direction of the first charging port corresponds to sensor 1, the directions on both sides of the first charging port correspond to sensors 2 and 3, and the direction opposite to the first charging port corresponds to sensor 4). Figure 2In the position shown, sensor 5 is arranged on the side of the charging pile facing the preset position. Sensors 1 to 5 adopt a beam-type sensor, so that when the two sensors are opposite, trigger information for determining the orientation is generated. In this way, when sensor 1 is opposite to sensor 5 so that sensor 1 is triggered, the first direction can be determined to be the opposite direction to the second direction; when sensor 2 or 3 is opposite to sensor 5 so that sensor 2 or 3 is triggered, the first direction can be determined to be the direction that differs by 90 degrees from the second direction (it should be understood that although the directions determined by sensor 2 and sensor 3 are both 90 degrees different from the second direction, the directions of the two are opposite, that is, there is a difference of positive 90 degrees or negative 90 degrees); when sensor 4 is opposite to sensor 5 so that sensor 4 is triggered, the first direction can be determined to be the same direction as the second direction.

[0054] In the embodiment of the present application, the execution subject of the scheme can be the back-end control server of the robot or the robot itself. When the execution subject is the robot itself, when the sensor is triggered, corresponding trigger information will be generated to enable the robot to determine the first direction of the first charging port in the map. When the execution subject is the back-end control server, the trigger information of each sensor can be obtained through information interaction with the robot, thereby determining the first direction of the first charging port in the map.

[0055] Method 2: For each robot, the position of the first charging port set on it is fixed. Therefore, in the embodiment of the present application, the fourth direction of the first charging port of each type of robot in the robot can be pre-saved. Then, by collecting the third direction of the robot relative to the preset position, the first direction is determined by combining the fourth direction of the first charging port in the robot and the third direction.

[0056] In order to determine the third direction of the robot relative to a preset position, in an embodiment of the present application, a marker can be set at the preset position in advance, so that the marker at the preset position can be collected through the robot's lens, and then the direction of the robot's first charging port in the map can be determined based on the collection result.

[0057] In this manner, the identifier may be a two-dimensional code image or other images pre-stored in a database.

[0058] For example, a QR code can be set at a preset position, and when the robot reaches the preset position, the QR code is scanned to obtain the third direction of the robot relative to the QR code in the map, and then, based on the fourth direction of the first charging port in the robot and the third direction, the first direction of the first charging port in the map can be determined. The calculation formula is: first direction = fourth direction + third direction.

[0059] For the case where other images are used for identification, the images captured by the robot in one or several specific directions can be stored in the system in advance as standard images. Then, by comparing the image captured by the current robot with the standard image, the third direction of the robot relative to the other images in the map can be determined.

[0060] In this way, the first direction of the first charging port in the map is determined by setting a marker at a preset position. Compared with the aforementioned method of determining the first direction by a sensor, there is no need to set a sensor, which can effectively reduce product costs. It is also more universal and can be applied to situations where the robot can turn arbitrarily.

[0061] It should be understood that when the execution subject is the backend control server, the backend control server may obtain the QR code or image collected by the robot from the robot, and then determine the third direction. In addition, the robot may determine the third direction and then report it to the backend control server.

[0062] It should be noted that the aforementioned signs can be set on the ground at a preset position.

[0063] It should be understood that by setting a marker at a preset position, the deviation of the robot relative to the preset position can be accurately obtained, for example, the angular deviation, lateral position deviation and longitudinal position deviation of the robot relative to the preset position can be obtained.

[0064] Similarly, when the execution subject is the backend control server, the backend control server may obtain the identification collected by the robot from the robot, and then obtain the deviation of the robot relative to the preset position. Alternatively, the robot may determine the deviation relative to the preset position and report it to the backend control server.

[0065] S102: According to the first direction, the second direction, and the deviation of the robot relative to the preset position, the robot is adjusted so that the first charging port of the robot is connected to the second charging port of the charging pile for charging.

[0066] In the embodiment of the present application, the deviation of the robot relative to the preset position may be at least one of an angle deviation, a lateral position deviation, and a longitudinal position deviation of the robot relative to the preset position. Exemplarily, the angle deviation, lateral position deviation, and longitudinal position deviation of the robot relative to the preset position may be obtained at the same time, and then based on the angle deviation, lateral position deviation, and longitudinal position deviation of the robot relative to the preset position, the angle, lateral position, and longitudinal position of the robot may be adjusted respectively.

[0067] In an embodiment of the present application, when the robot is adjusted based on the first direction, the second direction, and the deviation of the robot relative to a preset position, it is determined whether the first direction and the second direction match, and whether the deviation of the robot relative to the preset position is greater than a deviation threshold, and then the robot is adjusted based on the matching of the first direction and the second direction, and the relationship between the deviation and the deviation threshold.

[0068] It should be noted that in the embodiments of the present application, different types of robots may have different matching situations. For example, when the robot is a first charging type robot, when the difference between the first direction and the second direction is close to 180 degrees, the first direction and the second direction are considered to match; and when the robot is a second charging type robot, when the difference between the first direction and the second direction is close to 0 degrees, the first direction and the second direction are considered to match.

[0069] In the embodiment of the present application, it can be set that when the difference between the first direction and the second direction and 180 degrees is less than or equal to n, it is considered that the first direction and the second direction differ by nearly 180 degrees; similarly, it can be set that when the difference between the first direction and the second direction and 0 degrees is less than or equal to m, it is considered that the first direction and the second direction differ by nearly 0 degrees. Where n and m can be set by engineers, for example, both are set to 1 degree.

[0070] In the embodiment of the present application, according to the matching of the first direction and the second direction, and the relationship between the deviation and the deviation threshold, the method of adjusting the robot includes:

[0071] When the first direction and the second direction match and the deviation is less than or equal to the deviation threshold, the robot is controlled to move in the first direction. At this time, the distance between the second charging port and the preset position can also be obtained, so as to realize the movement control of the robot according to the distance and the first direction.

[0072] When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than the deviation threshold, the robot is adjusted; based on the adjusted robot, the steps of determining whether the first direction and the second direction match, and whether the deviation of the robot relative to the preset position is greater than the deviation threshold are continued until the first direction and the second direction match, and the deviation is less than or equal to the deviation threshold.

[0073] The following describes how to adjust the robot for situations where the first direction and the second direction do not match, and for situations where the first direction and the second direction match.

[0074] The first and second directions do not match:

[0075] When the first direction and the second direction differ by 90 degrees, it can be determined whether the longitudinal position deviation of the robot is greater than a preset longitudinal deviation threshold.

[0076] When the longitudinal position deviation is greater than the preset longitudinal deviation threshold, the robot can be controlled to move longitudinally in the opposite direction of the deviation by the distance of the longitudinal position deviation, and the robot can be controlled to rotate 90 degrees so that the first direction and the second direction after turning match.

[0077] When the longitudinal position deviation is less than or equal to a preset longitudinal deviation threshold, the robot can be controlled to rotate 90 degrees so that the first direction and the second direction after the rotation match.

[0078] When the first direction and the second direction are opposite, the robot is controlled to rotate 90 degrees, and the adjustment of the robot is converted into a situation where the first direction and the second direction differ by 90 degrees.

[0079] It should be noted that the first direction and the second direction described here are opposite in direction, which means that when the robot is a first charging type robot, the difference between the first direction and the second direction is close to 0 degrees; when the robot is a second charging type robot, the difference between the first direction and the second direction is close to 180 degrees.

[0080] The first and second directions match:

[0081] If the deviation is less than or equal to the deviation threshold, as described above, it is only necessary to control the robot to move in the first direction. When the deviation is greater than the deviation threshold, the robot can be controlled to rotate to the target angle. Specifically:

[0082] When the angle deviation is greater than a preset angle deviation threshold, the robot can be controlled to rotate in the opposite direction of the deviation by an angle corresponding to the angle deviation.

[0083] It should be noted that most robots currently have fixed wheels, and the robot turns by means of special steering wheels. Therefore, after the steering wheel turns the robot to a certain direction (the longitudinal direction), the robot can only move forward and backward in the direction. The above scheme is mainly for the operation described by this type of robot, and the longitudinal direction refers to the movable direction relative to the robot.

[0084] Since the robot does not have the ability to move in the lateral direction, when the first direction and the second direction match and the lateral position deviation is greater than the preset lateral deviation threshold, the robot can be controlled to rotate 90 degrees, thereby executing the adjustment process when the first direction and the second direction differ by 90 degrees, thereby converting the lateral deviation into a longitudinal deviation for adjustment.

[0085] It should be noted that, in the embodiment of the present application, the first charging port of the robot can be set in the longitudinal direction of the robot.

[0086] In the embodiment of the present application, the deviation threshold can be set by an engineer according to actual needs. For example, in the embodiment of the present application, each deviation threshold can be set to 0.

[0087] However, it should be understood that in actual design, there is often a certain access margin between the first charging port and the second charging port. For example, the first charging port and the second charging port are often implemented by metal sheets. In actual design, the area where the metal sheet of the first charging port and / or the second charging port is located is often set larger, so that when the first charging port and the second charging port are in contact, the metal sheet can be in contact with a larger area, thereby increasing the tolerance for the robot's access position.

[0088] Therefore, in actual application, when each deviation is within the corresponding range, the first charging port and the second charging port can be successfully connected. To this end, in a feasible implementation of an embodiment of the present application, corresponding non-zero angle deviation thresholds, lateral deviation thresholds, and longitudinal deviation thresholds may also be set. It should be noted that the setting of the angle deviation threshold, lateral deviation threshold, and longitudinal deviation threshold needs to be set in combination with the maximum margin of the first charging port and the second charging port in actual application.

[0089] It should be understood that in actual warehousing and logistics processes, robots are usually set to only turn 90 degrees or 180 degrees, so there will not be a situation where the first direction and the second direction differ by degrees other than 0 degrees, 90 degrees, and 180 degrees, such as a difference of 45 degrees. In this case, the above adjustment process can be directly adopted.

[0090] For the case where the robot can turn and move freely, the fuzzy processing technology can be used, so that the above execution process can still be used. Exemplarily, it can be set that when the angle value between the first direction and the second direction is within a first preset range, the first direction and the second direction are considered to match, when the angle value between the first direction and the second direction is within a second preset range, the first direction and the second direction are considered to differ by 90 degrees, and when the angle value between the first direction and the second direction is within a third preset range, the first direction and the second direction are considered to be completely mismatched.

[0091] For example, for a robot of the first charging type, the first preset range can be set to an angle value between the first direction and the second direction of 135 to 180 degrees, or between -135 to -180 degrees; the second preset range is an angle value between the first direction and the second direction of 45 to 135 degrees, or between -45 to -135 degrees; the third preset range is an angle value between the first direction and the second direction of -45 to 45 degrees. For a robot of the second charging type, the third preset range can be set to an angle value between the first direction and the second direction of 135 to 180 degrees, or between -135 to -180 degrees; the second preset range is an angle value between the first direction and the second direction of 45 to 135 degrees, or between -45 to -135 degrees; the first preset range is an angle value between the first direction and the second direction of -45 to 45 degrees.

[0092] At this time, the control can be performed as usual according to the above process, and the deviation generated at this time will be adjusted through the angle deviation. For example, for the robot of the first charging type mentioned above, the angle difference between the first direction and the second direction is 140 degrees, and the angle deviation will be 40 degrees. Assuming that the angle deviation threshold is 1 degree, then it is obvious that the angle deviation is greater than the angle deviation threshold. At this time, the robot will be controlled to rotate 40 degrees in the opposite direction of the deviation, which eliminates the angle deviation.

[0093] It should be understood that the specific values ​​of the first to third preset ranges can be set by engineers according to actual needs.

[0094] It should also be understood that when the execution subject is the robot itself, the corresponding adjustment action can be completed by the robot itself. However, when the execution subject is the back-end control server, the back-end control server can generate corresponding control instructions for the robot adjustment process and send them to the robot, thereby controlling the robot to make adjustments.

[0095] It should also be understood that when a task instruction to end charging and / or a message of charging failure is received, the distance between the second charging port and the preset charging position can be obtained; based on the distance and the opposite direction of the first direction, the robot is controlled to move to the preset position.

[0096] It should be understood that, since the positions of the charging position and the charging pile are pre-set, the distance between the charging position and the charging pile is also determinable and can be pre-stored in the system.

[0097] It should be understood that when the execution subject is a back-end control server, the control process of the robot can be generated by the back-end control server and sent to the robot, thereby controlling the movement of the robot.

[0098] In addition, in the actual application process, anomalies are inevitable. In an embodiment of the present application, when an abnormality occurs, the charging task can be suspended (for example, pausing the movement of the robot in the process of controlling the robot to move to the second charging port, etc.), and handled by the abnormal module in the robot. At the same time, at least one of the current position information of the robot, the current direction of travel of the robot, and the charging task information of the robot can be reported or recorded locally. Thereby, after the abnormality is eliminated, the robot can resume the charging task according to the reported or locally recorded information. It should be noted that the charging task information refers to information related to the charging task, such as the target charging power, rated charging current, and other information of the robot.

[0099] It should be understood that the exception handling module is a module set up in the robot for handling abnormal conditions. It will determine the level and cause of the abnormality, generate a corresponding alarm signal, notify personnel to handle it, and automatically continue the charging task after the abnormality is eliminated.

[0100] In addition, in actual application, there may be an abnormal situation where the robot deviates from the preset position and cannot collect the mark at the preset position. In this case, the relevant charging status information can be recorded, and then the charging task can be automatically resumed according to the recorded relevant charging status information after waiting for manual intervention.

[0101] In addition, in the embodiment of the present application, if the first charging port and the second charging port of the charging pile cannot be accurately connected after the robot is controlled to move in the first direction, a control instruction for the robot can be generated according to the distance between the preset position and the charging pile and the first direction, so that the robot moves a distance in the direction opposite to the first direction, thereby returning to the preset position. Then, the solution of the present application is re-executed.

[0102] It should be understood that when the execution subject is the robot itself, the aforementioned control process of the robot when an abnormality occurs can be achieved by the back-end control server generating corresponding control instructions and sending them to the robot to realize the control of the robot.

[0103] The charging control method provided in the embodiment of the present application obtains the first direction of the first charging port of the robot and the second direction of the second charging port of the charging pile when the robot is at the preset position, and then adjusts the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile are connected, thereby realizing automatic charging of the robot. Through the above process, the robot can adjust the charging direction of the robot according to the first direction of the first charging port at the preset position, the second direction of the second charging port of the charging pile and the deviation of the robot relative to the preset position, so that the first charging port of the robot and the second charging port of the charging pile can be aligned before the robot reaches the position of the charging pile, so that the robot does not need to repeatedly try to connect, retreat, and try to connect again to make redundant adjustments during the charging process, thereby solving the problem of a large number of redundant adjustment actions in the automatic charging process to a certain extent, and improving the efficiency of automatic charging.

[0104] Embodiment 2:

[0105] Based on the first embodiment, this embodiment illustrates the solution of the present application by taking a case where the execution subject is a robot itself, the robot is a first charging type robot, and the identifier set at the preset position is a QR code as an example.

[0106] See also Figure 4 As shown, the map reference coordinate system is divided into 4 directions, marked as 0 / 1 / 2 / 3, the robot charging port is relative to the robot in the fourth direction, the charging port of the charging pile is relative to the second direction of the map, and the distance between the QR code in front of the charging pile and the charging pile is span1. The above information is stored in the system. Among them, the fourth direction can be determined according to the model of the robot to be charged.

[0107] The charging control process is as follows:

[0108] S1: Get the instructions for this task.

[0109] S2: Analyze whether the task instruction is to start charging or end charging. If it is to start charging, run S3 branch; if it is to end charging, run S4 branch.

[0110] S3: Use the robot's lens to collect error information offset1 of the ground QR code at a preset position and the third direction of the robot relative to the ground QR code.

[0111] Among them, offset1 refers to the deviation of the robot center relative to the center of the ground QR code, including the lateral deviation x-off, the longitudinal deviation y-off and the angular deviation yaw-off.

[0112] Perform the following procedure:

[0113] S31: Calculate a first direction of the charging port of the robot relative to the map.

[0114] The first direction=the third direction+the fourth direction.

[0115] S32: If the first direction is opposite to the second direction, determine whether x-off, y-off, and yaw-off are respectively greater than a preset lateral deviation threshold MAX_X_OFF, a longitudinal deviation threshold MAX_Y_OFF, and an angular deviation threshold MAX_YAW_OFF.

[0116] S321: If x-off is not greater than the lateral deviation threshold MAX_X_OFF, y-off is not greater than MAX_Y_OFF, and yaw-off is not greater than MAX_YAW_OFF, the first direction and span1 are used to generate the first walking direction and the walking distance span1 to control the movement of the robot so that the first charging port contacts the second charging port of the charging pile, and a charging instruction is issued to start normal charging.

[0117] Among them, MAX_X_OFF, MAX_Y_OFF and MAX_YAW_OFF are user-configurable parameters that can be changed within the range allowed by the robot.

[0118] S322: If the yaw-off in offset1 is greater than MAX_YAW_OFF, generate a heading angle adjustment action and jump to S3 again.

[0119] Among them, in the generated heading angle adjustment action, the angle to be adjusted is yaw-adj, which is:

[0120] yaw-adj=yaw-off(offset1), yaw-off(offset1) represents the yaw-off value in offset1.

[0121] S323: If x-off in offset1 is greater than MAX_X_OFF, generate a 90-degree rotation action and jump to S3 again.

[0122] Among them, the angle to be adjusted in the rotation action is yaw-adj, which is:

[0123] yaw-adj=π / 2.

[0124] S33: If the first direction is the same as the second direction, a 90-degree rotation action is generated, and the process jumps to S3 again.

[0125] Among them, the angle to be adjusted in the rotation action is yaw-adj, which is:

[0126] yaw-adj=π / 2.

[0127] S34: If the first direction differs from the second direction by 90 degrees, determine whether y-off in offset1 is greater than MAX_Y_OFF.

[0128] If it is greater, a longitudinal adjustment action is generated, and then a 90-degree rotation action is generated to make the first direction consistent with the second direction, and then jump to S3. Otherwise, a 90-degree rotation action is directly generated to make the first direction consistent with the second direction.

[0129] Among them, the displacement to be adjusted in the longitudinal adjustment action is y-adj, and the angle to be adjusted in the rotation action is yaw-adj, which is:

[0130] y-adj=y-off(offset1), where y-off(offset1) represents the y-off value in offset1;

[0131] yaw-adj=π / 2.

[0132] S4: First close the charging connection, generate a control instruction through the direction opposite to the first direction and the distance span1, control the robot to exit to the QR code at the preset position, and complete the task instruction.

[0133] It should be noted that if an abnormality occurs during the charging process, it can be handled in the following ways:

[0134] 1) The exception generated when the robot scans the QR code is directly handled by the exception handling module in the robot. The charging process can be continued or cancelled based on the processing results.

[0135] The exception handling module can determine the level and cause of the exception, generate an audible and visual alarm, and notify personnel to handle it. If the exception handling module determines that it is a high-level exception, the charging can be directly canceled and the exception information can be reported to the server. If it is a low-level exception, the charging task can be continued after the exception is restored.

[0136] 2) When the robot is not on the QR code during the charging process, the charging status information is recorded first, and then the charging task is automatically resumed according to the recorded charging status information after manual intervention.

[0137] 3) When the first walking direction and walking distance span1 are generated by the first direction and span1, and the robot is controlled to move to dock with the second charging port of the charging pile to try to start charging, if it is still unsuccessful after trying the preset number of times, an exit action can be generated according to the first direction and span1, so that the robot returns to the QR code of the preset charging position, and then jumps to S3.

[0138] Through the above control logic, the charging process can effectively reduce the number of adjustment actions and achieve fast automatic charging. At the same time, without the need for additional sensors, the first charging port of the robot can be accurately aligned with the second charging port of the charging pile. At the same time, the robot also has the ability to self-recover from abnormal charging tasks.

[0139] Embodiment three:

[0140] Based on the same inventive concept, a charging control device is also provided in the embodiment of the present application. Figure 5 As shown, Figure 5 The charging control device 100 corresponding to the method shown in the first embodiment is shown. It should be understood that the specific functions of the charging control device 100 can be referred to the description above. To avoid repetition, the detailed description is appropriately omitted here. The charging control device 100 includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system of the charging control device 100. Specifically:

[0141] See also Figure 5 As shown, the charging control device 100 includes: an acquisition module 101 and a control module 102. Among them:

[0142] An acquisition module 101 is used to acquire a first direction of a first charging port of the robot at a preset position; and acquire a second direction of a second charging port of the charging pile;

[0143] The control module 102 is used to adjust the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot is connected to the second charging port of the charging pile for charging.

[0144] In the embodiment of the present application, the acquisition module 101 is specifically used to collect the third direction of the robot relative to the preset position; and determine the first direction according to the fourth direction and the third direction of the first charging port in the robot.

[0145] In an embodiment of the present application, the control module 102 is specifically used to determine whether the first direction and the second direction match, and whether the deviation of the robot relative to the preset position is greater than a deviation threshold; adjust the robot according to the matching situation of the first direction and the second direction, and / or the relationship between the deviation and the deviation threshold.

[0146] In a feasible implementation of an embodiment of the present application, the control module 102 is specifically used to obtain the distance between the second charging port and the preset position when the first direction matches the second direction and the deviation is less than or equal to the deviation threshold; and control the movement of the robot according to the distance and the first direction.

[0147] In a feasible implementation of an embodiment of the present application, the control module 102 is specifically used to adjust the robot when the first direction and the second direction do not match, and / or the deviation of the robot relative to a preset position is greater than a deviation threshold; based on the adjusted robot, continue to execute the step of determining whether the first direction and the second direction match, and / or whether the deviation of the robot relative to the preset position is greater than the deviation threshold.

[0148] In the above feasible implementation manner, the control module 102 is specifically used to control the robot to rotate to a target angle when the first direction matches the second direction and the deviation is greater than a deviation threshold.

[0149] In the embodiment of the present application, the acquisition module 101 is specifically used to acquire the deviation between the robot and the marker at a preset position through the robot's lens, and the deviation includes at least one of an angle deviation, a lateral position deviation, and a longitudinal position deviation.

[0150] In the above-mentioned feasible implementation manner, the control module 102 is specifically used to determine whether the longitudinal position deviation is greater than a preset longitudinal deviation threshold when the first direction and the second direction differ by 90 degrees; when the longitudinal position deviation is greater than the preset longitudinal deviation threshold, control the robot to move longitudinally in the opposite direction of the deviation by the distance of the longitudinal position deviation, and control the robot to rotate 90 degrees so that the first direction and the second direction after turning match.

[0151] In the above feasible implementation manner, the control module 102 is also used to control the robot to rotate 90 degrees when the longitudinal position deviation is less than or equal to a preset longitudinal deviation threshold, so that the first direction and the second direction after turning match.

[0152] In the above feasible implementation manner, the control module 102 is specifically used to control the robot to rotate 90 degrees when the first direction and the second direction are opposite.

[0153] In the above feasible implementation manner, the control module 102 is specifically used to control the robot to rotate 90 degrees when the first direction and the second direction match and the lateral position deviation is greater than a preset lateral deviation threshold.

[0154] In the above feasible implementation manner, the control module 102 is specifically used to control the robot to rotate in the opposite direction of the deviation by an angle corresponding to the angle deviation when the first direction matches the second direction and the angle deviation is greater than a preset angle deviation threshold.

[0155] In an embodiment of the present application, the acquisition module 101 is also used to obtain the distance between the second charging port and the preset position when a task instruction to end charging and / or charging fails is received; the control module 102 is also used to control the robot to move to the preset position based on the distance and the opposite direction of the first direction.

[0156] In an embodiment of the present application, the control module 102 is also used to report or locally record at least one of the following information when an abnormality occurs: the current position information of the robot; the current direction of travel of the robot; and the charging task information of the robot.

[0157] It should be understood that, for the sake of brevity, some of the contents described in the first embodiment will not be repeated in this embodiment.

[0158] Embodiment 4:

[0159] This embodiment provides an electronic device, see Figure 6 As shown, it includes a processor 601, a memory 602 and a communication bus 603. Among them:

[0160] The communication bus 603 is used to realize the connection and communication between the data interface 601 , the processor 601 and the memory 602 .

[0161] The processor 601 is used to execute one or more programs stored in the memory 602 to implement the charging control method in the above-mentioned embodiment 1 / 2.

[0162] Understandably, Figure 6 The structure shown is for illustration only. The electronic device may also include Figure 6 More or fewer components as shown, or with Figure 6 The different configurations shown may also include components such as a display screen and a keyboard.

[0163] It should be understood that Figure 6 The electronic device shown can be a robot or a back-end control server of the robot.

[0164] This embodiment also provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash disk, an SD (Secure Digital Memory Card) card, an MMC (Multimedia Card) card, etc., in which one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the charging control method in the above embodiment 1 / 2. No further details will be given here.

[0165] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0166] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0167] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0168] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0169] As used herein, a plurality refers to two or more than two.

[0170] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A charging control method, characterized in that: include: Acquire a first direction of a first charging port of the robot when the robot is at a preset position; Obtain a second direction of a second charging port of the charging pile; According to the first direction, the second direction, and the deviation of the robot relative to the preset position, the robot is adjusted so that the first charging port of the robot is connected to the second charging port of the charging pile for charging; The robot is adjusted according to the first direction, the second direction, and the deviation of the robot relative to the preset position, including: Determining whether the first direction and the second direction match, and whether the deviation of the robot relative to the preset position is greater than a deviation threshold; When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, adjusting the robot; According to the adjusted robot, continue to perform the step of determining whether the first direction matches the second direction, and / or whether the deviation of the robot relative to the preset position is greater than a deviation threshold; When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, adjusting the robot includes: When the first direction matches the second direction and the deviation is greater than a deviation threshold, controlling the robot to rotate to a target angle; or, When the first direction and the second direction differ by 90 degrees, determining whether the longitudinal position deviation is greater than a preset longitudinal deviation threshold; When the longitudinal position deviation is greater than a preset longitudinal deviation threshold, controlling the robot to move longitudinally in a direction opposite to the deviation by a distance of the longitudinal position deviation, and controlling the robot to rotate 90 degrees so that the first direction after the turn matches the second direction; When the longitudinal position deviation is less than or equal to a preset longitudinal deviation threshold, controlling the robot to rotate 90 degrees so that the first direction after turning matches the second direction; or, When the first direction and the second direction are opposite, the robot is controlled to rotate 90 degrees.

2. The charging control method according to claim 1, characterized in that: Obtaining a first direction of a first charging port of the robot at a preset position includes: collecting a third direction of the robot relative to the preset position; The first direction is determined according to a fourth direction of the first charging port in the robot and the third direction.

3. The charging control method according to claim 1, characterized in that: The adjusting the robot according to the matching condition between the first direction and the second direction, and / or the magnitude relationship between the deviation and the deviation threshold, includes: When the first direction matches the second direction and the deviation is less than or equal to a deviation threshold, Obtaining a distance between the second charging port and the preset position; The robot is controlled to move according to the distance and the first direction.

4. The charging control method according to claim 1, characterized in that: The step of obtaining the deviation of the robot relative to the preset position comprises: The deviation between the robot and the mark at the preset position is obtained through the lens of the robot, and the deviation includes at least one of an angle deviation, a lateral position deviation and a longitudinal position deviation.

5. The charging control method according to claim 1, characterized in that: When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, adjusting the robot includes: When the first direction matches the second direction and the lateral position deviation is greater than a preset lateral deviation threshold, the robot is controlled to rotate 90 degrees.

6. The charging control method according to claim 1, characterized in that: When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, adjusting the robot includes: When the first direction matches the second direction and the angle deviation is greater than a preset angle deviation threshold, the robot is controlled to rotate in the opposite direction of the deviation by an angle corresponding to the angle deviation.

7. The charging control method according to any one of claims 1 to 3, characterized in that: When receiving a task instruction to end charging and / or charging fails, the method further includes: Obtaining a distance between the second charging port and the preset position; The robot is controlled to move to the preset position according to the distance and the opposite direction of the first direction.

8. The charging control method according to any one of claims 1 to 3, characterized in that: The method further comprises: When an exception occurs, report or locally record at least one of the following information: Current location information of the robot; the robot's current direction of travel; Charging task information of the robot.

9. A charging control device, characterized in that: include: Acquisition module and control module; The acquisition module is used to acquire a first direction of a first charging port of the robot at a preset position; Obtain a second direction of a second charging port of the charging pile; The control module is used to adjust the robot according to the first direction, the second direction and the deviation of the robot relative to the preset position, so that the first charging port of the robot is connected with the second charging port of the charging pile for charging; The control module is specifically used for: Determining whether the first direction and the second direction match, and whether the deviation of the robot relative to the preset position is greater than a deviation threshold; Adjusting the robot according to a matching condition between the first direction and the second direction, and / or a magnitude relationship between the deviation and a deviation threshold; When the first direction and the second direction do not match, and / or the deviation of the robot relative to the preset position is greater than a deviation threshold, adjusting the robot; According to the adjusted robot, continue to perform the step of determining whether the first direction matches the second direction, and / or whether the deviation of the robot relative to the preset position is greater than a deviation threshold; When the first direction matches the second direction and the deviation is greater than a deviation threshold, controlling the robot to rotate to a target angle; or, When the first direction and the second direction differ by 90 degrees, determining whether the longitudinal position deviation is greater than a preset longitudinal deviation threshold; When the longitudinal position deviation is greater than a preset longitudinal deviation threshold, controlling the robot to move longitudinally in a direction opposite to the deviation by a distance of the longitudinal position deviation, and controlling the robot to rotate 90 degrees so that the first direction after the turn matches the second direction; When the longitudinal position deviation is less than or equal to a preset longitudinal deviation threshold, controlling the robot to rotate 90 degrees so that the first direction after turning matches the second direction; or, When the first direction and the second direction are opposite, the robot is controlled to rotate 90 degrees.

10. An electronic device, characterized in that: including a processor, a memory and a communication bus; The communication bus is used to realize the connection and communication between the processor and the memory; The processor is used to execute one or more programs stored in the memory to implement the charging control method according to any one of claims 1 to 8.

11. A readable storage medium, characterized in that: The readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the charging control method according to any one of claims 1 to 8.