High-fidelity simulation environment establishment system and method based on multi-view video supervision
Through multi-view video supervision technology, the physical properties of the robotic arm are inferred, which solves the problem of difficulty in estimating the physical properties of the robotic arm training simulation environment in the existing technology, realizes a high-fidelity simulation environment, reduces the establishment cost and time, and improves the efficiency Intelligent algorithm applicability and control accuracy.
Patent Information
- Application Number
- CN202410643871.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-05-23
AI Technical Summary
The existing robotic arm training simulation environment has difficulties in estimating physical attributes, resulting in differences between training data and real data, affecting the control accuracy of intelligent algorithms, and existing methods are time-consuming or inaccurate in adding physical attributes.
A high-fidelity simulation environment based on multi-view video supervision is used to establish a system. The camera array records the movement process of the robotic arm. Combined with the semantic segmentation and physical parameter update modules, the physical properties of the simulated robotic arm are inferred to generate a high-fidelity simulation environment.
It realizes a high-fidelity robotic arm training simulation environment that is similar to the physical properties of the real environment, reduces the establishment cost and time, and improves the applicability and control accuracy of intelligent algorithms.
Smart Images

Figure CN118596137A
Abstract
Description
Technical Field
[0001] The present invention relates to a method for establishing a high-fidelity simulation environment in the fields of robots, unmanned driving, digital twins, and film and television production, and in particular to a system and method for establishing a high-fidelity simulation environment based on multi-view video supervision. Background Art
[0002] As an important simulation method, the robotic arm training simulation environment provides a large amount of training data for intelligent algorithms such as reinforcement learning used for robotic arm behavior control. The fidelity of the robotic arm training simulation environment will directly affect the difference between the training data and the real data, and thus affect the control accuracy of the intelligent algorithm.
[0003] Currently, there are two main ways to establish a simulation environment for robotic arm training. One is to artificially create a simulation environment based on the layout in the real environment through modeling software. The other is to establish a simulation environment through intelligent algorithms such as neural networks combined with real-world image data.
[0004] Although the simulation environment established by the first method can add different physical properties to each part of the model, these physical properties are mostly material properties pre-designed by the modeling software and cannot directly replace the materials used by objects in the real environment. Since the model is artificially constructed, this method lacks the structural details and texture details of the real model. Therefore, the intelligent algorithm trained using this model is not suitable for complex environments and can only complete simple tasks in simple environments.
[0005] The second method of establishing a simulation environment mostly obtains a point cloud model of the real environment through multi-view images or radar scanning, and then establishes a mesh model of the environment based on the point cloud model. Although this method directly collects the shape and texture features of objects in the real environment and establishes a simulation model with high texture features and structural features, these models themselves do not have any physical properties. Although the physical structure size information is obtained, physical parameters such as mass, moment of inertia, and friction coefficient cannot be obtained.
[0006] Furthermore, in order to improve the simulation model established by the second method, physical parameters are usually added directly to the model to give it physical properties. There are two ways to add physical parameters. One method is to add physical properties directly based on experience. The physical properties added by this method are quite different from the physical properties in the real environment, resulting in the need for external adjustments to the trained intelligent algorithm before it can be applied to the real environment. Another method is to scientifically measure the physical properties of objects in the real environment. This method obtains a simulation model that is completely consistent with the physical properties of the real environment, but this method is time-consuming and it is difficult to directly measure the physical properties of large equipment. Summary of the invention
[0007] Purpose of the invention: In order to create a high-fidelity robotic arm training simulation environment with physical properties similar to those of the real environment, the present invention proposes a high-fidelity simulation environment establishment system and method based on multi-view video supervision, which uses a multi-view camera to record the real robotic arm movement process, and subtracts it from the simulated robotic arm movement process to infer the physical properties of the simulated robotic arm, ultimately obtaining a high-fidelity simulation environment.
[0008] Technical solution: The high-fidelity simulation environment establishment system based on multi-view video supervision proposed in the present invention includes: a camera array, a robotic arm, a workbench, an object, a robotic arm controller and a terminal processor. Among them, the camera array is composed of multiple fixed-position cameras, which are arranged around the geometric center circle of the robotic arm and the workbench, and the camera angles are all toward the robotic arm and the workbench; the robotic arm is a six-degree-of-freedom robotic arm with a clamping device at the end for clamping and moving other objects; the workbench is a processing table for placing parts, which is fixed to the ground; the object is an object with a regular geometric structure, which is clamped and moved by the robotic arm; the robotic arm controller is the control processor corresponding to the robotic arm, which monitors the motion state of the motors of each joint of the robotic arm and feeds back to the terminal processor, and at the same time receives the instructions of the terminal processor to control the joints of the robotic arm to perform corresponding actions; the terminal processor is a computer with data processing capabilities, which has multiple data processing and model training algorithm modules inside to establish a simulation environment and control the movement of the robotic arm.
[0009] The camera array includes a head-up camera and a bird's-eye view camera, wherein the head-up camera and the bird's-eye view camera are arranged at intervals around the robotic arm and the workbench; the bird's-eye view camera observes the structure and texture information of the top of the robotic arm; the head-up camera and the bird's-eye view camera observe all the structural features of the robotic arm; the head-up camera and the bird's-eye view camera establish a data connection with the terminal processor through wireless communication, and record videos synchronously under the control of the terminal processor.
[0010] The terminal processor specifically includes an RGB texture model algorithm module, a 3D mesh model algorithm module, a semantic segmentation algorithm module, a physical parameter update module, a URDF file generation and update module, a simulation environment generation module, a motion path calculation module, a simulation image rendering module and a motion difference calculation module; wherein the RGB texture model algorithm module analyzes multi-view static video data, processes and calculates to obtain a high-fidelity texture model in the simulation environment, and the texture model has a structure and texture features similar to those of the real environment, but does not have other physical properties except color; the 3D mesh model algorithm module analyzes multi-view static video data, processes and calculates to obtain a 3D mesh model in the simulation environment, and the 3D mesh model The model has structural features similar to those of the real environment. In the simulation environment, some mesh models are controlled to move according to certain rules, but they do not have high-fidelity texture information; the RGB texture model algorithm module and the 3D mesh model algorithm module realize one-to-one correspondence of spatial points in the simulation environment; the semantic segmentation algorithm module analyzes multi-view static video data, performs semantic segmentation on the images in the data, and outputs the mechanical arm structure joint components and other object components in the environment in the image; the physical parameter update module estimates and updates the physical parameters of the mechanical arm structure joint components output by the semantic segmentation algorithm module; the 3D mesh model algorithm module combines the mechanical arm structure joint components output by the semantic segmentation algorithm module to The three-dimensional mesh models generated in pairs are divided into structures to obtain mesh models with semantic information; the URDF file update module analyzes and processes the three-dimensional mesh models with semantic information, and combines the physical parameters of the mechanical arm structure joint components output by the physical parameter update module to generate URDF files suitable for reinforcement learning and other mechanical arm behavior trajectory intelligent algorithms, providing a model basis for the intelligent algorithm to control the movement of the mechanical arm; the simulation environment generation module analyzes the high-fidelity texture model output by the RGB texture model algorithm module and the URDF file output by the URDF file update module, creates a visual simulation model in the computer environment and displays it on the interface of the terminal processor; the simulation environment generation module The visual simulation model created by the block is similar to the traditional robotic arm simulation environment, and the movement of the visual simulation model is controlled by reinforcement learning and other intelligent algorithms; the motion path calculation module is the intelligent algorithm module that plans the motion trajectory of the robotic arm end, generates the motion trajectory of the robotic arm end according to the URDF file, and gives the motion control instruction sequence of each joint of the robotic arm; the simulation environment generation module receives the motion control instruction sequence of each joint of the robotic arm issued by the motion path calculation module, and controls each joint of the robotic arm in the simulation environment to perform corresponding actions; the motion path calculation module sends the generated motion control instructions of each joint of the robotic arm to the robotic arm controller, and controls each joint of the robotic arm in the real environment to perform corresponding actions;The simulation image rendering module analyzes the multi-view dynamic video data, calculates the position relationship between the camera array and the robot arm in the real environment, creates the corresponding simulation camera array in the simulation environment generated by the simulation environment generation module, and simulates the motion process image of the robot arm under the perspective of the camera array; the motion difference calculation module extracts the video frame of the input multi-view dynamic video data, compares it with the simulation camera rendering image generated by the simulation image rendering module at the corresponding moment, calculates and infers the difference in the physical properties of each joint of the robot arm in the simulation environment and the real environment, obtains the physical property correction data, and sends it to the physical parameter update module to update the relevant physical parameters. ;
[0011] The present invention provides a method for establishing a high-fidelity simulation environment based on multi-view video supervision, comprising the following steps:
[0012] Step (1), arrange a camera array around a robot arm and a workbench in a real environment, wherein a head-up camera and a head-down camera are placed at intervals, an object is placed on the workbench, the robot arm is connected to a robot arm controller, and the robot arm controller is connected to a terminal processor.
[0013] Step (2), start the robotic arm controller and the terminal processor, the terminal processor establishes a connection with the robotic arm controller and controls the robotic arm to move to an initial position, the terminal processor establishes a wireless connection with the camera array and receives images captured by the camera array.
[0014] Step (3), the terminal processor controls the camera array to record multi-view static video to obtain multi-view static video data, and then the semantic segmentation algorithm module extracts video frames from the multi-view static video data for structural division to obtain the joint structure parts of the robotic arm and the workbench, and the corresponding components of the object.
[0015] In step (4), the physical parameter updating module calculates the physical properties of each joint of the robotic arm according to the robotic arm structure divided by the semantic segmentation module.
[0016] In step (5), the three-dimensional mesh model algorithm module combines the input multi-view static video data to reconstruct the overall mesh model corresponding to the real environment robot arm, workbench and objects.
[0017] In step (6), the three-dimensional mesh model algorithm module divides the output mesh model based on the joint structure parts of the robotic arm, the workbench and the object components output by the semantic segmentation algorithm module, and divides the meshes corresponding to the robotic arm, the workbench and the object from the overall mesh model.
[0018] Step (7), the URDF file generation and update module receives the divided mesh model output by the three-dimensional mesh model algorithm module and the physical properties of each joint of the robotic arm generated by the physical parameter update module, and generates a URDF file used by reinforcement learning and other intelligent algorithms.
[0019] Step (8), the RGB texture model algorithm module outputs an RGB texture model that corresponds to each grid point in the grid model based on the input multi-view static video data and the grid model generated by the three-dimensional grid model algorithm module, that is, when the grid model moves, the corresponding part of the RGB texture model also moves accordingly.
[0020] Step (9), the simulation environment generation module analyzes the URDF file to generate a URDF file output by the update module, adds corresponding physical properties to the corresponding mechanical arm joint structure in the RGB texture model output by the RGB texture model algorithm module, and displays the physical properties on the interface of the terminal processor.
[0021] Step (10), the motion path calculation module receives the URDF file output by the URDF file generation module, and generates the motion path of the end of the robot arm, as well as the motion process instruction sequence of each joint of the robot arm, and sends the motion process instruction sequence of each joint to the simulation environment generation module and the robot arm controller.
[0022] Step (11), the simulation environment generation module controls the movement of the robotic arm in the simulation environment according to the motion process instructions of each joint of the robotic arm output by the motion path calculation module, and pushes the object in the simulation environment to move on the workbench. At the same time, the robotic arm controller controls the robotic arm in the real environment to push the object to move on the workbench according to the motion process instructions of each joint of the robotic arm output by the motion path calculation module.
[0023] Step (12), when the robotic arm moves in the real environment, the terminal processor controls the camera array to record the video, thereby obtaining multi-view dynamic video data of the robotic arm in motion.
[0024] Step (13), the simulation image rendering module analyzes the relative posture of each camera in the camera array in the real environment according to the multi-view dynamic video data, and uses the same posture to render the image of the simulation environment in the simulation environment generated by the simulation environment generation module, so as to obtain multi-view video data of the robot arm moving in the simulation environment.
[0025] Step (14), the motion difference calculation module compares the multi-view video data and the video data output by the simulation image rendering module at the same time and the same view, and obtains the difference between the motion of each joint of the robotic arm in the simulation environment and the motion of each joint of the robotic arm in the real environment.
[0026] Step (15), the physical parameter updating module updates the physical parameters of each joint component of the simulated robotic arm according to the motion difference of each joint of the robotic arm in the simulation environment output by the motion difference calculating module.
[0027] In step (16), the URDF file generation and update module generates a new URDF file according to the updated physical parameters output by the physical parameter update module, and sends it to the simulation environment generation module to update the physical properties of each joint of the robotic arm in the simulation environment.
[0028] Step (17), repeat steps (12) to (16) until the physical parameters corresponding to the joint parts of the robotic arm remain unchanged before and after the update, and the high-fidelity robotic arm training simulation environment is created.
[0029] In step (3), the semantic segmentation algorithm module extracts video frames from the multi-view static video data, extracts one frame of video image every second, and then divides the video image into structures according to the background, workbench, object and each joint of the robotic arm.
[0030] In step (4), the physical properties include joint length, joint mass, joint moment of inertia, friction coefficient of adjacent joints, external force acting on the joint, and external torque acting on the joint.
[0031] In step (5), the three-dimensional mesh model algorithm module combines the input multi-view static video data and uses the SFM method to reconstruct a sparse point cloud model of the real environment; then, the points are inserted between adjacent points in the sparse point cloud model through the nearest neighbor interpolation method to obtain a dense point cloud model; and the VDBFusion method is used to map the dense point cloud model into an overall mesh model corresponding to the robotic arm, workbench and objects in the real environment.
[0032] In step (6), the three-dimensional mesh model algorithm module maps the structural semantic information of each image to each vertex in the mesh model, and then calculates the sum of the semantic information of each vertex in the mesh model to obtain the semantic component to which each vertex belongs, and divides the mesh composed of vertices with the same semantics into result components with corresponding semantics, thereby realizing the structural division of the overall mesh model and obtaining the mesh models corresponding to the robotic arm, workbench and object.
[0033] In step (7), the storage location and physical properties of the model of each joint of the robotic arm are recorded in the URDF file according to the joint structure.
[0034] In step (8), the RGB texture model algorithm module uses a three-dimensional Gaussian sputtering method to establish an RGB texture model corresponding to the real environment based on the input multi-view static video data and the mesh model generated by the three-dimensional mesh model algorithm module, and establishes a mapping relationship between the center of the Gaussian sphere in the three-dimensional Gaussian sputtering method and each vertex of the mesh model, so that when the mesh model moves in space, the RGB texture model moves through the same coordinate transformation matrix.
[0035] In step (13), the simulation image rendering module selects a camera as the origin to establish a spatial rectangular coordinate system based on the multi-view dynamic video data, and then selects another camera that is spatially adjacent to the camera, and compares the feature points in the images captured by the two cameras. The epipolar geometry method is used to solve the posture transformation relationship of the second camera relative to the first camera, and the coordinates of the second camera in the coordinate system are obtained. The coordinates of other cameras in the coordinate system are solved one by one to obtain the posture of the camera array relative to the robotic arm in the real environment.
[0036] In step (15), the physical parameter updating module performs gradient calculation on the mean square error of the image calculated by the motion difference calculation module according to the motion path output by the motion path calculation module, and obtains the gradient value and correction data of the physical properties of each joint of the robotic arm. Then, the physical parameter updating module corrects the physical parameters of each part of the robotic arm in the simulation environment.
[0037] Beneficial effect: Compared with the prior art, the present invention has the following advantages: The present invention proposes a method for establishing a high-fidelity robotic arm training simulation environment based on multi-view video supervision, relies on multi-view images to establish a simulation environment corresponding to the real environment, and uses multi-view video supervision to simulate the movement process of the robotic arm in the simulation environment, thereby realizing the update and optimization of the physical parameters of each component in the simulation environment, thereby obtaining a high-fidelity robotic arm training simulation environment with physical properties similar to the real environment, solving the problem of difficulty in estimating physical parameters in establishing a high-fidelity robotic arm simulation environment, and reducing the labor cost and time cost of establishing a high-fidelity robotic arm training simulation environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A front view of a structural schematic diagram of an embodiment of the present invention;
[0039] Figure 2 A top view of a structural schematic diagram of an embodiment of the present invention;
[0040] Figure 3 is a schematic structural diagram of a camera array according to an embodiment of the present invention;
[0041] Figure 4 is a schematic diagram of the layout of a camera array according to an embodiment of the present invention;
[0042] Figure 5 is an information processing flow chart of an embodiment of the present invention;
[0043] FIG6 is a diagram showing an implementation process of an embodiment of the present invention;
[0044] FIG6( a ) is a top view of a schematic structural diagram of an embodiment of the present invention;
[0045] FIG6( b) is a front view of a schematic structural diagram of an embodiment of the present invention;
[0046] FIG6( c ) is a schematic diagram of a simulation environment establishment process according to an embodiment of the present invention;
[0047] FIG6( d ) is a schematic diagram of the motion process of a robot arm in a simulation environment and a real environment according to an embodiment of the present invention;
[0048] Figure 7 A schematic diagram of a mesh division process according to an embodiment of the present invention;
[0049] FIG8 is a diagram of an information processing implementation process of an embodiment of the present invention;
[0050] 8(a) is a schematic diagram of an information flow of inferring physical attributes based on semantic segmentation information according to an embodiment of the present invention;
[0051] FIG8( b ) is a schematic diagram of an information flow of a three-dimensional mesh model and a URDF file generation process according to an embodiment of the present invention;
[0052] FIG8( c ) is a schematic diagram of an information flow of a simulation environment generation process according to an embodiment of the present invention;
[0053] FIG8( d ) is a schematic diagram of information flow of a simulation and real robot arm control process according to an embodiment of the present invention;
[0054] FIG8( e ) is a schematic diagram of an information flow of a simulation image rendering process according to an embodiment of the present invention;
[0055] FIG8( f ) is a schematic diagram of an information flow of a physical parameter difference calculation process according to an embodiment of the present invention;
[0056] FIG8( g ) is a schematic diagram of an information flow of a physical parameter updating process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] like Figure 1 , Figure 2 As shown, a high-fidelity robotic arm training simulation environment establishment system based on multi-view video supervision in an embodiment of the present invention includes a camera array 1, a robotic arm 2, a workbench 3, an object 4, a robotic arm controller 5 and a terminal processor 6.
[0058] Among them, the camera array 1 is composed of multiple fixed-position cameras, which are arranged around the geometric center circle of the robot arm 2 and the workbench 3, and the camera angles are all toward the robot arm 2 and the workbench 3. The robot arm 2 is a six-degree-of-freedom robot arm with a clamping device at the end to clamp and move other objects. The workbench 3 is a processing table for placing parts and is fixed to the ground. Object 4 is an object with a regular geometric structure, which is clamped and moved by the robot arm 2. The robot arm controller 5 is the control processor corresponding to the robot arm 2, which monitors the movement status of the motors of each joint of the robot arm 2 and feeds back to the terminal processor 6, and at the same time receives the instructions of the terminal processor 6 to control the joints of the robot arm 2 to perform corresponding actions. The terminal processor 6 is a computer with data processing capabilities, which has multiple data processing and model training algorithm modules inside to establish a simulation environment and control the movement of the robot arm.
[0059] like Figure 3 , Figure 4 As shown, the camera array 1 includes a head-up camera 11 and a head-down camera 12, wherein the head-up camera 11 and the head-down camera 12 are arranged at intervals around the robot arm 2 and the workbench 3; the head-down camera 12 observes the structure and texture information of the top of the robot arm 2; the head-up camera 11 and the head-down camera 12 observe all structural features of the robot arm 2; the head-up camera 11 and the head-down camera 12 establish a data connection with the terminal processor 6 through wireless communication, and are controlled by the terminal processor 6 to synchronously record video.
[0060] like Figure 5 As shown, the terminal processor 6 includes an RGB texture model algorithm module 61, a three-dimensional mesh model algorithm module 62, a semantic segmentation algorithm module 63, a physical parameter update module 64, a URDF file generation and update module 65, a simulation environment generation module 66, a motion path calculation module 67, a simulation image rendering module 68 and a motion difference calculation module 69.
[0061] Among them, the RGB texture model algorithm module 61 analyzes the multi-view static video data, processes and calculates to obtain a high-fidelity texture model in the simulation environment. The texture model has structural and texture features similar to those of the real environment, but does not have other physical properties except color; the three-dimensional mesh model algorithm module 62 analyzes the multi-view static video data, processes and calculates to obtain a three-dimensional mesh model in the simulation environment. The three-dimensional mesh model has structural features similar to those of the real environment, and controls part of the mesh model to move regularly in the simulation environment, but does not have high-fidelity texture information; the RGB texture model algorithm module 61 and the three-dimensional mesh model algorithm module 62 realize one-to-one correspondence of spatial points in the simulation environment.
[0062] The semantic segmentation algorithm module 63 analyzes multi-view static video data, performs semantic segmentation on the images in the data, and outputs the mechanical arm structure joint components and other object components in the environment in the image; the physical parameter updating module 64 calculates and updates the physical parameters of each joint according to the mechanical arm structure joint components output by the semantic segmentation algorithm module 63, including length, mass, moment of inertia, friction resistance coefficient of adjacent joints, external environmental forces on the joints, and external environmental torque on the joints; the three-dimensional mesh model algorithm module 62 performs structural division on the generated three-dimensional mesh model in combination with the mechanical arm structure joint components output by the semantic segmentation algorithm module 63 to obtain a mesh model with semantic information; the URDF file updating module 65 analyzes and processes the three-dimensional mesh model with semantic information, and generates a URDF file suitable for reinforcement learning and other mechanical arm behavior trajectory intelligent algorithms in combination with the physical parameters of the mechanical arm structure joint components output by the physical parameter updating module 64, so as to provide a method for intelligent algorithm to control the movement of the mechanical arm. Provide a basis for the model; the simulation environment generation module 66 analyzes the high-fidelity texture model output by the RGB texture model algorithm module 61 and the URDF file output by the URDF file update module 65, creates a visual simulation model in the computer environment and displays it on the interface of the terminal processor 6; the visual simulation model created by the simulation environment generation module 66 is controlled by reinforcement learning and other intelligent algorithms to move the visual simulation model; the motion path calculation module 67 is an intelligent algorithm module for planning the motion trajectory of the end of the robot arm, generates the motion trajectory of the end of the robot arm according to the URDF file, and gives a motion control instruction sequence for each joint of the robot arm; the simulation environment generation module 66 receives the motion control instruction sequence for each joint of the robot arm issued by the motion path calculation module 67, and controls each joint of the robot arm in the simulation environment to perform corresponding actions; the motion path calculation module 67 sends the generated motion control instructions for each joint of the robot arm to the robot arm controller 5, and controls each joint of the robot arm 2 in the real environment to perform corresponding actions. The simulation image rendering module 68 parses the multi-view dynamic video data, first constructs a spatial rectangular coordinate system, selects a camera and sets the camera at the origin of the coordinate system, then selects another camera that is spatially adjacent to the camera, and matches the feature points in the images captured by the two cameras. The epipolar geometry method is used to solve the posture transformation relationship of the second camera relative to the first camera, and the coordinates of the second camera in the coordinate system are obtained. The coordinates of other cameras in the coordinate system are solved one by one to obtain the posture relationship of the camera array 1 relative to the robotic arm 2 in the real environment; the simulation image rendering module 68 creates a simulated camera array with the same posture relationship in the simulation environment generated by the simulation environment generation module 66, and renders the image of the movement process of the simulated robotic arm from the perspective of the simulated camera array.The motion difference calculation module 69 extracts video frames from the input multi-view dynamic video data, compares it with the simulated camera rendering image generated by the simulated image rendering module 68 at the corresponding moment, calculates the motion difference of the robotic arm in the images of the real environment and the simulated environment at the same moment and the same perspective, and calculates the mean square error of the pixel position of the robotic arm part in the two images. Since the robotic arms in the simulated environment and the real environment use the same control instructions to move, the difference in the motion of the robotic arm is only related to the physical properties of the simulated robotic arm. The mean square error of the calculated image is gradient calculated according to the motion relationship of the robotic arm to obtain the gradient value of the physical properties of each joint of the robotic arm, and the physical property correction data of each joint of the robotic arm is obtained and sent to the physical parameter update module 64. The physical parameter update module 64 adds the corresponding correction value to the physical properties of each joint to complete the update of the physical parameters of each joint.
[0063] The method for establishing a high-fidelity robotic arm training simulation environment based on multi-view video supervision in this embodiment is shown in FIG6 . Figure 7 As shown in FIG8 , the following steps are included:
[0064] Step (1), as shown in Figure 6(a) and Figure 6(b), a camera array 1 is arranged around a robot arm 2 and a workbench 3 in a real environment, wherein a head-on camera 11 and a head-down camera 12 are placed at intervals, an object 4 is placed on the workbench 3, the robot arm 2 is connected to a robot arm controller 5, and the robot arm controller 5 is connected to a terminal processor 6.
[0065] Step (2), as shown in Figure 6(b), starts the robotic arm controller 5 and the terminal processor 6, the terminal processor 6 establishes a connection with the robotic arm controller 5 and controls the robotic arm to move to the initial position, the terminal processor 6 establishes a wireless connection with the camera array 1, and receives the image captured by the camera array 1.
[0066] As shown in FIG8(a), a simulation environment corresponding to the robot arm 2, the workbench 3, and the object 4 in the real environment is established in the terminal processor 6.
[0067] Step (3), as shown in Figure 8(a), uses a camera in the camera array 1 to shoot and record the working environment composed of the robotic arm 2, the workbench 3, and the object 4 from multiple perspectives. The recorded video content contains all the structural details of the working environment, and a multi-perspective static video is obtained and imported into the terminal processor 6.
[0068] As shown in Figure 8(a), the terminal processor 6 uses the semantic segmentation algorithm module 63 to perform video frame extraction processing on the multi-view static video data, extracts a frame of video image every second, and then divides the content in the video image according to the background, workbench, object and each joint of the robotic arm to complete the semantic segmentation and obtain the joint structure parts of the robotic arm 2 and the components corresponding to the workbench 3 and the object 4.
[0069] In step (4), as shown in FIG8(a), the physical parameter updating module 64 calculates the physical properties of each joint of the robot arm 2 according to the robot arm structure divided by the semantic segmentation module 63. The physical properties include joint length, joint mass, joint moment of inertia, friction resistance coefficient of adjacent joints, external force on the joint and external torque on the joint.
[0070] Step (5), such as Figure 7 (a), Figure 8 (b), the three-dimensional mesh model algorithm module 62 combines the input multi-view static video data, uses the SFM method to reconstruct the sparse point cloud model of the real environment, and then uses the nearest neighbor interpolation method to insert points between adjacent points in the sparse point cloud model to obtain a dense point cloud model. Finally, the VDBFusion method is used to map the dense point cloud model into an overall mesh model, that is, to reconstruct the overall mesh model corresponding to the real environment robotic arm, workbench and object. The overall mesh model includes the structural shapes corresponding to the real environment 2, workbench 3, and object 4. At this time, the entire mesh model is a continuous whole, and there is no dividing interface between adjacent components.
[0071] Step (6), such as Figure 7 (b), Figure 8(b), the three-dimensional mesh model algorithm module 62 divides the output mesh model by combining the joint structure parts of the robot 2, the workbench 3 and the object 4 components output by the semantic segmentation algorithm module 63. The three-dimensional mesh model algorithm module 62 first maps the structural semantic information of each image to each vertex in the mesh model, and then calculates the semantic information and of each vertex in the mesh model to obtain the semantic component to which each vertex belongs, and divides the mesh composed of vertices with the same semantics into corresponding semantic result components, thereby realizing the structural division of the overall mesh model and obtaining the mesh models corresponding to the robot 2, the workbench 3 and the object 4.
[0072] Step (7), as shown in Figure 8(b), the URDF file generation and update module 65 receives the divided mesh model output by the three-dimensional mesh model algorithm module 62 and the physical properties of each joint of the robotic arm generated by the physical parameter update module 64, and generates a URDF file used by reinforcement learning and other intelligent algorithms. The URDF file records the storage location and all physical properties of the model of each joint according to the joint structure.
[0073] Step (8), as shown in FIG8(c), the RGB texture model algorithm module uses a three-dimensional Gaussian sputtering method to establish and output an RGB texture model corresponding to the real environment based on the input multi-view static video data and the mesh model generated by the three-dimensional mesh model algorithm module, and establishes a mapping relationship between the center of the Gaussian sphere in the three-dimensional Gaussian sputtering method and each vertex of the mesh model, so that when the mesh model moves in space, the RGB texture model moves through the same coordinate transformation matrix, and then outputs an RGB texture model that has a corresponding relationship with each mesh point in the mesh model;
[0074] Step (9), as shown in Figure 6(c) and Figure 8(c), the simulation environment generation module 66 analyzes the URDF file to generate the URDF file output by the update module 65, and adds corresponding physical properties to the corresponding mechanical arm joint structure in the RGB texture model output by the RGB texture model algorithm module 62, including joint length, joint mass, joint moment of inertia, friction resistance coefficient of adjacent joints, environmental external force on the joint, and environmental external torque on the joint, and displays them on the interface of the terminal processor 6.
[0075] At this point, the simulation environment corresponding to the robot arm 2, workbench 3, and object 4 in the real environment is established, and the parameters of the simulation environment are optimized to obtain a high-fidelity robot arm training simulation environment.
[0076] In step (10), as shown in FIG8(d), the motion path calculation module 67 receives the URDF file output by the URDF file generation module 65, and analyzes the preset task using reinforcement learning and other intelligent algorithms to obtain the motion path of the end of the robotic arm in space, including the position coordinates of the end of the robotic arm in space at each moment, and calculates the motion instructions of each joint of the robotic arm according to the motion path and the physical properties of the robotic arm, that is, the angular acceleration of each joint of the robotic arm relative to the rotation axis at each moment, and sends the motion process instruction sequence of each joint to the simulation environment generation module 66 and the robotic arm controller 5.
[0077] In step (11), as shown in FIG6(d), the simulation environment generation module 66 controls the movement of the robot arm in the simulation environment according to the movement process instructions of each joint of the robot arm output by the motion path calculation module 67, and pushes the object in the simulation environment to move on the workbench. At the same time, the robot arm controller 5 controls the robot arm 2 in the real environment according to the movement process instructions of each joint of the robot arm output by the motion path calculation module 67, so as to push the object 4 to move on the workbench 3.
[0078] In step (12), as shown in FIG8(e), when the robot arm 2 moves in the real environment, the terminal processor 6 controls the camera array 1 to record the video, thereby obtaining multi-view dynamic video data of the robot arm 2 in motion, and recording the entire movement process of the robot arm 2 while recording all the structures of the robot arm 2.
[0079] Step (13), as shown in FIG8(e), the simulation image rendering module 68 first randomly selects a camera as the origin to establish a spatial rectangular coordinate system based on the multi-view dynamic video data, and then selects another camera that is spatially adjacent to the camera, and matches the feature points in the images captured by the two cameras. The epipolar geometry method is used to solve the posture transformation relationship of the second camera relative to the first camera, and its coordinates in the coordinate system are obtained. Then, the coordinates of other cameras in the coordinate system are solved one by one to obtain the posture relationship of the camera array 1 relative to the robotic arm 2 in the real environment. Then, the same posture is used in the simulation environment generated by the simulation environment generation module 66 to render the image of the simulation environment, and the multi-view video data of the robotic arm moving in the simulation environment is obtained, and then the entire motion process of the simulated robotic arm moving in the simulation environment is obtained.
[0080] In step (14), as shown in FIG8(f), the motion difference calculation module 69 compares the multi-view video data and the video data output by the simulation image rendering module 68 at the same time and the same view, and counts the offset of the pixel position corresponding to each part of the robotic arm in the simulation environment image relative to the pixel position of the corresponding part in the real environment image, and calculates the mean square error of the pixel position of the robotic arm part in the two images.
[0081] Step (15), as shown in Figure 8(g), the physical parameter updating module 64 performs gradient calculation on the mean square error of the image calculated by the motion difference calculation module 69 according to the motion path output by the motion path calculation module 67, obtains the gradient value of the physical properties of each joint of the robotic arm, obtains the correction data of the physical properties of each joint of the robotic arm, and then the physical parameter updating module 64 corrects the physical parameters of each part of the robotic arm in the simulation environment, including the joint length, joint mass, joint moment of inertia, friction resistance coefficient of adjacent joints, external forces acting on the joints, and external torque acting on the joints.
[0082] Step (16), as shown in Figure 8(g), the URDF file generation and update module 65 generates a new URDF file based on the updated physical parameters output by the physical parameter update module 64, and sends it to the simulation environment generation module 66. The simulation environment generation module 66 replaces the physical properties of each joint in the simulation environment according to the content of the URDF file, and completes the update of the physical properties of the robotic arm in the simulation environment.
[0083] Step (17), repeat steps (12) to (16) until the physical parameters corresponding to the joint parts of the robotic arm remain unchanged before and after the update, and the high-fidelity robotic arm training simulation environment is created.
Claims
1. A high-fidelity simulation environment establishment system based on multi-view video supervision, characterized by: It includes a camera array (1), a robotic arm (2), a workbench (3), an object (4), a robotic arm controller (5) and a terminal processor (6); The camera array comprises a head-up camera and a head-down camera, wherein the head-up camera and the head-down camera are arranged around the geometric center circumference of the robot arm (2) and the workbench (3), and the camera viewing angles are directed toward the robot arm (2) and the workbench (3); The robot arm controller (5) monitors the motor movement of each joint of the robot arm (2) and feeds back to the terminal processor (6), and at the same time receives instructions from the terminal processor (6) to control the joint movement of the robot arm (2); The terminal processor (6) comprises an RGB texture model algorithm module (61), a three-dimensional mesh model algorithm module (62), a semantic segmentation algorithm module (63), a physical parameter update module (64), a URDF file generation and update module (65), a simulation environment generation module (66), a motion path calculation module (67), a simulation image rendering module (68) and a motion difference calculation module (69).
2. A method for establishing a high-fidelity simulation environment based on multi-view video supervision, characterized in that: The following steps are involved: Step (1), arranging the head-up camera and the head-down camera of the camera array (1) around the robot arm (2) and the workbench (3) at intervals, placing the object on the workbench (2), connecting the robot arm (2) to the robot arm controller (5), and connecting the robot arm controller (5) to the terminal processor (6); Step (2), the terminal processor (6) controls the robot arm (2) to move to an initial position, and the terminal processor (6) receives an image captured by the camera array (1); Step (3), the terminal processor (6) controls the camera array to record a multi-view static video to obtain multi-view static video data, and then the semantic segmentation algorithm module (63) extracts video frames from the multi-view static video data for structural division to obtain the components corresponding to the joint structure parts of the robot arm and the workbench (3) and the object (4); Step (4), the physical parameter updating module (64) calculates the physical properties of each joint of the robotic arm (2) according to the robotic arm structure division of the semantic segmentation module (63); Step (5), the three-dimensional mesh model algorithm module (62) combines the input multi-view static video data to reconstruct the overall mesh model corresponding to the real environment robot arm, workbench and object; Step (6), the three-dimensional mesh model algorithm module (62) divides the output mesh model based on the joint structures of the robot arm (2), the workbench (3) and the object (4) components output by the semantic segmentation algorithm module (63), and divides the mesh models corresponding to the robot arm, the workbench and the object from the overall mesh model; Step (7), the URDF file generation and update module (65) receives the divided mesh model output by the three-dimensional mesh model algorithm module (62) and the physical properties of each joint of the robotic arm generated by the physical parameter update module (64), and generates a URDF file used by the intelligent algorithm; Step (8), the RGB texture model algorithm module outputs an RGB texture model that corresponds to each grid point in the grid model based on the input multi-view static video data and the grid model generated by the three-dimensional grid model algorithm module; Step (9), the simulation environment generation module (66) analyzes the URDF file to generate the URDF file output by the update module (65), adds corresponding physical attributes to the corresponding mechanical arm joint structure in the RGB texture model output by the RGB texture model algorithm module, and displays the physical attributes on the interface of the terminal processor; Step (10), the motion path calculation module (67) receives the URDF file output by the URDF file generation module (65), generates the motion path of the end of the robot arm, and the motion process instruction sequence of each joint of the robot arm, and sends the motion process instruction sequence of each joint to the simulation environment generation module and the robot arm controller; Step (11), the simulation environment generation module (66) controls the movement of the robot arm in the simulation environment according to the movement process instructions of each joint of the robot arm output by the movement path calculation module (67), and pushes the object in the simulation environment to move on the workbench; at the same time, the robot arm controller (5) controls the robot arm (2) in the real environment according to the movement process instructions of each joint of the robot arm output by the movement path calculation module (67) to push the object (4) to move on the workbench (3); Step (12), when the robotic arm (2) moves in the real environment, the terminal processor (6) controls the camera array (1) to record, and obtains multi-view dynamic video data of the robotic arm (2) when it moves; Step (13), the simulation image rendering module (68) analyzes the relative posture of each camera in the camera array in the real environment according to the multi-view dynamic video data, and uses the same posture to render the image of the simulation environment in the simulation environment generated by the simulation environment generation module (66), so as to obtain the multi-view video data of the robot arm moving in the simulation environment; Step (14), the motion difference calculation module (69) compares the multi-view video data and the video data output by the simulation image rendering module at the same time and the same view to obtain the difference between the motion of each joint of the robot arm in the simulation environment and the motion of each joint of the robot arm in the real environment; Step (15), the physical parameter updating module (64) updates the physical parameters of each joint component of the simulated robotic arm according to the motion difference of each joint of the robotic arm in the simulated environment output by the motion difference calculating module (69); Step (16), the URDF file generation and update module (65) generates a new URDF file according to the updated physical parameters output by the physical parameter update module (64), and sends it to the simulation environment generation module (66) to update the physical properties of each joint of the robot arm in the simulation environment; Step (17), repeat steps (12) to (16) until the physical parameters corresponding to the joint parts of the robotic arm remain unchanged before and after the update, and the high-fidelity robotic arm training simulation environment is created.
3. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (3), the semantic segmentation algorithm module (63) extracts video frames from the multi-view static video data, extracts one frame of video image every second, and then divides the video image into structures according to the background, workbench, object and each joint of the robotic arm.
4. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (4), the physical properties include joint length, joint mass, joint moment of inertia, friction coefficient of adjacent joints, external force exerted on the joint, and external torque exerted on the joint.
5. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (5), the three-dimensional mesh model algorithm module (62) combines the input multi-view static video data and uses the SFM method to reconstruct a sparse point cloud model of the real environment; then inserts points between adjacent points in the sparse point cloud model through the nearest neighbor interpolation method to obtain a dense point cloud model; and uses the VDBFusion method to map the dense point cloud model into an overall mesh model corresponding to the robotic arm, workbench and objects in the real environment.
6. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (6), the three-dimensional mesh model algorithm module (62) maps the structural semantic information of each image to each vertex in the mesh model, and then calculates the semantic information of each vertex in the mesh model to obtain the semantic component to which each vertex belongs, and divides the mesh composed of vertices with the same semantics into corresponding semantic result components, thereby achieving structural division of the overall mesh model and obtaining mesh models corresponding to the robot arm (2), the workbench (3) and the object (4).
7. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (7), the URDF file records the storage location and physical properties of the model of each joint of the robotic arm according to the joint structure.
8. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (8), the RGB texture model algorithm module uses a three-dimensional Gaussian sputtering method to establish an RGB texture model corresponding to the real environment based on the input multi-view static video data and the mesh model generated by the three-dimensional mesh model algorithm module, and establishes a mapping relationship between the center of the Gaussian sphere in the three-dimensional Gaussian sputtering method and each vertex of the mesh model, so that when the mesh model moves in space, the RGB texture model moves through the same coordinate transformation matrix.
9. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 2, characterized in that: In step (13), the simulation image rendering module (68) selects a camera as the origin to establish a spatial rectangular coordinate system based on the multi-view dynamic video data, then selects another camera that is spatially adjacent to the camera, matches the feature points in the images captured by the two cameras, and uses the epipolar geometry method to solve the posture transformation relationship of the second camera relative to the first camera, and obtains the coordinates of the second camera in the coordinate system, and solves the coordinates of other cameras in the coordinate system one by one to obtain the posture of the camera array (1) relative to the robotic arm (2) in the real environment.
10. The method for establishing a high-fidelity simulation environment based on multi-view video supervision according to claim 9, characterized in that: In step (15), the physical parameter updating module (64) performs gradient calculation on the mean square error of the image calculated by the motion difference calculating module (69) according to the motion path output by the motion path calculating module (67), and obtains the gradient value and correction data of the physical properties of each joint of the robotic arm, and then the physical parameter updating module (64) corrects the physical parameters of each part of the robotic arm in the simulation environment.
Citation Information
Patent Citations
Virtual reality-based robot visual positioning simulation method and simulation device thereof
CN112750167A
Self-supervised feedback micro-assembly system construction method based on high-precision simulation
CN120552047A
Mitigating reality gap through modification of simulated state data of robotic simulator
US11461589B1
Reinforcement and imitation learning for a task
US20190126472A1
Systems and methods for persistent simulation
US20200042656A1
Cited By
Three-dimensional scene simulation method and system based on 3D Gaussian sputtering
CN119903705A
A three-dimensional scene simulation method and system based on 3D Gaussian sputtering
CN119903705B
Training method and device of body simulation model, electronic equipment and storage medium
CN120597678A
Robot control method, electronic equipment, readable storage medium and program product
CN120773066A
Interactive simulation platform and method based on physical engine
CN122008194A
