Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Example 1:
fig. 1 shows a flow of implementation of the obstacle identification method provided by an embodiment of the present invention, which is applied to a cleaning robot including at least one sensor, and a flow execution subject of the embodiment of the present invention may be a control module, and a process of the embodiment of the present invention is detailed as follows:
in step S101, if the sensor detects an obstacle, the pose of the cleaning robot is acquired, and the obstacle is marked according to the pose and the sensor that detected the obstacle, thereby generating a marked area.
In one embodiment of the invention, the sensor comprises at least one collision sensor, and the cleaning robot further comprises a collision fence.
In one embodiment of the present invention, step S101 includes:
1) if the collision sensor detects the obstacle, the position of the collision sensor which detects the obstacle is acquired, and the first mark shape corresponding to the collision column is acquired.
2) And drawing a first mark area on a pre-stored map according to the position.
The shape corresponding to the first mark region is a first mark shape, and the distance between the first mark region and the position is within a first preset range.
In this embodiment, the cleaning robot includes a collision bar, and the first mark shape corresponding to the collision bar is a shape of the collision bar, which may be square or circular, and if the collision bar is circular, the corresponding first mark shape is circular, and if the collision bar is square, the corresponding first mark shape is square.
In this embodiment, during the movement of the cleaning robot, if an obstacle is detected by a collision sensor, the pose (i.e., the position coordinates and/or the direction angle) of the collision sensor that detects the obstacle and the shape of the collision bar are obtained, a corresponding first mark shape is obtained, and a first mark area is drawn near the position on the pre-stored map, that is, the difference between the point in the first mark area and the position of the collision sensor is within a first preset range. The shape of the first mark region is a first mark shape.
In this embodiment, if all the collision sensors of the cleaning robot detect an obstacle, the positions of the middle points corresponding to all the collision sensors are acquired, and the first mark region is drawn near the positions of the middle points.
Taking a specific application scenario as an example, if the shape of the collision bar is circular, the corresponding first mark shape is circular, the cleaning robot includes two collision sensors, namely a left collision sensor and a right collision sensor, if the left collision sensor detects a collision, namely an obstacle is detected, the position of the left collision sensor is obtained, a first mark area is drawn near the position on a prestored map, the shape of the first mark area is circular, if the left collision sensor and the right collision sensor detect a collision simultaneously, the position of a middle point between the two collision sensors is obtained, and the first mark area is drawn near the position, namely, a distance difference between a point in the first mark area and the position is within a first preset range, and the shape of the first mark area is circular.
In one embodiment of the invention, the sensor comprises an optical sensor.
In one embodiment, step S101 includes:
1) and if the optical sensor detects the obstacle, acquiring the position of the optical sensor which detects the obstacle and the corresponding fourth mark shape.
2) And drawing a fourth mark area on the pre-stored map according to the position and the shape of the fourth mark.
And the distance between the fourth marking area and the position is within a fourth preset range.
In one embodiment of the present invention, the cleaning robot includes a driving wheel, and the sensor includes a wheel abnormality detection sensor.
In this embodiment, the control module is connected with the driving wheel.
In this embodiment, the distance between the fourth mark area and the position is within a fourth preset range, which indicates that the difference between the distances between the point in the fourth mark area and the position is within the fourth preset range.
In this embodiment, when the optical sensor detects an obstacle, the position of the optical sensor that detected the obstacle is acquired, and a fourth mark shape corresponding to the optical sensor is acquired, for example, the fourth mark shape is a circle.
In this embodiment, a fourth mark area is drawn near the position on the pre-stored map, a difference between a point in the fourth mark area and the position is within a fourth preset range, and the shape of the fourth mark area is a fourth mark shape.
In this embodiment, the cliff may be detected by an optical sensor, and the fifth marking area may be determined according to the method for detecting an obstacle by the optical sensor.
In one embodiment of the present invention, the cleaning robot further includes a dust brush, and the sensor further includes a dust brush abnormality detection sensor.
In one embodiment of the present invention, step S101 includes:
1) if the dust generating brush abnormity detection sensor detects that the dust generating brush is abnormal, acquiring a position and a third mark shape corresponding to the abnormal dust generating brush;
2) and drawing a third mark area on the pre-stored map according to the position and the third mark shape.
And the distance between the third marking area and the position is within a third preset range.
In this embodiment, the cleaning robot includes at least one dust brush that cleans dust when rotating, and the dust brush abnormality detection sensor is configured to detect whether the dust brush is abnormal (locked-up), and when the dust brush cleans an obstacle, if the volume of the obstacle exceeds the volume that the dust brush can clean or the dust brush is entangled with a cable, the dust brush may be abnormal (e.g., may not be rotated when being locked), and at this time, the dust brush abnormality detection sensor may accordingly detect that the dust brush is abnormal (e.g., the rotation speed of the dust brush is lower than the normal operating range).
In this embodiment, if the dust brush abnormality detection sensor detects that there is an abnormality in the dust brush, the position (i.e., the position coordinates) of the abnormal dust brush and the third mark shape (e.g., a circle) corresponding to the dust brush abnormality detection sensor are acquired. A third mark area is drawn near the position of the abnormal dusting brush on the map (i.e., the distance from the position of the third mark area is within a third preset range), and the shape of the third mark area is a third mark shape.
In this embodiment, when all the dust-emitting brushes are detected to be abnormal, it is indicated that the volume of the obstacle is large, and the position range corresponding to the entire body of the cleaning robot is marked as the third mark region.
In step S102, a confidence corresponding to the marked region is obtained, a detour region is determined according to the confidence, and the detour region is marked on a pre-stored map. Wherein, the bypassing area is the area where the obstacle is located.
In one embodiment of the invention, the marker region is comprised of several sub-regions;
in one embodiment of the present invention, step S102 includes:
1) and acquiring the confidence corresponding to the sub-regions contained in the marked region.
2) And if the confidence coefficient of the sub-region is greater than the preset threshold value, determining the sub-region with the confidence coefficient greater than the preset threshold value as a bypassing region. And the confidence coefficient is the corresponding overlapping times of the sub-regions.
In the present embodiment, the mark region includes a first mark region, a second mark region, a third mark region, and the like, and the mark region is composed of a plurality of sub-regions.
In this embodiment, the pre-stored map is a grid map, and each sub-area is a grid in the grid map.
In this embodiment, during the operation of the cleaning robot, if no detour region is marked, multiple collisions may occur near the real obstacle, so that collision obstacle marks are left at different positions, that is, multiple mark regions are generated near the obstacle, the mark regions are overlapped, that is, intersected, and the confidence of the sub-region corresponding to the mark region is determined, where the confidence is the number of intersected mark regions corresponding to the sub-region, that is, the number of times that the mark regions are overlapped, for example, the mark region a, the mark region B, and the mark region C are intersected, and the intersected portion of the three includes the sub-region a, that is, the number of times that the sub-region a is overlapped is 3.
In this embodiment, when the confidence of the sub-region is greater than the preset threshold, it indicates that the sub-region has a higher probability of being a region corresponding to the real obstacle, and the sub-region is marked as a detour region, and the detour region is marked on the pre-stored map, and in the subsequent operation process of the cleaning robot, the sub-region is bypassed so as to avoid collision again.
In this embodiment, the cleaning robot determines the confidence of the sub-region through multiple times of collision learning without only one time of collision, and if the confidence is greater than a certain value, the sub-region is determined as an obstacle region, i.e., a detour region, so that the accuracy of obstacle identification is improved.
In one embodiment, if it is detected that the cleaning robot passes through the detour area, the moving mechanism of the cleaning robot is controlled to detour.
In this embodiment, when the cleaning robot is moving again, if it is detected that the cleaning robot passes through the detour area, that is, if it is detected that the position coordinates of the cleaning robot are at the edge of the position range corresponding to the detour area, the moving mechanism of the cleaning robot is controlled to detour, and the cleaning robot avoids the obstacle corresponding to the detour area, thereby preventing collision.
In the embodiment, the cleaning robot marks the obstacle by using the characteristics of different sensors to generate a marked area, determines the bypassing area according to the confidence coefficient of the marked area, and records and avoids the obstacle as accurately as possible, instead of only depending on a single sensor or identifying the obstacle, so that the obstacle avoidance capability of the mobile cleaning robot is improved.
In this example, in the moving process of the cleaning robot, if the obstacle is detected by the sensor, the pose of the cleaning robot is obtained, the obstacle is marked according to the pose and the sensor which detects the obstacle, a marked area is generated, the confidence corresponding to the marked area is obtained, the detour area is determined according to the confidence, namely, the area corresponding to the obstacle is determined, after the detour area is determined, if the cleaning robot is detected to pass through the detour area, the cleaning robot detours, the detour area is avoided, the obstacle is avoided, the detour area is automatically marked, the obstacle area does not need to be determined one by one manually, the obstacle identification accuracy is high, and the labor cost is reduced.
Fig. 2 shows a specific implementation flow of step S101 in fig. 1 according to an embodiment of the present invention, and the process is detailed as follows:
in step S201, if the wheel abnormality detection sensor detects an abnormality of the primary wheel, a position and a second mark shape corresponding to the abnormal primary wheel are acquired.
In the present embodiment, the drive wheel abnormality includes slip and locked rotor.
In the present embodiment, the wheel abnormality detection sensor includes a wheel speed sensor or a current sensor.
In the present embodiment, the driving wheels include left and right wheels of the cleaning robot.
In the present embodiment, if the wheel abnormality detection sensor detects an abnormality of the drive wheel, the position (i.e., the position coordinates) of the abnormal drive wheel and the second mark shape (e.g., a circle) corresponding to the wheel abnormality detection sensor are acquired.
In step S202, a second marker region is drawn on the pre-stored map according to the position and the second marker shape. And the distance between the second marking area and the position is within a second preset range.
In the present embodiment, the shape of the second mark region is a second mark shape.
In this embodiment, a second mark area is drawn near the position of the abnormal driving wheel (i.e. the distance between the second mark area and the position is within a second preset range), and the second mark area is circular.
Taking a specific application scenario as an example, the second mark is circular, and if it is detected that the left wheel of the cleaning robot slips, the position of the left wheel is obtained, and a circular second mark area is drawn near the position of the left wheel, where a distance difference between the second mark area and the position is within a second preset range.
In this embodiment, if all the driving wheels are detected to be abnormal, the position range corresponding to the body of the entire cleaning robot is marked as the second mark region.
In this embodiment, when the wheel abnormality detection sensor detects an abnormality of the drive wheel, the control module marks an obstacle according to the attribute and the position of the wheel abnormality detection sensor, thereby improving the accuracy of the obstacle marking.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example 2:
fig. 3 shows acontrol module 100 according to an embodiment of the invention for carrying out the method steps in the embodiment corresponding to fig. 1, which is applied to a cleaning robot comprising at least one sensor, the control module being connected to each sensor. Thecontrol module 100 includes:
and the markingarea generation sub-module 110 is configured to, if the sensor detects an obstacle, acquire a pose of the cleaning robot, and mark the obstacle according to the pose and the sensor that detected the obstacle, so as to generate a marking area.
And the detourarea determining submodule 120 is configured to obtain a confidence level corresponding to the marked area, determine a detour area according to the confidence level, and mark the detour area on a pre-stored map.
Wherein, the bypassing area is the area where the obstacle is located.
In one embodiment of the invention, the sensor comprises at least one collision sensor, and the cleaning robot further comprises a collision fence.
In one embodiment of the present invention, the first markingarea generation sub-module 110 includes:
and the first processing unit is used for acquiring the position of the collision sensor which detects the obstacle and acquiring the first mark shape corresponding to the collision column if the collision sensor detects the obstacle.
And the first drawing unit is used for drawing a first mark area on a pre-stored map according to the position.
The shape corresponding to the first mark region is a first mark shape, and the distance between the first mark region and the position is within a first preset range.
In one embodiment of the present invention, the cleaning robot includes a driving wheel, and the sensor includes a wheel abnormality detection sensor.
In one embodiment of the invention, the marker region is comprised of several sub-regions.
In one embodiment of the present invention, the bypassarea determination submodule 120 includes:
the confidence coefficient acquisition unit is used for acquiring the confidence coefficient corresponding to the sub-region contained in the marking region;
the bypassing area determining unit is used for determining the sub-area with the confidence coefficient larger than the preset threshold value as a bypassing area if the confidence coefficient of the sub-area is larger than the preset threshold value; and the confidence coefficient is the corresponding overlapping times of the sub-regions.
In one embodiment of the present invention, the cleaning robot further includes a dust brush, and the sensor further includes a dust brush abnormality detection sensor.
In one embodiment of the present invention, the mark region generation sub-module 110 includes:
the third processing unit is used for acquiring the position and the third mark shape corresponding to the abnormal dust generating brush if the dust generating brush abnormality detection sensor detects that the dust generating brush is abnormal;
the third drawing unit is used for drawing a third mark area on a pre-stored map according to the position and the third mark shape;
and the distance between the third marking area and the position is within a third preset range.
As shown in fig. 4, in an embodiment, the marking area generation sub-module 110 specifically includes:
and asecond processing unit 111, configured to, if the wheel abnormality detection sensor detects that the driving wheel is abnormal, obtain a position and a second mark shape corresponding to the abnormal driving wheel.
And asecond drawing unit 112 for drawing a second marker region on the pre-stored map according to the position and the second marker shape. And the distance between the second marking area and the position is within a second preset range.
In one embodiment, thecontrol module 100 further includes other functional modules/units for implementing the method steps in the embodiments of embodiment 1.
Example 3:
an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the embodiments described in embodiment 1, for example, step S101 to step S102 shown in fig. 1. Alternatively, the computer program, when executed by a processor, implements the functions of the respective modules/units in the respective system embodiments as described in embodiment 2, for example, the functions of themodules 110 to 120 shown in fig. 3.
The computer program may be stored in a computer readable storage medium, which when executed by a processor, may implement the steps of the various method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The modules or units in the system of the embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.