Map creation method of mobile robot and mobile robot
Granted 1 Nov 2022 · 1 office action
Current assignee: GUANGZHOU COAYU ROBOT CO., LTD. · originally SHENZHEN JAKI ROBOT TECHNOLOGY CO,.LTD
Law firm: Law firm · Log in to unlock
Attorney: Attorney · Log in to unlock
Inventors: Huang Ding, Zhuobin Zheng, Feifan Qian, Kai Yang · Examiner: Jeff A Burke · AU 3664 · TC 3600
Life of the application
10 dated eventsAbstract
The present disclosure discloses a map creation method of a mobile robot, the mobile robot working indoors, comprising the following steps: S1: obtaining Euler angles of a current point relative to a reference point according to a ceiling image taken from the current point and the reference point; S2: determining whether the roll angle of the Euler angles is lower than a set value, if so, saving the map data of the current point, otherwise, not saving the map data of the current point; S3: returning to step S1 after the mobile robot moves a predetermined distance or for a predetermined time; S4: repeating steps S1 through S3 until the map creation in the working area is complete. The present disclosure also discloses a mobile robot using the above method.
Description
8 parts›CROSS-REFERENCE TO RELATED APPLICATION
This application is continuation of International Application No. PCT/CN2018/073929, filed on Jan. 24, 2018, entitled “MAP CREATION METHOD OF MOBILE ROBOT AND MOBILE ROBOT,” which claims priority to Chinese Patent Application No. 201710887958.0 filed on Sep. 27, 2017, both of which are hereby incorporated by reference in their entireties.
›BACKGROUND
The present disclosure relates to the field of mobile robots, and particularly to a map creation method of an indoor mobile robot and the mobile robot adopting the method.
With the development of mobile robot technology, the existing indoor mobile robots (such as cleaning robots and air purification robots) often have the function of map creation. However, due to accidents (such as child or pet collision) occurred during a mobile robot's working process or uneven working surface and other reasons, the mobile robot may shift or rotate on the working surface, and consequently, its sensors may obtain inaccurate environment information, resulting in errors in the map data created, thus affecting the positioning and navigation of the mobile robot, reducing the working efficiency of the mobile robot and even leading to the mobile robot's inability to work.
Therefore, there is a need to provide a map creation method that can solve the above problems.
›SUMMARY
One of the objects of the present disclosure is to overcome the defects in the background technology and provide a map creation method that reduces errors of the map data, the specific solution being as follows:
A map creation method of a mobile robot, the mobile robot working indoors, comprises the following steps: S1: obtaining Euler angles of a current point relative to a reference point according to ceiling images obtained at the current point and the reference point; S2: determining whether the roll angle θy of the Euler angles is lower than a preset value, if so, saving the map data of the current point, if not, not saving the map data of the current point; S3: returning to step S1 after the mobile robot moves a predetermined distance or for a predetermined time; S4: repeating steps S1 through S3 until the map creation in a working area is complete; wherein, the current point is the current position of the mobile robot, and the reference point is the position where the mobile robot saves the map data.
Further, the step S1 comprises the following sub-steps: S11: obtaining ceiling images by a camera on the mobile robot at the reference point and the current point; S12: calculating a basic matrix F of the camera at the reference point and the current point according to an image matching algorithm; S13: obtaining an eigenmatrix E according to the basic matrix F and a camera internal parameter matrix K; S14: obtaining a rotation matrix R based on eigenmatrix E singular value decomposition; S15: calculating Euler angles of the mobile robot at the current point relative to the reference point based on the rotation matrix R
Preferably, in one embodiment of the present invention, the preset value of the angle range is 5° to 10°.
Preferably, the reference point at which the mobile robot starts to create a map is the position at which the mobile robot starts to work or the position of a charging base.
The second object of the present disclosure is to overcome the defect in the background technology and provide a mobile robot capable of reducing the map data error, the solutions of which are as follows:
Solution 1: a mobile robot adopting the above map creation method, the mobile robot comprising a panoramic camera and a control module, the panoramic camera being used for photographing ceiling images and surrounding environment images, and the control module being used for calculating Euler angles and converting surrounding environment images into map data.
Solution 2: a mobile robot adopting the above map creation method, the mobile robot comprising a camera, a laser radar and a control module, the camera being used for photographing ceiling images, the laser radar being used for obtaining surrounding environment information, and the control module being used for calculating Euler angles and converting surrounding environment information into map data.
Compared with the prior art, the technical solution of the present disclosure effectively determines whether the mobile robot deflects on the working surface, and deletes the map data with errors when the mobile robot deflects, thus improving the map creation accuracy of the mobile robot.
›BRIEF DESCRIPTION OF THE DRAWINGS
In order to more clearly explain the technical solution of the embodiment of the present invention, the following will be a brief introduction of the drawings to be used in the embodiment. It is obvious that the drawings in the following description are some embodiments of the present invention, and for a person having ordinary skill in the art, other drawings can also be obtained based on these drawings without involving inventive skills.
FIG. 1 is a flow chart of a map creation method of a mobile robot of the present invention:
FIG. 2 is a flow chart of obtaining Euler angles of a current point of the mobile robot relative to a reference point in the present invention;
FIG. 3 is a schematic diagram of an indoor environment of the mobile robot of the present invention;
FIG. 4 is a representation of Euler angles of the mobile robot of the present disclosure in a world coordinate system;
FIG. 5 is a module diagram of the mobile robot in a preferred embodiment of the present invention; and
FIG. 6 is a module diagram of the mobile robot in another embodiment of the present disclosure.
›DETAILED DESCRIPTION
A clear and complete description of the technical solution of the present disclosure will be provided in conjunction with the drawings and a specific embodiment. It is clear that the embodiment described here is the only portion of the embodiments of the present invention, not all embodiments. Based on the specific embodiment described in the present invention, all other embodiments obtained by a person having ordinary skill in the art without inventive skills shall fall within the scope of protection as defined by claims of the present invention.
›Embodiment 1 · 1 of 2
The mobile robot in the embodiment is illustrated with a cleaning robot as an example. The mobile robot of the present disclosure can also include an indoor air purification robot or an indoor monitoring robot.
As shown in FIG. 5 , the cleaning robot in this embodiment includes a panoramic camera, a sensor module, a cleaning module, a control module, a communication module, a drive module, and a power module, wherein the arrow direction represents a transmission direction of data or instructions. The panoramic camera is preferably installed on the top of the cleaning robot and inclines to a forward direction of the cleaning robot, which can simultaneously capture a ceiling image and an environmental image in the forward direction, and send relevant images to the control module; the sensor module in this embodiment is used for ground inspection and wall inspection, such as an infrared sensor, an ultrasonic sensor, a Hall sensor, a collision sensor and the like, which are used for inspecting whether the cleaning robot encounters an obstacle or works abnormally; the cleaning module is used to perform cleaning actions, including middle sweeping, side sweeping and fanning; the control module is used to calculate Euler angles according to ceiling images taken by the panoramic camera and to produce map data according to environmental images, and at the same time control the cleaning robot to perform relevant actions according to the relevant information of the sensor module; the communication module is used to receive external commands (remote control or mobile phone) and send the map information and/or working status information of the cleaning robot to a user terminal; the drive module is left and right driving wheels and universal wheels, the left and right driving wheels driving the cleaning robot to move on the working surface under the command of the control module; the power module can be a rechargeable battery, which is used to provide energy for the cleaning robot to work.
FIG. 1 is a flowchart of the map creation method of the cleaning robot in the embodiment of the present invention, which will be described in detail below.
Before starting step S1, the cleaning robot will determine a reference point and create a map at that point. In this embodiment, the position where the cleaning robot starts to work (generally the position of the charging base) is generally considered to be the normal working condition of the cleaning robot (that is, a connection line between the left and right driving wheels is parallel to the working surface), and the panoramic camera takes the ceiling image at the position where the cleaning robot starts to work and sends the ceiling image to the control module, and the surrounding environment pictures taken by the panoramic camera are sent to the control module at the same time; the control module will keep the ceiling picture at the starting position, and at the same time process the surrounding environment pictures to obtain map data and save them.
S1: obtaining Euler angles of the current point relative to the reference point according to the ceiling images taken at the current point and the reference point.
After the cleaning robot works a distance or for a period of time, the panoramic camera will take the ceiling image again and send it to the control module. The control module calculates the Euler angles of the current point relative to the reference point according to the ceiling image taken at the current point and the stored ceiling image taken at the reference point.
As shown in FIG. 2 , the calculation process of the Euler angles of the cleaning robot at the current point relative to the reference point is as follows:
S11: obtaining ceiling images by the camera on the mobile robot at the reference point and the current point.
S12: calculating a basic matrix F of the camera at the reference point and the current point according to an image matching algorithm.
In this embodiment, point matching is used and the basic matrix is calculated by the RANdom SAmple Consensus (RANSAC) algorithm, including: (1) automatically extracting feature point sets of the two images and establishing an initial “matching pair set”; (2) RANSAC algorithm removing false matching: a) calculating the basic matrix F determined by the current sampling, and its consistent point set S(F); b) if the current set of consistent points is larger than an original set, maintaining the current consistent point set S(F) and the corresponding basic matrix F, and deleting the original consistent point set and the corresponding basic matrix; c) terminating the sampling process by an adaptive algorithm to obtain a maximum consistent point set, the matching pairs (inner points) the maximum consistent point set being the correct matching pairs; and (3) re-estimating the basic matrix by the maximum consistent point set (i.e., correct matching pairs).
S13: obtaining an eigenmatrix E according to the basic matrix F and the camera internal parameter matrix K.
The relationship between the eigenmatrix E and the basic matrix F is as follows: E=K T FK, where K is the internal parameter matrix, which is obtained through camera calibration.
S14: obtaining a rotation matrix R based on eigenmatrix E singular value decomposition.
The eigenmatrix E consists of a rotation matrix and a translation vector t. When solving real data, the rotation matrix decomposed by the eigenmatrix is usually not accurate, so singular value decomposition (SVD) is needed to decompose accurate rotation matrix and translation vector from the eigenmatrix E. Let the rotation matrix of the real data be R, decompose R into two orthogonal matrices U and V, D being the singular value of the matrix R, and the formula being R=UDVT.
S15: calculating the Euler angles of the mobile robot at the current point relative to the reference point according to the rotation matrix R.
Set D as a unit array 1 to obtain an accurate rotation matrix R′=UIV T , and set the accurate rotation matrix as follows:
›Embodiment 1 · 2 of 2
FIG. 4 is the coordinate axis representation of the cleaning robot in the world coordinate system. The black triangle direction is the initial motion direction of the cleaning robot, the xy plane is parallel to the working surface (ground), and the z axis is perpendicular to the working surface, where θx is the angle of rotation around the x axis (pitch angle), θy is the angle of rotation around the y axis (roll angle), and θz is the angle of rotation around the z axis (yaw angle).
According to the expression of the rotation matrix, the Euler angles can be deduced by trigonometric functions as follows:
θ x =a tan 2( r 32 ,r 33 )
θ y =a tan 2(− r 31 ,√{square root over ( r 32 2 +r 33 2 )})
θ z =a tan 2( r 21 ,r 11 )
S2: determining whether the roll angle θy of the Euler angles is lower than a preset value, if so, saving the map data of the current point, if not, not saving the map data of the current point.
When θx is not zero, it indicates that the cleaning robot rotates around the x-axis. For example, the cleaning robot may move from the floor to a carpet (due to the thickness of the carpet), but it does not affect the shooting angle of the panoramic camera of the cleaning robot. The panoramic camera obtains complete environmental image information, and the map created according to the environmental image information is accurate. When θy is not zero, it indicates that the cleaning robot rotates around the y-axis, and the panoramic camera deflects. When the deflection angle is higher than a preset value, the environmental image information on the left or right will not be acquired completely, resulting in an inaccurate map created according to the environmental image. The preset value in this embodiment should be lower than 10°, preferably lower than 5°. When the θz is not zero, it indicates that the cleaning robot rotates around the z-axis. The rotation does not affect the shooting angle of the panoramic camera, and then the map data created according to the environmental image information is accurate. When the deflection angle θy of the cleaning robot at the current point relative to the reference point is lower than the preset value (5° to 10°), it is considered that the cleaning robot is still on the working surface. At this time, the current point is taken as a key point, the environmental image obtained is sent to the control module for map creation. In this embodiment, a current point whose deflection angle θy is lower than the preset value can be saved as a reference point. When the deflection angle θy of the cleaning robot at the current point relative to the reference point is higher than the preset value (5° to 10°, it is considered that the cleaning robot has deviated from the working surface. At this time, using the current point as the key point and sending the environmental image to the control module are abandoned.
S3: returning to step S1 after the mobile robot moves a predetermined distance or for a predetermined time.
S4: repeating steps S1 through S3 until the map creation in the working area is complete.
In the step S1, the current point is the current position of the mobile robot, and the reference point is the position where the mobile robot saves the map data.
FIG. 3 is a schematic diagram of the working environment of the cleaning robot in the embodiment, in which steps 1 and 2 are included. The cleaning robot starts to work at point O, obtains the ceiling image of point O through the panoramic camera and saves it, and at the same time, it sends the environmental image obtained at point O to the control module for processing and then obtains the map data and saves it.
When the cleaning robot moves to point A, that is, on the inclined surface of step 1, the Euler angles of point A relative to point O are calculated by the ceiling image at point A and the saved ceiling image at point O, and the Euler angles obtained at point A relative to point O are: θx≠0, θy≠0, θZ≠0. Since the roll angle θy is greater than the preset value (5° to 10°), the environmental image obtained at point A will not be sent to the control module for map data creation. Similarly, when the cleaning robot is located at point D on the inclined surface of step 2, it can also be calculated that the roll angle θy of the Euler angles of point D relative to point O is greater than the preset value (5° to 10°), and the environmental image acquired at point D will not be sent to the control module for map data creation.
When the cleaning robot moves to point B and point E, that is, on the horizontal surface of step 1 or step 2, the Euler angles of point B and point E relative to point O is calculated by the ceiling image at point B and point E and the ceiling image saved at point O, and the Euler angles obtained of point B and point E relative to point O are: θx≠0, θy=0, θZ≠0. Since the roll angle θy is equal to zero and lower than the preset value (5° to 10°), the environmental images acquired at point B and point E will be sent to the control module for map data creation.
When the cleaning robot moves to point C, the Euler angles of point C relative to point O are calculated by calculating the ceiling image at point C and the ceiling image saved at point O, and the obtained Euler angles of point C relative to point O is: θx=0, θy=0, θZ≠0. Since the roll angle θy is equal to zero and lower than the preset value (5° to 10°), the environmental image acquired at point C will be sent to the control Make the module for map data creation.
›Embodiment 2
As shown in FIG. 5 , this embodiment discloses another mobile robot to realize the above-mentioned map creation method. The mobile robot in this embodiment is basically the same as that in Embodiment 1. The difference is that the mobile robot in this embodiment does not have a panorama camera, but implements the panorama camera function in the embodiment through a general camera and a laser radar, where the camera is used for photographing ceiling images, and the laser radar is used for obtaining the surrounding environment information, and the control module is used for calculating the Euler angles and converting the surrounding environment information into map data.
What has been disclosed above are only embodiments of the technical solution of the present invention, and the scope of the present disclosure is not limited thereto. Therefore, equivalent variations according to the claims of the present disclosure are still within the scope of the present disclosure.
›Tables in the description — 1
| R | ′ |
| = | |
| [ | |
| r | |
| | 11 |
| r | |
| | 12 |
| r | |
| | 13 |
| r | |
| | 21 |
| r | |
| | 22 |
| r | |
| | 23 |
| r | |
| | 31 |
| r | |
| | 32 |
| r | |
| | 33 |
| ] |
Claims as granted
19 claimsLog in to read the claims of this application.
Log in to unlockClassifications
2 codes- B25J9/16
- G05D1/02
Claim changes
SoonSee which claims were amended, added or cancelled during examination, with every added and removed word marked.
The published claims of this application are not paired with the granted ones in what we hold.
File wrapper
See the full prosecution history — every USPTO and applicant action on this file, in order.
Log in to unlockDocuments
Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.
Log in to unlockChain of title
See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.
Log in to unlock