Robot control method and device, robot and readable storage medium
By installing a camera on the robot and analyzing the chassis environment information, the problem of low efficiency of robots in the existing technology is solved, flexible and efficient operation of the problem of escape is achieved, and work reliability is improved.
Patent Information
- Application Number
- CN202310496947.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
AI Technical Summary
Existing robots are inefficient in getting out of trouble when stuck, especially in narrow areas where they cannot get out of trouble flexibly.
By installing the first camera on the robot, shooting and analyzing the chassis environment information in real time, determining the stuck situation, and controlling the robot to perform corresponding escape actions based on environmental characteristics, improving the escape efficiency and success rate.
It realizes the robot's flexible escape from difficulties in a stuck state, improves the efficiency and success rate of escape, and ensures the reliability of work.
Smart Images

Figure CN118893615A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot control method and device, a robot and a readable storage medium. Background Art
[0002] At present, with the development of robot technology, robots are being used more and more widely. In the process of robot operation, the robot is usually stuck, and at this time the robot needs to perform certain escape actions. However, the existing conventional escape methods of robots have fixed escape actions and low escape efficiency, especially in some narrow areas, the robot cannot flexibly escape according to the specific stuck situation. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0004] To this end, a first aspect of the present invention is to provide a robot control method.
[0005] A second aspect of the present invention is to provide a robot control device.
[0006] A third aspect of the present invention is to provide another robot control device.
[0007] A fourth aspect of the present invention is to provide a robot.
[0008] A fifth aspect of the present invention is to provide another robot.
[0009] A sixth aspect of the present invention is to provide a readable storage medium.
[0010] In view of this, according to one aspect of the present invention, a robot control method is proposed, the robot includes a first camera, and the robot control method includes: when the robot is in a stuck state, determining the robot's environmental information according to the shooting data of the first camera, the environmental information includes the robot's chassis environmental information, and the chassis environmental information is the image information under the chassis; determining the robot's stuck information according to the environmental information; and controlling the robot to perform corresponding escape operations according to the stuck information.
[0011] The execution subject of the technical solution of the robot control method provided by the present invention can be a robot, or a robot control device, and can also be determined according to actual use requirements, which is not specifically limited here. In order to more clearly describe the robot control method provided by the present invention, the execution subject of the robot control method is described below as a robot control device.
[0012] The robot control method provided by the present invention is used to control the robot to perform corresponding escape actions according to the overall view of the robot chassis when the robot is trapped during work, so as to achieve flexible escape of the robot.
[0013] The robot is provided with a first camera, the robot includes a main body and a chassis, and the first camera can be installed in front of the main body of the robot. The front of the main body of the robot is used to indicate the main walking direction of the robot, that is, to indicate the forward direction of the robot.
[0014] Specifically, in the robot control method provided by the present invention, during the working process of the robot, the robot control device makes a real-time judgment on the movement state of the robot to determine whether the robot is currently in a free moving state or a stuck state. Furthermore, during the working process of the robot, the robot control device will also control the first camera installed on the robot to take real-time pictures of the working environment of the robot. On this basis, when the robot control device determines that the current movement of the robot is trapped, that is, when it determines that the robot is currently in a stuck state, the robot control device obtains the shooting data of the first camera installed on the robot. Furthermore, the robot control device restores the current chassis working environment of the robot based on the acquired shooting data, that is, simulates the image information under the robot chassis to obtain the chassis environment information of the robot, thereby determining the current working environment information of the robot.
[0015] On this basis, the robot control device analyzes and identifies the current working environment characteristics of the robot according to the current working environment information of the robot, so as to determine the specific stuck situation of the robot, such as determining the stuck reason, stuck type and stuck direction of the robot, so as to analyze and obtain the stuck information of the robot. Based on this, the robot control device controls the robot to perform corresponding escape actions according to the actual stuck situation of the robot, so as to control the robot to escape flexibly. In this way, during the working process of the robot, when the robot is trapped at work, the robot chassis environment is simulated and analyzed based on the shooting data of the robot, and then the specific stuck situation of the robot is analyzed based on the chassis environment characteristics of the robot, and the robot is controlled to perform corresponding escape actions to escape based on the actual stuck situation of the robot. In this way, the robot is escaped based on the chassis panoramic view of the robot, which improves the flexibility of the robot escape action, thereby improving the escape efficiency and escape success rate of the robot, and ensuring the reliability of the robot work.
[0016] The robot control method according to the present invention may also have the following additional technical features:
[0017] In the above technical solution, the robot also includes at least one first sensor, and the at least one first sensor is used to collect first sensor data. Before determining the environmental information of the robot according to the shooting data of the first camera, the robot control method also includes: determining the running speed and position information of the robot according to the first sensor data and / or shooting data of the robot; when the running speed is greater than zero and the position information remains unchanged, it is determined that the robot is in a stuck state.
[0018] In the technical solution, the robot also includes at least one first sensor, and the at least one first sensor is used to collect first sensor data. On this basis, during the working process of the robot, the robot control device acquires the first sensor data and / or shooting data of the robot in real time, and determines the actual position information and running speed of the robot according to the acquired first sensor data and / or shooting data. On this basis, the robot control device analyzes the actual position information and running speed of the robot to make a real-time judgment on the motion state of the robot. Specifically, when the position information of the robot has not changed, but the running speed of the robot is not zero, the robot control device determines that the current action of the robot is trapped, that is, it determines that the robot is currently in a stuck state. In this way, the robot's motion state is judged in real time in combination with the actual position information and running speed of the robot, and when the robot's action is trapped, it can be timely determined that the robot is in a stuck state, thereby controlling the robot to perform an escape action, improving the robot's escape efficiency, and thus ensuring the reliability of the robot's work.
[0019] In any of the above technical solutions, determining the robot's environmental information based on the shooting data of the first camera includes: obtaining the first shooting data of the robot in a first time period, the first time period being before the robot is in a stuck state; determining the robot's environmental information based on the first shooting data.
[0020] In this technical solution, during the working process of the robot, the robot control device controls the first camera installed on the robot to take real-time pictures of the robot's working environment. On this basis, when the robot control device determines that the robot's current action is trapped, that is, when the robot is currently in a stuck state, the robot control device will obtain the shooting pictures of the first camera within a period of time before the robot is trapped, that is, obtain the first shooting data collected by the first camera within the first period of time. Further, the robot control device analyzes and processes the first shooting data obtained, so as to simulate the image under the chassis when the robot is trapped according to the shooting images of the robot at multiple time points in the historical movement process, thereby restoring the chassis working environment of the robot and obtaining the working environment information when the robot is trapped. In this way, based on the historical shooting pictures before the robot is trapped, the working scene of the robot when it is trapped is restored, so as to obtain the working environment information when the robot is trapped, thereby ensuring the accuracy and authenticity of the working environment information, thereby ensuring the accuracy of the subsequent control of the robot to perform the escape action, improving the robot's escape efficiency and escape success rate, and ensuring the reliability of the robot's work.
[0021] In any of the above technical solutions, the robot also includes at least one second sensor, and the at least one second sensor is used to collect second sensor data. On this basis, the environmental information of the robot is determined according to the shooting data of the first camera, including: obtaining first shooting data of the robot in a first time period, and the first time period is before the robot is in a stuck state; obtaining second shooting data and / or second sensor data when the robot is in a stuck state; determining the environmental information of the robot according to the first shooting data, the second shooting data and / or the second sensor data; wherein the second sensor data includes at least one of laser sensor data and radar sensor data.
[0022] In the technical solution, the robot further includes at least one second sensor, and the at least one second sensor is used to collect second sensor data. The second sensor may specifically include a laser sensor and / or a radar sensor. On this basis, the second sensor data may specifically include laser sensor data and / or radar sensor data.
[0023] Furthermore, during the working process of the robot, the robot control device will control the first camera installed on the robot to capture the working environment of the robot in real time.
[0024] On this basis, when the robot control device determines that the current action of the robot is trapped, that is, when the robot is currently in a stuck state, the robot control device will also obtain the shooting picture of the first camera within a period of time before the robot is trapped, that is, obtain the first shooting data collected by the first camera in the first time period. At the same time, the robot control device will also obtain the second sensing data of at least one second sensor and / or the second shooting data collected by the first camera when the robot is trapped. Further, the robot control device analyzes and processes the obtained second sensing data and / or second shooting data to analyze and process the environmental data of the working environment in which the robot is located when it is trapped, and matches and compares the environmental data obtained by the analysis and processing with the first shooting data collected before the robot is trapped, so as to restore the chassis working environment and the surrounding working environment when the robot is trapped, and obtain the working environment information when the robot is trapped. In this way, based on the captured images before the robot was trapped and the captured images when the robot was trapped and / or the second sensor data, the working scene of the robot when it was trapped is restored, thereby obtaining the working environment information when the robot was trapped, further ensuring the accuracy and authenticity of the working environment information, thereby ensuring the accuracy of subsequent control of the robot to perform escape actions, improving the robot's escape efficiency and escape success rate, and ensuring the reliability of the robot's work.
[0025] In any of the above technical solutions, determining the stuck information of the robot based on environmental information includes: determining the obstacle information that trapped the robot based on the environmental information; and determining the stuck information based on the obstacle information.
[0026] In this technical solution, in the process of determining the specific stuck information of the robot based on the environmental information when the robot is trapped, the robot control device specifically analyzes and processes the environmental information when the robot is trapped to determine the obstacles that hinder the robot's actions and related information, and then determines the specific stuck situation of the robot based on the determined obstacles and related information, so as to analyze the reasons for the robot's stuck, the type of stuck, etc., and thus determine the robot's stuck information. In this way, based on the environmental information when the robot is trapped, the obstacle situation when the robot is trapped is determined, and then the actual stuck information of the robot is determined, which ensures the accuracy and authenticity of the determination of the stuck information, thereby ensuring the accuracy of the subsequent control of the robot to perform the escape action, and improving the flexibility and success rate of the robot's escape.
[0027] In any of the above technical solutions, determining the stuck information according to the obstacle information includes: determining the stuck position and / or stuck direction, movable direction and / or movable distance of the robot according to the obstacle information.
[0028] In this technical solution, in the process of the robot control device determining the actual stuck information of the robot according to the obstacle information that hinders the robot's movement, the robot control device specifically determines the robot's stuck position and / or stuck direction, and determines the robot's current movable direction and / or movable distance by analyzing the obstacle information that hinders the robot's movement. In this way, the accuracy of determining the specific stuck situation of the robot is guaranteed, thereby ensuring the accuracy and flexibility of the subsequent control of the robot to perform the escape action.
[0029] In any of the above technical solutions, the robot is controlled to perform corresponding escape operations according to the stuck information, including: determining the movement information of the robot according to the stuck information, the movement information including the moving direction and the moving distance, the moving direction is associated with the stuck direction and / or the movable direction, and the moving distance is associated with the stuck position and / or the movable distance; controlling the robot to move according to the movement information.
[0030] In this technical solution, in the process where the robot control device controls the robot to perform corresponding escape operations to escape according to the specific stuck information when the robot is trapped, specifically, the robot control device analyzes the specific stuck information of the robot to determine the movement information of the robot when escaping. Specifically, the robot control device determines the movement direction of the robot when escaping according to the trapped direction and / or movable direction of the robot, and the robot control device determines the movement distance of the robot when escaping according to the trapped position and / or movable distance of the robot. On this basis, the robot control device controls the robot to perform escape actions according to the above-mentioned movement direction and movement distance, thereby achieving escape. In this way, based on the specific stuck information such as the trapped direction and / or movable direction, trapped position and / or movable distance when the robot is trapped, the escape action of the robot is planned, which improves the flexibility and success rate of the robot's escape, thereby ensuring the reliability of the robot's work.
[0031] According to a second aspect of the present invention, a robot control device is proposed, wherein the robot includes a first camera, and the robot control device includes: a processing unit, for determining environmental information of the robot according to shooting data of the first camera when the robot is in a stuck state, the environmental information at least including chassis environmental information of the robot, and the chassis environmental information is image information under the chassis; the processing unit, further for determining stuck information of the robot according to the environmental information; and a control unit, for controlling the robot to perform corresponding escape operations according to the stuck information.
[0032] The robot control device provided by the present invention is used to control the robot to perform corresponding escape actions according to the overall view of the robot chassis when the robot is trapped during work, so as to achieve flexible escape of the robot.
[0033] The robot is provided with a first camera, the robot includes a main body and a chassis, and the first camera can be installed in front of the main body of the robot. The front of the main body of the robot is used to indicate the main walking direction of the robot, that is, to indicate the forward direction of the robot.
[0034] Specifically, the robot control device provided by the present invention includes a processing unit and a control unit. During the working process of the robot, the processing unit makes a real-time judgment on the movement state of the robot to determine whether the robot is currently in a free moving state or a stuck state. Further, during the working process of the robot, the control unit controls the first camera installed on the robot to shoot the working environment of the robot in real time. On this basis, when the processing unit determines that the current movement of the robot is trapped, that is, when it determines that the robot is currently in a stuck state, the processing unit obtains the shooting data of the first camera installed on the robot. Furthermore, the processing unit restores the current chassis working environment of the robot based on the acquired shooting data, that is, simulates the image information under the chassis of the robot to obtain the chassis environment information of the robot, thereby determining the current working environment information of the robot.
[0035] On this basis, the processing unit analyzes and identifies the current working environment characteristics of the robot according to the current working environment information of the robot, so as to determine the specific stuck situation of the robot, such as determining the stuck reason, stuck type and stuck direction of the robot, so as to analyze and obtain the stuck information of the robot. Based on this, the control unit controls the robot to perform corresponding escape actions according to the actual stuck situation of the robot, so as to control the robot to escape flexibly. In this way, during the working process of the robot, when the robot is trapped at work, the chassis environment of the robot is simulated and analyzed based on the shooting data of the robot, and then the specific stuck situation of the robot is analyzed based on the chassis environment characteristics of the robot, and the robot is controlled to perform corresponding escape actions to escape based on the actual stuck situation of the robot. In this way, based on the chassis panorama of the robot, the robot is controlled to escape, which improves the flexibility of the robot's escape action, thereby improving the escape efficiency and escape success rate of the robot, and ensuring the reliability of the robot's work.
[0036] According to the third aspect of the present invention, another robot control device is proposed, comprising: a memory storing a program or instruction; a processor, and the processor implements the steps of the robot control method in any of the above technical solutions when executing the program or instruction. Therefore, the robot control device proposed in the third aspect of the present invention has all the beneficial effects of the robot control method in any of the above technical solutions in the first aspect, which will not be repeated here.
[0037] According to a fourth aspect of the present invention, a robot is proposed, comprising: a main body, on which a first camera and the robot control device in the technical solution of the third aspect are arranged; and a chassis, connected to the main body, on which a moving mechanism is arranged.
[0038] The robot proposed in the fourth aspect of the present invention comprises a main body, on which the robot control device in the technical solution of the third aspect is arranged. Therefore, the robot proposed in the fourth aspect of the present invention has all the beneficial effects of the robot control device in the technical solution of the third aspect, which will not be repeated here.
[0039] The robot according to the present invention may also have the following additional technical features:
[0040] In the above technical solution, the robot also includes: at least one first sensor, which is arranged on the main body and is used to collect first sensing data; and at least one second sensor, which is arranged on the main body and is used to collect second sensing data.
[0041] In this technical solution, the main body of the robot may be provided with at least one first sensor and at least one second sensor, wherein the first sensor is used to collect first sensing data, and the second sensor is used to collect second sensing data.
[0042] The first sensor may be a motion sensor, and the first sensing data may be the motion data of the robot, such as motion speed, motion mileage, acceleration, etc. The second sensor may be a distance sensor, such as a laser sensor and / or a radar sensor, and the second sensing data may be laser sensing data and / or radar sensing data.
[0043] On this basis, during the working process of the robot, the robot control device makes a real-time judgment on the robot's motion state based on the first sensing data of at least one first sensor installed on the robot and / or the shooting data of the first camera, so as to determine whether the robot is currently in a free moving state or a stuck state. Further, during the working process of the robot, the robot control device will also control the first camera installed on the robot to take real-time pictures of the robot's working environment. On this basis, when the robot control device determines that the robot's current movement is trapped, that is, when it determines that the robot is currently in a stuck state, the robot control device obtains the shooting data of the first camera installed on the robot. Further, the robot control device restores the robot's current chassis working environment based on the acquired shooting data, that is, simulates the image information under the robot chassis to obtain the robot's chassis environment information, thereby determining the robot's current working environment information.
[0044] On this basis, the robot control device analyzes and identifies the characteristics of the robot's current working environment based on the robot's current working environment information to determine the specific stuck situation of the robot, such as determining the robot's stuck cause, stuck type, and stuck direction, thereby analyzing and obtaining the robot's stuck information. Based on this, the robot control device controls the robot to perform corresponding escape actions based on the robot's actual stuck situation, so as to control the robot to escape flexibly.
[0045] According to the fifth aspect of the present invention, another robot is proposed, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the robot control method in any technical solution of the first aspect are implemented. Therefore, the robot proposed in the fifth aspect of the present invention has all the beneficial effects of the robot control method in any technical solution of the first aspect, which will not be repeated here.
[0046] According to the sixth aspect of the present invention, a readable storage medium is provided, on which a program or instruction is stored, and when the program or instruction is executed by a processor, a robot control method as in any of the above technical solutions is implemented. Therefore, the readable storage medium provided in the sixth aspect of the present invention has all the beneficial effects of the robot control method in any of the technical solutions in the first aspect, and no further description is given here.
[0047] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0049] Figure 1 One of the flowcharts of the robot control method according to the embodiment of the present invention is shown;
[0050] Figure 2 The second flowchart of the robot control method according to the embodiment of the present invention is shown;
[0051] Figure 3 The third flowchart of the robot control method according to the embodiment of the present invention is shown;
[0052] Figure 4 A fourth flowchart of the robot control method according to an embodiment of the present invention is shown;
[0053] Figure 5 FIG5 is a flowchart of a robot control method according to an embodiment of the present invention;
[0054] Figure 6FIG6 shows a sixth flow chart of the robot control method according to an embodiment of the present invention;
[0055] Figure 7 FIG7 shows a flow chart of a robot control method according to an embodiment of the present invention;
[0056] Figure 8 One of the structural block diagrams of the robot control device according to the embodiment of the present invention is shown;
[0057] Fig. 9 The second structural block diagram of the robot control device according to the embodiment of the present invention is shown;
[0058] Fig.10 One of the structural block diagrams of the robot according to the embodiment of the present invention is shown;
[0059] Fig.11 The second structural block diagram of the robot according to the embodiment of the present invention is shown. DETAILED DESCRIPTION
[0060] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0061] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0062] Combine the following Figures 1 to 11 , the robot control method and device, robot and readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0063] In one embodiment of the present invention, Figure 1 As shown, the robot control method may specifically include the following steps 102 to 106:
[0064] Step 102, when the robot is in a stuck state, determining the environment information of the robot according to the shooting data of the first camera;
[0065] Step 104, determining the stuck information of the robot according to the environmental information;
[0066] Step 106, controlling the robot to perform corresponding escape operations according to the stuck information.
[0067] The robot control method provided by the present invention is used to control the robot to perform corresponding escape actions according to the overall view of the robot chassis when the robot is trapped during work, so as to achieve flexible escape of the robot.
[0068] Wherein, the robot is equipped with a first camera.
[0069] Furthermore, in actual application, the robot may be provided with at least one first sensor, which may specifically be a motion sensor, and the first sensor is used to collect first sensing data, namely, the motion data of the robot.
[0070] In actual application, the first sensor may specifically include an odometer, a speed sensor, a SLAM (Simultaneous Localization and Mapping) device, and an IMU (Inertial Measurement Unit) device, etc., without specific limitation herein.
[0071] Furthermore, the above-mentioned robots may specifically be cleaning robots, navigation robots, child companion robots, question-answering robots and other intelligent robots with autonomous movement capabilities, and no specific restrictions are made herein.
[0072] Specifically, in the robot control method provided by the present invention, during the working process of the robot, the robot control device makes a real-time judgment on the movement state of the robot based on the first sensing data of at least one first sensor installed on the robot and / or the shooting data of the first camera, so as to determine whether the robot is currently in a free moving state or a stuck state. Furthermore, during the working process of the robot, the robot control device will also control the first camera installed on the robot to take real-time pictures of the working environment of the robot. On this basis, when the robot control device determines that the current movement of the robot is trapped, that is, when it determines that the robot is currently in a stuck state, the robot control device obtains the shooting data of the first camera installed on the robot. Furthermore, the robot control device restores the current chassis working environment of the robot based on the acquired shooting data, that is, simulates the image information under the chassis of the robot to obtain the chassis environment information of the robot, thereby determining the current working environment information of the robot.
[0073] On this basis, the robot control device analyzes and identifies the current working environment characteristics of the robot according to the current working environment information of the robot, so as to determine the specific stuck situation of the robot, such as determining the stuck reason, stuck type and stuck direction of the robot, so as to analyze and obtain the stuck information of the robot. Based on this, the robot control device controls the robot to perform corresponding escape actions according to the actual stuck situation of the robot, so as to control the robot to flexibly escape. In this way, during the working process of the robot, the motion state of the robot is analyzed based on the first sensing data and / or shooting data of the robot, and when the robot is trapped at work, the chassis environment of the robot is analyzed based on the shooting data of the robot, and then combined with the chassis environment characteristics of the robot, the specific stuck situation of the robot is analyzed, and based on the actual stuck situation of the robot, the robot is controlled to perform corresponding escape actions to escape. In this way, combined with the chassis panorama of the robot, the robot is controlled to escape, which improves the flexibility of the robot's escape action, thereby improving the escape efficiency and escape success rate of the robot, and ensuring the reliability of the robot's work.
[0074] The robot comprises a main body and a chassis, and the first camera can be installed in front of the main body of the robot. The front of the main body of the robot is used to indicate the main walking direction of the robot, that is, to indicate the forward direction of the robot.
[0075] On this basis, in the process of the robot control device restoring the chassis working environment of the robot according to the shooting data of the robot, specifically, the robot control device obtains the historical environment image captured by the first camera in front of the main body of the robot during the movement, and analyzes and processes the historical environment images captured by the robot at multiple time points in the historical movement process. For example, the robot control device analyzes and processes the environment image of a certain period of time before the robot is stuck, thereby simulating and restoring the panoramic image of the robot when the robot is stuck, and the panoramic image includes the chassis image of the robot, so as to obtain the chassis environment information of the robot.
[0076] In addition, the robot control device can also obtain the current environment image captured by the first camera when the robot is trapped, and then integrate and process the environmental data of the working environment in which the robot is trapped through the current environment image, and match and compare the integrated and processed environmental data with the historical environment images collected before the robot was trapped, so as to simulate and restore the chassis image of the robot when it was trapped, so as to further ensure the authenticity and credibility of the chassis image.
[0077] Furthermore, in actual application, the robot may be provided with at least one second sensor, which may be a distance measuring sensor, and the second sensor is used to collect second sensing data, i.e., the distance measuring data of the robot. In actual application, the first sensor may include a laser sensor, a radar sensor, etc., which are not specifically limited here.
[0078] On this basis, when the robot control device restores the chassis working environment of the robot based on the shooting data of the first camera, the second sensor data collected by the second sensor can also be used to simulate and restore the chassis image when the robot is trapped. Specifically, the robot control device obtains the second sensor data collected by the second sensor when the robot is trapped, and analyzes and processes the chassis environment characteristics when the robot is trapped based on the second sensor data, and then combines the chassis environment characteristics obtained by the analysis with the shooting data of the robot to simulate and restore the chassis image when the robot is trapped, thereby obtaining more real and reliable chassis environment information.
[0079] Furthermore, in actual application, the robot may further include a second camera, which may be arranged below the chassis of the robot, so as to take a panoramic photo of the area below the chassis of the robot. The second camera may also be arranged at the edge of the chassis of the robot, so as to take a photo of the environment below the chassis of the robot and the surrounding environment of the robot at the same time.
[0080] On this basis, when the robot is in a trapped state, when the robot only includes the second camera, the robot control device can specifically obtain the shooting data of the second camera on the robot chassis, and determine the chassis image of the robot when it is trapped based on the acquired shooting data; or, when the robot includes the first camera and the second camera, the robot control device can simultaneously obtain the shooting data of the first camera and the second camera, and then combine the shooting data of the two cameras to restore the chassis panoramic image and the surrounding panoramic image when the robot is trapped, so as to obtain the robot's environmental information; or, when the robot includes the second camera and the second sensor, the robot control device can simultaneously obtain the shooting data of the second camera and the second sensor data of the second sensor, and then determine the robot panoramic image when the robot is trapped by jointly analyzing the shooting data and the second sensor data; or, when the robot includes the first camera, the second camera and the second sensor at the same time, the robot control device can simultaneously obtain the shooting data of the first camera and the second camera, and obtain the second sensor data of the second sensor, and then determine the robot panoramic image when the robot is trapped by jointly analyzing the shooting data of the two cameras and the second sensor data.
[0081] In actual application, the specific basis for the robot control device to simulate and restore the robot chassis image can be set by those skilled in the art according to the specific structure of the robot, and no specific limitation is made here.
[0082] In addition, in actual application, the number of the second cameras can be one or more. Wherein, when the number of the second cameras is one, the second camera can be a panoramic camera to achieve 360° shooting of the robot chassis environment and the surrounding environment. Further, when the number of the second cameras is multiple, the multiple second cameras can be evenly distributed around the chassis of the robot to achieve shooting of the chassis panorama of the robot and the surrounding environment.
[0083] In actual application, the type, installation location, installation quantity and other information of the second camera can be set by those skilled in the art according to actual conditions, and no specific limitation is made here.
[0084] In the embodiment of the present invention, further, the robot further includes at least one first sensor, and the at least one first sensor is used to collect first sensor data. On this basis, Figure 2 As shown, before the above step 102, the above robot control method may further include the following steps 100 and 101:
[0085] Step 100, determining the position information and running speed of the robot according to the shooting data and / or the first sensor data;
[0086] Step 101: When the position information remains unchanged and the running speed is greater than zero, it is determined that the robot is in a stuck state.
[0087] In this embodiment, the robot may also be provided with at least one first sensor, which may specifically be a motion sensor, and the first sensor is used to collect first sensing data, namely, the motion data of the robot.
[0088] On this basis, before the robot control device restores the current chassis working environment of the robot according to the acquired shooting data to obtain the current working environment information of the robot, the robot control device will also make a real-time judgment on the movement state of the robot based on the first sensor data of at least one first sensor installed on the robot and / or the shooting data of the first camera to determine whether the robot is currently in a free movement state or a stuck state.
[0089] Specifically, during the working process of the robot, the robot control device acquires the first sensing data of at least one first sensor installed on the robot and / or the shooting data of the first camera in real time, and determines the actual position information and running speed of the robot according to the acquired first sensing data and / or shooting data. On this basis, the robot control device analyzes the actual position information and running speed of the robot to make a real-time judgment on the motion state of the robot. Specifically, when the position information of the robot has not changed, but the running speed of the robot is not zero, the robot control device determines that the current action of the robot is trapped, that is, the robot is currently in a stuck state; and when the running speed of the robot is not zero and the position information of the robot has changed, the robot control device determines that the current action of the robot is free, that is, the robot is currently in a free moving state. In this way, the motion state of the robot is judged in real time in combination with the actual position information and running speed of the robot, and when the action of the robot is trapped, it can be timely determined that the robot is in a stuck state, so as to control the robot to perform an escape action, improve the escape efficiency of the robot, and thus ensure the reliability of the robot's work.
[0090] The first sensor may specifically include an odometer, a speed sensor, a SLAM device, an IMU device, and the like.
[0091] On this basis, in the process of the robot control device determining the running speed of the robot based on the first sensor data obtained, the robot control device can specifically determine the actual running speed of the robot through the measurement information fed back by the odometer, speed sensor or IMU device. For example, when the speed value fed back by the odometer or speed sensor is not zero, the robot control device determines that the running speed of the robot is not zero; or, when the angular velocity fed back by the IMU device is not zero, the robot control device determines that the wheels of the robot are rotating, thereby determining that the actual running speed of the robot is not zero.
[0092] Furthermore, in the process of the robot control device determining the position change information of the robot based on the first sensor data obtained, the robot control device can specifically determine the position change information of the robot through the measurement information fed back by the odometer or the SLAM device. For example, when the mileage fed back by the odometer remains unchanged, or when the coordinate value fed back by the SLAM device does not change, the robot control device determines that the position information of the robot has not changed; and when the mileage fed back by the odometer changes, or when the coordinate value fed back by the SLAM device changes, the robot control device determines that the position information of the robot has changed.
[0093] Furthermore, in the process of the robot control device determining the running speed of the robot based on the acquired shooting data, the robot control device can specifically obtain in real time the environmental images captured by the robot at different time points, and then determine the robot's driving distance through the acquired environmental images, and then determine the robot's running speed in combination with the shooting time of the environmental images.
[0094] Furthermore, in the process of determining the position change information of the robot based on the acquired shooting data, the robot control device can specifically obtain the environmental images captured by the robot at different time points in real time, and then determine the difference value between different frames of environmental images by analyzing and comparing the environmental images at different time points. When the difference value is less than or equal to the set threshold, the robot control device determines that the position information of the robot has not changed; and when the difference value is greater than the set threshold, the robot control device determines that the position information of the robot has changed.
[0095] In an embodiment of the present invention, further, Figure 3 As shown, the above step 102 may specifically include the following steps 102a and 102b:
[0096] Step 102a, when the robot is in a stuck state, obtaining first shooting data of the robot in a first time period;
[0097] Step 102b, determining the environment information of the robot according to the first shooting data;
[0098] The first period is before the robot is stuck.
[0099] In this embodiment, during the working process of the robot, the robot control device controls the first camera installed on the robot to take real-time pictures of the robot's working environment. On this basis, when the robot control device determines that the robot's current action is trapped, that is, when the robot is currently in a stuck state, the robot control device will obtain the shooting pictures of the first camera within a period of time before the robot is trapped, that is, obtain the first shooting data collected by the first camera within the first period of time. Further, the robot control device analyzes and processes the first shooting data obtained, so as to simulate the image under the chassis when the robot is trapped according to the shooting images of the robot at multiple time points in the historical movement process, thereby restoring the chassis working environment of the robot and obtaining the working environment information when the robot is trapped. In this way, based on the historical shooting pictures before the robot is trapped, the working scene of the robot when it is trapped is restored, so as to obtain the working environment information when the robot is trapped, thereby ensuring the accuracy and authenticity of the working environment information, thereby ensuring the accuracy of the subsequent control of the robot to perform the escape action, improving the escape efficiency and success rate of the robot, and ensuring the reliability of the robot's work.
[0100] In the embodiment of the present invention, further, the robot further includes at least one second sensor, and the at least one second sensor is used to collect second sensor data. On this basis, Figure 4 As shown, the above step 102 may specifically include the following steps 102c to 102e:
[0101] Step 102c, when the robot is in a stuck state, obtaining first shooting data of the robot in a first time period;
[0102] Step 102d, obtaining second sensing data and / or second shooting data of the robot;
[0103] Step 102e: determining the environment information of the robot according to the first shooting data, the second sensing data and / or the second shooting data.
[0104] In this embodiment, the robot may also be provided with at least one second sensor, which may be a distance measuring sensor, and the second sensor is used to collect second sensor data, i.e., the distance measuring data of the robot. In actual application, the first sensor may include a laser sensor and / or a radar sensor, which is not specifically limited here. On this basis, the sensor data may include laser sensor data and / or radar sensor data.
[0105] Furthermore, during the working process of the robot, the robot control device will control the first camera installed on the robot to capture the working environment of the robot in real time.
[0106] On this basis, when the robot control device determines that the current action of the robot is stuck, that is, when the robot is currently in a stuck state, the robot control device will also obtain the shooting pictures of the first camera within a period of time before the robot is stuck, that is, obtain the first shooting data collected by the first camera in the first period of time. At the same time, the robot control device will also obtain the second sensing data of at least one second sensor and / or the second shooting data collected by the first camera when the robot is stuck.
[0107] Furthermore, the robot control device analyzes and processes the acquired second sensing data and / or second shooting data to integrate and process the environmental data of the working environment in which the robot is located when it is trapped, and matches and compares the integrated environmental data with the first shooting data collected before the robot is trapped, thereby restoring the chassis working environment and the surrounding working environment when the robot is trapped, and obtaining the working environment information when the robot is trapped. In this way, based on the shooting pictures before the robot is trapped and the shooting pictures when the robot is trapped and / or the second sensing data surface, the working scene when the robot is trapped is restored, thereby obtaining the working environment information when the robot is trapped, ensuring the accuracy and authenticity of the working environment information, thereby ensuring the accuracy of the subsequent control of the robot to perform the escape action, improving the robot's escape efficiency and escape success rate, and ensuring the reliability of the robot's work.
[0108] Among them, the above-mentioned first time period can specifically be a time period of 5 seconds, 10 seconds, 15 seconds, 20 seconds and 30 seconds before the robot is trapped. For the specific time range of the above-mentioned first time period, technical personnel in this field can set it according to actual conditions, and no specific limitation is made here.
[0109] Furthermore, in the process where the robot control device analyzes and processes the acquired second sensing data and / or second shooting data to integrate and process the environmental data of the working environment in which the robot is trapped, specifically, the robot control device determines the object information and object distribution under and around the chassis of the robot when the robot is trapped based on the second sensing data and / or the second shooting data. For example, the robot control device determines the position information, size information, height information, contour information, and spacing information of the objects under and around the robot chassis. In addition, the robot control device also determines the contact information between the robot chassis and the objects below, and the contact information between the robot body and the surrounding objects, to determine whether the current robot is in contact with the wall, or whether the robot is currently in a narrow area. In this way, by processing and analyzing the second sensing data and / or the second shooting data when the robot is trapped, the working scene when the robot is trapped can be basically restored.
[0110] On this basis, by matching and comparing the integrated environmental data with the first shot data before the robot was trapped, the integrated environmental data can be supplemented and expanded to further increase the regional scope and authenticity of the restoration of the working scene when the robot was trapped, thereby obtaining enough environmental information to ensure the accuracy of the robot's trapped information, and then ensure the accuracy of the subsequent robot's escape action.
[0111] In an embodiment of the present invention, further, Figure 5 As shown, the above step 104 may specifically include the following steps 104a and 104b:
[0112] Step 104a, determining obstacle information that traps the robot based on environmental information;
[0113] Step 104b, determining the jamming information according to the obstacle information.
[0114] In this embodiment, in the process of the robot control device determining the specific stuck information of the robot based on the environmental information when the robot is trapped, specifically, the robot control device analyzes and processes the peripheral environmental information and chassis environmental information when the robot is trapped to determine the obstacles and related information that hinder the robot's movement, and then determines the specific stuck situation of the robot based on the determined obstacles and related information, so as to analyze the reasons for the robot's stuck, the type of stuck, etc., and thus determine the robot's stuck information. In this way, based on the peripheral environment and the panoramic view of the chassis when the robot is trapped, the obstacle situation when the robot is trapped is determined, and then the actual stuck information of the robot is determined, which ensures the accuracy and authenticity of the determination of the stuck information, thereby ensuring the accuracy of the subsequent control of the robot to perform the escape action, and improving the flexibility and success rate of the robot's escape.
[0115] Among them, in the process of the robot control device determining the obstacle information that hinders the robot's action, the robot control device analyzes and processes the object information and object distribution under and around the chassis of the robot when it is trapped. Specifically, the robot control device analyzes and processes the position information, size information, height information, contour information and spacing information of the objects under and around the robot chassis. Furthermore, the robot control device will also analyze and process the contact information between the robot chassis and the objects below, and the contact information between the robot body and the surrounding objects. By comprehensively analyzing and processing the above information, the robot control device can determine the obstacles that hinder the robot's action and related information, and can also determine whether the current robot is in contact with the wall, and whether the robot is currently in a narrow area. In this way, it is convenient to conduct a comprehensive and accurate analysis of the actual stuck situation of the robot, and further improve the accuracy and authenticity of the determination of the stuck information.
[0116] In an embodiment of the present invention, further, Figure 6 As shown, the above step 104b may specifically include the following step 104b1:
[0117] Step 104b1, determining the movable direction and / or movable distance, trapped position and / or trapped direction of the robot according to the obstacle information.
[0118] In this embodiment, in the process of the robot control device determining the actual stuck information of the robot according to the obstacle information that hinders the robot's movement, the robot control device specifically determines the robot's stuck position and / or stuck direction, and determines the robot's current movable direction and / or movable distance by analyzing the obstacle information that hinders the robot's movement. In this way, the accuracy of determining the specific stuck situation of the robot is guaranteed, thereby ensuring the accuracy and flexibility of the subsequent control of the robot to perform the escape action.
[0119] Furthermore, the movable direction is the movable direction of the robot, and the movable distance may specifically include the movable distance of the robot in each movable direction. In this way, the current movable area of the robot can be determined, thereby further ensuring the accuracy of determining the specific stuck situation of the robot, and ensuring the accuracy and flexibility of the subsequent control of the robot to perform the escape action.
[0120] The obstacle information may include the obstacle's position information, size information, height information, contour information, distance information between the obstacle and other objects, contact information between the obstacle and the robot, etc. The robot control device may analyze and process the obstacle information to determine the robot's trapped position, trapped direction, movable direction, movable distance, and other trapped information.
[0121] Exemplarily, the robot control device may specifically determine the trapped direction and / or trapped position of the robot according to the position information of the obstacle. For example, when there is an obstacle in front of the robot, it is determined that the robot is trapped in moving forward.
[0122] Furthermore, the robot control device can determine the robot's possible moving direction based on the position information, size information, height information, and profile information of the obstacle. For example, if there is an obstacle in front of the robot, and the obstacle is determined to be a wall based on the size information, height information, and profile information of the obstacle, the robot control device determines that the robot cannot move forward. Alternatively, if there is an obstacle in front of the robot and the height of the obstacle is small, the robot control device determines that the robot can move forward.
[0123] Furthermore, the robot control device can determine the movable distance of the robot based on the size information, contour information, distance information between the obstacle and other objects, contact information between the obstacle and the robot, etc. of the obstacle.
[0124] In actual application, the robot control device can also determine the robot's trapped position, trapped direction, movable direction, movable distance and other trapped information by comprehensively analyzing the above-mentioned obstacle information. The technical personnel in this field can set the specific basis for determining the robot's trapped direction, movable direction and movable distance according to actual conditions, and no specific restrictions are made here.
[0125] In addition, in actual application, the robot control device can also assist in determining the running speed of the robot when it performs an escape action based on the height information of the obstacle, so that the robot can successfully escape the obstacle when it overcomes the obstacle at the determined running speed.
[0126] In an embodiment of the present invention, further, Figure 7 As shown, the above step 106 may specifically include the following 106a and 106b:
[0127] Step 106a, determining the movement information of the robot according to the stuck information;
[0128] Step 106b, controlling the robot to move according to the movement information.
[0129] In this embodiment, in the process where the robot control device controls the robot to perform corresponding escape operations to escape according to the specific stuck information when the robot is trapped, specifically, the robot control device analyzes the specific stuck information of the robot to determine the movement information of the robot when escaping. Specifically, the robot control device determines the moving direction and moving distance of the robot when escaping according to the specific stuck information of the robot. On this basis, the robot control device controls the robot to move in the above-mentioned moving direction and moving distance, so as to escape. In this way, based on the specific stuck information such as the trapped position and / or trapped direction, movable direction and / or movable distance when the robot is trapped, the robot's escape action is planned, which improves the flexibility and success rate of the robot's escape, thereby ensuring the reliability of the robot's work.
[0130] The above-mentioned moving direction is related to the trapped position and / or trapped direction of the robot, and the above-mentioned moving distance is related to the movable direction and / or movable distance of the robot.
[0131] Furthermore, according to the different directions in which the robot is trapped, the types of robot jams may include forward jams, backward jams, left turn jams, and right turn jams. On this basis, when the robot control device controls the robot to perform an escape action, the robot's escape action may be adjusted accordingly based on the robot's trapped direction, jam type, movable distance, and other jam information.
[0132] Furthermore, the robot control device can also set and adjust the running speed of the robot when it is escaping according to the height information of the obstacle that traps the robot, so that the robot can successfully escape when it overcomes the obstacle at the determined running speed.
[0133] For example, when the robot is stuck forward or backward, the robot control device can control the robot to perform double-wheel obstacle crossing and / or left and right wheel alternate obstacle crossing. When the robot is double-wheel obstacle crossing, the robot control device can first control the robot to retreat a first distance in the opposite direction of the stuck direction, then increase the robot's running speed to a first speed, and control the robot to speed up and move a second distance in the stuck direction.
[0134] When the robot's left and right wheels alternately cross obstacles, the robot control device can first control the robot's right wheel to remain stationary, and control the robot's left wheel to rotate in the opposite direction of the trapped direction by a first angle, thereby increasing the robot's running speed to a second speed, and controlling the robot's left wheel to speed up and move in the trapped direction. The robot control device then controls the robot's left wheel to remain stationary, and controls the right wheel to rotate in the opposite direction of the trapped direction by a first angle, and then controls the right wheel to speed up and move in the trapped direction. This cycle is repeated, so that the robot's left and right wheels alternately move, thereby achieving left and right wheels alternating to cross obstacles.
[0135] Furthermore, when the robot is stuck while turning left or right, the robot control device may first control the robot to rotate a second angle in the opposite direction of the trapped direction, and then increase the robot's running speed to a third speed, and control the robot to speed up and rotate in the trapped direction.
[0136] Among them, the above-mentioned first distance, second distance, first angle, second angle, first speed, second speed and third speed can specifically be set fixed values. In actual application, the values of the above-mentioned parameters can also be set according to the actual stuck situation of the robot, and no specific restrictions are made here.
[0137] In addition, in the actual application process, a mapping table between escape actions and jam types can be established. After the robot control device determines the robot's jam type according to the robot's specific jam situation, the corresponding escape action can be found through the mapping table, and the robot can be controlled to escape according to the escape action.
[0138] Furthermore, the robot control device can also judge the robot's escape result to determine whether the robot has escaped successfully. For example, in the case that the robot is stuck forward or backward, if the robot's travel distance is greater than the retreat distance, and the robot's pitch angle undergoes a change process from a positive value to a negative value, the robot is judged to have escaped successfully. Among them, when the robot's pitch angle is a positive value, it means that the machine is in an upward tilt state when crossing an obstacle, and when the robot's pitch angle is a negative value, it means that the robot is tilted down after crossing the obstacle until the robot moves to the flat ground and restores the horizontal state. In the case that the robot is stuck when turning left or turning right, if the angle value of the robot's rotation in the direction of being trapped is greater than the first threshold, the robot's pitch angle and roll angle are less than the second threshold, and the robot's wheel speed is within the target range, the robot is judged to have escaped successfully.
[0139] The specific values of the first threshold, the second threshold and the target range can be set according to actual conditions. In addition, the basis for determining whether the robot has escaped successfully can be adjusted by those skilled in the art according to actual conditions, and no specific limitation is made here.
[0140] In one embodiment of the present invention, a robot control device is also provided. Figure 8 As shown, Figure 8 The structure block diagram of the robot control device 700 of the embodiment of the present invention is shown. The robot includes a first camera, and the robot control device 700 may specifically include the following processing unit 702 and control unit 704:
[0141] The processing unit 702 is used to determine the environment information of the robot according to the shooting data of the first camera when the robot is in a stuck state, where the environment information includes the chassis environment information of the robot, and the chassis environment information is the image information under the chassis;
[0142] The processing unit 702 is further used to determine the stuck information of the robot according to the environmental information;
[0143] The control unit 704 is used to control the robot to perform corresponding escape operations according to the jamming information.
[0144] The robot control device 700 provided in the embodiment of the present invention is used to control the robot to perform corresponding escape actions according to the overall view of the robot chassis when the robot is trapped during work, so as to achieve flexible escape of the robot.
[0145] Wherein, the robot is equipped with a first camera.
[0146] Furthermore, in actual application, the robot may be provided with at least one first sensor, which may specifically be a motion sensor, and the first sensor is used to collect first sensing data, namely, the motion data of the robot.
[0147] In actual application, the first sensor may specifically include an odometer, a speed sensor, a SLAM device, an IMU device, etc., which are not specifically limited here.
[0148] In actual application, the above-mentioned robots may specifically be cleaning robots, navigation robots, child companion robots, question-answering robots and other intelligent robots with autonomous movement functions, and no specific restrictions are made here.
[0149] Specifically, in the robot control device 700 provided by the present invention, during the working process of the robot, the processing unit 702 makes a real-time judgment on the motion state of the robot based on the first sensing data of at least one first sensor installed on the robot and / or the shooting data of the first camera, so as to determine whether the robot is currently in a free moving state or a stuck state. Further, during the working process of the robot, the control unit 704 will also control the first camera installed on the robot to shoot the working environment of the robot in real time. On this basis, when the processing unit 702 determines that the current movement of the robot is trapped, that is, when it is determined that the robot is currently in a stuck state, the processing unit 702 obtains the shooting data of the first camera installed on the robot. Further, the processing unit 702 restores the current chassis working environment of the robot based on the acquired shooting data, that is, simulates the image information under the chassis of the robot to obtain the chassis environment information of the robot, thereby determining the current working environment information of the robot.
[0150] On this basis, the processing unit 702 analyzes and identifies the current working environment characteristics of the robot according to the current working environment information of the robot, so as to determine the specific stuck situation of the robot, such as determining the stuck reason, stuck type and stuck direction of the robot, so as to analyze and obtain the stuck information of the robot. Based on this, the control unit 704 controls the robot to perform corresponding escape actions according to the actual stuck situation of the robot, so as to control the robot to flexibly escape. In this way, during the working process of the robot, the motion state of the robot is analyzed based on the first sensing data and / or shooting data of the robot, and when the robot is trapped at work, the chassis environment of the robot is analyzed based on the shooting data of the robot, and then combined with the chassis environment characteristics of the robot, the specific stuck situation of the robot is analyzed, and based on the actual stuck situation of the robot, the robot is controlled to perform corresponding escape actions to escape. In this way, combined with the chassis panorama of the robot, the robot is controlled to escape, the flexibility of the robot's escape action is improved, thereby improving the escape efficiency and escape success rate of the robot, and ensuring the reliability of the robot's work.
[0151] The robot comprises a main body and a chassis, and the first camera can be installed in front of the main body of the robot. The front of the main body of the robot is used to indicate the main walking direction of the robot, that is, to indicate the forward direction of the robot.
[0152] On this basis, in the process of the processing unit 702 restoring the chassis working environment of the robot according to the shooting data of the robot, specifically, the processing unit 702 obtains the historical environment image captured by the first camera in front of the main body of the robot during its movement, and analyzes and processes the historical environment images captured by the robot at multiple time points in the historical movement process. For example, the processing unit 702 analyzes and processes the environment image of a certain period of time before the robot is stuck, thereby simulating and restoring the panoramic image of the robot when the robot is stuck, and the panoramic image includes the chassis image of the robot, so as to obtain the chassis environment information of the robot.
[0153] In addition, the processing unit 702 can also obtain the current environment image captured by the first camera when the robot is trapped, and then integrate and process the environmental data of the working environment in which the robot is located when it is trapped through the current environment image, and match and compare the integrated and processed environmental data with the historical environment images collected before the robot was trapped, so as to simulate and restore the chassis image of the robot when it was trapped, so as to further ensure the authenticity and credibility of the chassis image.
[0154] Furthermore, in actual application, the robot may be provided with at least one second sensor, which may be a distance measuring sensor, and the second sensor is used to collect second sensing data, i.e., the distance measuring data of the robot. In actual application, the first sensor may include a laser sensor, a radar sensor, etc., which are not specifically limited here.
[0155] On this basis, when the processing unit 702 restores the chassis working environment of the robot based on the shooting data of the first camera, the second sensor data collected by the second sensor can also be used to simulate and restore the chassis image when the robot is trapped. Specifically, the processing unit 702 obtains the second sensor data collected by the second sensor when the robot is trapped, and analyzes and processes the chassis environment characteristics when the robot is trapped based on the second sensor data, and then combines the chassis environment characteristics obtained by the analysis with the shooting data of the robot to simulate and restore the chassis image when the robot is trapped, thereby obtaining more real and reliable chassis environment information.
[0156] Furthermore, in actual application, the robot may further include a second camera, which may be arranged below the chassis of the robot, so as to take a panoramic photo of the area below the chassis of the robot. The second camera may also be arranged at the edge of the chassis of the robot, so as to take a photo of the environment below the chassis of the robot and the surrounding environment of the robot at the same time.
[0157] On this basis, when the robot is in a trapped state, if the robot only includes the second camera, the processing unit 702 can specifically obtain the shooting data of the second camera on the chassis of the robot, and determine the chassis image of the robot when it is trapped based on the obtained shooting data; or, if the robot includes the first camera and the second camera, the processing unit 702 can simultaneously obtain the shooting data of the first camera and the second camera, and then combine the shooting data of the two cameras to restore the chassis panoramic image and the surrounding panoramic image when the robot is trapped, so as to obtain the robot's environmental information; or, if the robot includes the second camera and the second sensor, the processing unit 702 can simultaneously obtain the shooting data of the second camera and the second sensor data of the second sensor, and then determine the robot panoramic image when the robot is trapped by jointly analyzing the shooting data and the second sensor data; or, if the robot includes the first camera, the second camera and the second sensor at the same time, the processing unit 702 can simultaneously obtain the shooting data of the first camera and the second camera, and obtain the second sensor data of the second sensor, and then determine the robot panoramic image when the robot is trapped by jointly analyzing the shooting data of the two cameras and the second sensor data.
[0158] In actual application, the specific basis for the processing unit 702 to simulate and restore the robot chassis image can be set by those skilled in the art according to the specific structure of the robot, and no specific limitation is made here.
[0159] In addition, in actual application, the number of the second cameras can be one or more. Wherein, when the number of the second cameras is one, the second camera can be a panoramic camera to achieve 360° shooting of the robot chassis environment and the surrounding environment. Further, when the number of the second cameras is multiple, the multiple second cameras can be evenly distributed around the chassis of the robot to achieve shooting of the chassis panorama of the robot and the surrounding environment.
[0160] In actual application, the type, installation location, installation quantity and other information of the second camera can be set by those skilled in the art according to actual conditions, and no specific limitation is made here.
[0161] In this embodiment, further, the robot also includes at least one first sensor, and the at least one first sensor is used to collect first sensor data. The processing unit 702 is specifically used to: determine the position information and running speed of the robot according to the first sensor data and / or shooting data; when the position information remains unchanged and the running speed is greater than zero, determine that the robot is in a stuck state.
[0162] Furthermore, the processing unit 702 is specifically used to: obtain first shooting data of the robot in a first time period, the first time period being before the robot is in a stuck state; and determine environmental information of the robot according to the first shooting data.
[0163] Furthermore, the robot also includes at least one second sensor, and the at least one second sensor is used to collect second sensor data. The processing unit 702 is specifically used to: obtain first shooting data of the robot in a first time period, and the first time period is before the robot is in a stuck state; obtain second shooting data and / or second sensor data when the robot is in the stuck state; determine the environmental information of the robot based on the first shooting data, the second shooting data and / or the second sensor data; wherein the second sensor data includes at least one of laser sensor data and radar sensor data.
[0164] Furthermore, the processing unit 702 is specifically used to: determine obstacle information that traps the robot based on environmental information; and determine jamming information based on the obstacle information.
[0165] Furthermore, the processing unit 702 is specifically used to determine the trapped position and / or trapped direction, movable direction and / or movable distance of the robot according to the obstacle information.
[0166] Furthermore, the control unit 704 is specifically used to: determine the movement information of the robot based on the trapped information; control the robot to move according to the movement information, wherein the movement information includes a moving direction and a moving distance, the moving direction is associated with the trapped direction and / or the movable direction, and the moving distance is associated with the trapped position and / or the movable distance.
[0167] In one embodiment of the present invention, another robot control device is also provided. Fig. 9 As shown, Fig. 9 A structural block diagram of a robot control device 800 provided in an embodiment of the present invention is shown.
[0168] Wherein, the robot control device 800 includes:
[0169] A memory 802, where programs or instructions are stored;
[0170] Processor 804, when executing the above program or instruction, implements the steps of the robot control method in any of the above embodiments.
[0171] The robot control device 800 provided in this embodiment includes a memory 802 and a processor 804. When the program or instructions in the memory 802 are executed by the processor 804, the steps of the robot control method in any of the above embodiments are implemented. Therefore, the robot control device 800 has all the beneficial effects of the robot control method in any of the above embodiments, which will not be repeated here.
[0172] Specifically, the memory 802 and the processor 804 may be connected via a bus or other means. The processor 804 may include one or more processing units, and the processor 804 may be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other chips.
[0173] In one embodiment of the present invention, a robot is also provided. Fig.10 As shown, Fig.10 The robot 900 includes a main body 902 and a chassis 904 . The main body 902 is provided with a first camera 906 and the robot control device 800 in the above embodiment. The chassis 904 is connected to the main body 902 and is provided with a moving mechanism 908 .
[0174] The robot 900 proposed in the fourth aspect of the present invention includes a main body 902, and the robot control device 800 in the third aspect of the present invention is disposed on the main body 902. Therefore, the robot 900 has all the technical effects of the robot control device 800 in the above embodiment, which will not be repeated here.
[0175] In an embodiment of the present invention, further, Fig.10 As shown, the main body 902 of the robot 900 may be provided with at least one first sensor 910 and at least one second sensor 912. The first sensor 910 is used to collect first sensor data, and the second sensor 912 is used to collect second sensor data.
[0176] The first sensor 910 may be a motion sensor, and the first sensing data may be the motion data of the robot, such as motion speed, motion mileage, acceleration, etc. The second sensor 912 may be a distance sensor, such as a laser sensor and / or a radar sensor, and the second sensing data may be laser sensing data and / or radar sensing data.
[0177] On this basis, during the working process of the robot 900, the robot control device 800 makes a real-time judgment on the motion state of the robot 900 based on the first sensing data of at least one first sensor 910 installed on the robot 900 and / or the shooting data of the first camera 906, so as to determine whether the robot 900 is currently in a free moving state or a stuck state. Further, during the working process of the robot 900, the robot control device 800 will also control the first camera 906 installed on the robot 900 to shoot the working environment of the robot 900 in real time. On this basis, when the robot control device 800 determines that the current movement of the robot 900 is trapped, that is, when the robot 900 is determined to be in a stuck state, the robot control device 800 obtains the shooting data of the first camera 906 installed on the robot 900. Further, the robot control device 800 restores the current chassis working environment of the robot 900 based on the obtained shooting data, thereby obtaining the current working environment information of the robot 900.
[0178] On this basis, the robot control device 800 analyzes and identifies the current working environment characteristics of the robot 900 according to the current working environment information of the robot 900, so as to determine the specific stuck situation of the robot 900, such as determining the stuck reason, stuck type and stuck direction of the robot 900, so as to analyze and obtain the stuck information of the robot 900. Based on this, the robot control device 800 controls the movement of the moving mechanism 908 according to the actual stuck situation of the robot 900, so as to control the robot 900 to perform the corresponding escape action, so as to control the robot 900 to escape flexibly.
[0179] In addition, in actual application, a second camera can be installed on the chassis 904 of the robot 900 to photograph the chassis environment of the robot 900, thereby improving the accuracy of determining the environmental information of the robot 900 and further ensuring the flexibility of the robot 900 to escape from trouble.
[0180] The fifth aspect of the present invention provides another robot, such as Fig.11 As shown, Fig.11 The structure block diagram of the robot 1000 provided by the embodiment of the present invention is shown. The robot 1000 includes a processor 1002 and a memory 1004, and the memory 1004 stores a program or instruction that can be run on the processor 1002. When the program or instruction is executed by the processor 1002, the steps of the robot control method in any embodiment of the first aspect are implemented. Therefore, the robot 1000 proposed in the fifth aspect of the present invention has all the beneficial effects of the robot control method in any embodiment of the first aspect, which will not be repeated here.
[0181] The sixth aspect of the present invention provides a readable storage medium having a program or instruction stored thereon, which implements the steps of the robot control method in any of the above embodiments when the program or instruction is executed by a processor.
[0182] The readable storage medium provided by the embodiment of the present invention can implement the steps of the robot control method in any of the above embodiments when the program or instruction stored therein is executed by the processor. Therefore, the readable storage medium has all the beneficial effects of the robot control method in any of the above embodiments, which will not be described in detail here.
[0183] Specifically, the above-mentioned readable storage medium may include any medium capable of storing or transmitting information. Examples of readable storage media include electronic circuits, semiconductor memory devices, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), flash memory, erasable ROM (EROM), magnetic tape, floppy disk, optical disk, hard disk, optical fiber medium, radio frequency (RF) link, optical data storage device, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0184] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0185] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0186] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0187] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A robot control method, characterized in that: The robot includes a first camera, and the robot control method includes: When the robot is in a stuck state, determining the environment information of the robot according to the shooting data of the first camera, the environment information at least includes chassis environment information of the robot, and the chassis environment information is image information below the chassis; Determine the stuck information of the robot according to the environmental information; The robot is controlled to perform corresponding escape operations according to the stuck information.
2. The robot control method according to claim 1, characterized in that: The robot further includes at least one first sensor, and the at least one first sensor is used to collect first sensor data. Before determining the environmental information of the robot according to the shooting data of the first camera, the robot control method further includes: Determine the running speed and position information of the robot according to the first sensing data and / or the shooting data; When the running speed is greater than zero and the position information remains unchanged, it is determined that the robot is in a stuck state.
3. The robot control method according to claim 1, characterized in that: The determining the environmental information of the robot according to the shooting data of the first camera includes: Acquire first shooting data of the robot in a first time period, where the first time period is before the robot is in a stuck state; The environmental information of the robot is determined according to the first shooting data.
4. The robot control method according to claim 1, characterized in that: The robot further includes at least one second sensor, and the at least one second sensor is used to collect second sensor data. The determining of the environment information of the robot according to the shooting data of the first camera includes: Acquire first shooting data of the robot in a first time period, where the first time period is before the robot is in a stuck state; Acquire the second shooting data and / or the second sensing data when the robot is in a stuck state; Determine environmental information of the robot according to the first photographing data, the second photographing data and / or the second sensing data; The second sensing data includes at least one of laser sensing data and radar sensing data.
5. The robot control method according to any one of claims 1 to 4, characterized in that: The determining the stuck information of the robot according to the environmental information includes: Determine obstacle information that traps the robot according to the environmental information; The stuck information is determined according to the obstacle information.
6. The robot control method according to claim 5, characterized in that: The determining the stuck information according to the obstacle information includes: The trapped position and / or trapped direction, movable direction and / or movable distance of the robot are determined according to the obstacle information.
7. The robot control method according to claim 6, characterized in that: The controlling the robot to perform a corresponding escape operation according to the stuck information includes: Determine movement information of the robot according to the stuck information, the movement information including a movement direction and a movement distance, the movement direction is associated with the stuck direction and / or the movable direction, and the movement distance is associated with the stuck position and / or the movable distance; The robot is controlled to move according to the movement information.
8. A robot control device, characterized in that: The robot includes a first camera, and the robot control device includes: a processing unit, configured to determine, when the robot is in a stuck state, environmental information of the robot according to the shooting data of the first camera, wherein the environmental information at least includes chassis environmental information of the robot, and the chassis environmental information is image information below the chassis; The processing unit is further used to determine the stuck information of the robot according to the environmental information; A control unit is used to control the robot to perform corresponding escape operations according to the jamming information.
9. A robot control device, characterized in that: include: Memory, storing programs or instructions; A processor, wherein when executing the program or instruction, the processor implements the steps of the robot control method according to any one of claims 1 to 7.
10. A robot, characterized in that: include: A main body, on which a first camera and the robot control device as claimed in claim 9 are arranged; A chassis is connected to the main body, and a moving mechanism is arranged on the chassis.
11. The robot according to claim 10, characterized in that: The robot also includes: at least one first sensor, disposed on the main body, the first sensor being used to collect first sensing data; At least one second sensor is disposed on the main body, and the second sensor is used to collect second sensing data.
12. A robot, characterized in that: The robot control method comprises a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the robot control method according to any one of claims 1 to 7 are implemented.
13. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the robot control method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Robot obstacle avoidance method and device and storage medium
CN111427357A
Robot control method
CN111857155A
Robot escape control method and device and sweeping robot
CN112286191A
Intelligent mobile device and control method thereof, electronic device and storage medium
CN114625117A
Autonomous work machine, control device, autonomous work machine control method, control device operation method, and storage medium
US20220137631A1
