Semantic map generation method, device and equipment and computer readable storage medium

The semantic information and pose are determined through the robot camera parameters and images, and the semantic map is generated based on the bird's-eye view semantic segmentation results. This solves the problem of high cost of semantic map generation in the existing technology and achieves low-cost semantic map generation.

CN118730072APending Publication Date: 2024-10-01SHEN ZHEN 3IROBOTICS CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310295182.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The generation cost of existing semantic maps is high, mainly due to the reliance on depth sensors to estimate object location information.

Method used

Through the robot's camera parameters and images, the semantic information and pose information of the object are determined, and combined with the bird's-eye view semantic segmentation results, a semantic map is generated, using only visual sensors and no depth sensors.

Benefits of technology

The cost of generating semantic maps is significantly reduced, and the semantic information and pose of objects are estimated only through visual sensors, reducing equipment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118730072A_ABST
    Figure CN118730072A_ABST
Patent Text Reader

Abstract

The invention discloses a semantic map generation method, device and equipment and a computer readable storage medium, and belongs to the technical field of semantic maps. The method comprises the steps of obtaining camera parameters of a robot and an image collected by the robot, wherein the camera parameters comprise first pose information; according to the camera parameters and the image, determining semantic information and second pose information of an object in the image, and an aerial view semantic segmentation result; and combining the semantic information, the second pose information and the aerial view semantic segmentation result with the first pose information to generate a semantic map. According to the method, the image in the indoor scene is collected through the visual sensor, various kinds of information of the object can be determined by combining the camera parameters, the required semantic map is further generated, and the purpose of reducing the generation cost of the semantic map is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semantic maps, and in particular to a semantic map generation method, device, equipment and computer-readable storage medium. Background Art

[0002] As the application scenarios of robots continue to expand, the operating environment they face is becoming more and more complex. Faced with these unstoppable trends, the first thing robots need to do is not to blindly add to the system, but to improve their environmental perception capabilities and build a more "perfect" map.

[0003] Semantic maps are widely used in fields such as robotics, navigation, and human-computer interaction. For example, indoor semantic maps contain not only spatial attribute information, but also semantic attribute information, such as the overall layout of the room, the placement of the sofa, etc. At present, semantic maps are often generated based on cameras and depth sensors. First, the semantic information of objects in indoor scenes is estimated by taking pictures with the camera, and then the position information of objects is estimated by the depth sensor using time of flight or dual-line laser. Finally, the semantic information and position information are combined to generate a semantic map. However, due to the high cost of depth sensors, the generation cost of existing semantic maps is relatively high.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a semantic map generation method, device, equipment and computer-readable storage medium, aiming to solve the technical problem of high generation cost of existing semantic maps.

[0006] To achieve the above object, the present invention provides a method for generating a semantic map, which comprises the following steps:

[0007] Acquire the camera parameters of the robot and the images collected by the robot, wherein the camera parameters include the first pose information;

[0008] Determine semantic information and second pose information of an object in the image, and a bird's-eye view semantic segmentation result according to the camera parameters and the image;

[0009] The semantic information, the second pose information and the semantic segmentation result of the bird's-eye view are combined with the first pose information to generate a semantic map.

[0010] Optionally, the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image comprises:

[0011] Perform encoding based on the image to obtain image features;

[0012] Transcoding is performed based on the camera parameters and the image features to obtain bird's-eye view features;

[0013] According to the bird's-eye view features, semantic information and second pose information of the object in the image, as well as a bird's-eye view semantic segmentation result are determined.

[0014] Optionally, the step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the bird's-eye view features includes:

[0015] Determine a 3D bounding box and a frontal orientation angle of the object in the image according to the bird's-eye view features;

[0016] Determine corresponding semantic information and second pose information according to the 3D bounding box and the frontal orientation angle;

[0017] A binary classification prediction is performed on the bird's-eye view features to obtain a bird's-eye view semantic segmentation result.

[0018] Optionally, the step of combining the semantic information, the second pose information and the bird's-eye view semantic segmentation result with the first pose information to generate a semantic map includes:

[0019] Determine a homogeneous form of a coordinate transformation matrix according to the first posture information;

[0020] Based on the homogeneous form of the coordinate transformation matrix, transform the coordinates of the second pose information and the bird's-eye view semantic segmentation result in the fuselage coordinate system into coordinates in the world coordinate system;

[0021] The coordinate projections of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system are counted, and the semantic information and the first pose information are combined to generate a semantic map.

[0022] Optionally, the semantic map includes a local semantic map and a global semantic map, and the step of generating a semantic map by counting the coordinate projection of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system and combining the semantic information and the first pose information includes:

[0023] Counting the coordinate projection of the semantic segmentation result of the bird's-eye view within a first preset time period in the world coordinate system, and combining the first pose information to generate a local semantic map;

[0024] The coordinate projection of the second posture information in the world coordinate system within a second preset time period is counted, and combined with the semantic information to generate a global semantic map.

[0025] Optionally, the step of counting the coordinate projection of the second posture information in the world coordinate system within the second preset time period and combining the semantic information to generate a global semantic map includes:

[0026] The coordinate projection of the second posture information in the world coordinate system within a second preset time length is counted, and an initial global semantic map is generated in combination with the semantic information. The repeated parts in the initial global semantic map are processed according to preset filtering and voting rules to obtain a global semantic map.

[0027] Optionally, before the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image, the following steps are included:

[0028] Determine a rotation angle between the robot and the ground according to the first posture information;

[0029] If the rotation angle satisfies the preset angle, the step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the camera parameters and the image is performed;

[0030] If the rotation angle does not meet the preset angle, a warning is output.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a semantic map generating device, the device comprising:

[0032] An acquisition module, used to acquire camera parameters of the robot and images collected by the robot, wherein the camera parameters include first pose information;

[0033] A determination module, used to determine the semantic information and second pose information of the object in the image, and a bird's-eye view semantic segmentation result according to the camera parameters and the image;

[0034] A generation module is used to combine the semantic information, the second posture information and the bird's-eye view semantic segmentation result with the first posture information to generate a semantic map.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a semantic map generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the semantic map generation method.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the semantic map generation method are implemented.

[0037] In a technical solution provided by the present invention, the camera parameters of the robot and the image collected by the robot are obtained, and then the semantic information and the second pose information of the object in the image, as well as the semantic segmentation result of the bird's-eye view are determined according to the camera parameters and the image, and finally the semantic information, the second pose information and the semantic segmentation result of the bird's-eye view are combined with the first pose information to generate a semantic map. The whole process only needs to collect images in indoor scenes through visual sensors, and then combine the camera parameters to determine various types of information of the object, and further generate the required semantic map. Compared with estimating the semantic information of the object through the camera and estimating the position of the object through the depth sensor, this application does not need to use a depth sensor, and only needs to use a visual sensor to estimate the semantic information and pose of the object, which significantly reduces the cost of generating the semantic map. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a structural schematic diagram of a semantic map generating device of a hardware operating environment involved in an embodiment of the present invention;

[0039] Figure 2 It is a flowchart of the first embodiment of the method for generating a semantic map of the present invention;

[0040] Figure 3 It is a flowchart of a second embodiment of a method for generating a semantic map according to the present invention;

[0041] Figure 4 It is a flowchart of a fourth embodiment of a method for generating a semantic map according to the present invention;

[0042] Figure 5 It is a flowchart of a seventh embodiment of the method for generating a semantic map according to the present invention;

[0043] Figure 6 Schematic diagram of functional modules of an embodiment of a semantic map generating device of the present invention.

[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0046] Reference Figure 1 , Figure 1 A schematic diagram of the structure of a semantic map generating device in a hardware operating environment according to an embodiment of the present invention.

[0047] like Figure 1As shown, the semantic map generation device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0048] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the semantic map generating device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a computer program.

[0050] exist Figure 1 In the semantic map generating device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the semantic map generating device of the present invention can be set in the semantic map generating device, and the semantic map generating device calls the computer program stored in the memory 1005 through the processor 1001, and executes the semantic map generating method provided by the embodiment of the present invention.

[0051] The embodiment of the present invention provides a method for generating a semantic map, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a semantic map generation method of the present invention.

[0052] In this embodiment, the semantic map generation method includes:

[0053] Step S11: obtaining the camera parameters of the robot and the images collected by the robot, wherein the camera parameters include the first pose information;

[0054] It is understood that the mobile robot is equipped with visual sensors, including but not limited to cameras that can capture images. The mobile robot is equipped with a SLAM module that can be used to estimate the posture of the mobile robot. The robot posture refers to the position and posture of the robot in a spatial coordinate system, where the position is the positioning of the robot in space and the posture is the orientation of the robot in space.

[0055] Specifically, when the mobile robot is operating in an indoor scene, it collects images of the indoor scene through a camera. The image includes various stationary objects, including but not limited to furniture, non-crossable objects, and crossable objects. Among them, furniture includes but is not limited to beds, bar sofas, L-shaped sofas, dining tables and chairs, toilets, TV cabinets, televisions, coffee tables, bedside tables, refrigerators, and cabinets. Crossable objects include but are not limited to low thresholds (i.e., thresholds with a height less than a first threshold, which is the highest height that the mobile robot can cross. The first threshold is set by the technician, such as 0.1m, and is not specifically limited in this embodiment), carpets, and non-crossable objects include but are not limited to high thresholds (i.e., thresholds with a height greater than the first threshold) and other human-defined non-crossable obstacles such as toys, shoes, wires, socks, etc.

[0056] Specifically, the camera parameters of the robot are obtained to characterize the comprehensive situation of the robot, including but not limited to the image resolution (height*width) H1*W1, the camera's intrinsic parameter matrix K, the homogeneous form of the extrinsic parameter matrix T0, the camera's moving speed v in the world coordinate system, and the robot's first position information, where the first position information includes various types of robot position information, such as the robot's position change in the world coordinate system compared to the previous moment.

[0057] Step S12: determining semantic information and second pose information of the object in the image, as well as a bird's-eye view semantic segmentation result, according to the camera parameters and the image;

[0058] It is understandable that the mobile robot is equipped with a visual perception module for reasoning about the images captured by the camera and perceiving the semantic information and posture information of the objects in the images. Specifically, the visual perception module takes the captured images and camera parameters as input, and can directly output two perception results through a pre-trained image recognition model. The first perception result is the semantic information and the second posture information of the objects in the image, and the second perception result is the semantic segmentation result of the bird's-eye view in the fuselage coordinate system, that is, the semantic segmentation result of the BEV (Bird's Eye View) map.

[0059] Among them, the semantic information of the object is the category of the object, and the category of the i-th object is C i ∈{0,1,...,N}, for example, the category of the first object is bed, and the category of the second object is bar sofa; the second pose information of the object is the position and posture of the object in the fuselage coordinate system, which can be specifically reflected by the 3D bounding box and the front facing angle. The 3D bounding box of the i-th object is B i ∈{0,1,...,N}, represented by 8 vertices, the front facing angle of the i-th object is Z i ∈[-π,π], it should be noted that, based on the first pose information of the robot, the feature points of the object in the image can be matched with the template in the database. Since the template in the database is generated after shooting from multiple perspectives of an object, the second pose information of the object can be obtained by matching. In addition, the 3D bounding box and the front orientation angle of the object can be determined by the 3D detection model to further determine the second pose information of the object, which is not specifically limited in this embodiment; the bird's-eye view semantic segmentation result is the result obtained by semantically segmenting the wall, passable ground, crossable object, non-crossable object, unexplored area, etc. in the map space, such as area A in the map space is a wall, and area B is a passable ground.

[0060] It should be noted that the body coordinate system takes the body of the mobile robot (such as its center of mass) as the origin, the front of the body as the positive direction of the X-axis, the left side of the body as the positive direction of the Y-axis, and the top of the body as the positive direction of the Z-axis, satisfying the right-hand coordinate system principle; the world coordinate system takes a fixed position on the indoor floor as the origin, and the fixed position is set by the technician, such as the center position of the indoor floor. This embodiment does not make a specific limitation. The Z-axis of the world coordinate system is parallel to the Z-axis of the body coordinate system, and the plane formed by the X-axis and Y-axis of the world coordinate system is the ground. The world coordinate system satisfies the right-hand coordinate system principle.

[0061] Step S13: combining the semantic information, the second pose information and the semantic segmentation result of the bird's-eye view with the first pose information to generate a semantic map.

[0062] It is understandable that the mobile robot is equipped with a semantic map generation module for generating a semantic map based on the perception results output by the visual perception module. Specifically, the semantic map generation module takes the semantic information of the object, the second posture information of the object and the semantic segmentation result of the bird's-eye view as input, and combines the first posture information, such as the robot posture change The posture data of the robot in different coordinate systems can generate a semantic map in a world coordinate system or a semantic map in a body coordinate system, which is not specifically limited in this embodiment.

[0063] It should be noted that the semantic map can be specifically divided into a local semantic map and a global semantic map, where the local semantic map refers to the semantic map of the surrounding area of ​​the mobile robot, which is used for the mobile robot to avoid obstacles during operation; the global semantic map refers to the semantic map of the entire room, which is used for display in the APP. The technicians can set the output content of the semantic map generation module according to actual needs, and can output the local semantic map or the global semantic map separately, or can output the local semantic map and the global semantic map at the same time, which is not specifically limited in this embodiment.

[0064] In a technical solution provided in this embodiment, the camera parameters of the robot and the image collected by the robot are obtained, and then the semantic information and the second pose information of the object in the image, as well as the semantic segmentation result of the bird's-eye view are determined according to the camera parameters and the image, and finally the semantic information, the second pose information and the semantic segmentation result of the bird's-eye view are combined with the first pose information to generate a semantic map. The whole process only needs to collect images in indoor scenes through visual sensors, and then combine the camera parameters to determine various types of information of the object, and further generate the required semantic map. Compared with estimating the semantic information of the object through the camera and estimating the position of the object through the depth sensor, this application does not need to use a depth sensor, and only needs to use a visual sensor to estimate the semantic information and pose of the object, which significantly reduces the cost of generating the semantic map.

[0065] Furthermore, a second embodiment of the semantic map generation method of the present invention is proposed. Figure 2 In the illustrated embodiment, the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image comprises:

[0066] Step S21: Encoding the image to obtain image features;

[0067] Step S22: performing transcoding based on the camera parameters and the image features to obtain bird's-eye view features;

[0068] Step S23: Determine the semantic information and second pose information of the object in the image, as well as the bird's-eye view semantic segmentation result, based on the bird's-eye view features.

[0069] It can be understood that the visual perception module includes an image encoding module, a conversion module, a 3D detection model and a BEV map segmentation model.

[0070] Specifically, see Figure 3 , the image is encoded through an image encoding module to obtain corresponding image features. The aforementioned image encoding module includes but is not limited to a backbone network commonly used in image detection / segmentation tasks, such as a residual network (ResNet), a Swin-T network model, etc.

[0071] Specifically, the image features and camera parameters are input into the conversion module, and the image features in the image coordinate system are converted into bird's-eye view features under the bird's-eye view perspective. The aforementioned transcoding module includes but is not limited to LSS, Transformer, etc. It should be noted that in order to save memory, the bird's-eye view can be represented in the form of a grid map. For example, the grid unit is a square of 0.05m*0.05m.

[0072] Specifically, according to the bird's-eye view features, on the one hand, the first perception result, i.e., the semantic information and the second posture information of the object, is determined by the 3D detection model, and on the other hand, the second perception result, i.e., the bird's-eye view semantic segmentation result, is determined by the BEV map segmentation model.

[0073] In a technical solution provided in this embodiment, encoding is performed based on the image to obtain image features, and then transcoding is performed based on camera parameters and image features to obtain bird's-eye view features. Finally, the semantic information and second pose information of the object, as well as the bird's-eye view semantic segmentation result, are determined based on the bird's-eye view features. A technical solution provided in this embodiment first transcodes image features into bird's-eye view features, and then determines pose information and semantic information based on the bird's-eye view features, providing more accurate parameters for the subsequent generation of semantic maps.

[0074] Furthermore, a third embodiment of the semantic map generation method of the present invention is proposed. Based on the above second embodiment, the step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the bird's-eye view features includes:

[0075] Step S31: determining a 3D bounding box and a frontal orientation angle of the object in the image according to the bird's-eye view features;

[0076] Step S32: determining corresponding semantic information and second pose information according to the 3D bounding box and the frontal orientation angle;

[0077] Step S33: performing binary classification prediction on the bird's-eye view features to obtain a bird's-eye view semantic segmentation result.

[0078] Specifically, the 3D detection model uses a heat map regression method for each object category to obtain the center position of the object in that category and uses other regression models to obtain the object size and rotation angle of the object, and then calculates the 3D bounding box and the front orientation angle, and further determines the semantic information and the second pose information of the object based on the 3D bounding box and the front orientation angle.

[0079] Specifically, the map semantic categories include: wall, passable ground, crossable object, non-crossable object, unexplored area. The technicians can adjust the categories based on application scenarios, user needs and other factors. Furthermore, the bird's-eye view features are semantically segmented based on walls, passable ground, crossable objects, non-crossable objects, and unexplored areas. Specifically, a binary classification prediction method is adopted. The map semantic category of the bird's-eye view at the coordinate (x, y) in the fuselage coordinate system is represented by S(x, y)∈{0,1,...,M}, such as S(1,1)∈wall, S(2,2)∈passable ground.

[0080] It should be noted that the neural network in the visual perception module can be trained in a supervised learning manner. During the training process, the parameters of the neural network are updated using the gradient descent method. The selected loss function consists of two parts: one is the loss function for 3D detection, and the other is the loss function for bird's-eye view semantic segmentation. Among them, the loss function for 3D detection can use the loss function commonly used in this task (including classification loss, position loss, yaw angle loss (direction loss), IoU loss, corner loss). This solution only considers the objects contained in the camera's viewing cone when calculating the true value of the loss function; the loss function for bird's-eye view semantic segmentation uses the focal loss loss function. This solution only considers the map area projected on the ground by the camera's viewing cone when calculating the true value of the loss function. In one embodiment, the image encoding module can load pre-trained weights, and then fine-tune the training of other modules. The pre-trained weights of the above-mentioned image encoding module come from the visual perception task for 2D images of indoor scenes.

[0081] In a technical solution provided in this embodiment, on the one hand, the 3D bounding box and the frontal orientation angle of the object in the image are determined according to the bird's-eye view features, and the corresponding semantic information and the second pose information are determined according to the 3D bounding box and the frontal orientation angle. On the other hand, a binary classification prediction is performed on the bird's-eye view features to obtain the bird's-eye view semantic segmentation result. A technical solution provided in this embodiment provides a specific process for processing the bird's-eye view features through the 3D detection model and the BEV map segmentation model in the visual perception module to obtain the semantic information, the second pose information, and the bird's-eye view semantic segmentation result. In this process, supervised learning can also be performed through the loss function to improve the performance of the visual perception module.

[0082] Furthermore, a fourth embodiment of the semantic map generation method of the present invention is proposed. Based on the above first embodiment, the step of combining the semantic information, the second pose information and the bird's-eye view semantic segmentation result with the first pose information to generate a semantic map includes:

[0083] Step S41: determining a homogeneous form of a coordinate transformation matrix according to the first posture information;

[0084] Step S42: based on the homogeneous form of the coordinate transformation matrix, transforming the coordinates of the second pose information and the bird's-eye view semantic segmentation result in the fuselage coordinate system into coordinates in the world coordinate system;

[0085] Step S43: Counting the coordinate projections of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system, and combining the semantic information and the first pose information to generate a semantic map.

[0086] It can be understood that the mobile robot is configured with a semantic map generation module, which is used to generate a semantic map according to the perception results output by the visual perception module, and specifically includes a coordinate system conversion module and a map generation module.

[0087] It should be noted that the limited semantic map is a map in the world coordinate system, so it is necessary to convert the body coordinate system into the world coordinate system through the coordinate system conversion module. Specifically, the robot's position T in the world coordinate system in the first pose information is obtained. w and the pose T in the fuselage coordinate system r , the pose T in the fuselage coordinate system r The corresponding pose in the world coordinate system is Then determine the homogeneous form of the coordinate transformation matrix

[0088] Furthermore, since the second pose information of the object and the semantic segmentation result of the bird's-eye view are both data in the fuselage coordinate system, see Figure 4 ,In the coordinate system conversion module, based on the homogeneous form of the above coordinate transformation matrix, the coordinates of the second pose information and the ,semantic segmentation result of the bird’s-eye view in the fuselage coordinate system are transformed into ,coordinates in the world coordinate system.

[0089] Furthermore, the coordinate projection of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system is statistically calculated, and combined with the semantic information of the object and the first pose information of the robot, and the corresponding map generation module is used to generate a local semantic map or a global semantic map separately, or to generate a local semantic map and a global semantic map at the same time, which is not specifically limited in this embodiment.

[0090] In a technical solution provided in this embodiment, first, according to the coordinates of the robot in the body coordinate system and the world coordinate system in the first pose information, the homogeneous form of the coordinate transformation matrix is ​​determined, and the coordinates of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system are further determined and counted, and finally, the semantic information and the first pose information are combined to generate a semantic map. A technical solution provided in this embodiment converts the data in the body coordinate system into the data in the world coordinate system through the coordinate transformation matrix, and combines the first pose information and the semantic information in the same coordinate system to provide data in the same coordinate system for the generation of the semantic map, so as to ensure that the generated semantic maps are all map data in the world coordinate system, which is convenient for subsequent analysis and comparison between different semantic maps.

[0091] Furthermore, a fifth embodiment of the method for generating a semantic map of the present invention is proposed. Based on the fourth embodiment, the semantic map includes a local semantic map and a global semantic map, and the steps of generating a semantic map by counting the second pose information and the coordinate projection of the bird's-eye view semantic segmentation result in the world coordinate system and combining the semantic information and the first pose information include:

[0092] Step S51: Counting the coordinate projections of the semantic segmentation results of the bird's-eye view within a first preset time in the world coordinate system, and combining the first pose information to generate a local semantic map;

[0093] It can be understood that the map generation module specifically includes a local map generation module and a global map generation module, the former is used to generate a local semantic map, and the latter is used to generate a global semantic map.

[0094] Specifically, the coordinate projection of the semantic segmentation result of the bird's-eye view in the world coordinate system within the first preset time length and the coordinate projection of the first position information of the robot in the world coordinate system within the first preset time length are counted, and a fixed area around the robot is intercepted to generate a local semantic map for robot navigation and obstacle avoidance. Exemplarily, the semantic categories in the semantic segmentation result of the bird's-eye view include walls, passable ground, crossable objects, non-crossable objects, and unexplored areas. After the local semantic map is generated, if area A is passable ground, area B is crossable objects, area C is non-crossable objects, and area D is an unexplored area, the robot can only pass through areas A and B, and cannot pass through areas C and D.

[0095] It should be noted that the first preset duration can be a fixed duration set by a technician based on a product model, application scenario, etc., or it can be the actual duration for a robot to complete a task, and this embodiment does not make any specific limitation.

[0096] Step S52: Counting the coordinate projection of the second posture information in the world coordinate system within a second preset time period, and combining the semantic information to generate a global semantic map;

[0097] Specifically, the coordinate projection of the second posture information of the object in the world coordinate system within the second preset time is counted, and combined with the semantic information corresponding to the object, a global semantic map is generated. For example, the user can intuitively see the position and orientation of each object in the global map through the 2D map and 3D map in the APP, such as the sofa is located in area A of the indoor space, facing due east, and the TV is located in area B of the indoor space, facing due west.

[0098] It should be noted that the second preset duration may be a fixed duration set by the user, or may be the sum of the first preset durations, which is not specifically limited in this embodiment.

[0099] In a technical solution provided by this embodiment, on the one hand, the coordinate projection of the semantic segmentation result of the bird's-eye view in the world coordinate system within the first preset time is counted, combined with the first pose information, to generate a local semantic map, and on the other hand, the coordinate projection of the second pose information in the world coordinate system within the second preset time is counted, combined with the semantic information, to generate a global semantic map. A technical solution provided by this embodiment subdivides the semantic map into a local semantic map and a global semantic map, which can not only help the robot navigate and avoid obstacles, but also display indoor information to users, thereby improving information utilization.

[0100] Furthermore, a sixth embodiment of the semantic map generation method of the present invention is proposed. Based on the fifth embodiment, the step of generating a global semantic map by counting the coordinate projection of the second posture information in the world coordinate system within the second preset time period and combining the semantic information includes:

[0101] Step S61: Count the coordinate projections of the second posture information in the world coordinate system within a second preset time length, combine the semantic information, generate an initial global semantic map, and process the repeated parts in the initial global semantic map according to preset filtering and voting rules to obtain a global semantic map.

[0102] It is understandable that after the coordinate projection of the second pose information in the world coordinate system within the second preset time period is counted and combined with the semantic information to generate the initial global semantic map, it is very likely that repeated object information will appear. Therefore, it is necessary to process the repeated parts in the initial global semantic map according to the preset filtering and voting rules to obtain the final global semantic map. It should be noted that the above-mentioned preset filtering and voting rules are set by the technicians based on factors such as product model and actual apartment type, and are not specifically limited in this embodiment.

[0103] In a technical solution provided by this embodiment, the coordinate projection of the second pose information in the world coordinate system within the second preset time length is counted, combined with the semantic information, to generate an initial global semantic map, and the repeated parts in the initial global semantic map are processed according to the preset filtering and voting rules to obtain a global semantic map. A technical solution provided by this embodiment processes the repeated parts in the generated initial global semantic map through preset filtering and voting rules, while ensuring the accuracy of the global semantic map, shortening the time to establish the global semantic map and improving the efficiency of establishing the global semantic map.

[0104] Further, see Figure 5 , a seventh embodiment of the semantic map generation method of the present invention is proposed. Based on the above first embodiment, before the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image, the method includes:

[0105] Step S71: determining a rotation angle between the robot and the ground according to the first posture information;

[0106] Step S72: if the rotation angle satisfies the preset angle, the step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the camera parameters and the image is performed;

[0107] Step S73: If the rotation angle does not meet the preset angle, a warning is output.

[0108] It can be understood that the mobile robot is equipped with a SLAM module, which can be used to estimate the first pose information of the robot. The first pose information output by the SLAM module is generated based on the cross section of the robot. When the mobile robot moves on uneven ground, that is, the rotation angle of the mobile robot around the X-axis and Y-axis in the world coordinate system estimated by the SLAM module is not 0, there is an angle between the cross section of the robot and the ground. If the subsequent steps are executed directly based on the current first pose information, the semantic map finally generated will have a certain deviation from the real environment.

[0109] Specifically, the rotation angle between the robot and the ground is determined according to the first pose information. If the rotation angle meets the preset angle, it means that the current cross section of the robot is parallel to the ground, so the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image can be directly executed; conversely, if the rotation angle does not meet the preset angle, it means that there is a deviation between the current cross section of the robot and the ground, so a warning is output, and accordingly, the visual perception module stops outputting the semantic information, the second pose information and the bird's-eye view semantic segmentation result.

[0110] In a technical solution provided by this embodiment, the rotation angle between the robot and the ground is determined according to the first posture information, and according to the relationship between the rotation angle and the preset angle, it is determined whether to output a warning and the visual perception module is suspended from outputting. A technical solution provided by this embodiment determines whether the robot is moving on a flat ground by the relationship between the rotation angle and the preset angle, so as to reduce errors and ensure that the semantic map generated subsequently is consistent with the real environment.

[0111] The embodiment of the present invention provides a semantic map generating device, referring to Figure 6 , a schematic diagram of functional modules of an embodiment of a semantic map generating device of the present invention.

[0112] An acquisition module, used to acquire camera parameters of the robot and images collected by the robot, wherein the camera parameters include first pose information;

[0113] A determination module, used to determine the semantic information and second pose information of the object in the image, and a bird's-eye view semantic segmentation result according to the camera parameters and the image;

[0114] A generation module is used to combine the semantic information, the second posture information and the bird's-eye view semantic segmentation result with the first posture information to generate a semantic map.

[0115] Since the embodiments of the device part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.

[0116] An embodiment of the present invention provides a semantic map generation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps in any embodiment of the semantic map generation method.

[0117] Since the embodiments of the semantic map generating device part and the embodiments of the method part correspond to each other, the embodiments of the semantic map generating device part refer to the description of the embodiments of the method part, which will not be repeated here.

[0118] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in any embodiment of the semantic map generating method are implemented.

[0119] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the computer-readable storage medium part, and will not be repeated here.

[0120] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0121] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0123] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A semantic map generation method, It is characterized in that The semantic map generation method comprises the following steps: Acquire the camera parameters of the robot and the images collected by the robot, wherein the camera parameters include the first pose information; Determine semantic information and second pose information of an object in the image, and a bird's-eye view semantic segmentation result according to the camera parameters and the image; The semantic information, the second pose information and the semantic segmentation result of the bird's-eye view are combined with the first pose information to generate a semantic map.

2. The method for generating a semantic map according to claim 1, It is characterized in that The step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image comprises: Perform encoding based on the image to obtain image features; Transcoding is performed based on the camera parameters and the image features to obtain bird's-eye view features; According to the bird's-eye view features, semantic information and second pose information of the object in the image, as well as a bird's-eye view semantic segmentation result are determined.

3. The method for generating a semantic map according to claim 2, It is characterized in that The step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the bird's-eye view features comprises: Determine a 3D bounding box and a frontal orientation angle of the object in the image according to the bird's-eye view features; Determine corresponding semantic information and second pose information according to the 3D bounding box and the frontal orientation angle; A binary classification prediction is performed on the bird's-eye view features to obtain a bird's-eye view semantic segmentation result.

4. The method for generating a semantic map according to claim 1, It is characterized in that The step of combining the semantic information, the second pose information and the bird's-eye view semantic segmentation result with the first pose information to generate a semantic map comprises: Determine a homogeneous form of a coordinate transformation matrix according to the first posture information; Based on the homogeneous form of the coordinate transformation matrix, transform the coordinates of the second pose information and the bird's-eye view semantic segmentation result in the fuselage coordinate system into coordinates in the world coordinate system; The coordinate projections of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system are counted, and the semantic information and the first pose information are combined to generate a semantic map.

5. The method for generating a semantic map according to claim 4, It is characterized in that The semantic map includes a local semantic map and a global semantic map, and the steps of statistically projecting the coordinates of the second pose information and the bird's-eye view semantic segmentation result in the world coordinate system and combining the semantic information and the first pose information to generate the semantic map include: Counting the coordinate projection of the semantic segmentation result of the bird's-eye view within a first preset time period in the world coordinate system, and combining the first pose information to generate a local semantic map; The coordinate projection of the second posture information in the world coordinate system within a second preset time period is counted, and combined with the semantic information to generate a global semantic map.

6. The method for generating a semantic map according to claim 5, It is characterized in that The step of counting the coordinate projection of the second posture information in the world coordinate system within the second preset time period and combining the semantic information to generate a global semantic map includes: The coordinate projection of the second posture information in the world coordinate system within a second preset time length is counted, and an initial global semantic map is generated in combination with the semantic information. The repeated parts in the initial global semantic map are processed according to preset filtering and voting rules to obtain a global semantic map.

7. The method for generating a semantic map according to claim 1, It is characterized in that Before the step of determining the semantic information and the second pose information of the object in the image and the bird's-eye view semantic segmentation result according to the camera parameters and the image, the method includes: Determine a rotation angle between the robot and the ground according to the first posture information; If the rotation angle satisfies the preset angle, the step of determining the semantic information and the second pose information of the object in the image and the semantic segmentation result of the bird's-eye view according to the camera parameters and the image is performed; If the rotation angle does not meet the preset angle, a warning is output.

8. A semantic map generating device, It is characterized in that The device comprises: An acquisition module, used to acquire camera parameters of the robot and images collected by the robot, wherein the camera parameters include first pose information; A determination module, used to determine the semantic information and second pose information of the object in the image, and a bird's-eye view semantic segmentation result according to the camera parameters and the image; A generation module is used to combine the semantic information, the second posture information and the bird's-eye view semantic segmentation result with the first posture information to generate a semantic map.

9. A semantic map generating device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the semantic map generation method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the semantic map generation method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Robot unknown environment mapping method based on visual scene understanding

    CN119779323A