Simulation method and device for robot moving path
By simulating the road network and robot, creating a road network model and setting the initial position and movement parameters, the simulation of robot path planning is realized, solving the problem of high cost of real robot testing, reducing the cost of path planning and improving efficiency.
Patent Information
- Application Number
- CN202011541648.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-12-23
AI Technical Summary
In the existing technology, using real robots to conduct path planning experiments is costly and involves safety risks.
By simulating the road network and the robot to be controlled, create a road network model, add path points and path segments, set the robot's initial position and movement parameters, control the robot to simulate movement in the road network based on task information, and realize the simulation of robot path planning. .
It reduces the cost of robot path planning, avoids safety risks, provides a platform for verifying path planning algorithms, saves manpower and material resources, and improves the efficiency of path planning.
Smart Images

Figure CN112560199B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of robot path planning, and in particular to a method and device for simulating a robot moving path. Background Art
[0002] Mobile robot path planning refers to the process of finding an optimal path for the mobile robot to complete a task based on a given road network, according to the current status of the mobile robot, traffic conditions, etc. In the design phase of the path planning algorithm, if a real mobile robot is used directly for testing, it will not only consume a lot of manpower and material resources, but also, because the stability of the algorithm has not been verified, it is easy to have unknown effects such as mobile robot signal confusion, path information confusion, etc., leading to collisions, which poses a safety risk.
[0003] With regard to the problem of high cost of using real robots to conduct experiments and plan paths for the robots in the above-mentioned related technologies, no effective solution has been proposed so far. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for simulating a robot moving path, so as to at least solve the technical problem in the related art that a real robot is used to conduct experiments to plan the path of the robot, which is costly.
[0005] According to one aspect of an embodiment of the present invention, a method for simulating a robot's moving path is provided, comprising: simulating a road network and a robot to be controlled, wherein the road network information of the road network comprises: a plurality of path points in a created road network model, and path segments between the path points; obtaining an initial position of the robot in the road network; receiving task information, and controlling the robot to move in the road network from the initial position based on the task information.
[0006] Optionally, simulating a road network and a robot to be controlled includes: creating the road network model; adding multiple path points in the road network model and path segments between any two path points on a human-computer interface; and saving the multiple path points and path segments in the road network model separately to form the road network.
[0007] Optionally, the field attributes of the path point include at least one of the following: coordinate position information of the path point and occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connectivity information with other path segments.
[0008] Optionally, before obtaining the initial position of the robot in the road network, the simulation method of the robot's moving path also includes: adding the robot's object to the simulated road network and setting the robot's initial position in the road network; setting the robot's moving parameters, wherein the moving parameters include at least one of the following: the robot's speed parameters, walking parameters, stop parameters and action parameters.
[0009] Optionally, the robot is controlled to move from the initial position in the road network based on the task information, including: if the task information is received, calling the road network information and the initial position of the robot to be controlled through a system interface, wherein the task information includes: a preset moving path and speed of the robot; based on the task information, calculating an animation route of the robot in the road network with the initial position as the starting point; and controlling the robot to move based on the animation route.
[0010] According to another aspect of an embodiment of the present invention, a simulation device for a robot movement path is also provided, comprising: a simulation unit, used to simulate a road network and a robot to be controlled, wherein the road network information of the road network includes: multiple path points in the created road network model, and path segments between the path points; an acquisition unit, used to acquire the initial position of the robot in the road network; and a control unit, used to receive task information and control the robot to move in the road network from the initial position based on the task information.
[0011] Optionally, the simulation unit includes: a creation module for creating the road network model; an adding module for adding multiple path points in the road network model and the path segments between any two path points on the human-computer interface; and a saving module for separately saving the multiple path points and path segments in the road network model to form the road network.
[0012] Optionally, the field attributes of the path point include at least one of the following: coordinate position information of the path point and occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connectivity information with other path segments.
[0013] Optionally, the simulation device for the robot's moving path also includes: an adding unit, used to add the robot's object in the simulated road network and set the robot's initial position in the road network before obtaining the robot's initial position in the road network; a setting unit, used to set the robot's moving parameters, wherein the moving parameters include at least one of the following: the robot's speed parameters, walking parameters, stop parameters and action parameters.
[0014] Optionally, the control unit includes: a control module, which is used to call the road network information and the initial position of the robot to be controlled through a system interface if the task information is received, wherein the task information includes: a preset moving path and speed of the robot; a calculation module, which is used to calculate, based on the task information, an animation route of the robot in the road network with the initial position as the starting point; and a control module, which is used to control the robot to move based on the animation route.
[0015] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the device where the computer storage medium is located is controlled to execute any of the above-mentioned simulation methods for the robot movement path.
[0016] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a computer program, wherein the computer program executes any one of the above-mentioned methods for simulating a robot movement path when running.
[0017] In an embodiment of the present invention, a simulated road network and a robot to be controlled are used, wherein the road network information of the road network includes: multiple path points in the created road network model, and path segments between the path points; obtaining the initial position of the robot in the road network; receiving task information, and controlling the robot to move from the initial position in the road network based on the task information. The simulation method of the robot moving path provided by the embodiment of the present invention realizes the purpose of simulating the moving path of the robot without the actual robot to plan the path of the mobile robot, and achieves the technical effect of reducing the cost of path planning of the mobile robot, thereby solving the technical problem of high cost in the related technology of using a real robot to conduct experiments to plan the path of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0019] Figure 1 is a flow chart of a method for simulating a robot moving path according to an embodiment of the present invention;
[0020] Figure 2 is a framework diagram of a mobile robot path planning simulation system according to an embodiment of the present invention;
[0021] Figure 3is a schematic diagram of an operation interface of a mobile robot path planning simulation system according to an embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a road network of a mobile robot path planning simulation system according to an embodiment of the present invention;
[0023] Figure 5 is a schematic diagram of a simulation of a robot moving path according to an embodiment of the present invention;
[0024] Figure 6 is a schematic diagram of a method for simulating a robot moving path according to an embodiment of the present invention;
[0025] Figure 7 4 is a schematic diagram of a simulation device for a robot moving path according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] Example 1
[0029] According to an embodiment of the present invention, a method embodiment of a method for simulating a robot movement path is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 1is a flow chart of a method for simulating a robot moving path according to an embodiment of the present invention. Figure 1 As shown, the simulation method of the robot moving path includes the following steps:
[0031] Step S102, simulating a road network and a robot to be controlled, wherein the road network information of the road network includes: a plurality of path points in the created road network model, and path segments between the path points.
[0032] In this embodiment, the road network design module divides the mobile robot road network into two major elements, namely, path points and path segments.
[0033] In an optional embodiment, simulating a road network and a robot to be controlled includes: creating a road network model; adding multiple path points in the road network model and a path segment between any two path points on a human-computer interface; and saving the multiple path points and path segments in the road network model separately to form a road network.
[0034] It should be noted that, in the embodiment of the present invention, the mobile robot path planning simulation system may include: Figure 2 ( Figure 2 The framework diagram of the mobile robot path planning simulation system according to an embodiment of the present invention shows three major components: a road network design module, an animation simulation module, and a system interface module.
[0035] Among them, the road network design module is mainly used to establish the road network module for the operation of the mobile robot; the road network consists of two major elements, namely path segments and path points. The path segment contains attributes such as direction, length, occupancy, and connectivity with other path segments, while the path point contains attributes such as coordinate location information and occupancy. Taking C# programming as an example, a MyPath class is established, which inherits the native Path class of the .Net Framework, and on this basis, attributes such as path name pathName, path length pathLength, path starting point startPoint, path endPoint, and occupancy status Locked are added. At the same time, a MyPoint class is established, which inherits the native Point class of the .Net Framework, and on this basis, attributes such as pointName, x coordinate X, y coordinate Y, and occupancy status Locked are added. Every time the user adds a path segment or path point on the human-computer interface, the system will create a Mypath object or MyPoint object, and then store them in the corresponding SortedList respectively.<string,MyPath> pathList and SortedList<string,MyPoint> The pointList collection is used for path planning algorithm calls.
[0036] The animation simulation module is to dynamically express the effect of the path planning algorithm. The main element of this module is the mobile robot object, which can simulate the speed, walking, parking and other parameters and actions of the mobile robot. The mobile robot will move along the path segment calculated by the path planning algorithm. Taking C# programming as an example, first establish an animation simulation class MyAnimation class, which is mainly based on C#WPF path animation technology. In the animation simulation class, three methods are established: animation start method AnimationStart(), animation pause method AnimationPause(), and animation resume method AnimationResume(). Then establish a mobile robot class AgvCar, which inherits from the MyAnimation class, so as to realize the movement, pause, and resume of the mobile robot on the human-machine interface.
[0037] The system interface module consists of two data interfaces. One is for users to call to obtain the road network information designed by the road network design module and the initial position of the mobile robot object to be controlled (hereinafter referred to as the "road network interface"); the other is for users to call to send the task information such as the path segment and speed calculated by the mobile robot path planning algorithm to the animation simulation module (hereinafter referred to as the "task interface"). The interface adopts the form of WebAPI. Taking C# programming as an example, two get request methods are established, namely GetPathInfo() and GetTaskInfo(). Among them, GetPathInfo() obtains the road network information from the road network design module, and the return value is the collection of the path segment set pathList and the path point set pointList. GetTaskInfo() sends the task information to the animation simulation module, and returns True if the sending is successful, otherwise it returns False.
[0038] Figure 3 is a schematic diagram of an operation interface of a mobile robot path planning simulation system according to an embodiment of the present invention, such as Figure 3 As shown, the interface shows a plurality of operable controls, through which path simulation can be performed; in addition, the interface also includes elements and properties required for path simulation.
[0039] Figure 4 is a schematic diagram of a road network of a mobile robot path planning simulation system according to an embodiment of the present invention, such as Figure 4 As shown, a road network may include waypoints and path segments.
[0040] Step S104, obtaining the initial position of the robot in the road network.
[0041] Step S106, receiving the task information, and controlling the robot to move from the initial position in the road network based on the task information.
[0042] From the above, it can be seen that in an embodiment of the present invention, a road network and a robot to be controlled can be simulated, wherein the road network information of the road network includes: multiple path points in the created road network model, and path segments between the path points; obtaining the initial position of the robot in the road network; receiving task information, and controlling the robot to move from the initial position in the road network based on the task information, thereby realizing the simulation of the robot's moving path independent of the actual robot, for the purpose of path planning for the mobile robot, and achieving the technical effect of reducing the path planning cost of the mobile robot.
[0043] Therefore, the method for simulating the movement path of a robot provided by the embodiment of the present invention solves the technical problem of high cost in the related art of using a real robot to conduct experiments to plan the path of the robot.
[0044] In an optional embodiment, the field attributes of the path point include at least one of the following: the coordinate position information of the path point and the occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connection information with other path segments.
[0045] That is, in the embodiment of the present invention, a path point may include but is not limited to: coordinate location information, occupancy status and other attributes; a path segment may include but is not limited to: direction, length, occupancy status, connectivity with other paths and other attributes.
[0046] In this embodiment, each time a path segment or path point is added by the user on the human-machine interface, it will be stored in a corresponding array for use by the path planning algorithm.
[0047] In an optional embodiment, before obtaining the initial position of the robot in the road network, the simulation method of the robot's moving path also includes: adding a robot object to the simulated road network and setting the initial position of the robot in the road network; setting the robot's moving parameters, wherein the moving parameters include at least one of the following: the robot's speed parameters, walking parameters, stop parameters and action parameters.
[0048] In an optional embodiment, a robot is controlled to move from an initial position in a road network based on task information, including: if task information is received, calling the road network information and the initial position of the robot to be controlled through a system interface, wherein the task information includes: a preset moving path and speed of the robot; based on the task information, calculating an animation route of the robot in the road network with the initial position as the starting point; and controlling the robot to move based on the animation route.
[0049] Figure 5 is a schematic diagram of a simulation of a robot moving path according to an embodiment of the present invention, such as Figure 5As shown, the robot's moving path can be displayed more vividly.
[0050] Figure 6 is a schematic diagram of a method for simulating a robot moving path according to an embodiment of the present invention, such as Figure 6 As shown in the figure, first, the user adds path points on the human-machine interface of the road network design module according to actual needs, and sets the names of these path points, and then connects the path points with path segments to outline the road network model of the mobile robot. After saving, the path points and path segments added by the user will be saved in two arrays for the user to call; then the user adds the mobile robot object in the animation design module and sets the initial position of the mobile robot in the above road network; then the user designs the path planning algorithm program through other programming languages and platforms, and calls the "road network interface" provided by this system in the program to obtain the road network information and the initial position of the mobile robot object to be controlled as the input of the path planning algorithm; and after a calculation of the path planning algorithm designed by the user, the path information of the mobile robot object to be controlled is obtained, and then the "task interface" provided by this system is called to send the task information such as the path segment and speed calculated by the mobile robot path planning algorithm to the animation simulation module. After receiving the task information, the animation simulation module starts the corresponding animation thread and instructs the mobile robot to start action according to the task information, thereby expressing the effect of the path planning algorithm.
[0051] Specifically, the simulation system can be opened first. The user can add path points on the human-machine interface of the road network design module according to actual needs. The names of the path points are automatically generated and automatically listed as point0, point1... in the order of addition. Then, the path segments are used to connect the path points to outline the road network model of the mobile robot. The path segments are named in the form of "starting point-end point" such as "point0-point1". After the road network model is established, it will be saved in XML format in the form of nodes for subsequent use. Then, the user adds the mobile robot object agvCar to be controlled in the designed road network model, and places the mobile robot object on a certain path point. This path point is the initial position of the mobile robot. This information will be returned to the user together with the aforementioned road network information when the user calls the interface. The user designs the path planning algorithm program through other programming languages and platforms, and calls the GetPathInfo() interface in the program to obtain the road network information and the initial position of the mobile robot object to be controlled as the input of the path planning algorithm. After the user-designed path planning algorithm calculates, the path information of the mobile robot object to be controlled is obtained, and then the user program calls the GetTaskInfo() interface to send the task information such as the path segment and speed calculated by the mobile robot path planning algorithm to the animation simulation module of this system. After receiving the task information, the animation simulation module starts the corresponding animation thread and instructs the mobile robot object to start the action according to the task information, thereby expressing the effect of the path planning algorithm. Figure 3 It is the human-computer operation interface of the system, including toolbar, drawing window, element window, property window, status bar, etc. Figure 4 is a road network model instance, Figure 5 This is a simulation example of a mobile robot based on the road network. It can be seen that the mobile robot object will occupy the corresponding path segment during the movement (as shown in the rectangle in the figure).
[0052] As can be seen from the above, in the embodiment of the present invention, the road network design module divides the composition of the mobile robot road network into two major elements, namely, path segments and path points; the path segment contains attributes such as direction, length, occupancy, and connectivity with other path segments, while the path point contains attributes such as coordinate position information and occupancy. Every time a user adds a path segment or a path point on the human-machine interface, it is stored in the corresponding array for use by the path planning algorithm. The animation simulation module can dynamically express the effect of the path planning algorithm. The main element of this module is the mobile robot object, which can simulate the speed, walking, parking and other parameters and actions of the mobile robot. The mobile robot will move along the path segment calculated by the path planning algorithm. The system interface module includes two interfaces, one is for users to call to obtain the road network information designed by the road network design module and the initial position of the mobile robot object to be controlled (hereinafter referred to as the "road network interface"), and the other is for users to call to send the task information such as the path segment and speed calculated by the mobile robot path planning algorithm to the animation simulation module (hereinafter referred to as the "task interface"). The system interface module is a bridge between the path planning algorithm designed by the designer, the road network design module and the animation simulation module.
[0053] It should be noted that in the embodiment of the present invention, the system interface module is a commonly used interface technology in computer programming. It is not affected by the programming language and programming platform adopted by the user. The user can choose the programming language according to his or her own preferences. At the same time, it saves the user's time in writing the human-computer interface, greatly improving the applicability of the system.
[0054] In summary, the simulation method of the robot moving path provided by the embodiment of the present invention, based on the mobile robot path planning simulation system, provides a platform for verifying the algorithm for the mobile robot path planning algorithm designer. In the design stage of the path planning algorithm, the principle and rationality of the algorithm can be verified without the actual mobile robot, so as to save manpower and material resources and avoid the occurrence of safety accidents. Among them, the mobile robot path planning simulation system can verify the path planning algorithm based on the road network model, such as the A* algorithm, the Dijkstra algorithm, the multi-mobile robot collision-free path planning algorithm, etc., and can be completely separated from the actual mobile robot, without considering the navigation method of the mobile robot, and only the principle and rationality of the algorithm are verified, which can help the designer quickly achieve the algorithm design goal, and finally transfer it to the actual mobile robot for testing, realizing the verification of the rationality of the algorithm by simulation means in the path planning algorithm design stage, and then transferring it to the actual mobile robot for testing.
[0055] Example 2
[0056] According to another aspect of the embodiments of the present invention, a simulation device for a robot moving path is also provided. Figure 7is a schematic diagram of a simulation device for a robot moving path according to an embodiment of the present invention, such as Figure 7 As shown, the simulation device for the robot moving path may include: a simulation unit 71, an acquisition unit 73, and a control unit 75. The simulation device for the robot moving path is described in detail below.
[0057] The simulation unit 71 is used to simulate the road network and the robot to be controlled, wherein the road network information of the road network includes: multiple path points in the created road network model and path segments between the path points.
[0058] The acquisition unit 73 is used to acquire the initial position of the robot in the road network.
[0059] The control unit 75 is used to receive the task information and control the robot to move from an initial position in the road network based on the task information.
[0060] It should be noted that the simulation unit 71, the acquisition unit 73, and the control unit 75 correspond to steps S102 to S106 in Embodiment 1, and the examples and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the contents disclosed in the above Embodiment 1. It should be noted that the above units, as part of the device, can be executed in a computer system such as a set of computer executable instructions.
[0061] As can be seen from the above, in the above embodiments of the present application, a simulation unit can be used to simulate a road network and a robot to be controlled, wherein the road network information of the road network includes: multiple path points in the created road network model, and path segments between the path points; then the acquisition unit is used to acquire the initial position of the robot in the road network; and the control unit receives the task information, and controls the robot to move from the initial position in the road network based on the task information. The simulation device for the robot moving path provided by the embodiment of the present invention realizes the purpose of simulating the moving path of the robot without using an actual robot to plan the path of the mobile robot, and achieves the technical effect of reducing the path planning cost of the mobile robot, and solves the technical problem of high cost in the related art of using a real robot to conduct experiments to plan the path of the robot.
[0062] In an optional embodiment, the simulation unit includes: a creation module for creating a road network model; an adding module for adding multiple path points in the road network model and a path segment between any two path points on a human-computer interface; and a saving module for separately saving the multiple path points and path segments in the road network model to form a road network.
[0063] In an optional embodiment, the field attributes of the path point include at least one of the following: the coordinate position information of the path point and the occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connection information with other path segments.
[0064] In an optional embodiment, the simulation device for the robot's moving path also includes: an adding unit, used to add the robot's object in the simulated road network and set the robot's initial position in the road network before obtaining the robot's initial position in the road network; a setting unit, used to set the robot's moving parameters, wherein the moving parameters include at least one of the following: the robot's speed parameters, walking parameters, stop parameters and action parameters.
[0065] In an optional embodiment, the control unit includes: a control module, which is used to call the road network information and the initial position of the robot to be controlled through the system interface if task information is received, wherein the task information includes: a preset moving path and speed of the robot; a calculation module, which is used to calculate the animation route of the robot in the road network with the initial position as the starting point based on the task information; and a control module, which is used to control the robot to move based on the animation route.
[0066] Example 3
[0067] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is executed by a processor, the device where the computer storage medium is located is controlled to execute any of the above-mentioned methods for simulating the robot movement path.
[0068] Example 4
[0069] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a computer program, wherein the computer program executes any of the above-mentioned methods for simulating a robot movement path when running.
[0070] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0071] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0072] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0073] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0074] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0075] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0076] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for simulating a robot moving path, characterized in that: include: A simulated road network and a robot to be controlled, wherein the road network information of the road network includes: a plurality of path points in the created road network model and path segments between the path points; Obtaining an initial position of the robot in the road network; receiving task information, and controlling the robot to move from the initial position in the road network based on the task information; Simulate the road network and the robot to be controlled, including: Creating the road network model; Adding multiple path points in the road network model and path segments between any two path points on the human-computer interface; The plurality of path points and path segments in the road network model are saved separately to form the road network.
2. The method according to claim 1, characterized in that The field attributes of the path point include at least one of the following: the coordinate position information of the path point and the occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connection information with other path segments.
3. The method according to claim 1, characterized in that Before obtaining the initial position of the robot in the road network, the method further includes: Adding the robot object to the simulated road network and setting the initial position of the robot in the road network; The movement parameters of the robot are set, wherein the movement parameters include at least one of the following: a speed parameter, a walking parameter, a stop parameter and an action parameter of the robot.
4. The method according to any one of claims 1 to 3, characterized in that Controlling the robot to move from the initial position in the road network based on the task information includes: If the task information is received, the road network information and the initial position of the robot to be controlled are called through the system interface, wherein the task information includes: the preset moving path and speed of the robot; Based on the task information, an animation route of the robot in the road network with the initial position as the starting point is calculated; The robot is controlled to move based on the animation route.
5. A robot moving path simulation device, characterized in that: include: A simulation unit, used for simulating a road network and a robot to be controlled, wherein the road network information of the road network includes: a plurality of path points in the created road network model and path segments between the path points; An acquisition unit, used for acquiring an initial position of the robot in the road network; A control unit, configured to receive task information and control the robot to move from the initial position in the road network based on the task information; The simulation unit comprises: A creation module, used for creating the road network model; An adding module, used for adding a plurality of path points in the road network model and a path segment between any two path points on a human-computer interface; The saving module is used to save the multiple path points and path segments in the road network model respectively to form the road network.
6. The device according to claim 5, characterized in that The field attributes of the path point include at least one of the following: the coordinate position information of the path point and the occupancy status of the path point; the field attributes of the path segment include at least one of the following: path direction, length, path segment occupancy status, and connection information with other path segments.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed by a processor, the device where the computer-readable storage medium is located is controlled to execute the method for simulating the movement path of a robot according to any one of claims 1 to 4.
8. A processor, characterized in that: The processor is used to run a computer program, wherein the computer program executes the simulation method of the robot movement path according to any one of claims 1 to 4 when running.
Citation Information
Patent Citations
Intelligent fishing map system
CN104236552A
Indoor path planning method for automatically constructing minimum path network subset
CN106895840A
Smooth path planning method for mobile robots based on dynamic complex environment
CN108896052A
Assembly control method based on long short-term memory neural network incremental model
CN110154024A
Robot path generation method and device, storage medium and electronic equipment
CN115560767A
