Overhead line system robot off-line simulation method based on augmented reality technology

Through the offline simulation method of catenary robots based on augmented reality technology, twin models are built and registered in Unity3D, combined with ROS topic communication and path planning algorithms, to solve the problems of inaccurate robot operation and insufficient safety in dynamic environments, and realize the Efficient and safe operations in complex environments.

CN118567249AInactive Publication Date: 2024-08-30SOUTHWEST JIAOTONG UNIV
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410614665.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technology cannot effectively simulate the working conditions of catenary robots in dynamic environments, resulting in inaccurate operations and insufficient safety. Especially in the complex environments of the Sichuan-Tibet Plateau and cold winter regions in the north, static environment assumptions cannot reflect actual changes in a timely manner. .

Method used

An offline simulation method for catenary robots based on augmented reality technology is adopted. By building twin robot and catenary models, converting them into VuforiaEngine data sets, importing them into Unity3D, using Vuforia to register to the real environment, and combining ROS topic real-time communication and path planning algorithms , generate and send control instructions to ensure safe and feasible paths.

Benefits of technology

It improves the accuracy and safety of robot operations, meets the needs of simulation in changeable environments, and ensures the safety and production efficiency of robot operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118567249A
    Figure CN118567249A
Patent Text Reader

Abstract

The invention relates to a contact network robot offline simulation method based on an augmented reality technology. The method comprises the following steps: building a twin robot model and a twin contact network model; converting the twin robot model and the twin contact network model into a VuforiaEngine data set, importing the VuforiaEngine data set into Unity 3D, registering the twin robot model to a real environment by using Vuforia, and establishing connection with a contact network robot; planning a target feasible path by adopting a path planning algorithm based on the current position of the robot and the operation target point; and generating a control instruction based on the target feasible path, sending the control instruction to the contact network robot through ROS topic real-time communication, and controlling the operation of the contact network robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of simulation systems, and in particular to an off-line simulation method for a contact network robot based on augmented reality technology. Background Art

[0002] Faced with the contact network working environment in the uninhabited areas of the Sichuan-Tibet Plateau and the cold winter in the north, the contact network robot has great risks during the work process, such as the robot path planning collision caused by the slow deformation of the contact network. In order to ensure the safety of the robot operation, improve production efficiency and operation accuracy, and prevent accidents, offline simulation is required to plan safe paths and monitor collisions for the robot in advance. The robot works in an unstructured contact network environment and is prone to collisions with the surrounding environment, resulting in unpredictable accidents. Therefore, offline simulation is required in advance to ensure the safety of the robot operation. In the existing technology, the offline simulation environment is single, usually a static environment assumption, and the contact network is often deformed due to the influence of the real environment, resulting in the static environment assumption cannot timely reflect the changes in the actual working environment, and cannot meet the needs of robot simulation in the actual changing environment.

[0003] Therefore, in the relevant technology, there is an urgent need for a method that can adapt to the needs of dynamic environments and improve the accuracy and safety of robot operations. Summary of the invention

[0004] Based on this, it is necessary to provide an offline simulation method for a contact network robot based on augmented reality technology, which can adapt to dynamic environment requirements and improve the accuracy and safety of robot operation in response to the above technical problems.

[0005] In a first aspect, the present application provides a contact network robot offline simulation method based on augmented reality technology. The method comprises:

[0006] Build twin robot models and twin contact network models;

[0007] Convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, register the twin robot model with the real environment using Vuforia, and establish a connection with the contact network robot;

[0008] Based on the current position of the robot and the target point of the operation, a path planning algorithm is used to plan a feasible path to the target;

[0009] A control instruction is generated based on the target feasible path, and the control instruction is sent to the contact network robot through real-time communication of the ROS topic to control the operation of the contact network robot.

[0010] Optionally, in one embodiment of the present application, generating a control instruction based on the target feasible path, sending the control instruction to the contact network robot through ROS topic real-time communication, and controlling the contact network robot to operate before comprising:

[0011] The communication connection between Unity3D and ROS is established using the topic communication mechanism and ROSbridge.

[0012] Optionally, in one embodiment of the present application, planning a feasible target path using a path planning algorithm based on the current position of the robot and the target point of the operation includes:

[0013] Based on the robot's current position and the target point, the Informed RRT* algorithm is used to plan the initial feasible path.

[0014] Smoothing the initial feasible path to obtain an initial smoothed feasible path;

[0015] A collision detection is performed based on the initial smooth feasible path, and if no collision occurs, the initial smooth feasible path is determined to be the target feasible path.

[0016] Optionally, in one embodiment of the present application, the planning of obtaining an initial feasible path based on the current position of the robot and the operation target point using the Informed RRT* algorithm includes:

[0017] Determine an elliptical sampling area based on the current position of the robot and the operation target point;

[0018] The elliptical sampling area is uniformly sampled to obtain an initial feasible path.

[0019] Optionally, in an embodiment of the present application, the smoothing the initial feasible path to obtain the initial smoothed feasible path includes:

[0020] Performing inverse kinematics solution on the initial feasible path to obtain a robot joint angle sequence;

[0021] Based on the robot joint angle sequence, a cubic polynomial difference method is used to fit the robot joint angle sequence to obtain an initial smooth feasible path.

[0022] Optionally, in one embodiment of the present application, the performing collision detection based on the initial smooth feasible path includes:

[0023] A bounding box is determined based on the twin robot model and the twin contact network model, and collision detection is performed based on the bounding box.

[0024] Optionally, in one embodiment of the present application, the performing collision detection based on the initial smooth feasible path further includes:

[0025] A ray collision detection method is used to detect whether the twin robot model and the twin contact network model collide.

[0026] In a second aspect, the present application also provides an off-line simulation device for a contact network robot based on augmented reality technology. The device comprises:

[0027] Model building module, used to build twin robot model and twin contact network model;

[0028] An augmented reality module is used to convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, register the twin robot model with the real environment using Vuforia, and establish a connection with the contact network robot;

[0029] The path planning module is used to plan a feasible path to the target using a path planning algorithm based on the current position of the robot and the target point of the operation;

[0030] The instruction execution module is used to generate a control instruction based on the target feasible path, send the control instruction to the contact network robot through ROS topic real-time communication, and control the operation of the contact network robot.

[0031] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the steps of the methods described in the above embodiments.

[0032] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in each of the above embodiments are implemented.

[0033] The above-mentioned offline simulation method of the contact network robot based on augmented reality technology, first, build a twin robot model and a twin contact network model; then, convert the twin robot model and the twin contact network model into VuforiaEngine data sets, and import them into Unity3D, use Vuforia to register the twin robot model to the real environment, and establish a connection with the contact network robot; then, use the path planning algorithm based on the current position of the robot and the operation target point to plan the target feasible path; finally, generate control instructions based on the target feasible path, send the control instructions to the contact network robot through ROS topic real-time communication, and control the operation of the contact network robot. That is to say, before the contact network robot performs its working tasks, a virtual model of the robot and the working environment is built, and an information connection between it and the real robot is established using augmented reality technology. In the virtual offline simulation, the working tasks and working locations are specified, path planning is performed, robot operation simulation is carried out, and collision detection is performed. When a collision-free safe environment is identified, the path planning information will be sent to the real robot through ROS communication to control the real robot to perform the working tasks, thereby improving the accuracy of the robot's operation and ensuring the operating safety of the contact network robot. At the same time, augmented reality technology is combined to realize human-computer interaction, combined with actual working conditions, to meet the needs of the contact network robot for simulation in actual and changing environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 This is an application environment diagram of a contact network robot offline simulation method based on augmented reality technology in one embodiment;

[0035] Figure 2 A schematic diagram of a flow chart of an off-line simulation method for a contact network robot based on augmented reality technology in one embodiment;

[0036] Figure 3 is a schematic diagram of a communication framework between Unity3D and ROS in one embodiment;

[0037] Figure 4 is a schematic diagram of an elliptical sampling area in one embodiment;

[0038] Figure 5 A schematic diagram of a human-computer interaction UI interface in one embodiment;

[0039] Figure 6 A schematic flow chart of specific steps of an off-line simulation method for a contact network robot based on augmented reality technology in one embodiment;

[0040] Figure 7 It is a structural block diagram of an off-line simulation device for a contact network robot based on augmented reality technology in one embodiment;

[0041] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] The offline simulation method of the contact network robot based on augmented reality technology provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0044] In one embodiment, Figure 2 As shown in the figure, a contact network robot offline simulation method based on augmented reality technology is provided. Figure 1 The server in the example is used to illustrate the following steps:

[0045] S201: Build twin robot model and twin contact network model.

[0046] In an embodiment of the present application, first, Soildworks is used to perform 1:1 modeling and assembly of the contact network environment and the contact network robot, completing the construction of the three-dimensional model of the contact network environment and the contact network robot, and obtaining a twin robot model and a twin contact network model, wherein the twin contact network model includes insulators, arms, arms supports, positioners, positioning tubes, load-bearing cables, contact networks, suspension strings, pillars and bases, and then 3ds Max is used to model and assemble each component and export them into FBX format.

[0047] S203: Convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, use Vuforia to register the twin robot model to the real environment, and establish a connection with the contact network robot.

[0048] In an embodiment of the present application, after obtaining the twin robot model and the twin contact network model, the ModelTarget Generator is used to quickly convert the existing 3D models, namely the twin robot model and the twin contact network model, into a Vuforia Engine dataset, a new scene is created in Unity3D, an AR Camera and a model target ModelTarget are created, and the converted existing Vuforia Engine dataset is imported into Unity3D. At the same time, Vuforia is used to register the twin robot model in the real environment, the real contact robot is identified according to the imported dataset, and the twin robot model is enhanced and displayed, superimposed on the real contact robot, and a connection is established.

[0049] S205: Planning a feasible target path using a path planning algorithm based on the current position of the robot and the target point of the operation.

[0050] In an embodiment of the present application, a path planning algorithm is used to plan a feasible path to the target based on the current position of the robot and the target point of the work task specified by the user. Specifically, a discrete trajectory sequence of the optimal path is obtained through path search, and corresponding smoothing processing is performed. Simulated collision detection is performed based on the twin robot model to obtain a safe and reliable feasible path to the target.

[0051] S207: Generate a control instruction based on the target feasible path, and send the control instruction to the contact network robot through ROS topic real-time communication to control the contact network robot to operate.

[0052] In an embodiment of the present application, after obtaining a safe target feasible path that has passed collision detection, a control instruction is generated based on the target feasible path, the control instruction includes corresponding path information, and the control instruction is sent to a contact network robot in a real environment through real-time communication on a ROS topic to control the contact network robot to move to the working position and perform the operation.

[0053] In the above-mentioned offline simulation method of the contact network robot based on augmented reality technology, first, a twin robot model and a twin contact network model are built; then, the twin robot model and the twin contact network model are converted into VuforiaEngine data sets, and imported into Unity3D, and the twin robot model is registered to the real environment using Vuforia to establish a connection with the contact network robot; then, a path planning algorithm is used to plan a target feasible path based on the current position of the robot and the operation target point; finally, a control instruction is generated based on the target feasible path, and the control instruction is sent to the contact network robot through real-time communication of the ROS topic to control the operation of the contact network robot. That is to say, before the contact network robot performs its working tasks, a virtual model of the robot and the working environment is built, and an information connection between it and the real robot is established using augmented reality technology. In the virtual offline simulation, the working tasks and working locations are specified, path planning is performed, robot operation simulation is carried out, and collision detection is performed. When a collision-free safe environment is identified, the path planning information will be sent to the real robot through ROS communication to control the real robot to perform the working tasks, thereby improving the accuracy of the robot's operation and ensuring the operating safety of the contact network robot. At the same time, augmented reality technology is combined to realize human-computer interaction, combined with actual working conditions, to meet the needs of the contact network robot for simulation in actual and changing environments.

[0054] In one embodiment of the present application, the generating of control instructions based on the target feasible path, sending the control instructions to the contact network robot through ROS topic real-time communication, and controlling the contact network robot to operate before the control includes:

[0055] The communication connection between Unity3D and ROS is established using the topic communication mechanism and ROSbridge.

[0056] In one embodiment of the present application, Figure 3As shown in the figure, the data transmission between Unity3D and ROS platform adopts the WebSocket protocol of ROSbridge, which is a TCP-based network protocol that can realize full-duplex communication between client and server. ROSbridge is used for data transmission. The ROSbridge plug-in is installed in Unity3D. Since Unity3D is developed in C# language, it also needs to rely on the corresponding software library tool ROS# for ROS system communication. Enter the IP address and port number of the ROS system to establish a WebSocket connection. When creating a publisher to publish a message, use rosSocket.Advertise() to register the node information in ROS Master, which contains the Topic name and the format of the sent data. ROS Master will create the corresponding topic according to the agreed format, and then use rosSocket.Publish() to publish the message to the topic. When creating a subscriber to subscribe to a message, use rosSocket.Subscribe() to register the node information in ROSMaster. ROS Master will listen to the corresponding topic according to the agreed format. When listening to the message, call the callback function to process the message.

[0057] In this embodiment, by using the topic communication mechanism and ROSbridge to establish a communication connection between Unity3D and ROS, two-way communication and control can be achieved.

[0058] In one embodiment of the present application, planning a feasible target path using a path planning algorithm based on the current position of the robot and the target point of the operation includes:

[0059] S301: Based on the current position of the robot and the operation target point, the Informed RRT* algorithm is used to plan and obtain an initial feasible path.

[0060] S303: Smoothing the initial feasible path to obtain an initial smoothed feasible path.

[0061] S305: performing collision detection based on the initial smooth feasible path, and if no collision occurs, determining the initial smooth feasible path as the target feasible path.

[0062] In one embodiment of the present application, first, based on the current position of the robot and the work target point, an Informed RRT* algorithm is used to find an initial feasible path from the current position of the robot to the work target point on the basis of satisfying the condition of no collision with the surrounding environment. The initial feasible path is a discrete trajectory point and meets the requirements of indicators such as the shortest path, the shortest time consumption or the least resource consumption. Then, the initial feasible path, i.e., the discrete trajectory point, is smoothed to obtain an initial smooth feasible path to ensure a smooth transition of the terminal position and speed of the contact network robot. Then, the initial smooth feasible path is subjected to collision detection. The built-in PhysX physics engine in Unity3D can allow objects in the scene to exhibit physical properties and collision effects. The hierarchical bounding box method is used to detect collisions between objects. If no collision occurs, the initial smooth feasible path is determined to be the target feasible path. If a collision occurs, the path planning is performed again.

[0063] In this embodiment, the Informed RRT* algorithm is used to plan an initial feasible path based on the current position of the robot and the work target point, the initial feasible path is smoothed to obtain an initial smooth feasible path, and collision detection is performed based on the initial smooth feasible path. If no collision occurs, the initial smooth feasible path is determined to be the target feasible path. Path planning simulation can be performed in advance based on the twin robot model to obtain a safe, reliable, and collision-free feasible path.

[0064] In one embodiment of the present application, the initial feasible path is obtained by planning based on the current position of the robot and the operation target point using the InformedRRT* algorithm, including:

[0065] S401: Determine an elliptical sampling area based on the current position of the robot and the operation target point.

[0066] S403: uniformly sampling in the elliptical sampling area to obtain an initial feasible path.

[0067] In one embodiment of the present application, the Informed RRT* algorithm limits the search range to an elliptical area. The elliptical area is centered on the robot's current position and the work target point, and includes this feasible path. The paths outside the elliptical area have a higher cost than this path and have no practical significance. The sampling area can be shrunk to this elliptical area, and as the path continues to shorten, the elliptical area will gradually shrink. Figure 4 As shown, the elliptical sampling area can be expressed as the following formula:

[0068] X f ={x∈X|‖x start -x‖+||xx goal ||≤c best}

[0069] Among them, x start is the current position of the robot, which is also the left focus of the ellipse, x goal is the target point of the operation, which is also the right focus of the ellipse, c min is the straight-line distance between the two foci, c best is the optimal path length currently obtained, set it to the length of the major axis, i.e. c best =2a, then a=c best / 2, c=c min / 2, The center vector of the ellipse is x center =(x start +x goal ) / 2. In subsequent iterations, each time a better path is found, c must be updated. best , and update the elliptical sampling area at the same time.

[0070] After the ellipse area is determined, sampling is performed in the ellipse area. The sampling method is to obtain uniformly sampled sampling points x from the unit circle. ball ~U(X ball ), and then use the following formula to find the transformation matrix and the rotation matrix from the unit circle coordinate system to the elliptical coordinate system, and finally find the sampling points of the actual elliptical area.

[0071]

[0072]

[0073] x rand =CLx ball +x center

[0074] Where θ is the current position x of the robot start and the target point x goal The angle formed by the line connecting the two axes with the x-axis.

[0075] In this embodiment, an elliptical sampling area is determined based on the current position of the robot and the work target point, and uniform sampling is performed in the elliptical sampling area to obtain an initial feasible path. The elliptical sampling method is used to replace the global uniform sampling, and the elliptical sampling area is gradually shrunk, thereby improving the algorithm search efficiency and accelerating the algorithm convergence speed.

[0076] In one embodiment of the present application, the smoothing of the initial feasible path to obtain the initial smoothed feasible path includes:

[0077] S501: Perform inverse kinematics solution on the initial feasible path to obtain a robot joint angle sequence.

[0078] S503: Fitting the robot joint angle sequence by a cubic polynomial difference method based on the robot joint angle sequence to obtain an initial smooth feasible path.

[0079] In one embodiment of the present application, after obtaining the initial feasible path, that is, the discrete trajectory sequence, further processing is required to make it smooth. Specifically, the obtained discrete trajectory sequence is inverse kinematically solved to obtain the angle sequence of each joint of the robot, and then the cubic polynomial difference method is used to fit the angle sequence of each joint, so as to obtain a smooth velocity curve and the corresponding initial smooth feasible path, so that each joint moves smoothly.

[0080] In this embodiment, the inverse kinematics of the initial feasible path is solved to obtain the robot joint angle sequence, and the robot joint angle sequence is fit by the cubic polynomial difference method based on the robot joint angle sequence to obtain an initial smooth feasible path, which can prevent the motion state of the contact network robot from changing suddenly or even becoming unusable.

[0081] In one embodiment of the present application, the performing collision detection based on the initial smooth feasible path includes:

[0082] A bounding box is determined based on the twin robot model and the twin contact network model, and collision detection is performed based on the bounding box.

[0083] In one embodiment of the present application, the built-in PhysX physics engine in Unity3D allows objects in the scene to exhibit physical properties and collision effects. It mainly uses the hierarchical bounding box method to detect collisions between objects, and provides 6 types of colliders: Box Collider, Sphere Collider, Capsule Collider, Mesh Collider, Wheel Collider, and Terrain Collider. Add a Collider collider component to the two colliding objects, and add a Rigidbod rigid body component to the party that actively collides. Specifically, multiple colliders can be used in combination to add bounding boxes to the twin robot model and the twin contact network model, and perform collision detection on the twin robots during their movement based on the bounding boxes.

[0084] In this embodiment, by determining a bounding box based on the twin robot model and the twin contact network model and performing collision detection based on the bounding box, the safety of the feasible path can be improved.

[0085] In one embodiment of the present application, the performing collision detection based on the initial smooth feasible path further includes:

[0086] A ray collision detection method is used to detect whether the twin robot model and the twin contact network model collide.

[0087] In one embodiment of the present application, a ray collision detection method is used to add obstacle avoidance constraints. Specifically, a ray of specified direction and length is emitted from the end of the twin robot model to determine whether the ray collides with the contact network. If a collision will occur in the direction of movement of the twin robot, the feasible path is replanned.

[0088] In this embodiment, a ray collision detection method is used to detect whether a collision occurs between the twin robot model and the twin contact network model, thereby further improving the safety of the feasible path.

[0089] In one embodiment of the present application, Figure 5 As shown, the UGUI component in Unity3D is used to design the user interface and interactive input, which includes: first, providing two different perspectives to show the movement of the robot in the contact network environment, which is conducive to the user to better monitor the operating status of the robot; second, using controls such as Text and Input Field to display the angle of each joint of the robot in real time; third, using controls such as Button and Text to switch the robot control mode, providing simple joint control and path planning control; fourth, when the mouse hovers over the bolt of the contact network, the position information of the bolt relative to the robot base coordinate system is displayed, and when the robot collides with the contact network, an alarm prompt pops up on the screen.

[0090] The following is a specific example to illustrate the specific implementation steps of the contact network robot offline simulation method based on augmented reality technology of the present application. Figure 6 As shown, first, S601, build a twin robot model and a twin contact network model; then, S603, convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, and import them into Unity3D, use Vuforia to register the twin robot model to the real environment, and establish a connection with the contact network robot; then, S605, use the topic communication mechanism and ROSbridge to establish a communication connection between Unity3D and ROS;

[0091] After that, S607, a target feasible path is planned using a path planning algorithm based on the current position of the robot and the target point of the operation. Specifically, S609-S613, an initial feasible path is planned using the Informed RRT* algorithm based on the current position of the robot and the target point of the operation; the initial feasible path is smoothed to obtain an initial smooth feasible path; collision detection is performed based on the initial smooth feasible path, and if no collision occurs, the initial smooth feasible path is determined to be the target feasible path.

[0092] Among them, S615-S617, determine the elliptical sampling area based on the current position of the robot and the operation target point; uniformly sample in the elliptical sampling area to obtain an initial feasible path. S619-S621, perform inverse kinematics solution on the initial feasible path to obtain a robot joint angle sequence; based on the robot joint angle sequence, use the cubic polynomial difference method to fit the robot joint angle sequence to obtain an initial smooth feasible path. S623, determine a bounding box based on the twin robot model and the twin contact network model, and perform collision detection based on the bounding box. S625, use a ray collision detection method to detect whether the twin robot model and the twin contact network model collide.

[0093] Finally, S627, a control instruction is generated based on the target feasible path, and the control instruction is sent to the contact network robot through real-time communication of the ROS topic to control the operation of the contact network robot.

[0094] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0095] Based on the same inventive concept, the embodiment of the present application also provides a contact network robot offline simulation device based on augmented reality technology for implementing the contact network robot offline simulation method based on augmented reality technology involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more embodiments of the contact network robot offline simulation device based on augmented reality technology provided below can refer to the limitations of the contact network robot offline simulation method based on augmented reality technology above, and will not be repeated here.

[0096] In one embodiment, Figure 7 As shown, a contact network robot offline simulation device 700 based on augmented reality technology is provided, comprising: a model building module 701, an augmented reality module 703, a path planning module 705 and an instruction execution module 707, wherein:

[0097] Model building module, used to build twin robot model and twin contact network model;

[0098] An augmented reality module is used to convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, register the twin robot model with the real environment using Vuforia, and establish a connection with the contact network robot;

[0099] The path planning module is used to plan a feasible path to the target using a path planning algorithm based on the current position of the robot and the target point of the operation;

[0100] The instruction execution module is used to generate a control instruction based on the target feasible path, send the control instruction to the contact network robot through ROS topic real-time communication, and control the operation of the contact network robot.

[0101] The contact network robot offline simulation device based on augmented reality technology also includes a communication module. In one embodiment of the present application, the communication module is used to:

[0102] The communication connection between Unity3D and ROS is established using the topic communication mechanism and ROSbridge.

[0103] In one embodiment of the present application, the path planning module is further used to:

[0104] Based on the robot's current position and the target point, the Informed RRT* algorithm is used to plan the initial feasible path.

[0105] Smoothing the initial feasible path to obtain an initial smoothed feasible path;

[0106] A collision detection is performed based on the initial smooth feasible path, and if no collision occurs, the initial smooth feasible path is determined to be the target feasible path.

[0107] In one embodiment of the present application, the path planning module is further used to:

[0108] Determine an elliptical sampling area based on the current position of the robot and the operation target point;

[0109] The elliptical sampling area is uniformly sampled to obtain an initial feasible path.

[0110] In one embodiment of the present application, the path planning module is further used to:

[0111] Performing inverse kinematics solution on the initial feasible path to obtain a robot joint angle sequence;

[0112] Based on the robot joint angle sequence, a cubic polynomial difference method is used to fit the robot joint angle sequence to obtain an initial smooth feasible path.

[0113] In one embodiment of the present application, the path planning module is further used to:

[0114] A bounding box is determined based on the twin robot model and the twin contact network model, and collision detection is performed based on the bounding box.

[0115] In one embodiment of the present application, the path planning module is further used to:

[0116] A ray collision detection method is used to detect whether the twin robot model and the twin contact network model collide.

[0117] Each module in the above-mentioned off-line simulation device for contact network robot based on augmented reality technology can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0118] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a contact network robot offline simulation method based on augmented reality technology is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0119] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0120] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0121] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0122] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0123] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0124] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0125] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0126] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A contact network robot offline simulation method based on augmented reality technology, characterized in that: The method comprises: Build twin robot models and twin contact network models; Convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, register the twin robot model with the real environment using Vuforia, and establish a connection with the contact network robot; Based on the current position of the robot and the target point of the operation, a path planning algorithm is used to plan a feasible path to the target; A control instruction is generated based on the target feasible path, and the control instruction is sent to the contact network robot through real-time communication of the ROS topic to control the operation of the contact network robot.

2. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 1 is characterized in that: The generating of control instructions based on the target feasible path, sending the control instructions to the contact network robot through ROS topic real-time communication, and controlling the contact network robot to operate include: The communication connection between Unity3D and ROS is established using the topic communication mechanism and ROSbridge.

3. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 1 is characterized in that: The method of using a path planning algorithm to plan a feasible target path based on the current position of the robot and the target point of the operation includes: Based on the robot's current position and the target point, the Informed RRT* algorithm is used to plan the initial feasible path. Smoothing the initial feasible path to obtain an initial smoothed feasible path; A collision detection is performed based on the initial smooth feasible path, and if no collision occurs, the initial smooth feasible path is determined to be the target feasible path.

4. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 3 is characterized in that: The initial feasible path obtained by planning based on the current position of the robot and the operation target point using the Informed RRT* algorithm includes: Determine an elliptical sampling area based on the current position of the robot and the operation target point; The elliptical sampling area is uniformly sampled to obtain an initial feasible path.

5. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 3 is characterized in that: The smoothing of the initial feasible path to obtain the initial smoothed feasible path comprises: Performing inverse kinematics solution on the initial feasible path to obtain a robot joint angle sequence; Based on the robot joint angle sequence, a cubic polynomial difference method is used to fit the robot joint angle sequence to obtain an initial smooth feasible path.

6. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 3 is characterized in that: The collision detection based on the initial smooth feasible path includes: A bounding box is determined based on the twin robot model and the twin contact network model, and collision detection is performed based on the bounding box.

7. The method for offline simulation of a contact network robot based on augmented reality technology according to claim 6 is characterized in that: The performing collision detection based on the initial smooth feasible path further comprises: A ray collision detection method is used to detect whether the twin robot model and the twin contact network model collide.

8. An off-line simulation device for a contact network robot based on augmented reality technology, characterized in that: The device comprises: Model building module, used to build twin robot model and twin contact network model; An augmented reality module is used to convert the twin robot model and the twin contact network model into a VuforiaEngine dataset, import it into Unity3D, register the twin robot model with the real environment using Vuforia, and establish a connection with the contact network robot; The path planning module is used to plan a feasible path to the target using a path planning algorithm based on the current position of the robot and the target point of the operation; The instruction execution module is used to generate a control instruction based on the target feasible path, send the control instruction to the contact network robot through ROS topic real-time communication, and control the operation of the contact network robot.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Workshop-grade smart manufacture system based on digital twins and configuration method thereof

    CN108427390A

  • Production line predictive maintenance system and method based on digital twinning and augmented reality

    CN113359640A

  • Distribution network operation robot control method and device based on digital twin system

    CN113954066A

  • Welding robot simulation method, system and equipment based on digital twinning technology and medium

    CN114692425A

  • ROS intelligent vehicle interaction method based on mixed reality technology

    CN114791765A