CN110909105B - Robot map construction method and system - Google Patents

Robot map construction method and system Download PDF

Info

Publication number
CN110909105B
CN110909105B CN201911167361.4A CN201911167361A CN110909105B CN 110909105 B CN110909105 B CN 110909105B CN 201911167361 A CN201911167361 A CN 201911167361A CN 110909105 B CN110909105 B CN 110909105B
Authority
CN
China
Prior art keywords
generation
map
particle
particles
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911167361.4A
Other languages
Chinese (zh)
Other versions
CN110909105A (en
Inventor
李国飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yogo Robot Co Ltd
Original Assignee
Shanghai Yogo Robot Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yogo Robot Co Ltd filed Critical Shanghai Yogo Robot Co Ltd
Priority to CN201911167361.4A priority Critical patent/CN110909105B/en
Publication of CN110909105A publication Critical patent/CN110909105A/en
Application granted granted Critical
Publication of CN110909105B publication Critical patent/CN110909105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

A construction method and a system of a robot map comprise the following steps: initializing particle pose and map data, collecting robot laser data to obtain a first generation of particles, and accordingly obtaining a first generation of sampled particle map; acquiring weighted particle information in the first generation of particles, sampling the first generation of particles and inheriting a first generation of sampled particle map to obtain a second generation of particles and a second generation of sampled particle map; acquiring weighted particle information in the second-generation particles, sampling the second-generation particles and inheriting a second-generation sampled particle map to obtain a third-generation particle map and a third-generation particle map; emptying the first generation of particles and updating the second generation of particles and the third generation of particles to obtain mapping data; judging whether the map building is finished or not; if yes, generating a complete grid map according to the mapping data; if not, circularly executing the steps until the map building is completed. The invention improves the efficiency and the precision of robot map building.

Description

Robot map construction method and system
Technical Field
The invention relates to the technical field of robot laser scanning image processing, in particular to a robot map construction method and system.
Background
With the continuous development of electronic control and artificial intelligence technology, intelligent robots are widely applied to the fields of intelligent home, industrial manufacturing, electric power, petroleum and petrochemical industry and the like. Intelligent robots of various types are widely used in various scenes of production and life. In the prior art, a robot performs environment sensing operations by using a simultaneous localization and mapping technology, wherein sampling particles are redistributed according to a weight ratio in a resampling stage of map particles, when the number of the particles is large, a large amount of particle information needs to be copied, especially, a map carried by each particle needs to be completely copied from the particles with large values, mapping and localization efficiencies are seriously affected, only a small number of particles need to be used in order to improve mapping speed, and the reduction of the number of the particles adversely affects the mapping and localization accuracy. In the conventional technology, the information carried by each sampled particle needs to be completely copied, and particularly, the copying of the carried grid map takes a lot of time. The larger the number of particles adopted in the map building by Slam (called simultaneous localization and mapping), the more the particles need to be copied in the resampling stage, the more time is consumed for copying a large number of maps, and the real-time performance of map building is seriously influenced. With the increase of the construction environment map, more particles are theoretically needed to achieve a better mapping effect, and resampling of more particles takes more time, which causes that the mapping real-time performance under a large environment is extremely poor and is limited to the performance of hardware, and the mapping effect of the large environment is not ideal.
In summary, the prior art has the technical problems of low mapping efficiency and poor mapping accuracy.
Disclosure of Invention
In view of the technical problems of low mapping efficiency and poor mapping accuracy in the prior art, the invention aims to provide a robot map construction method and system, which solve the technical problems of low mapping efficiency and poor mapping accuracy in the prior art.
In an embodiment of the present invention, a method for constructing a robot map includes: initializing particle pose and map data, collecting robot laser data to obtain a first generation of particles, and accordingly obtaining a first generation of sampled particle map; acquiring weighted particle information in the first generation of particles, sampling the first generation of particles and inheriting a first generation of sampled particle map to obtain a second generation of particles and a second generation of sampled particle map; acquiring weighted particle information in second-generation particles, sampling the second-generation particles and inheriting a second-generation sampled particle map so as to obtain third-generation particles and a third-generation particle map; emptying the first generation of particles and updating the second generation of particles and the third generation of particles to obtain mapping data; judging whether the map building is finished or not; if yes, generating a grid map according to the map building data; if not, circularly executing the steps until the map building is completed.
In an embodiment of the present invention, the step of acquiring and filtering the laser data by the acquisition device to obtain the first-generation particles, and accordingly acquiring the pose data of the first-generation sampled particle map particles includes: the method comprises the steps of obtaining robot laser data through induction, and obtaining particle filtering processing information; processing the robot laser data according to the particle filtering processing information to obtain particle pose data; and initializing and processing the particle pose data into first-generation particles.
In an embodiment of the present invention, the step of obtaining weighted particle information in the first-generation particles, and accordingly sampling the first-generation particles and inheriting the first-generation sampled particle map to obtain the second-generation particles and the second-generation sampled particle map includes: processing the weighted particle information to obtain second-generation resample data; sampling the first generation particles according to the second generation resampling data to obtain second generation particles; inheriting the first generation of sampled particle map according to the second generation of resampling data to obtain a second generation of sampled particle map; and obtaining second-generation particle map maintenance information according to the second-generation particles so as to maintain the second-generation sampled particle map.
In an embodiment of the present invention, the step of obtaining weighted particle information in the second generation of particles, and accordingly sampling the second generation of particles and inheriting the second generation of sampled particle map to obtain the third generation of particles and the third generation of particle map includes: processing the weighted particle information to obtain third generation resample data; sampling second-generation particles according to third-generation resampling data to obtain third-generation particles; inheriting a second-generation sampled particle map according to the third-generation resampling data to obtain a third-generation particle map; and obtaining the maintenance information of the third-generation particle map according to the third-generation particles so as to maintain the third-generation particle map.
In one embodiment of the present invention, the step of emptying the first generation particles and updating the second generation particles and the third generation particles to obtain the mapping data includes: merging the first generation of sampled particle map and the second generation of sampled particle map; emptying the first generation particles; updating the second generation of sampled particle maps into the first generation of sampled particle maps; and updating the third generation particle map into a second generation sampled particle map.
In one embodiment of the present invention, a system for constructing a robot map includes: the laser data processing device is used for initializing the position and the pose of the particles and map data, acquiring the laser data of the robot to obtain first generation particles, and accordingly acquiring a first generation sampled particle map; the second-generation resampling processor is used for acquiring weighted particle information in the first-generation particles, sampling the first-generation particles and inheriting a first-generation sampled particle map to obtain a second-generation particle map and a second-generation sampled particle map, and the second-generation resampling processor is connected with the laser processing device; the third-generation resampling processor is used for acquiring weighted particle information in the second-generation particles, sampling the second-generation particles and inheriting a second-generation sampled particle map so as to obtain third-generation particles and a third-generation particle map; the third-generation resampling processor is connected with the second-generation secondary sampling processor; the updating processor is used for emptying the first generation of particles and updating the second generation of particles and the third generation of particles so as to obtain image building data, and the updating processor is connected with the second generation resampling processor and the third generation resampling processor; the image building judgment processor is used for judging whether the image building is finished or not, and is connected with the updating processor; the grid map processor is used for generating a grid map according to the mapping data when mapping is completed and is connected with the mapping judgment processor; and the updating and expanding processor is used for circularly executing the steps until the map building is finished when the map building is not finished, and is connected with the map building judgment processor.
In one embodiment of the present invention, a laser data processing apparatus includes: the induction filtering device is used for induction obtaining of laser data of the robot and obtaining of particle filtering processing information; the particle pose device is used for processing the laser data of the robot according to the particle filtering processing information to obtain particle pose data and is connected with the induction filtering device; and the primary initialization processor is used for initializing and processing the particle pose data into first-generation particles and is connected with the laser data processing device.
In one embodiment of the present invention, a second generation resampling processor comprises: a second generation weighting processor for processing the weighted particle information to obtain second generation resample data; the second-generation particle processor is used for sampling the first-generation particles according to the second-generation re-sampling data to obtain second-generation particles, and is connected with the first-generation weighting processor; the second-generation map processor is used for inheriting the first-generation sampled particle map according to the second-generation resampling data so as to obtain a second-generation sampled particle map, and the second-generation map processor is connected with the second-generation particle processor; and the second-generation maintenance processor is connected with the second-generation particle processor and the second-generation map processor.
In one embodiment of the present invention, a third-generation resampling processor comprises: a second generation weighting processor for processing the weighted particle information to obtain third generation resample data; the third-generation particle processor is used for sampling second-generation particles according to third-generation resampling data to obtain third-generation particles, and the third-generation particle processor is connected with the second-generation weighting processor; the third generation map processor is used for inheriting a second generation sampled particle map according to third generation resampling data to obtain a third generation particle map, and the third generation map processor is connected with the third generation particle processor; and the third generation maintenance processor is connected with the third generation map processor and the third generation particle processor.
In one embodiment of the present invention, an update processor includes: a merging processor to merge the first generation sampled particle map and the second generation sampled particle map; a clearing processor for clearing the first generation particles; the second generation updating processor is used for updating the second generation sampled particle map into a first generation sampled particle map, and the second generation updating processor is connected with the merging processor; and the third generation updating processor is used for updating the third generation particle map into a second generation sampled particle map, and is connected with the second generation updating processor.
As described above, the object of the present invention is to provide a method and a system for constructing a robot map, so as to overcome the deficiencies of the prior art, in the present invention, the sampled particles and the information carried by the particles do not need to be completely copied, only the adopted particles need to be inherited, and the remaining particles are removed, thereby avoiding the adverse effects of the copying process of the grid map in the prior art, such as occupying a large amount of system running time and memory, and improving the real-time performance of map construction.
Meanwhile, under the condition that the constructed environment map is enlarged, in order to achieve a better mapping effect, more time is occupied for resampling of multi-generation particles, the mapping real-time performance of the robot in a large environment is improved, the limitation of the mapping function by the performance of hardware is reduced, and the mapping effect of the robot is optimized.
In conclusion, the invention provides a robot map construction method and system, and solves the technical problems of low map construction efficiency and poor map construction precision in the prior art.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for constructing a robot map according to the present invention.
Fig. 2 is a schematic diagram illustrating a specific flow of step S1 in fig. 1 according to an embodiment.
Fig. 3 is a flowchart illustrating a specific flow of step S2 in fig. 1 according to an embodiment.
Fig. 4 is a flowchart illustrating a specific flow of step S3 in fig. 1 according to an embodiment.
Fig. 5 is a flowchart illustrating a specific flow of step S4 in fig. 1 according to an embodiment.
Fig. 6 is a schematic diagram showing components of a robot map building system according to the present invention.
Fig. 7 is a schematic diagram showing the connection of specific components of the laser data processing apparatus 1 in fig. 6 in an embodiment.
Fig. 8 is a schematic diagram illustrating specific component connections of the second-generation resampling processor 2 in fig. 6 in an embodiment.
Fig. 9 is a schematic diagram showing the connection of specific components of the third generation resampling processor 3 in fig. 6 in an embodiment.
FIG. 10 is a diagram illustrating the connection of specific components of the update processor 4 of FIG. 6 in one embodiment.
Description of the element reference
1 laser data processing device
2 second generation resampling processor
3 third generation resampling processor
4 update processor
5 construct picture and judge the processor
6 grid map processor
7 updating extended processor
11 inductive filter device
12 laser data processing device
13 initial generation initial processor
21 generation weighting processor
22 second generation particle processor
23 second generation map processor
24-generation maintenance processor
31 second generation weighting processor
32 three generations particle processor
33 three-generation map processor
34 third generation maintenance processor
41 merging processor
42 flush processor
43 second generation updating processor
44 three generation updating processor
Description of step designations
S1-S7 method steps
Method steps S11-S13
S21-S24 method steps
Method steps S31-S34
S41-S44 method steps
Detailed Description
The following description of the embodiments of the present invention is provided for illustrative purposes, and other advantages and effects of the present invention will become apparent to those skilled in the art from the present disclosure.
Referring to fig. 1 to 10, it should be understood that the structures shown in the drawings are only for understanding and reading the disclosure of the present invention, and are not intended to limit the scope of the present invention, which is not essential to the technology, and any modifications, changes of proportion or adjustments of the structures should still fall within the scope of the present invention without affecting the function and the achievable object of the present invention. In addition, the terms "upper", "lower", "left", "right", "middle" and "one" used in the present specification are for clarity of description, and are not intended to limit the scope of the present invention, and the relative relationship between the terms and the terms is not to be construed as a scope of the present invention.
Referring to fig. 1, fig. 1 is a flow chart illustrating steps of a method for constructing a robot map according to the present invention, as shown in fig. 1, a method for constructing a robot map includes S1, initializing pose and map data of particles, collecting laser data of the robot to obtain first generation particles, obtaining a first generation sampled particle map according to the first generation particles, in one embodiment, slam (simultaneous localization and mapping) is a technology of mobile robot positioning and navigation, which relates to the storage and management of grid maps, in one embodiment, the acquisition device 1 may include, but is not limited to, a lidar, a cell camera, a dual (multi) view camera, a depth camera, a millimeter wave radar, an ultrasonic radar, and the like, the laser radar has strong pattern-building directivity and high response speed, and the eye-catching camera can estimate the position, depth data and the like of a space point; s2, obtaining weighted particle information in the first-generation particles, and accordingly sampling the first-generation particles and inheriting the first-generation sampled particle map to obtain a second-generation particle and a second-generation sampled particle map, in an embodiment, in a resampling stage of particle data processing, for example, according to a particle weight, the sampled particles may generate second-generation particles, and a map maintained by the first-generation sampled particles may not need to be copied, and in an embodiment, the first-generation particles may be obtained in an inheritance manner, and the newly generated particles initialize a map maintained by themselves; s3, obtaining weighted particle information in the second generation particles, sampling the second generation particles and inheriting the second generation sampled particle map to obtain third generation particles and a third generation particle map, wherein in one embodiment, when resampling is carried out on the second generation particles, the sampled particles can generate third generation particles, the second generation sampled particle maintained map can be obtained in an inheritance mode without copying, and meanwhile, the self maintained map can be initialized through newly generated particles; s4, emptying the first generation particles and updating the second generation particles and the third generation particles to obtain mapping data; s5, judging whether the map building is finished or not; s6, if yes, generating a grid map according to the map building data; s7, if not, circularly executing the steps until the map building is completed; .
Referring to fig. 2, which is a schematic diagram showing a specific flow step of step S1 in fig. 1 in an embodiment, as shown in fig. 2, the step S1 of acquiring first-generation sampled particle map particle pose data by acquiring and filtering laser data with an acquisition device to obtain first-generation particles includes S11, sensing to acquire robot laser data and acquiring particle filtering processing information, in an embodiment, when the robot is at an unknown position in, for example, an unknown environment, the robot can estimate, for example, a real-time pose of the robot while moving based on its own sensors including, but not limited to, an encoder, an IMU, a laser, a camera, etc. through, for example, slam technology, and then continuously expand and update the map to gradually construct a complete map of the environment; s12, processing the robot laser data according to the particle filter processing information to obtain the particle pose data, in an embodiment, the initialized particles may be the first generation, in this embodiment, the particle filter laser slam may initialize, for example, a given number of particles and information for maintenance thereof, etc. according to the set number of particles in the initialization stage. The key information maintained by each particle may be, for example, the map constructed and its pose in the map. In this embodiment, the particle pose may be initialized to, for example, (0,0,0), etc., and each cell of the map is initialized to, for example, an unknown state. The initially generated particles may be, for example, first generation particles; s13, initializing particle pose data as first generation particles, in one embodiment, the core idea of the particle filter algorithm is to approximate an integration operation by summation using, for example, a weighted sum of a series of random samples to approximate a posterior probability density function. In one embodiment, the slam of particle filtering approximates the posterior distribution of the robot pose using a large number of particles, each particle representing, for example, a sample, each particle carrying, for example, an environmental map, and in one embodiment, a removable storage medium readable by, for example, particle data, and in one embodiment, a portable storage medium is installed on a robot-owned processing component, such as a microprocessor, and has a map construction program stored thereon, which executes, with the map pose processor 12, a construction method for implementing the robot map, and in this embodiment, all or part of the steps for implementing the method embodiments described above can be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer-readable portable storage medium. When executed, the program performs steps comprising the method embodiments described above; the map portable storage medium may include, but is not limited to, various media that can store program codes, such as ROM, RAM, magnetic or optical disk.
Referring to fig. 3, which is a schematic view illustrating a specific flow step of step S2 in fig. 1 in an embodiment, as shown in fig. 3, step S2 of obtaining weighted particle information in first-generation particles, sampling the first-generation particles and inheriting the first-generation sampled particle map to obtain second-generation particles and a second-generation sampled particle map includes S21, processing the weighted particle information to obtain second-generation resample data; s22, sampling the first-generation particles according to the second-generation resampling data to obtain second-generation particles, in an embodiment, in a resampling stage, the laser slam based on, for example, particle filtering redistributes the sampled particles according to, for example, a weight ratio, and a probability that a particle with a larger weight is sampled is larger; s23, inheriting the first generation sampled particle map according to the second generation resampled data to obtain a second generation sampled particle map, in one embodiment, the duplication of the particle map is reduced under the condition that the number of used particles is not changed, and the optimization of the management of the particle map is a key technology for improving the mapping efficiency and precision; and S24, obtaining second-generation particle map maintenance information according to the second-generation particles so as to maintain the second-generation sampled particle map.
Referring to fig. 4, which is a schematic diagram illustrating a specific flow step of step S3 in fig. 1 in an embodiment, as shown in fig. 4, step S3 of obtaining weighted particle information in second-generation particles, sampling the second-generation particles and inheriting a second-generation sampled particle map to obtain third-generation particles and a third-generation particle map includes step S31 of processing the weighted particle information to obtain third-generation resampled data, and in an embodiment, after the third-generation particles are completely generated, merging a first-generation particle map onto a second-generation particle maintained map inheriting the second-generation particle map, and emptying all information maintained by the first-generation particles; s32, sampling the second generation particles according to the third generation resampling data to obtain third generation particles, and S33, inheriting the second generation sampled particle map according to the third generation resampling data to obtain a third generation particle map; s34, obtaining the maintenance information of the third generation particle map according to the third generation particles, and accordingly maintaining the third generation particle map; in one embodiment, the second-generation particles are updated to, for example, first-generation particles, and the third-generation particles are updated to second-generation particles, in this embodiment, after the third-generation particles are completely generated, the maintained particle set is equal to three generations, that is, the particle set includes particles generated in three different sampling stages, a map maintained by the first-generation particles is merged onto a map maintained by the second-generation particles inheriting the map, and information maintained by the first-generation particles is cleared, and the non-sampled particle set is not maintained any more, and information thereof is cleared directly, in one embodiment, the particle set maintained by the present invention includes three generations at most, that is, the particle set includes particles generated in three different sampling stages at most, so that occupation of the memory is reduced, in one embodiment, the update processor 32 may include a micro random access memory (abbreviated as RAM), and may further include a non-volatile memory (RAM), such as at least one portable disk storage. The map merge processor 32 and the update processor 43 can be, for example, general-purpose processors including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
Referring to fig. 5, which is a schematic diagram illustrating a specific flow step of step S4 in fig. 1 in an embodiment, as shown in fig. 5, the step S4 of processing the map data of multiple stages by the map processor to generate the grid map includes, S41, merging the first-generation sampled particle map and the second-generation sampled particle map; s42, emptying the first generation particles; s43, updating the second generation sampled particle map into the first generation sampled particle map, S44, updating the third generation particle map into the second generation sampled particle map, in an embodiment, as the map is continuously updated and expanded, the resampling is continuously performed, and new particles are continuously generated. The maintained particle set contains three generations at most, thereby reducing the occupation of the memory. In this embodiment, after the resampling of the slam is completed, the newly generated map maintained by the particles is continuously updated along with the continuous input of the laser data. The maps maintained by the rest of the particle sets are not inserted with new laser data and are not updated.
Referring to fig. 6, which is a schematic diagram showing components of a robot map construction system of the present invention, as shown in fig. 6, a robot map construction system includes a laser data processing device 1, a second-generation resampling processor 2, a third-generation resampling processor 3, an updating processor 4, a mapping judgment processor 5, a grid map processor 6 and an updating expansion processor 7, the laser data processing device 1 is used to initialize a particle pose and map data, collect robot laser data to obtain a first-generation particle, and obtain a first-generation sampled particle map, in one embodiment, a slice (simultaneous localization and mapping) is called as a simultaneous localization and mapping, which is a mobile robot localization and navigation technology, and relates to grid-based storage and management, in one embodiment, the laser processing device 1 may use, for example, a laser radar, a unit camera, and storage and management, The system comprises a double (multi) view camera, a depth camera, a millimeter wave radar, an ultrasonic radar and the like, wherein the drawing establishing directivity of the laser radar is strong, the response speed is high, and the eye-catching camera can estimate the position of a space point, depth data and the like; the second-generation resampling processor 2 is used for acquiring weighted particle information in the first-generation particles, sampling the first-generation particles and inheriting a first-generation sampled particle map to obtain a second-generation particle map and a second-generation sampled particle map, and the second-generation resampling processor 2 is connected with the laser processing device 1, in an embodiment, in a resampling stage of particle data processing, for example, according to particle weight values, the second-generation particles can be generated from the sampled particles, the map maintained by the first-generation sampled particles does not need to be copied, and in an embodiment, the second-generation resampling processor can acquire the weighted particle information in an inheriting manner, and meanwhile, the newly generated particles initialize the map maintained by the second-generation particles; a third generation resampling processor 3 for obtaining weighted particle information in the second generation particles, sampling the second generation particles and inheriting the second generation sampled particle map to obtain third generation particles and a third generation particle map; a third generation resampling processor 3 connected with the second generation resampling processor 2, an updating processor 4 for emptying the first generation particles and updating the second generation particles and the third generation particles, thereby obtaining mapping data, the updating processor 4 connected with the second generation resampling processor 2 and the third generation resampling processor 3, a mapping judgment processor 5 for judging whether mapping is completed, a mapping judgment processor 5 connected with the updating processor 4, a grid map processor 6 for generating a grid map according to the mapping data when mapping is completed, a grid map processing unit 6 connected with the mapping judgment processor 5, an updating expansion processor 7 for circularly executing the above steps until mapping is completed when mapping is not completed, the updating expansion processor 7 connected with the mapping judgment processor 5, in one embodiment, when resampling is performed on the second generation particles, the sampled particles can generate third generation particles, the second generation of maps maintained by the sampled particles can be acquired without copying, for example, in an inheritance manner, and meanwhile, the maps maintained by the second generation of maps can be initialized by newly generated particles.
Referring to fig. 7, which is a schematic diagram illustrating connection of specific components of the laser data processing apparatus 1 in fig. 6 in an embodiment, as shown in fig. 7, the collecting apparatus 1 includes an inductive filtering apparatus 11, a laser data processing apparatus 12, and an initial generation initial processor 13, where the inductive filtering apparatus 11 is configured to inductively obtain laser data of the robot and obtain particle filtering processing information; in one embodiment, when the robot is at an unknown position in an unknown environment, for example, the robot can estimate, for example, a real-time pose of the robot while moving based on a sensor (e.g., (encoder, IMU, laser, camera, etc.) carried by the robot through, for example, slam technology, and then continuously expand and update a map to gradually construct a complete map of the environment; the laser data processing device 12 is configured to process the robot laser data according to the particle filter processing information to obtain particle pose data, and the laser data processing device 12 is connected to the inductive filter device 11, in an embodiment, the initialized particles may be a first generation, and in this embodiment, the particle filter laser slam may initialize, for example, a given number of particles and information for maintenance thereof, and the like, according to the set number of particles in an initialization stage. The key information maintained by each particle may be, for example, the map constructed and its pose in the map. In this embodiment, the particle pose may be initialized to, for example, (0,0,0), etc., and each cell of the map is initialized to, for example, an unknown state. The initially generated particles may be, for example, first generation particles; a primary initialization processor 13 for initializing the particle pose data as a first generation particle, the primary initialization processor 13 being connected to the laser data processing device 12, and in an embodiment the core idea of the particle filter algorithm is to approximate the integration operation by summation using, for example, a weighted sum of a series of random samples to approximate the posterior probability density function. In one embodiment, the slam of particle filtering uses a large number of particles to approximate the posterior distribution of the robot pose, each particle representing, for example, a sample, and each particle carrying, for example, an environment map, and in one embodiment, a removable storage medium readable by, for example, particle data, and in one embodiment, a portable storage medium is installed on a processing component of the robot, such as a microprocessor, and a map building program is stored thereon, and in this embodiment, all or part of the steps for implementing the above method embodiments can be performed by hardware associated with a computer program. The aforementioned computer program may be stored in a computer-readable portable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned map portable storage media may include, but are not limited to: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Referring to fig. 8, which is a schematic diagram illustrating the connection of specific components of the second-generation resampling processor 2 in fig. 6 in an embodiment, as shown in fig. 8, the second-generation resampling processor 2 includes a first-generation weighting processor 21, a second-generation particle processor 22, a second-generation map processor 23, a second-generation maintenance processor 24, and the first-generation weighting processor 21, which is configured to process weighted particle information to obtain second-generation resampling data; a second-generation particle processor 22, configured to sample the first-generation particles according to the second-generation resampling data to obtain second-generation particles, where the second-generation particle processor 22 is connected to the first-generation weighting processor 21, and in an embodiment, in a resampling stage based on, for example, a particle filter laser slam, sample particles are redistributed according to, for example, a weight ratio, and a probability that a particle with a larger weight is sampled is larger; the second-generation map processor 23 is configured to inherit the first-generation sampled particle map according to the second-generation resampling data to obtain a second-generation sampled particle map, and the second-generation map processor 23 is connected to the second-generation particle processor 22, in an embodiment, the duplication of the particle map is reduced under the condition that the number of used particles is not changed, and the management of the optimized particle map is a key technology for improving the mapping efficiency and precision, and in an embodiment, the duplication reduction of the particle map can improve the speed and effect of mapping, for example, the particle filter laser slam; the second generation maintenance processor 24 acquires second generation particle map maintenance information according to the second generation particles so as to maintain the second generation sampled particle map, and the second generation maintenance processor 24 is connected with the second generation particle processor 22 and the second generation map processor 23.
Referring to fig. 9, which is a schematic diagram showing the connection of specific components of the third-generation resampling processor 3 in fig. 6 in an embodiment, as shown in fig. 9, the third-generation resampling processor 3 includes a second-generation weighting processor 31, a third-generation particle processor 32, a third-generation map processor 33 and a third-generation maintenance processor 34, the second-generation weighting processor 31 is configured to process weighted particle information to obtain third-generation resample data, and in an embodiment, after the third-generation particles are completely generated, a map of the first-generation particles is merged into a map maintained by the second-generation particles that inherits the map of the third-generation particles, and all information maintained by the first-generation particles is cleared; a third-generation particle processor 32 for sampling the second-generation particles according to the third-generation resampling data to obtain third-generation particles, the third-generation particle processor 32 is connected with the second-generation weighting processor 31, a third-generation map processor 33 for inheriting the second-generation sampled particle map according to the third-generation resampling data to obtain a third-generation particle map, the third-generation map processor 33 is connected with the third-generation particle processor 32, a third-generation maintenance processor 34 for obtaining third-generation particle map maintenance information according to the third-generation particles to maintain the third-generation particle map, the third-generation maintenance processor 34 is connected with the third-generation map processor 32 and the third-generation particle processor 33, in one embodiment, the second-generation particles are updated to be the first-generation particles, the third-generation particles are updated to be the second-generation particles, in this embodiment, after the third-generation particles are completely generated, the maintained particle set is equal to three, that is, the particle set includes particles generated in three different sampling stages, a map maintained by a first-generation particle is merged to a map maintained by a second-generation particle that inherits the map of the particle set, and information maintained by the first-generation particle is cleared, and the non-sampled particle set is not maintained any more, and information of the non-sampled particle set is cleared directly. The processor may be, for example, a general-purpose processor, and may include, but is not limited to, a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
Referring to fig. 10, which is a schematic diagram showing the connection of specific components of the update processor 4 in fig. 6 in an embodiment, as shown in fig. 10, the map creation processor 4 includes a merging processor 41, a clearing processor 42, a second generation update processor 43, a third generation update processor 44, and the merging processor 41 is used to merge the first generation sampled particle map and the second generation sampled particle map; a purge processor 42 for purging the first generation particles; a second generation updating processor 43 for updating the second generation sampled particle map into a first generation sampled particle map, the second generation updating processor 43 being connected to the merging processor 41; a third generation update processor 44 for updating the third generation particle map into a second generation sampled particle map, wherein the third generation update processor 44 is connected to the second generation update processor 43, and in one embodiment, new particles are continuously generated as the map is continuously updated and expanded and continuously resampled. The maintained particle set contains at most three generations, thereby reducing the occupation of the memory. In this embodiment, after the resampling of the slam is completed, the newly generated map maintained by the particles is continuously updated along with the continuous input of the laser data. The maps maintained by the rest of the particle sets are not inserted with new laser data and are not updated.
In summary, the object of the present invention is to provide a method and a system for constructing a robot map, so as to overcome the defects of the prior art, in the present invention, the sampled particles and the information carried by the sampled particles do not need to be completely copied, and only the sampled particle map needs to be inherited, and the remaining particles are removed, thereby avoiding adverse effects such as a large amount of system running time and memory occupied by the copying process of the grid map in the prior art, and improving the real-time performance of map construction.
Meanwhile, under the condition that the constructed environment map is enlarged, in order to achieve a better mapping effect, more time is occupied for resampling of multi-generation particles, the mapping real-time performance of the robot in a large environment is improved, the limitation of the mapping function by the performance of hardware is reduced, and the mapping effect of the robot is optimized.
In conclusion, the invention provides a robot map construction method and system, which solve the technical problems of low map construction efficiency and poor map construction precision in the prior art, and have high commercial value and high practicability.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Those skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which may be made by those skilled in the art without departing from the spirit and scope of the present invention as defined in the appended claims.

Claims (10)

1. A robot map construction method is characterized by comprising the following steps:
step S1: initializing particle pose and map data, collecting robot laser data to obtain a first generation of particles, and accordingly obtaining a first generation of sampled particle map;
step S2: acquiring weighted particle information in the first generation particles, sampling the first generation particles and inheriting a first generation sampled particle map so as to obtain a second generation particle map and a second generation sampled particle map;
step S3: acquiring weighted particle information in the second-generation particles, sampling the second-generation particles and inheriting a second-generation sampled particle map so as to obtain third-generation particles and a third-generation particle map;
step S4: emptying the first generation particles and updating the second generation particles and the third generation particles so as to obtain mapping data; the step S4 includes: s41, merging the first-generation sampled particle map and the second-generation sampled particle map, S42, emptying the first-generation particles, S43, updating the second-generation sampled particle map into the first-generation sampled particle map, and S44, updating the third-generation particle map into the second-generation sampled particle map;
step S5: judging whether the map building is finished or not;
step S6: if yes, generating a grid map according to the mapping data;
step S7: if not, the steps S1-S4 are executed in a loop until the map building is completed.
2. The robot map building method according to claim 1, wherein the step S1 includes:
the method comprises the steps of obtaining robot laser data through induction and obtaining particle filtering processing information;
processing the robot laser data according to the particle filtering processing information to obtain the particle pose data;
and initializing and processing the particle pose data into the first generation particles.
3. The method for constructing a robot map according to claim 1, wherein the step of obtaining weighted particle information in the first-generation particles, so as to sample the first-generation particles and inherit the first-generation sampled particle map, so as to obtain a second-generation particle and a second-generation sampled particle map, comprises:
processing the weighted particle information in the first generation particles to obtain second generation resample data;
sampling the first generation particles according to the second generation resampling data pair to obtain the second generation particles;
inheriting the first generation sampled particle map according to the second generation resample data to obtain a second generation sampled particle map;
and obtaining second-generation particle map maintenance information according to the second-generation particles so as to maintain the second-generation sampled particle map.
4. The method for constructing a robot map according to claim 1, wherein the step of obtaining weighted particle information in the second-generation particles, so as to sample the second-generation particles and inherit the second-generation sampled particle map, so as to obtain third-generation particles and a third-generation particle map comprises:
processing the weighted particle information in the second generation particles to obtain third generation resample data;
sampling the second-generation particles according to the third-generation resampling data pair to obtain third-generation particles;
inheriting the second-generation sampled particle map according to third-generation resampling data to obtain a third-generation particle map;
and obtaining third-generation particle map maintenance information according to the third-generation particles so as to maintain the third-generation particle map.
5. The method for constructing a robot map according to claim 1, wherein the step of emptying the first generation particles and updating the second generation particles and the third generation particles to obtain mapping data comprises:
merging the first generation sampled particle map and the second generation sampled particle map;
emptying the first generation particles;
updating the second generation sampled particle map into a first generation sampled particle map;
and updating the third-generation particle map into a second-generation sampled particle map.
6. A construction system of a robot map, characterized by comprising:
the laser data processing apparatus is configured to execute step S1: initializing particle pose and map data, and collecting robot laser data to obtain the first generation
Particles to obtain a first generation sampled particle map;
a second generation resampling processor, configured to perform step S2: acquiring weighted particle information in the first-generation particles, sampling the first-generation particles and inheriting a first-generation sampled particle map to obtain a second-generation particle map and a second-generation sampled particle map; a third generation resampling processor, configured to execute step S3: acquiring weighted particle information in the second-generation particles, and accordingly sampling the second-generation particles and inheriting a second-generation sampled particle map to obtain a third-generation particle map and a third-generation particle map;
an update processor for executing step S4: emptying the first generation particles and updating the second generation particles and the third generation particles so as to obtain mapping data; the step S4 includes S41, merging the first generation sampled particle map and the second generation sampled particle map, S42, emptying the first generation particles, S43, updating the second generation sampled particle map to the first generation sampled particle map, and S44, updating the third generation particle map to the second generation sampled particle map; the update processor includes: a merging processor for executing step S41; a clearing processor for executing the step S42; a second generation update processor for executing step S43; a third generation update processor for executing step S44;
the image building judgment processor is used for judging whether the image building is finished or not;
the grid map processor is used for generating a grid map according to the mapping data when mapping is finished;
and updating the expansion processor, wherein the expansion processor is used for circularly executing the steps S1-S4 until the map building is completed when the map building is not completed.
7. The robot map building system according to claim 6, wherein the laser data processing device includes:
the induction filtering device is used for induction acquisition of robot laser data and acquisition of particle filtering processing information;
the particle pose device is used for processing the robot laser data according to the particle filter processing information to obtain the particle pose data;
and the primary generation initial processor is used for initializing and processing the particle pose data into the first generation particles.
8. The robotic map building system of claim 6, wherein the second generation resampling processor comprises:
a generation weighting processor for processing the weighted particle information in the first generation particles to obtain second generation resample data;
a second-generation particle processor to sample the first-generation particles according to the second-generation resample data pairs to obtain the second-generation particles;
a second generation map processor for inheriting the first generation sampled particle map according to the second generation resampled data to obtain a second generation sampled particle map;
and the second generation maintenance processor acquires second generation particle map maintenance information according to the second generation particles so as to maintain the second generation sampled particle map.
9. The robot map building system according to claim 6, wherein the third generation resampling processor comprises:
a second generation weighting processor for processing weighted particle information in the second generation particles to obtain third generation resample data;
a third-generation particle processor for sampling the second-generation particles according to the third-generation resample data pairs to obtain the third-generation particles;
the third-generation map processor is used for inheriting the second-generation sampled particle map according to the third-generation resampling data so as to obtain a third-generation particle map;
and the third-generation maintenance processor acquires third-generation particle map maintenance information according to the third-generation particles so as to maintain the third-generation particle map.
10. The robot map building system according to claim 6, wherein the update processor includes: a merging processor to merge the first generation sampled particle map and the second generation sampled particle map;
a purge processor for purging the first generation of particles;
a second generation update processor to update the second generation sampled particle map to a first generation sampled particle map;
and the third generation updating processor is used for updating the third generation particle map into a second generation sampled particle map.
CN201911167361.4A 2019-11-25 2019-11-25 Robot map construction method and system Active CN110909105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911167361.4A CN110909105B (en) 2019-11-25 2019-11-25 Robot map construction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911167361.4A CN110909105B (en) 2019-11-25 2019-11-25 Robot map construction method and system

Publications (2)

Publication Number Publication Date
CN110909105A CN110909105A (en) 2020-03-24
CN110909105B true CN110909105B (en) 2022-08-19

Family

ID=69819434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911167361.4A Active CN110909105B (en) 2019-11-25 2019-11-25 Robot map construction method and system

Country Status (1)

Country Link
CN (1) CN110909105B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112288863B (en) * 2020-12-24 2021-03-30 之江实验室 Map construction method in robot synchronous positioning and composition navigation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011069023A2 (en) * 2009-12-02 2011-06-09 Qualcomm Incorporated Fast subspace projection of descriptor patches for image recognition
CN103631264A (en) * 2013-12-04 2014-03-12 苏州大学张家港工业技术研究院 Method and device for simultaneous localization and mapping
CN107246873A (en) * 2017-07-03 2017-10-13 哈尔滨工程大学 A kind of method of the mobile robot simultaneous localization and mapping based on improved particle filter
CN107831765A (en) * 2017-10-23 2018-03-23 广州视源电子科技股份有限公司 Localization method, device, equipment and storage medium
CN107991683A (en) * 2017-11-08 2018-05-04 华中科技大学 A kind of robot autonomous localization method based on laser radar
CN109470233A (en) * 2018-09-13 2019-03-15 北京米文动力科技有限公司 A kind of localization method and equipment
CN109798896A (en) * 2019-01-21 2019-05-24 东南大学 A kind of positioning of Indoor Robot with build drawing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3078935A1 (en) * 2015-04-10 2016-10-12 The European Atomic Energy Community (EURATOM), represented by the European Commission Method and device for real-time mapping and localization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011069023A2 (en) * 2009-12-02 2011-06-09 Qualcomm Incorporated Fast subspace projection of descriptor patches for image recognition
CN103631264A (en) * 2013-12-04 2014-03-12 苏州大学张家港工业技术研究院 Method and device for simultaneous localization and mapping
CN107246873A (en) * 2017-07-03 2017-10-13 哈尔滨工程大学 A kind of method of the mobile robot simultaneous localization and mapping based on improved particle filter
CN107831765A (en) * 2017-10-23 2018-03-23 广州视源电子科技股份有限公司 Localization method, device, equipment and storage medium
CN107991683A (en) * 2017-11-08 2018-05-04 华中科技大学 A kind of robot autonomous localization method based on laser radar
CN109470233A (en) * 2018-09-13 2019-03-15 北京米文动力科技有限公司 A kind of localization method and equipment
CN109798896A (en) * 2019-01-21 2019-05-24 东南大学 A kind of positioning of Indoor Robot with build drawing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于JSD自适应粒子滤波的移动机器人定位算法;刘红林 等;《安徽工程大学学报》;20190815;第34卷(第04期);56-62 *
基于区域粒子群优化和部分高斯重采样的SLAM方法;王田橙 等;《计算机工程》;20171115;第43卷(第11期);310-316 *

Also Published As

Publication number Publication date
CN110909105A (en) 2020-03-24

Similar Documents

Publication Publication Date Title
Czerniawski et al. 6D DBSCAN-based segmentation of building point clouds for planar object classification
US7443393B2 (en) Method, system, and program product for re-meshing of a three-dimensional input model using progressive implicit approximating levels
KR102580012B1 (en) System and method for generating multi-material mesh from FILL-FRACTION VOXEL DATA
US20110098983A1 (en) System and method for producing editable three-dimensional models
CN110909105B (en) Robot map construction method and system
CN106462905A (en) System, method and apparatuses for identifying load volatility of a power customer and a tangible computer readable medium
CN109388843B (en) Visualization system and method of truss antenna based on VTK (virtual terminal K), and terminal
Liu et al. An edge-sensitive simplification method for scanned point clouds
Chang et al. Candidate-based matching of 3-D point clouds with axially switching pose estimation
Galanakis et al. SVD-based point cloud 3D stone by stone segmentation for cultural heritage structural analysis–The case of the Apollo Temple at Delphi
CN115619900A (en) Point cloud map topological structure extraction method based on distance map and probability road map
Xiang et al. Integrating Inverse Photogrammetry and a Deep Learning–Based Point Cloud Segmentation Approach for Automated Generation of BIM Models
CN115540852A (en) Electronic grid map construction method and device, electronic equipment and storage medium
CN113301673B (en) Distributed filtering method, device, equipment and storage medium for wireless sensor network
Tessema et al. Extraction of indoorgml model from an occupancy grid map constructed using 2d lidar
CN113593025B (en) Geologic body model updating method, device, equipment and storage medium
Tian et al. Robot Autonomous Exploration and Map Building Method
Dellinger et al. Automated waypoint generation with the growing neural gas algorithm
Agbodan et al. A topological entity matching technique for geometric parametric models
CN113989440B (en) Point fast matching method suitable for moment method
Lam et al. A skeletonization technique based on delaunay triangulation and piecewise bezier interpolation
Mao et al. STD-Net: Structure-preserving and Topology-adaptive Deformation Network for 3D Reconstruction from a Single Image
Ivrissimtzis et al. Surface reconstruction based on neural meshes
Kurup et al. Automated Extraction of Indoor Structural Information from 3D Point Clouds
TWI837115B (en) Non-transitory medium, system and method for multi-material mesh generation from fill- fraction voxel data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant