A dynamic updating method for a grid map based on obstacle recognition by a body-equipped robot

By generating base point cloud data and calculating depth salient feature values ​​and consistency weighting coefficients, the robot grid map is updated, solving the problem of ground texture being misidentified as obstacles in the existing technology, and achieving high timeliness and high reliability of the grid map.

CN123175245APending Publication Date: 2026-11-27ROPEOK TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611444812.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing semantic mapping methods lack effective verification of object geometry height, which leads to two-dimensional textures on the ground being misidentified as obstacles, and the constructed raster map cannot accurately reflect real-time environmental information.

Method used

By acquiring image observation data of the robot over a historical period, base point cloud data is generated using a preset camera parameter matrix. Depth salient feature values ​​and consistency weighting coefficients are calculated, and the weight values ​​are fused to update the multi-layer probabilistic grid map, distinguishing planar textures from actual obstacles.

Benefits of technology

It effectively suppresses the flickering and abrupt changes of semantic tags, ensuring the high timeliness and reliability of semantic raster maps, and accurately reflecting real-time environmental information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123175245A_ABST
    Figure CN123175245A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on embodiment robot vision identification barrier's grid map dynamic updating method, it is related to robot navigation technical field, the method comprises: obtaining the image observation data corresponding in robot historical time period, by preset camera parameter matrix, effective pixel points in image observation data are converted to robot base coordinate system, generate base point cloud data, and base point cloud data includes multiple grid units;For any grid unit, based on the observation depth of current grid unit, the depth significant characteristic value is calculated, based on the semantic label distribution entropy value corresponding to grid unit, determine consistency weighting coefficient;The depth significant characteristic value is fused with consistency weighting coefficient, and first weight value is obtained, based on first weight value, the multi-layer probability grid map in robot is weighted and fused and updated.The application achieves the technical effect of accurately reflecting real-time environmental information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of robot navigation technology, specifically to a method for dynamically updating a grid map based on the visual recognition of obstacles by an embodied robot. Background Technology

[0002] With the increasing prevalence of service robots in complex environments such as homes and shopping malls, vision-based semantic grid map construction has become a key technology for achieving intelligent navigation. Existing semantic mapping solutions typically rely on depth cameras (RGB-D) or LiDAR to acquire environmental point clouds, and combine them with cloud-based or local visual models for object recognition, ultimately projecting the recognition results onto a grid map.

[0003] However, in practical applications, existing mapping methods face significant engineering challenges. Two-dimensional textures on the ground (such as carpet patterns, flat posters, or highly reflective areas) are often misidentified as obstacles by visual models. Because existing methods lack effective verification of the geometric height of objects, these planar textures are directly projected as occupying grids, resulting in the constructed grid map failing to accurately reflect real-time environmental information, causing robots to plan false detour paths on flat ground. Summary of the Invention

[0004] To address the technical problem in related technologies where the lack of effective verification of object geometric height leads to the direct projection of planar textures onto grids, resulting in grid maps that fail to accurately reflect real-time environmental information, this application provides a grid map dynamic update method based on embodied robot visual obstacle recognition.

[0005] The specific technical solution adopted is as follows: The image observation data corresponding to the robot's historical time period is acquired. The effective pixels in the image observation data are converted to the robot's base coordinate system through a preset camera parameter matrix to generate base point cloud data, which includes multiple grid units. For any given raster cell, a depth saliency feature value is calculated based on the observation depth of the current raster cell, and a consistency weighting coefficient is determined based on the semantic label distribution entropy value corresponding to the raster cell. The first weight value is obtained by fusing the depth salient feature value with the consistency weighting coefficient. Based on the first weight value, the multi-layer probabilistic grid map in the robot is updated by weighted fusion.

[0006] In one possible implementation of this application, effective pixels in the image observation data are transformed to the robot base coordinate system using a preset camera parameter matrix to generate base point cloud data, including: For any valid pixel in the image observation data, the three-dimensional coordinates of the current valid pixel in the camera coordinate system are calculated through the camera intrinsic parameter matrix to obtain the three-dimensional projected point cloud data from the camera viewpoint. Based on the camera extrinsic matrix, each projection point in the 3D projection point cloud data is transformed to the robot base coordinate system to generate base point cloud data.

[0007] In one possible implementation of this application, a depth salient feature value is calculated based on the observation depth of the current grid cell, including: The point cloud data in the raster cells is filtered to determine the number of valid points in each raster cell; An adaptive threshold is calculated based on the observation depth of the target observation area relative to the camera. The depth significance value is calculated based on the difference between the number of valid points and the adaptive threshold.

[0008] In one possible implementation of this application, filtering the point cloud data in the raster cell to determine the number of valid points in each raster cell includes: Compare the height value of each projected point in the point cloud data of the raster cell with a preset height threshold; The number of projection points whose height value is greater than the preset height threshold is taken as the number of valid points.

[0009] In one possible implementation of this application, the adaptive threshold is negatively correlated with the target observation area relative to the camera's observation depth.

[0010] In one possible implementation of this application, determining the consistency weighting coefficient based on the semantic tag distribution entropy value corresponding to the grid cell includes: Determine the frequency of occurrence of different semantic tags in each grid cell; The semantic tag distribution entropy value is obtained by calculating the frequency of occurrence using the information entropy algorithm; The semantic tag distribution entropy value is converted into a consistency weighted coefficient by using a preset Gaussian function.

[0011] In one possible implementation of this application, the multi-layer probabilistic grid map includes a geometric occupancy layer, an idle layer, and a semantic attribute layer; based on a first weight value, the multi-layer probabilistic grid map in the robot is updated by weighted fusion, including: The geometrically occupied and idle layers are updated based on the depth significant feature values; The semantic attribute layer is updated based on the first weight value.

[0012] In one possible implementation of this application, updating the geometrically occupied layer and the vacant layer based on depth significant feature values ​​includes: Obtain the current obstacle occupancy log probability of each grid cell in the geometric occupancy layer, and update the obstacle occupancy log probability based on the depth significant feature value; Obtain the idle log-probability of each grid cell in the idle layer, and update the idle log-probability based on the depth significant feature value.

[0013] In one possible implementation of this application, the semantic attribute layer is updated based on a first weight value, including: Obtain the semantic category probability distribution values ​​of each raster unit in the semantic attribute layer and the semantic labels in the image observation data; Construct instantaneous observation vectors based on semantic labels; Based on the first weight value, the semantic category probability distribution value and the instantaneous observation vector are weighted and fused for update.

[0014] In one possible implementation of this application, after weighted fusion and updating of the multi-layer probabilistic grid map in the robot based on the first weight value, the method further includes: The maximum value among the semantic category probability distribution values ​​obtained after the weighted fusion update of the multi-layer probabilistic raster map is determined, and the category corresponding to the maximum value is taken as the dominant semantic category.

[0015] This application has, but is not limited to, the following technical effects: The robot acquires image observation data corresponding to the target observation area. The effective pixels in the image observation data are transformed into the robot base coordinate system through a preset camera parameter matrix to generate base point cloud data. The base point cloud data includes multiple grid cells. For any grid cell, the depth saliency feature value is calculated based on the observation depth of the grid cell. Then, the consistency weighting coefficient is determined based on the semantic label distribution entropy value corresponding to each grid cell. The depth saliency feature value and the consistency weighting coefficient are fused to obtain the first weight value. Based on the first weight value, the multi-layer probabilistic grid map in the robot is weighted and fused for update. In this application, a depth saliency value is calculated based on the observation depth of the grid cell. This depth saliency value is then used to perform an effective verification of the geometric height of the object, thereby distinguishing planar textures from actual obstacles. Furthermore, a consistency weighting coefficient is determined based on the semantic tag distribution entropy value corresponding to each grid cell. The multi-layer probabilistic grid map in the robot is then weighted and updated by fusing the depth saliency value and the consistency weighting coefficient. This effectively suppresses the flickering and jumps of semantic tags between consecutive frames, ensuring that the output semantic grid map has high timeliness and high reliability. Consequently, the constructed grid map can accurately reflect real-time environmental information. Attached Figure Description

[0016] Figure 1This is a flowchart illustrating the first embodiment of the grid map dynamic update method for obstacle recognition based on the visual recognition of embodied robots in this application; Figure 2 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application. Detailed Implementation

[0017] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0018] This application provides a method for dynamically updating a grid map based on visual obstacle recognition using a android. In the first embodiment of this method, referring to... Figure 1 The methods include: Step S10: Obtain the corresponding image observation data within the robot's historical time period, and convert the effective pixels in the image observation data to the robot's base coordinate system using a preset camera parameter matrix to generate base point cloud data, which includes multiple grid units.

[0019] As an example, the grid map dynamic update method based on embodied robot vision for obstacle recognition can also be applied to a grid map dynamic update system based on embodied robot vision for obstacle recognition. The target observation area can be the sofa, corridor, or kitchen location, without specific limitations. The image observation data includes the acquisition timestamp corresponding to the observation time, depth image, robot pose matrix in the global map coordinate system, and semantic reasoning results (including semantic labels) received from the cloud at the current time. 2D bounding box and the reasoning completion timestamp The semantic reasoning result is generated at the current moment. When generating the semantic reasoning result, the data collected at the observation time is integrated with the semantic reasoning result to obtain the image observation data.

[0020] As an example, this application addresses updating a multi-layered probabilistic grid map within a robot. Due to the lag in the reasoning process, robot observation data from historical time periods is used first, followed by the semantic reasoning result at the current moment. The two are then backtracked and aligned to avoid temporal discrepancies between the semantic reasoning result and the robot observation data. Specifically: To address the time lag caused by cloud-based inference, the robot control system captures data at a fixed sampling frequency (e.g., 30Hz). Specifically, to prevent spatiotemporal misalignment during subsequent coordinate transformations, the system records not only the acquisition timestamp, depth image, and robot pose matrix in the global map coordinate system in each frame of data, but also the camera extrinsic parameter matrix at the moment of acquisition. This camera extrinsic parameter matrix precisely describes the rigid body transformation relationship (including rotation and translation) of the camera's optical center relative to the robot's mechanical chassis center at the instant of acquisition, enabling the capture of the robot's instantaneous posture during head gimbal pitch or torso sway.

[0021] When the system receives the semantic reasoning result (including the original image acquisition timestamp) from the cloud at a certain time after the acquisition time, Semantic tags 2D bounding box and the reasoning completion timestamp When the system completes the reasoning, it uses the timestamp. as well as The system performs a backtracking search within the historical data queue to obtain the best matching frame. It then extracts all historical information from this frame and assembles it with the current semantic inference result to form a complete image observation dataset. Among them, for the observation area at the time of data collection, Represents a depth image. Represents pose data, Represents the camera extrinsic parameter matrix. Indicates semantic tags, This represents a two-dimensional bounding box.

[0022] As an example, the preset camera parameter matrix includes a camera intrinsic parameter matrix and a camera extrinsic parameter matrix. The camera intrinsic parameter matrix includes the camera's focal length. and optical center coordinates The effective pixels in the image observation data are transformed into the robot base coordinate system by using the camera intrinsic parameter matrix and the camera extrinsic parameter matrix; As an example, the base point cloud data can be a set of 3D points centered on the position where the robot chassis contacts the ground. In the original camera point cloud, the Z-coordinate is affected by the camera's pitch angle (head down or head up) and cannot directly represent the object's height. After transforming to the base coordinate system, the XY plane of the point cloud is parallel to the ground, and the Z-axis coordinate of the point cloud strictly represents the object's true physical height above the ground. This is a prerequisite for subsequently distinguishing ground textures from 3D obstacles. The base point cloud data is then mapped to a 2D raster map, dividing the base point cloud data into multiple raster cells, and then analyzed on a per-raster-cell basis.

[0023] Step S10, which involves converting the effective pixels in the image observation data to the robot base coordinate system using a preset camera parameter matrix to generate base point cloud data, includes: For any valid pixel in the image observation data, the three-dimensional coordinates of the current valid pixel in the camera coordinate system are calculated using the camera intrinsic parameter matrix to obtain the three-dimensional projected point cloud data from the camera's perspective.

[0024] As an example, this embodiment transforms the two-dimensional image information of the image observation data into three-dimensional spatial geometric information. A corresponding rectangular region is extracted from the depth image using a two-dimensional bounding box in the image observation data, and a set of all valid pixels within that rectangular region is extracted. For each valid pixel in this set... Its image plane coordinates are The corresponding depth measurement value is The system utilizes a pinhole camera imaging model, combined with the camera's intrinsic parameter matrix. (Including focal length) and optical center coordinates ), calculate the three-dimensional coordinates of the pixel in the camera coordinate system. The specific calculation formula is as follows: in, Directly corresponds to depth value By performing the above calculations on all valid pixels within the rectangular area, three-dimensional projected point cloud data from the camera's perspective is generated. This point cloud data reflects the situation at the historical data collection time. The three-dimensional spatial distribution of the identified object relative to the optical center of the camera.

[0025] Based on the camera extrinsic matrix, each projection point in the 3D projection point cloud data is transformed to the robot base coordinate system to generate base point cloud data.

[0026] As an example, to accurately distinguish between the ground and obstacles, the 3D projected point cloud data must be unified into a coordinate system based on the contact plane. Each projected point in the 3D projected point cloud data is transformed to the robot's base coordinate system using the camera extrinsic matrix, generating base point cloud data. Here, the projected points are 3D spatial points generated by back-projecting 2D pixel depth. Specifically: In this robot base coordinate system, the XY plane coincides with the robot's horizontal walking plane, and the Z-axis points vertically upward. The transformation formula for the projection points is: in, Represents the camera extrinsic parameter matrix. This represents the i-th projection point. This represents a three-dimensional point in the robot's base plane coordinate system (chassis coordinate system).

[0027] Camera extrinsic matrix here This is the extrinsic parameter matrix for the historical time period, not the extrinsic parameter matrix for the current moment. This is because the robot's posture may have changed during the time interval between data acquisition and inference completion (e.g., the robot changes from looking down to looking up). Using the current extrinsic parameter matrix to process historical point clouds would result in the ground point cloud being incorrectly rotated into the air, or the wall point cloud being pressed into the ground. This ensures that the coordinate transformation strictly follows the geometric constraints at the time of acquisition, thereby obtaining the correct base point cloud data.

[0028] Step S20: For any raster cell, calculate the depth saliency feature value based on the observation depth of the current raster cell, and determine the consistency weighting coefficient based on the semantic label distribution entropy value corresponding to the raster cell.

[0029] As an example, the three-dimensional base point cloud data is mapped to the two-dimensional raster map index to determine the objects of subsequent updates, that is, to update each raster cell. First, through the pose data in the image observation data, each point in the base point cloud data is transformed to the global map coordinate system to obtain the three-dimensional physical coordinates of each point in the global map coordinate system (absolute coordinate system).

[0030] Specifically: The system utilizes the historical global pose transformation matrix to transform each 3D point in the base point cloud data. Perform rigid body matrix multiplication ( This gives the three-dimensional physical coordinates of the point in the global map coordinate system. ,in, Represented as ( , Subsequently, the system will process all Projected onto the Z=0 plane, and based on the resolution of the raster map. (e.g., 0.05 meters / grid), calculate the two-dimensional raster index into which each point falls. : in, Represents the x-coordinate, This represents the ordinate. The system collects all calculated index coordinates, removes duplicates, and generates a list of projected coverage raster indexes. The list clearly indicates which raster cells in the map will be updated during this observation process.

[0031] As an example, depth saliency is used to quantify the distribution characteristics of point clouds in the vertical direction. The larger the depth saliency, the more three-dimensional the obstacle corresponding to the current point cloud is.

[0032] As an example, semantic tag distribution entropy is used to quantify the disorder of tag sequences, while consistency weighting coefficients can be a technical feature based on entropy (the lower the entropy, the higher the coefficient) to characterize the stability of semantic tags.

[0033] In step S20, the depth salient feature value is calculated based on the observation depth of the current grid cell, including: Step S21: Filter the point cloud data in the raster cell to determine the number of valid points in each raster cell.

[0034] Step S21 includes: The height value of each projection point in the point cloud data of the raster cell is compared with the preset height threshold.

[0035] The number of projection points whose height value is greater than the preset height threshold is taken as the number of valid points.

[0036] As an example, in order to accurately remove data points belonging to the ground plane, the system first processes each point in the base point cloud data. The system performs height analysis and extracts the Z-axis coordinate components of each point in the point cloud. This value represents the vertical height of the point relative to the robot's walking plane.

[0037] The system sets a safe passage height threshold. (For example, a value of 0.03 meters, slightly higher than the maximum allowable unevenness of the ground, can be an empirical value or obtained through experimental calibration.) The system traverses all point clouds and retains only those that meet the requirements. These points constitute the effective point set. This effective point set eliminates the vast majority of ground points, retaining only the three-dimensional structural information with potential collision risks.

[0038] For each raster cell in the list of raster indexes for projection coverage The system counts the number of valid points falling within the range of the grid cell, and records this as the number of valid points. If no points fall within a certain grid cell or all points are below a certain value. ,but .

[0039] Step S22: Calculate the adaptive threshold based on the observation depth of the target observation area relative to the camera, wherein the adaptive threshold is negatively correlated with the observation depth of the target observation area relative to the camera.

[0040] As an example, this embodiment addresses the problem of missed detections at long distances. Since the point cloud density of depth cameras or LiDAR significantly decreases with distance, a fixed threshold can cause distant obstacles to be misclassified as noise due to the sparse point density. Therefore, this system introduces an adaptive threshold. First, calculate the average observation depth of the target observation area relative to the camera at the time of acquisition. Specifically, the average observation depth can be the average depth values ​​of all points falling into the grid cell, or it can be the Euclidean distance from the grid center to the camera optical center.

[0041] Furthermore, the adaptive threshold is dynamically calculated using an inverse proportional function. : in, This is a preset density reference constant (for example, a value of 2000, or other values, which need to be calibrated according to the sensor resolution). This represents the average observation depth, which is the observation distance between the observed grid cell and the camera. When the observation distance is close (e.g., 1 meter), an adaptive threshold is used. For larger points (e.g., 2000 points), a dense point cloud is required to identify obstacles, thus effectively filtering out nearby ground noise; when the observation distance is long (e.g., 5 meters), an adaptive threshold is used. A significant reduction (e.g., 80 points) allows sparse point clouds to pass verification, ensuring that distant obstacles are not missed. This is achieved before computation. Perform truncation and force... Set to be greater than or equal to the sensor's minimum effective sensing distance (e.g., 0.3 meters). The adaptive threshold is negatively correlated with the target observation area relative to the camera's observation depth; the greater the observation depth, the smaller the adaptive threshold, and vice versa.

[0042] Step S23: Calculate the depth significant feature value based on the difference between the number of valid points and the adaptive threshold.

[0043] As an example, the number of discrete points can be transformed into normalized feature values ​​using a non-linear activation function (such as the sigmoid function). Specifically, the number of valid points is processed using the sigmoid function. With adaptive threshold The difference is used to obtain the deep significant feature value. : in, The density response slope coefficient (e.g., 0.1, which can be empirically calibrated) is used to control how steep the transition of the function is from 0 to 1.

[0044] It should be noted that when much smaller When (e.g., carpet texture, which has a small amount of noise but extremely low density), the exponential term is very large. The value approaches 0. At this point, the system determines that the region is a "non-three-dimensional structure".

[0045] when Much larger When (e.g., dense point clouds on walls or furniture), the exponential term approaches 0. The value approaches 1. At this point, the system determines that the area is a "three-dimensional obstacle".

[0046] When the two are close, The transition zone around 0.5 reflects uncertainty. The magnitude of the value directly reflects the probability that the observed object actually exists in physical space.

[0047] Step S20 further includes: Determine the frequency of occurrence of different semantic tags in each grid cell.

[0048] The semantic tag distribution entropy value is obtained by calculating the frequency of occurrence using the information entropy algorithm.

[0049] As an example, the purpose of this embodiment is to address the problem of unstable output labels in visual models (such as the same object flickering between "chair" and "background"), quantify the stability of semantic cognition by calculating information entropy, and finally generate a consistency weighted coefficient.

[0050] As an example, in order to capture the changing patterns of semantic tags over time, the system assigns each grid cell... Maintain an independent single-grid historical tag sequence This sequence is a fixed-length First-In-First-Out (FIFO) queue with a capacity of [value missing]. (e.g., 10 frames).

[0051] For each grid cell, the system performs the following operations: 1. If the grid cell is observed for the first time, the system initializes an empty queue.

[0052] 2. The system will extract semantic tags from the image observation data. (For example, "sofa") is appended to the end of the queue.

[0053] 3. If the queue length exceeds The system removes the oldest pushed labels to ensure that the sequence always reflects the cognitive state over a recent period. If the queue length is insufficient (cold start phase), the system adopts a conservative strategy, defaulting to a consistency weighting coefficient of 0.5 (neutral) for the sequence to avoid initial data fluctuations from causing drastic impacts on the map.

[0054] As an example, the degree of disorder in the label sequence is quantified using information entropy theory, and the system statistically analyzes the semantic categories of each semantic category in the historical label sequence of each single raster unit. frequency of occurrence For example, if the sequence contains "chair" 8 times and "background" 2 times, then Furthermore, the semantic tag distribution entropy value of the semantic tag sequence corresponding to the raster unit is calculated using the information entropy algorithm. : in, The total number of all possible semantic categories, Representing various semantic categories The frequency of occurrence is used to prevent undefined cases in logarithmic operations (i.e., when a certain category does not appear). ),when At that time, the item The calculation result is directly set to 0; or in the calculation Add tiny positive numbers (For example, Smoothing is performed.

[0055] It should be noted that when the semantic labels in the sequence are completely identical (e.g., all are "chair"), the semantic label distribution entropy value... The minimum (approaching 0) indicates that semantic cognition is extremely stable.

[0056] When labels frequently change (e.g., half "chair" and half "table"), the semantic label distribution entropy increases, indicating semantic confusion and low confidence.

[0057] The semantic tag distribution entropy value is converted into a consistency weighted coefficient by using a preset Gaussian function.

[0058] As an example, the preset Gaussian function could be a Gaussian radial basis function, used to convert the semantic label distribution entropy values ​​into normalized confidence coefficients and consistency weighting coefficients. The calculation method can be: in, This is the entropy tolerance variance parameter (e.g., 0.5, which can be empirically calibrated). This parameter controls the system's sensitivity to semantic fluctuations.

[0059] It should be noted that, The smaller the value, the faster the function decays, indicating a lower tolerance for entropy in the system; even slight label changes can cause the coefficient to deteriorate. It dropped rapidly to 0. The larger the size, the more tolerant the system is, allowing for a certain degree of label inconsistency.

[0060] The range of values ​​is The lower the entropy value, the more stable it is. The closer to 1, the higher the entropy (the more chaotic). The closer it is to 0.

[0061] Step S30: The depth salient feature value is fused with the consistency weighting coefficient to obtain the first weight value. Based on the first weight value, the multi-layer probabilistic grid map in the robot is updated by weighted fusion.

[0062] As an example, the first weight value can be the overall confidence level that the currently observed semantic label can be safely written into the semantic layer of the global raster map. This technical feature is determined by two conditions: first, the object has a real three-dimensional height in physical space (not a carpet or flat poster); second, the object's identification label remains stable over a continuous time period (not a flickering misidentification). Only when both conditions are met will the weight be high and allow it to be written into the map.

[0063] As an example, the first weight value The calculation method can be: in, Indicates depth-significant feature values. This represents the consistency weighting coefficient.

[0064] It should be noted that the significance of this formula lies in imposing a comprehensive constraint on the first weight value across two dimensions: 1. If the observed object is ground texture ( Regardless of what label the visual model recognizes (even if it is very stable), ), product result All of them will be forcibly pulled down to 0, which physically prevents the writing of false semantic information.

[0065] 2. If the object of observation is indeed a three-dimensional obstacle ( ), but the label flickers ( The product result is also low. This suppresses the updating of noisy semantics at the information level. Only when both "physical reality exists" and "semantic cognition is stable" are satisfied, Only when it approaches 1 can high-confidence updates be made to the map semantic layer.

[0066] The multi-layer probabilistic grid map includes a geometric occupancy layer, an idle layer, and a semantic attribute layer; step S30, which involves weighted fusion and updating of the multi-layer probabilistic grid map in the robot based on a first weight value, includes: Step S31: Update the geometrically occupied layer and the idle layer based on the depth significant feature values.

[0067] As an example, a multi-layer probabilistic raster map divides space into grids, with multiple independent data layers attached to each grid coordinate. In this embodiment, the multi-layer probabilistic raster map image layers are overlaid with different dimensions of states. One layer is a geometric occupancy layer, which only stores the probability of whether there are obstacles in the grid. Another layer is a semantic attribute layer, which stores the probability distribution of which object category the grid belongs to. The idle layer is a numerical matrix that records the confidence of the grid cell being identified as a passable area without collision risk. Its core function is to force the accumulation of the probability of "this area is empty" in this layer when the robot recognizes "false obstacles" such as posters or carpets on the ground. It coexists with the geometric occupancy layer, which is responsible for recording the probability of "this area has obstacles". Through an independent accumulation mechanism, it actively removes the erroneous blockade of the navigation system in that area and restores the robot's right of way.

[0068] As an example, to ensure that the map accurately reflects the accessibility of the environment, the system performs checks on each grid cell. Perform bidirectional updates of the occupied and idle states.

[0069] Step S31 includes: Obtain the current obstacle occupancy log probability of each grid cell in the geometric occupancy layer, and update the obstacle occupancy log probability based on the depth significant feature value.

[0070] As an example, for a geometric occupancy layer, the log-occupancy probability of an obstacle can be the log-occupancy probability of the grid cell at the previous time step. This can be obtained by directly reading data from a multi-layer probabilistic raster map and calculating the log probability of observations based on a sensor observation model. The system uses depth saliency features to control the writing intensity of obstacle information, and the current time-to-date logarithmic probability of occupancy. The update method is as follows: in, This represents the prior logarithmic odds (corresponding to a probability of 0.5). This represents the logarithmic probability corresponding to a single sensor observation. A binary choice is made based on the state of the grid in the raycasting model: if the endpoint of the depth ray falls into the grid, it indicates that an object has been detected. Take a positive value; a recommended value is 0.85 (corresponding to an occupancy probability of 0.7). If the depth ray passes through the grid but does not stop, it indicates that the space is transparent. Take a negative value; the recommended value is -0.4 (corresponding to a probability of 0.4). When When the obstacle is confirmed to be a 3D obstacle, the formula degenerates into a standard Bayesian update, and the grid rapidly accumulates occupancy probabilities; when When the texture is confirmed to be ground texture, the incremental item is masked to prevent the writing of false obstacles.

[0071] Obtain the idle log-probability of each grid cell in the idle layer, and update the idle log-probability based on the depth significant feature value.

[0072] As an example, simply blocking obstacle entries cannot clear historical misjudgments, causing the robot to still believe the area is impassable. Therefore, the system introduces idle state update logic for each grid cell in the idle layer. Lower (i.e., When the value is relatively large, the system increases the idle log probability of the raster cells by using depth significant eigenvalues. : in, For a preset idle increment constant (e.g., ), This represents the log-probability of a grid cell (u,v) being empty at the current time t. A larger value indicates that the grid cell is more likely to be unobstructed. This represents the logarithmic probability of being idle at the previous moment.

[0073] It should be noted that this formula indicates that if the geometric check determines that the current area is not an obstacle ( The system will proactively increase the vacancy confidence of the area, thereby pulling the grid state that was mistakenly marked as an obstacle back to a passable state.

[0074] Step S32: Update the semantic attribute layer based on the first weight value.

[0075] As an example, in order to smooth the abrupt changes of semantic labels in the time dimension, the system updates the probability distribution of the semantic attribute layer through the first weight value.

[0076] Step S32 includes: Obtain the semantic category probability distribution values ​​of each raster unit in the semantic attribute layer and the semantic labels in the image observation data.

[0077] Construct instantaneous observation vectors based on semantic labels.

[0078] Based on the first weight value, the semantic category probability distribution value and the instantaneous observation vector are weighted and fused for update.

[0079] As an example, for each grid cell The system reads the semantic category probability distribution value from the previous time step. Simultaneously, the system uses semantic tags from the current image observation data. Construct instantaneous observation vector ( The construction method can be: semantic tags The corresponding category probability is set to 1, and the rest to 0). Then, a weighted moving average algorithm is used to perform a weighted fusion update of the semantic category probability distribution values ​​and the instantaneous observation vector: in, The preset base learning rate (e.g., 0.3, an empirical calibration value). Represents the instantaneous observation vector. This represents the first weight value. This represents the semantic category probability distribution value at the previous time step, and the updated semantic category probability distribution value is normalized. The normalization method can be L1 norm normalization (i.e., the probability value of each category is divided by the sum of the probability distributions) to eliminate floating-point operation errors.

[0080] It should be noted that when When semantically unstable or lacking geometric entities, the update term weights are extremely low, and the system tends to retain the stable distribution accumulated historically, ignoring current noisy observations. When semantics are stable and entities exist, new observation information is significantly fused, and the map responds quickly to environmental changes.

[0081] After step S30, the following steps are also included: The maximum value among the semantic category probability distribution values ​​obtained after the weighted fusion update of the multi-layer probabilistic raster map is determined, and the category corresponding to the maximum value is taken as the dominant semantic category.

[0082] As an example, after completing the probability update, the system adjusts the retention strategy of the raster in the map based on the dominant semantic attributes of the raster.

[0083] First, the system retrieves the updated semantic category probability distribution values ​​and selects the category with the highest probability as the dominant semantic category. If the semantic tags of each grid cell are evenly distributed, they are classified as "static structure" by default.

[0084] Furthermore, the system consults a preset table to obtain... The corresponding semantic category association decay period For example, "pedestrian" corresponds to a short period (0.5s), and "wall" corresponds to a long period ( ).

[0085] If any grid cell is at the current time step If the content is not updated by observation, then the logarithmic probability is occupied. Perform natural decay operation: In this formula, the exponential function is used to simulate the forgetting process of information, which is particularly relevant for highly dynamic objects. For small objects, the probability of their occupancy rapidly decays back to the initial state, thus quickly clearing the afterimages left by moving objects; for static objects, the probability remains stable over a long period of time. The dynamic time step represents the actual physical time elapsed between the current moment and the last observation update moment for this grid. It can be 0.1s or 0.5s. (The last part, "if the target category corresponds to...", seems to be a separate, unrelated statement.) If a value is determined to be infinite or static, the natural decay calculation for that grid cell is skipped.

[0086] Furthermore, determine the final occupancy probability of the current grid cell. : In the formula, This indicates the logarithmic probability. Represents the logarithmic probability of being idle. This is a weighting factor, for example, 0.5, determined empirically. Let be a normalization function with a range of (0,1). If the value is greater than a preset threshold (e.g., 0.7), it is determined to be impassable.

[0087] Extract the dominant semantic category of each raster in the semantic attribute layer, and obtain the risk weight corresponding to the dominant semantic category by querying the pre-set semantic risk configuration table. .

[0088] Will eventually occupy the area With risk weight Multiply to generate the initial generation value of a single raster.

[0089] The initial cost value is arranged in a grid coordinate array and linearly mapped according to the set value range threshold to output a single-layer navigation cost map. The single-layer navigation cost map serves as the direct input matrix of the robot path planning module, which is used by the global planning algorithm to search for navigation routes that avoid high-risk areas and by the local obstacle avoidance algorithm to calculate the safe driving speed and steering angle of the chassis in real time, thereby realizing the transformation of upper-level visual semantic cognition into motion control constraints that the chassis can execute.

[0090] This application provides a method for dynamically updating a grid map based on visual obstacle recognition of an embodied robot. The method acquires image observation data corresponding to the target observation area of ​​the robot, converts the effective pixels in the image observation data to the robot's base coordinate system using a preset camera parameter matrix, and generates base point cloud data. The base point cloud data includes multiple grid units. For any grid unit, a depth saliency feature value is calculated based on the observation depth of the grid unit. Then, a consistency weighting coefficient is determined based on the semantic label distribution entropy value corresponding to each grid unit. The depth saliency feature value and the consistency weighting coefficient are fused to obtain a first weight value. Based on the first weight value, a weighted fusion update is performed on the multi-layer probabilistic grid map in the robot. In this application, a depth saliency value is calculated based on the observation depth of the grid cell. This depth saliency value is then used to perform an effective verification of the geometric height of the object, thereby distinguishing planar textures from actual obstacles. Furthermore, a consistency weighting coefficient is determined based on the semantic tag distribution entropy value corresponding to each grid cell. The multi-layer probabilistic grid map in the robot is then weighted and updated by fusing the depth saliency value and the consistency weighting coefficient. This effectively suppresses the flickering and jumps of semantic tags between consecutive frames, ensuring that the output semantic grid map has high timeliness and high reliability. Consequently, the constructed grid map can accurately reflect real-time environmental information.

[0091] Reference Figure 2 , Figure 2 This is a schematic diagram of the device structure of the hardware operating environment involved in the embodiments of this application.

[0092] like Figure 2 As shown, the grid map dynamic update device based on the visual recognition of obstacles by the embodied robot may include: a processor 1001, a memory 1003, and a communication bus 1002. The communication bus 1002 is used to realize the connection and communication between the processor 1001 and the memory 1003.

[0093] Optionally, the grid map dynamic update device based on the embodied robot's visual obstacle recognition may also include a user interface, a network interface, a camera, RF (Radio Frequency) circuitry, sensors, a WiFi module, etc. The user interface may include a display screen and an input submodule such as a keyboard; optional user interfaces may also include standard wired or wireless interfaces. The network interface may include standard wired or wireless interfaces (such as a Wi-Fi interface).

[0094] Those skilled in the art will understand that Figure 2 The grid map dynamic update device structure shown in the figure based on the visual recognition of obstacles by the embodied robot does not constitute a limitation on the grid map dynamic update device based on the visual recognition of obstacles by the embodied robot. It may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0095] like Figure 2 As shown, the memory 1003, serving as a storage medium, may include an operating system, a network communication module, and a grid map dynamic update program based on the embodied robot's visual obstacle recognition. The operating system is a program that manages and controls the hardware and software resources of the grid map dynamic update device based on the embodied robot's visual obstacle recognition, supporting the operation of the grid map dynamic update program and other software and / or programs. The network communication module is used to enable communication between the various components within the memory 1003, as well as communication with other hardware and software in the grid map dynamic update system based on the embodied robot's visual obstacle recognition.

[0096] exist Figure 2 In the grid map dynamic update device based on the visual recognition of obstacles by a embodied robot shown, the processor 1001 is used to execute the grid map dynamic update program based on the visual recognition of obstacles by a embodied robot stored in the memory 1003, and implement the steps of the grid map dynamic update method based on the visual recognition of obstacles by a embodied robot as described above.

[0097] The specific implementation of the grid map dynamic update device based on the visual recognition of obstacles by the embodied robot in this application is basically the same as the various embodiments of the grid map dynamic update method based on the visual recognition of obstacles by the embodied robot described above, and will not be repeated here.

[0098] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0099] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0100] The above are merely preferred embodiments of this application and do not limit the scope of this application. Any equivalent structural or procedural transformations made based on the description and drawings of this application, or direct or indirect applications in other related technical fields, are similarly included within the scope of protection of this application.

Claims

1. A method for dynamically updating a grid map based on visual obstacle recognition by an embodied robot, characterized in that, The method includes: The image observation data corresponding to the robot's historical time period is acquired. The effective pixels in the image observation data are converted to the robot's base coordinate system through a preset camera parameter matrix to generate base point cloud data, which includes multiple grid units. For any of the aforementioned grid cells, a depth saliency feature value is calculated based on the current observation depth of the grid cell, and a consistency weighting coefficient is determined based on the semantic label distribution entropy value corresponding to the grid cell. The depth salient feature value is fused with the consistency weighting coefficient to obtain a first weight value. Based on the first weight value, the multi-layer probabilistic grid map in the robot is weighted and fused for update.

2. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 1, characterized in that, The preset camera parameter matrix includes a camera intrinsic parameter matrix and a camera extrinsic parameter matrix; The step of converting the effective pixels in the image observation data to the robot base coordinate system using a preset camera parameter matrix to generate base point cloud data includes: For any valid pixel in the image observation data, the three-dimensional coordinates of the current valid pixel in the camera coordinate system are calculated using the camera intrinsic parameter matrix to obtain the three-dimensional projected point cloud data from the camera viewpoint. Based on the camera extrinsic parameter matrix, each projection point in the 3D projected point cloud data is transformed to the robot base coordinate system to generate base point cloud data.

3. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 1, characterized in that, The calculation of depth salient feature values ​​based on the current observation depth of the grid cell includes: The point cloud data in the grid cell is filtered to determine the number of valid points in each grid cell; An adaptive threshold is calculated based on the observation depth of the target observation area relative to the camera. The depth salient feature value is calculated based on the difference between the number of valid points and the adaptive threshold.

4. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 3, characterized in that, The step of filtering the point cloud data in the grid cell to determine the number of valid points in each grid cell includes: The height value of each projection point in the point cloud data of the grid cell is compared with a preset height threshold. The number of projection points whose height value is greater than a preset height threshold is taken as the number of valid points.

5. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 3, characterized in that, The adaptive threshold is negatively correlated with the target observation area relative to the camera's observation depth.

6. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 1, characterized in that, The determination of the consistency weighting coefficient based on the semantic tag distribution entropy value corresponding to the grid unit includes: Determine the frequency of occurrence of different semantic tags in each of the grid cells; The frequency of occurrence is calculated using the information entropy algorithm to obtain the semantic tag distribution entropy value; The semantic tag distribution entropy value is converted into a consistency weighting coefficient by using a preset Gaussian function.

7. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 1, characterized in that, The multi-layer probabilistic grid map includes a geometric occupancy layer, an idle layer, and a semantic attribute layer; the weighted fusion update of the multi-layer probabilistic grid map in the robot based on the first weight value includes: The geometrically occupied layer and the idle layer are updated based on the depth significant feature values; Based on the first weight value, the semantic attribute layer is updated.

8. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 7, characterized in that, The update process for the geometrically occupied layer and the idle layer based on the depth significant feature value includes: Obtain the current obstacle occupancy log probability of each grid cell in the geometric occupancy layer, and update the obstacle occupancy log probability based on the depth significant feature value; Obtain the idle log probability of each grid cell in the idle layer, and update the idle log probability based on the depth significant feature value.

9. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 7, characterized in that, The step of updating the semantic attribute layer based on the first weight value includes: Obtain the semantic category probability distribution value of each grid unit in the semantic attribute layer and the semantic labels in the image observation data; Based on the semantic tags, construct the instantaneous observation vector; Based on the first weight value, the semantic category probability distribution value and the instantaneous observation vector are weighted and fused for update.

10. The grid map dynamic update method based on obstacle recognition by a holographic robot as described in claim 1, characterized in that, After performing weighted fusion and updating of the multi-layer probabilistic grid map in the robot based on the first weight value, the process further includes: The maximum value among the semantic category probability distribution values ​​obtained after the weighted fusion update of the multi-layer probabilistic raster map is determined, and the category corresponding to the maximum value is taken as the dominant semantic category.