Indoor decoration robot site planning method and device based on three-dimensional semantic map
By using a method based on three-dimensional semantic maps to generate robot paths and derive points, the problem of a single applicable scenario and low accuracy in site planning for decoration robots is solved, and efficient and accurate site planning in different scenarios is achieved.
Patent Information
- Application Number
- CN202410669396.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-28
AI Technical Summary
Existing decoration robot site planning has a single applicable scenario and low accuracy. It requires frequent recalculation, which is time-consuming and costly.
An interior decoration robot site planning method based on a three-dimensional semantic map is adopted. By generating a three-dimensional semantic map, obtaining target object parameters, deriving point locations, and using the SLAM path planning algorithm and multi-agent reinforcement learning algorithm to generate the robot path, the robot can be used in different scenarios. General site plan.
It achieves versatility and high accuracy in site planning, saves time and labor costs, and improves planning efficiency.
Smart Images

Figure CN118559705A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of indoor decoration robots, and in particular relates to a site planning method and device for indoor decoration robots based on three-dimensional semantic maps. Background Art
[0002] In the field of interior decoration and auxiliary construction, robots are used more and more widely. Therefore, studying the robot's work path planning is of great significance in improving work efficiency, ensuring construction quality, reducing safety risks, saving labor costs, and improving flexibility.
[0003] In the past, path planning was often done manually based on past experience to calculate the robot's workstation. Usually, workers or process personnel calculated the specific workstation based on past experience. The disadvantages of this method are: (1) The calculated workstation is only applicable to a single scene and is not universal. Each time the scene changes, the workstation needs to be recalculated, which is costly and time-consuming. (2) The site planned based on experience is not accurate and has large errors. Summary of the invention
[0004] In view of the defects of the related technology, the purpose of the present invention is to provide a method and device for indoor decoration robot site planning based on three-dimensional semantic map, aiming to solve the technical problems that the existing decoration robot site planning has a single applicable scenario and low accuracy.
[0005] In order to solve the above technical problems, the present invention is implemented as follows.
[0006] According to one aspect of the present invention, a method for indoor decoration robot site planning based on a three-dimensional semantic map is provided, comprising the following steps:
[0007] S1. Generate a 3D semantic map of the task to be decorated, specifically including the following steps:
[0008] Collect indoor environment data and extract geographic images;
[0009] Feature extraction and classification are performed on the collected geographic images to identify different types of entities.
[0010] Determining a pixel value of each entity based on the type of each entity;
[0011] The contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value;
[0012] Generate a three-dimensional semantic map through each entity quadruple;
[0013] Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm;
[0014] The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained;
[0015] S2. Obtain the target object parameters and working mode of the room where the robot is located, which specifically includes the following steps:
[0016] S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object;
[0017] S22, the robot scans each target object, obtains the parameters of each target object, forms a parameter array of each target object, and stores it in a cache; each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n}, where n is the number of target objects obtained in step S21, a n The parameter array for the nth target object;
[0018] S23, determining a working mode of the robot, wherein the working mode is spraying or polishing;
[0019] S3, deriving the point position according to the target object parameters, specifically including the following steps:
[0020] S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23;
[0021] S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system;
[0022] S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm;
[0023] S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism;
[0024] Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm;
[0025] S4, perform single room point planning and generate point planning data for the room;
[0026] S5. Perform location planning for all rooms under the task to be decorated based on the generated single room planning locations.
[0027] According to another aspect of the present invention, there is provided an interior decoration robot site planning device based on a three-dimensional semantic map, comprising: a semantic map generation module, a parameter acquisition module, a point derivation module, a single-room planning module, and a multi-room planning module. Each module is installed inside the robot and data is transmitted between them through a wireless communication protocol.
[0028] The semantic map generation module is configured to generate a three-dimensional semantic map of the task to be decorated, which is specifically achieved by: collecting indoor environment data through the robot's built-in sensors and extracting geographic images;
[0029] Further, the geographic image is a three-dimensional image of the room where the robot is located;
[0030] Feature extraction and classification are performed on the collected geographic images to identify different types of entities.
[0031] Determining a pixel value of each entity based on the type of each entity;
[0032] Furthermore, the contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value;
[0033] Generate a three-dimensional semantic map through each entity quadruple;
[0034] Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm;
[0035] The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained;
[0036] The parameter acquisition module is configured to obtain the target object parameters and working mode of the room where the robot is located, which is specifically achieved in the following ways:
[0037] S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object;
[0038] S22, the robot scans each target object, obtains the parameters of each target object, forms a parameter array of each target object, and stores it in a cache; each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n}, where n is the number of target objects obtained in step S21, a n The parameter array for the nth target object;
[0039] S23, determining a working mode of the robot, wherein the working mode is spraying or polishing;
[0040] The point derivation module is configured to derive the point according to the target object parameters, which is implemented in the following ways:
[0041] S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23;
[0042] S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system;
[0043] S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm;
[0044] S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism;
[0045] Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm;
[0046] A single room planning module is configured to perform single room point planning and generate point planning data for the room;
[0047] The multi-room planning module is configured to perform point planning for all rooms in the scenario based on the generated single-room planning points.
[0048] The beneficial effects of the present invention are:
[0049] (1) The points of all rooms are derived according to the target object parameters and working mode, so that the calculated work stations are applicable to different scenarios, have universality, and save time and labor costs. (2) The points planned according to the present invention are highly accurate. (3) When planning room points, the target parameters are stored and read using a cache, so that the planned points of multiple objects in the room can be obtained at the same time, improving planning efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a process of a site planning method for an indoor decoration robot based on a three-dimensional semantic map according to the present invention;
[0051] Figure 2 It is a schematic diagram of each module of a site planning device for an indoor decoration robot based on a three-dimensional semantic map according to the present invention; DETAILED DESCRIPTION
[0052] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0053] Example 1
[0054] like Figure 1 As shown, the present invention proposes a site planning method for an indoor decoration robot based on a three-dimensional semantic map, which specifically includes the following steps:
[0055] S1, generating a three-dimensional semantic map of the task to be decorated;
[0056] Furthermore, the to-be-decorated tasks are tasks received by the indoor decoration robot, including all rooms that need to be operated by the indoor decoration robot this time;
[0057] The robot's built-in sensors collect indoor environmental data, process and analyze the data, and extract geographic images;
[0058] Further, the geographic image is a three-dimensional image of the room where the robot is located;
[0059] Furthermore, the sensor is a binocular camera or a laser radar, which can rotate 360 degrees to collect indoor environment data in all directions;
[0060] Feature extraction and classification are performed on the collected geographic images to identify different types of entities.
[0061] Specifically, the collected geographic images are used as input to the Transformer-based small sample fine-grained image classification model to obtain different types of entities;
[0062] Furthermore, the types of the entities are walls, corners, doors, windows, columns, roofs, and beams;
[0063] Determining a pixel value of each entity based on the type of each entity;
[0064] Furthermore, the background is black, with a pixel value of RGB(0, 0, 0); the wall is green, with a pixel value of RGB(0, 255, 0); the corner is purple, with a pixel value of RGB(255, 0, 255); the door is yellow, with a pixel value of RGB(255, 255, 0); the window is sky blue, with a pixel value of RGB(0, 255, 255); the pillar is red, with a pixel value of RGB(255, 0, 0); the ceiling is dark gray, with a pixel value of RGB(195, 195, 195); and the beam is light gray, with a pixel value of RGB(127, 127, 127).
[0065] Furthermore, the contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value;
[0066] The contour layer is a layer between the outer edge of the contour and the inside of the entity;
[0067] Generate a three-dimensional semantic map through each entity quadruple;
[0068] Further, identifying and marking entities of type gate in each quadruple;
[0069] Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm;
[0070] The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained;
[0071] Determine the entry gate of the task according to the three-dimensional semantic map, and construct a three-dimensional coordinate system for the three-dimensional semantic map based on the entry gate as the origin of the three-dimensional coordinate system;
[0072] Move the robot to the coordinate origin.
[0073] S2. Obtain the target object parameters and working mode of the room where the robot is located, which specifically includes the following steps:
[0074] S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object;
[0075] S22, the robot scans each target object, obtains parameters of each target object, forms a parameter array of each target object, and stores it in a cache, wherein the parameter array includes: type, height, width, L(x1, y1, z1), R(x2, y2, z2);
[0076] The L(x1, y1, z1) is the coordinate of the lower left point of the target object in the three-dimensional coordinate system, which is the initial working point;
[0077] The R(x2, y2, z2) is the coordinate of the upper rightmost point of the target object in the three-dimensional coordinate system, which is the end working point;
[0078] Among them, x 1、 y 1、 z1 are the values of the lower left point of the target object on the x-axis, y-axis, and z-axis of the three-dimensional coordinate system;
[0079] Furthermore, each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n}, where n is the number of target objects obtained in step S21, a n ={type, height, width, L(x1, y1, z1), R(x2, y2, z2)};
[0080] The types are wall, corner, door, window, column, top plate, and beam, which are the same as in step S1;
[0081] S23, determining a working mode of the robot, wherein the working mode is spraying or polishing;
[0082] Furthermore, the working mode is selected by the user at the control end.
[0083] S3, deriving the point position according to the target object parameters, specifically including the following steps:
[0084] S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23;
[0085] S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system;
[0086] Furthermore, the initial working point posture and the ending working point posture in the three-dimensional coordinate system can be expressed as (x1, y1, z1, α1, β1, γ1) and (x2, y2, z2, α2, β2, γ2), respectively. α1, β1, and γ1 are respectively the preset maximum posture angles of the robot arm in the three dimensions of the initial working point, and α2, β2, and γ2 are respectively the preset maximum posture angles of the robot arm in the three dimensions of the ending working point;
[0087] S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm;
[0088] S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism;
[0089] The rotatable angle of the robot arm set by the user is set according to the actual needs of the user, for example
[0090] {-20,-10,0,10,20}, but not limited to.
[0091] Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm;
[0092] The reward and punishment mechanism is as follows:
[0093] If the robot reaches the second end position without collision, the reward is set to N1, and the task is marked as completed, ending the round;
[0094] Before the robot reaches the second end position, each simulated move has a penalty of N2;
[0095] Before the robot reaches the second end point posture, if after one simulation movement, the Euclidean distance between the posture in the joint coordinate system and the second end point posture becomes smaller, then a reward of N3 is obtained;
[0096] If the robot collides with an obstacle or collides with itself during movement, it will be penalized -N1, marked as mission completed, and the round ends. The values of N1, N2, and N3 can be set according to actual needs; for example, N1 = 1, N2 = -0.01, N3 = 0.02, but not limited to this.
[0097] S4, performing single room point planning and generating point planning data for the room, specifically including the following steps:
[0098] S41, obtain a2, ...a from the cache in sequence n , and at the same time generate each target object point according to the same method as step S3;
[0099] S42, obtaining the planned points between the target objects according to the SLAM algorithm;
[0100] S44, merging the target object points with the planned points between the target objects, obtaining the planned points of the room, and storing them in the cache;
[0101] S5. Performing point planning for all rooms under the task to be decorated according to the generated single-room planning points, specifically including the following steps:
[0102] S51, click on the physical object door that can enter the next room on the control end, and drive the robot to the location;
[0103] S52, repeat steps S2-S4, obtain the planning point of the next room, and store it in the cache;
[0104] S53, repeat steps S51-S52 until all room points are planned;
[0105] S54, obtaining the coordinates of all physical object doors clicked by the user that can enter the next room, taking out all room planning points from the cache, merging the obtained door coordinates with all room planning points, and obtaining the planning points of all rooms in the scene.
[0106] Example 2
[0107] like Figure 2 As shown, the present invention proposes an interior decoration robot site planning device based on a three-dimensional semantic map, including: a semantic map generation module, a parameter acquisition module, a point derivation module, a single-room planning module, and a multi-room planning module. Each module is installed inside the robot and transmits data between them through a wireless communication protocol.
[0108] A semantic map generation module configured to generate a three-dimensional semantic map of the task to be decorated;
[0109] Furthermore, the to-be-decorated tasks are tasks received by the indoor decoration robot, including all rooms that need to be operated by the indoor decoration robot this time;
[0110] The robot's built-in sensors collect indoor environmental data, process and analyze the data, and extract geographic images;
[0111] Further, the geographic image is a three-dimensional image of the room where the robot is located;
[0112] Furthermore, the sensor is a binocular camera or a laser radar, which can rotate 360 degrees to collect indoor environment data in all directions;
[0113] Feature extraction and classification are performed on the collected geographic images to identify different types of entities.
[0114] Specifically, the collected geographic images are used as input to the Transformer-based small sample fine-grained image classification model to obtain different types of entities;
[0115] Furthermore, the types of the entities are walls, corners, doors, windows, columns, roofs, and beams;
[0116] Determining a pixel value of each entity based on the type of each entity;
[0117] Furthermore, the background is black, with a pixel value of RGB(0, 0, 0); the wall is green, with a pixel value of RGB(0, 255, 0); the corner is purple, with a pixel value of RGB(255, 0, 255); the door is yellow, with a pixel value of RGB(255, 255, 0); the window is sky blue, with a pixel value of RGB(0, 255, 255); the pillar is red, with a pixel value of RGB(255, 0, 0); the ceiling is dark gray, with a pixel value of RGB(195, 195, 195); and the beam is light gray, with a pixel value of RGB(127, 127, 127).
[0118] Furthermore, the contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value;
[0119] The contour layer is a layer between the outer edge of the contour and the inside of the entity;
[0120] Generate a three-dimensional semantic map through each entity quadruple;
[0121] Further, identifying and marking entities of type gate in each quadruple;
[0122] Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm;
[0123] The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained;
[0124] Determine the entry gate of the task according to the three-dimensional semantic map, construct a three-dimensional coordinate system for the three-dimensional semantic map based on the entry gate as the origin of the three-dimensional coordinate system, and then form a mapping relationship SCR between each quadruple and its corresponding three-dimensional coordinate<D,V,N,R> →R(x2,y2,z2), where R(x2,y2,z2) is the coordinate of the upper rightmost point of the entity in the two-dimensional coordinate system;
[0125] Among them, x2, y2, and z2 are the values of the upper rightmost point of the entity on the x-axis, y-axis, and z-axis of the three-dimensional coordinate system respectively;
[0126] Move the robot to the coordinate origin.
[0127] The parameter determination module is configured to obtain the target object parameters and working mode of the room where the robot is located, which is specifically achieved by the following methods:
[0128] S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object;
[0129] S22, the robot scans each target object, obtains parameters of each target object, forms a parameter array of each target object, and stores it in a cache, wherein the parameter array includes: type, height, width, L(x1, y1, z1), R(x2, y2, z2);
[0130] The L(x1, y1, z1) is the coordinate of the lower left point of the target object in the three-dimensional coordinate system;
[0131] Among them, x 1、 y 1、 z1 are the values of the lower left point of the target object on the x-axis, y-axis, and z-axis of the three-dimensional coordinate system;
[0132] Furthermore, each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n}, where n is the number of target objects obtained in step S21, a n ={type, height, width, L(x1, y1, z1), R(x2, y2, z2)};
[0133] The types are wall, corner, door, window, column, top plate, and beam, which are the same as in step S1;
[0134] S23, determining the working mode of the robot, the working modes shown are spraying and grinding;
[0135] Furthermore, the working mode is selected by the user at the control end.
[0136] The point derivation module is configured to derive the point according to the target object parameters, which is implemented in the following ways:
[0137] S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23;
[0138] S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system;
[0139] Furthermore, the initial working point posture and the ending working point posture in the three-dimensional coordinate system can be expressed as (x1, y1, z1, α1, β1, γ1) and (x2, y2, z2, α2, β2, γ2), respectively. α1, β1, and γ1 are respectively the preset maximum posture angles of the robot arm in the three dimensions of the initial working point, and α2, β2, and γ2 are respectively the preset maximum posture angles of the robot arm in the three dimensions of the ending working point;
[0140] S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm;
[0141] S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism;
[0142] The rotatable angle of the robot arm set by the user is set according to the actual needs of the user, for example
[0143] {-20,-10,0,10,20}, but not limited to.
[0144] Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm;
[0145] The reward and punishment mechanism is as follows:
[0146] If the robot reaches the second end position without collision, the reward is set to N1, and the task is marked as completed, ending the round;
[0147] Before the robot reaches the second end position, each simulated move has a penalty of N2;
[0148] Before the robot reaches the second end point posture, if after one simulation movement, the Euclidean distance between the posture in the joint coordinate system and the second end point posture becomes smaller, then a reward of N3 is obtained;
[0149] If the robot collides with an obstacle or collides with itself during movement, it will be penalized -N1, marked as mission completed, and the round ends. The values of N1, N2, and N3 can be set according to actual needs; for example, N1 = 1, N2 = -0.01, N3 = 0.02, but not limited to this.
[0150] The single room planning module is configured to perform single room point planning and generate point planning data for the room, which is specifically implemented in the following ways:
[0151] S41, obtain a2, ...a from the cache in sequencen , and at the same time generate each target object point according to the same method as step S3;
[0152] S42, obtaining the planned points between the target objects according to the SLAM algorithm;
[0153] S44: Merge the target object points with the planned points between the target objects to obtain the planned points of the room and store them in the cache.
[0154] The multi-room planning module is configured to plan the points of all rooms in the scenario according to the generated single-room planning points, which is implemented in the following ways:
[0155] S51, click on the physical object door that can enter the next room on the control end, and drive the robot to the location;
[0156] S52, repeat steps S2-S4, obtain the planning point of the next room, and store it in the cache;
[0157] S53, repeat steps S51-S52 until all room points are planned;
[0158] S54, obtaining the coordinates of all physical object doors clicked by the user that can enter the next room, taking out all room planning points from the cache, merging the obtained door coordinates with all room planning points, and obtaining the planning points of all rooms in the scene.
[0159] Example 3
[0160] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the interior decoration and auxiliary construction robot site planning method based on a three-dimensional semantic map described in Example 1.
[0161] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is read and executed by a processor, the method for interior decoration and auxiliary construction robot site planning based on a three-dimensional semantic map described in Example 1 is executed.
[0162] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0165] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a physical server, or a network cloud server, etc., which needs to be installed with Windows or Windows Server operating system) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0166] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention still falls within the scope of the technical solution of the present invention.
Claims
1. A site planning method for an indoor decoration robot based on a three-dimensional semantic map, comprising the following steps: S1. Generate a 3D semantic map of the task to be decorated, specifically including the following steps: Collect indoor environment data and extract geographic images; Extract and classify features of the collected geographic images to identify different types of entities; Determining a pixel value of each entity based on the type of each entity; The contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value; Generate a three-dimensional semantic map through each entity quadruple; Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm; The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained; S2. Obtain the target object parameters and working mode of the room where the robot is located, which specifically includes the following steps: S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object; S22, the robot scans each target object, obtains the parameters of each target object, forms a parameter array of each target object, and stores it in a cache; each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n }, where n is the number of target objects obtained in step S21, a n It is the parameter array of the nth target object; S23, determining a working mode of the robot, wherein the working mode is spraying or polishing; S3, deriving the point position according to the target object parameters, specifically including the following steps: S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23; S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system; S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm; S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism; Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm; S4, perform single room point planning and generate point planning data for the room; S5. Perform location planning for all rooms under the task to be decorated based on the generated single room planning locations.
2. The method according to claim 1, characterized in that The parameter array includes type, height, width, L(x1, y1, z1), R(x2, y2, z2); The L(x1, y1, z1) is the coordinate of the lower left point of the target object in the three-dimensional coordinate system, which is the initial working point; The R(x2, y2, z2) is the coordinate of the upper rightmost point of the target object in the three-dimensional coordinate system, which is the end working point; Among them, x 1、 y 1、 z 1、 x 2、 y2 and z2 are the values of the lower left point and upper right point of the target object on the x-axis, y-axis, and z-axis of the three-dimensional coordinate system respectively; Furthermore, each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n }, where n is the number of target objects obtained in step S21, a n ={type, height, width, L(x1, y1, z1), R(x2, y2, z2)}; The types are wall, corner, door, window, column, top plate, and beam, which are the same as those in step S1.
3. The method according to claim 2, characterized in that The reward and punishment mechanism is as follows: if the robot reaches the second end position without collision, the reward is set to N1, and the task is marked as completed, ending the round; Before the robot reaches the second end position, each simulated move has a penalty of N2; Before the robot reaches the second end point posture, if after one simulation movement, the Euclidean distance between the posture in the joint coordinate system and the second end point posture becomes smaller, then a reward of N3 is obtained; If the robot collides with an obstacle or itself during movement, it will receive a penalty of -N1, and the task will be marked as completed, ending the round. N1=1, N2=-0.01, N3=0.
02.
4. The method according to claim 3, characterized in that The single room point planning specifically includes the following steps: S41, obtain a2, ...a from the cache in sequence n , and at the same time generate each target object point according to the same method as step S3; S42, obtaining the planned points between the target objects according to the SLAM algorithm; S44: Merge the target object points with the planned points between the target objects to obtain the planned points of the room and store them in the cache.
5. The method according to claim 4, characterized in that The location planning of all rooms under the task to be decorated specifically includes the following steps: S51, click on the physical door that can enter the next room on the control end, and drive the robot to the position of the door; S52, repeat steps S2-S4, obtain the planning point of the next room, and store it in the cache; S53, repeat steps S51-S52 until all room points are planned; S54, obtaining the coordinates of all physical object doors clicked by the user that can enter the next room, taking out all room planning points from the cache, merging the obtained door coordinates with all room planning points, and obtaining the planning points of all rooms to be decorated.
6. The method according to claim 5, characterized in that: The types are walls, wall corners, doors, windows, columns, roofs, and beams.
7. The method according to claim 6, characterized in that: The initial working point posture and the ending working point posture in the three-dimensional coordinate system can be expressed as (x1, y1, z1, α1, β1, γ1) and (x2, y2, z2, α2, β2, γ2), respectively, where α1, β1, and γ1 are the preset maximum posture angles of the robot arm in the three dimensions of the initial working point, and α2, β2, and γ2 are the preset maximum posture angles of the robot arm in the three dimensions of the ending working point.
8. A site planning device for an indoor decoration robot based on a three-dimensional semantic map, comprising: Semantic map generation module, parameter acquisition module, point derivation module, single-room planning module, multi-room planning module; The semantic map generation module is configured to generate a three-dimensional semantic map of the renovation task to be completed, which is specifically achieved by: Collect indoor environment data and extract geographic images; Extract and classify features of the collected geographic images to identify different types of entities; Determining a pixel value of each entity based on the type of each entity; The contours of each entity object are extracted from the geographic image, and the pixel values of each entity are semantically fused with the corresponding contours to obtain the quadruple SCR of each entity.<D,V,N,R> , where D represents the entity object type, V represents the three-dimensional coordinate information set of the outer edge of the contour, N represents the three-dimensional coordinate information set of each pixel point in the contour layer, and R represents the pixel value; Generate a three-dimensional semantic map through each entity quadruple; Based on the task to be decorated, the robot is planned to reach each door of the task through the SLAM path planning algorithm; The robot is driven to move to each door, and step S1 is repeated after moving to each door until a three-dimensional semantic map of the entire task is obtained; The parameter acquisition module is configured to obtain the target object parameters and working mode of the room where the robot is located, which is specifically achieved in the following ways: Obtain the target object parameters and working mode of the room where the robot is located, including the following steps: S21, the robot displays the three-dimensional semantic map of the task obtained in step S1 on the control end, and the user clicks on each entity in the room where the robot is located in turn to determine each target object; S22, the robot scans each target object, obtains the parameters of each target object, forms a parameter array of each target object, and stores it in a cache; each target object parameter array is stored in the cache as a one-dimensional array, a[n] = {a1, a2, ... a n }, where n is the number of target objects obtained in step S21, a n It is the parameter array of the nth target object; S23, determining a working mode of the robot, wherein the working mode is spraying or polishing; The point derivation module is configured to derive the point according to the target object parameters, which is implemented in the following ways: S31, obtaining the parameter array of the target object a1 from the cache and obtaining the working mode from step S23; S32, obtaining the initial working point posture and the ending working point posture in the three-dimensional coordinate system; S33, calculating the second initial working point posture and the second ending working point posture in the robot arm coordinate system by using an inverse kinematics algorithm; S34, taking the rotatable angle of the robot arm set by the user as the state set and {-a, a, 0} as the action set, and using the multi-agent reinforcement learning algorithm to generate the key point coordinates from the second initial working point posture to the second end working point posture according to the preset reward and punishment mechanism; Among them, when the working mode is spraying, a is the preset minimum spraying range of the robot; when the working mode is polishing, a is the preset minimum motion step length of the robot arm; A single room planning module is configured to perform single room point planning and generate point planning data for the room; The multi-room planning module is configured to plan the locations of all rooms under the task to be decorated based on the generated single-room planning locations.
9. An electronic device, comprising a memory and a processor, the memory being used to store a computer program, and the processor running the computer program to enable the computer device to execute the indoor decoration robot site planning method based on a three-dimensional semantic map as described in any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a computer program is stored in the storage medium. When the computer program is read and executed by a processor, the indoor decoration robot site planning method based on a three-dimensional semantic map according to any one of claims 1 to 7 is executed.
Citation Information
Patent Citations
Semantic intelligent substation inspection robot autonomous inspection method and system
CN111958591A
Movable robot for interior decoration in construction industry, and working method thereof
CN112894756A
Image and laser data fused robot navigation three-dimensional semantic map generation method
CN113009501A
Mechanical arm path planning method and device, electronic equipment and storage medium
CN113459109A
Positioning method and device of mobile robot, storage medium and electronic equipment
CN114859922A
