Photographing point-based robot arm operation method, system, device and storage medium
By calculating the path cost between photo points and optimizing the order of photo points, the problems of flexibility and efficiency in robotic arm photo inspection were solved, and efficient inspection in different environments was achieved.
Patent Information
- Application Number
- CN202411000817.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-07-24
AI Technical Summary
In existing robotic arm photo-based inspection technologies, fixed-track solutions lack flexibility and vehicle parking errors can lead to collision risks, while real-time track planning solutions, with their fixed sequence of photo points, result in significant differences in running time, impacting inspection efficiency.
By calculating the path cost between each photo-taking point, a graph structure is constructed, and an optimal sorting algorithm is used to obtain the photo-taking point order with the shortest time. The cost matrix is then updated using a dynamic programming algorithm to optimize the photo-taking point order of the robotic arm.
It improves the adaptability and operating efficiency of the robotic arm in different environments, reduces actual running time, improves the efficiency of vehicle inspection, and avoids detection failures caused by parking errors.
Smart Images

Figure CN118721206B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of rail transit technology, specifically to a robotic arm operation method, system, device, and storage medium based on photo capture points. Background Technology
[0002] As the train maintenance industry gradually transforms towards automation and intelligence, the proportion of robots used is also increasing year by year. In production scenarios, adding a camera to the end of a mobile robotic arm allows for the taking of photos of inspection points (photo-taking points) near the robot's stopping point, thereby enabling efficient inspection of train bogie components.
[0003] Currently, the technical solutions for robotic arm photo-based inspection mainly include fixed robotic arm trajectory schemes and real-time planned robotic arm trajectory schemes. While the fixed robotic arm trajectory scheme is relatively efficient, it lacks flexibility, and errors in vehicle and robotic arm parking can cause the robotic arm to fail to accurately reach the photo point or collide with the vehicle. Therefore, the real-time planned robotic arm trajectory scheme is more commonly used. In this scheme, the robotic arm generates its trajectory according to a predetermined sequence of photo points. Different sequences of photo points set before inspection result in different robotic arm trajectories, thus affecting the inspection time.
[0004] However, in real-time planning of robotic arm trajectories, the initial sequence of recorded image points is fixed. The robotic arm's runtime varies significantly depending on the image capture sequence; an unreasonable image capture sequence can drastically increase the robotic arm's runtime. Summary of the Invention
[0005] To address one of the aforementioned technical deficiencies, this application provides a robotic arm operation method, system, device, and storage medium based on a photo capture point.
[0006] According to a first aspect of the embodiments of this application, a robotic arm operation method based on a photographic point is provided, the method comprising:
[0007] Calculate the path cost for every two photo points in the set of photo points under the robot arm's stopping point;
[0008] Construct a graph structure with each photo point as a node and path cost as an edge, and obtain the optimal sort of photo points with the minimum weighted cost based on the graph structure;
[0009] The robotic arm is arranged in the optimal order of the photo-taking points and passes through each photo-taking point in turn to take photos.
[0010] In an optional embodiment of this application, the step of calculating the path cost for every two photo points in the set of photo points under the robotic arm parking point further includes:
[0011] The cost value recorded by the robotic arm between every two photo points at a parking point is stored as a cost vector. Each cost value in the cost vector is weighted to obtain a weighted cost value. The path cost between every two photo points is obtained by summing each weighted cost value.
[0012] In an optional embodiment of this application, the step of calculating the path cost for every two photo points in the set of photo points under the robotic arm parking point further includes:
[0013] The weight of each cost value is positively correlated with the recording time of the cost value.
[0014] In an optional embodiment of this application, the step of calculating the path cost for every two photo points in the set of photo points under the robotic arm parking point further includes:
[0015] The cost vector has a maximum length threshold. When the length of the cost vector reaches the maximum length threshold and a cost value needs to be stored, the cost value with the smallest weight is removed to maintain the maximum length of the cost vector.
[0016] In an optional embodiment of this application, the step of calculating the path cost for every two photo points in the set of photo points under the robotic arm parking point further includes:
[0017] If the cost value is not recorded most recently, the weight is calculated using the hyperbolic tangent function, with the following formula:
[0018]
[0019] In the formula, w i For weights, K t is the shape coefficient, L is the length of the cost vector, and i is the order of the cost records.
[0020] In an optional embodiment of this application, the cost value is the average trajectory time obtained after performing at least two motion planning operations between every two image points using a random sampling algorithm.
[0021] In an optional embodiment of this application, the random sampling algorithm is the RRT-Connect algorithm.
[0022] According to a second aspect of the embodiments of this application, a robotic arm operation system based on photo capture points is provided. The system includes a path cost calculation module, a photo capture point sorting module, and a photo capture operation module; wherein...
[0023] The path cost calculation module is used to calculate the path cost of the path between every two photo points in the set of photo points under the robot arm's parking point.
[0024] The photo point sorting module is used to construct a graph structure with each photo point as a node and path cost as an edge, and obtain the optimal sort of photo points with the minimum weighted cost value based on the graph structure.
[0025] The photo-taking module is used to allow the robotic arm to perform photo-taking operations by passing through each photo-taking point in the optimal order of photo-taking points.
[0026] According to a third aspect of the embodiments of this application, a computer device is provided, comprising: a memory; a processor; and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the steps of any of the methods of the first aspect of the embodiments of this application.
[0027] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon; the computer program is executed by a processor to implement the steps of any of the methods of the first aspect of the embodiments of this application.
[0028] The robotic arm operation method based on photo capture points provided in this application has the following advantages:
[0029] This application pre-calculates the trajectories between each camera point and calculates the running time as the cost between two camera points. It then uses graph search to find the shortest order of camera points, effectively reducing the actual running time of the robotic arm. Compared to existing real-time trajectory planning schemes with fixed camera point orders, this method offers higher robotic arm efficiency. During inspection, the robotic arm's running time is a significant component of the total inspection time; reducing this time can substantially improve the overall vehicle inspection efficiency. Attached Figure Description
[0030] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0031] Figure 1 A flowchart illustrating the robotic arm operation method based on image capture points provided in this application embodiment;
[0032] Figure 2 A schematic diagram of the cost matrix provided for an embodiment of this application;
[0033] Figure 3 A structural diagram of a robotic arm operation system based on photo capture points provided in an embodiment of this application;
[0034] Figure 4 This is a schematic diagram of a computer device structure provided in one embodiment of this application. Detailed Implementation
[0035] To make the technical solutions and advantages of the embodiments of this application clearer, the exemplary embodiments of this application will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not an exhaustive list of all embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0036] As the train maintenance industry gradually transforms towards automation and intelligence, the proportion of robots used is also increasing year by year. In production scenarios, adding a camera to the end of a mobile robotic arm allows for the taking of photos of inspection points (photo-taking points) near the robot's stopping point, thereby enabling efficient inspection of train bogie components.
[0037] Currently, the technical solutions for robotic arm inspection via photography mainly include fixed robotic arm trajectory solutions and real-time planned robotic arm trajectory solutions.
[0038] The fixed-track robotic arm scheme involves the robot moving along a predetermined path to a fixed stopping point after the train under inspection is stopped at a designated location. Once stopped, the robotic arm captures images at fixed sequence of photo points, and the movement trajectory between these points is also fixed. This scheme requires the robotic arm trajectory to be generated only once and can be reused subsequently, with a fixed robotic arm runtime.
[0039] However, this solution requires setting up separate inspection sites for different train models. When the train model changes, the site needs to be reset and the robotic arm's trajectory needs to be re-recorded, lacking flexibility and unsuitable for inspecting multiple train models in the same site. Furthermore, vehicle parking errors and mobile robot parking errors can cause the actual photo-taking point coordinates to not correspond to the initially set photo-taking point coordinates. Directly running the pre-set robotic arm trajectory can cause the robotic arm to fail to accurately reach the photo-taking point or collide with the vehicle body.
[0040] When the inspected train cannot stop at the designated location, or the mobile robot cannot always stop precisely at the fixed stopping point, the robotic arm's motion trajectory cannot be reused. Therefore, the robotic arm needs to generate its motion trajectory in real time for the on-site inspection location. In this real-time robotic arm trajectory planning scheme, the robotic arm generates its trajectory according to a predetermined sequence of photo points. Different sequences of photo points set before the inspection will result in different generated robotic arm motion trajectories, and consequently, different inspection times.
[0041] While real-time robotic arm trajectory planning can flexibly generate trajectories based on different parking positions, the initial sequence of recorded camera images is fixed. The robotic arm's runtime varies significantly depending on the order of these images; an unreasonable sequence can drastically increase the robotic arm's runtime.
[0042] To enable robotic arm maintenance operations to combine the relatively high efficiency of fixed robotic arm trajectory schemes with the flexibility and accuracy of real-time planned robotic arm trajectory schemes, this application pre-calculates the trajectory running time between each photo point, obtains the initial cost matrix, uses the optimal sorting algorithm to calculate the order of photo points with the shortest robotic arm running time, and updates the cost matrix during the actual inspection process.
[0043] Please see as follows Figure 1 The steps shown are as follows:
[0044] S1: Calculate the path cost for every two photo points in the set of photo points under the robot arm's parking point.
[0045] In some embodiments of this application, at least two motion planning operations are performed between every two shooting points using a random sampling algorithm, and the average trajectory time is obtained. This average trajectory time is used as the cost, directly applied as the path cost. Optionally, the random sampling algorithm is the RRT-Connect algorithm. The RRT-Connect algorithm is derived from the Rapidly-exploring Random Tree (RRT) algorithm. It introduces a dual-tree expansion step, generating two trees with the starting point and target point as root nodes respectively, and expanding bidirectionally. Path planning is considered successful when the two trees are connected. A sampling point is obtained through one sampling, and then both search trees expand simultaneously towards the sampling point, accelerating the connection between the two trees. Compared to the single-tree expansion RRT algorithm, RRT-Connect incorporates a heuristic step, speeding up the search and showing better performance even in narrow passages.
[0046] In practice, after acquiring a set of camera points at a parking spot, a path is generated for any two camera points using the RRT-Connect algorithm, and the running time is recorded. Since the RRT-Connect algorithm is a random sampling algorithm, the generated path has randomness. Therefore, multiple motion planning operations are needed for the path between two camera points, and the average trajectory time is taken as the cost v between camera point a and camera point b. a,b The cost matrix consists of N photo points, as shown below. Figure 2 As shown.
[0047] The inventors of this application discovered that, due to errors in the parking position or ground height of the robotic arm under different environments, the angle of the robotic arm joint reaching the photo-taking point will also vary, resulting in different costs for each motion planning. Integrating the cost between actual photo-taking points into the previously calculated cost matrix can improve the adaptability of this method.
[0048] Based on this, in some other embodiments of this application, the cost value recorded by the robotic arm between every two photo-taking points at a parking point is stored as a cost vector. Each cost value in the cost vector is weighted to obtain a weighted cost value, and the path cost between every two photo-taking points is obtained by summing each weighted cost value. Optionally, to improve the referenceability of the weights, the weight of each cost value is positively correlated with the recording time of the cost value.
[0049] In this embodiment, if the cost value is not recorded most recently, the weight is calculated using the hyperbolic tangent function, as follows:
[0050]
[0051] In the formula, w i For weights, K t is the shape coefficient, L is the length of the cost vector, and i is the order of the cost records.
[0052] In this embodiment, the cost vector has a maximum length threshold. When the length of the cost vector reaches the maximum length threshold and a cost value needs to be stored, the cost value with the smallest weight is removed to maintain the maximum length of the cost vector. Based on this, maintaining the maximum length of the cost vector can avoid the cost vector expanding indefinitely, and increasing the computational content after reaching a certain threshold would reduce efficiency.
[0053] In practice, for each pair of photo points under a certain parking spot, a cost vector {v} of length L is stored. 1 ,v 2 ,…,v i ,…,v L}, where v i Let represent the cost value of the i-th record. The cost vector is continuously updated with each planning iteration, while maintaining a constant vector length. Different weights are assigned to the cost values recorded at different times, with earlier records receiving lower weights.
[0054] In practice, the formula for calculating the weight is:
[0055]
[0056] In the formula, w i For weights, K t Here, K represents the shape coefficient, L is the length of the cost vector, and i is the order of the cost value records. Specifically, K... t The shape coefficient of the hyperbolic tangent function can be set according to actual needs. By assigning different values to the shape coefficient, the forgetting time of the weights can be controlled. The smaller the shape coefficient, the smaller the overall calculated value (i.e., the weight).
[0057] In practice, the cost value obtained from actual inspections is recorded, and the cost value is updated using the following formula. The updated cost value is then used as the path cost, thereby obtaining a cost matrix that is closer to the actual situation.
[0058]
[0059] In the formula, V represents the path cost.
[0060] Please continue reading Figure 1 :
[0061] S2: Construct a graph structure with each photo point as a node and path cost as an edge, and obtain the optimal sort of photo points with the minimum weighted cost value based on the graph structure.
[0062] In practical implementation, after obtaining the path costs between photo points, an optimal sorting algorithm is needed to find the photo-taking order with the minimum cost. Specifically, the photo points are transformed into nodes in a graph structure, and the path costs between two photo points are used as edges between nodes. This transforms the photo point sorting problem into a graph search problem with the minimum cost after traversing all nodes. The optimal arrangement of photo points is then found using a dynamic programming algorithm.
[0063] S3: The robotic arm is sorted according to the optimal order of the photo-taking points and passes through each photo-taking point in turn to perform the photo-taking operation.
[0064] In practice, the robotic arm uses the optimal order of photo points for motion planning and executes the trajectory.
[0065] In summary, this application can obtain an initial cost matrix by pre-calculating the trajectory running time between each photo-taking point, and then use graph search to calculate the sequence of photo-taking points with the shortest running time for the robotic arm, effectively reducing the actual running time of the robotic arm. Furthermore, this application can also update the cost matrix during actual inspection, incorporating the cost values between actual photo-taking points into the previously calculated cost matrix, thereby improving the adaptability of this method.
[0066] Compared with fixed robotic arm trajectory solutions, this application significantly improves the environmental adaptability and reliability of high-speed rail inspection. Based on the embodiments of this application, after obtaining the location of the photo-taking point, there is no need to pre-set the robotic arm trajectory. Instead, the trajectory is generated in real time based on environmental information, which is robust to parking errors and mobile robot parking errors, has stronger environmental adaptability, avoids the problem of detection failure caused by parking errors, and has higher reliability.
[0067] Compared to real-time planning of robotic arm trajectories, this application significantly improves the efficiency of robotic arm operation. The embodiments of this application, based on a pre-evaluation of the costs between image capture points, use a dynamic programming algorithm to determine the time-optimal sequence of image capture points, resulting in higher robotic arm operation efficiency compared to existing real-time planning robotic arm trajectory schemes with fixed image capture point sequences. Furthermore, this application updates the cost matrix between image capture points based on the actual robotic arm operation results, thereby adjusting the optimal image capture point sequence according to different actual environments to optimize the robotic arm's operation time.
[0068] It should be understood that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the diagram may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0069] Please see Figure 3 One embodiment of this application provides a robotic arm operation system based on photo capture points, including a path cost calculation module 10, a photo capture point sorting module 20, and a photo capture operation module 30; wherein,
[0070] The path cost calculation module 10 is used to calculate the path cost of the path for every two photo points in the set of photo points under the robot arm parking point.
[0071] The photo point sorting module 20 is used to construct a graph structure with each photo point as a node and path cost as an edge, and obtain the optimal sorting of photo points with the minimum weighted cost value based on the graph structure.
[0072] The photo-taking module 30 is used to make the robotic arm take photos by passing through each photo-taking point in the optimal order of photo-taking points.
[0073] For specific limitations regarding the above-mentioned camera-based robotic arm operation system, please refer to the limitations of the camera-based robotic arm operation method described above, which will not be repeated here. Each module in the above-mentioned camera-based robotic arm operation system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0074] In one embodiment, a computer device is provided, the internal structure of which can be as follows: Figure 4 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and the database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data. The network interface communicates with external terminals via a network connection. When the processor executes the computer program, it implements the above-described robotic arm operation method based on image capture points. It includes: memory and a processor; the memory stores the computer program; and the processor executes the computer program to implement any step in the above-described robotic arm operation method based on image capture points.
[0075] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, can perform any of the steps in the above-described robotic arm operation method based on image capture points.
[0076] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of this application can be implemented in various computer languages, such as C, VHDL, Verilog, the object-oriented programming language Java, and the interpreted scripting language JavaScript.
[0077] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0078] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0079] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0080] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0081] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A robotic arm operation method based on photo capture points, characterized in that, include: Calculate the path cost for every two photo points in the set of photo points under the robot arm's stopping point; The cost value recorded by the robotic arm between every two photo points at a parking point is stored as a cost vector. Each cost value in the cost vector is weighted to obtain a weighted cost value, and the weighted cost values are summed to obtain the path cost between every two photo points. If the recording time of the cost value is not the most recent, the weight is calculated using the hyperbolic tangent function, with the following formula: ; In the formula, As weight, The shape factor, The length of the cost vector, The order in which the value is recorded; Construct a graph structure with each of the aforementioned photo points as nodes and the path costs as edges, and obtain the optimal sort of photo points with the minimum sum of weighted costs based on the graph structure; The robotic arm is arranged in the optimal order of the photo-taking points and passes through each photo-taking point in turn to take photos.
2. The robotic arm operation method based on photo capture points according to claim 1, characterized in that, The step of calculating the path cost for every two photo points in the set of photo points under the robotic arm's parking point further includes: The weight of each cost value is positively correlated with the recording time of the cost value.
3. The robotic arm operation method based on photo capture points according to claim 2, characterized in that, The step of calculating the path cost for every two photo points in the set of photo points under the robotic arm's parking point further includes: The cost vector has a maximum length threshold. When the length of the cost vector reaches the maximum length threshold and the cost value needs to be stored, the cost value with the smallest weight is removed to maintain the maximum length of the cost vector unchanged.
4. The robotic arm operation method based on photo capture points according to any one of claims 2-3, characterized in that, The cost value is the average trajectory time obtained after performing at least two motion planning operations between each pair of the photographing points using a random sampling algorithm.
5. The robotic arm operation method based on photo capture points according to claim 4, characterized in that, The random sampling algorithm is the RRT-Connect algorithm.
6. A robotic arm operation system applying the robotic arm operation method based on a photographic point according to any one of claims 1-5, characterized in that, It includes a path cost calculation module, a photo point sorting module, and a photo capture operation module; among them, The path cost calculation module is used to calculate the path cost of the path between every two photo points in the set of photo points under the robot arm's parking point. The photo point sorting module is used to construct a graph structure with each photo point as a node and the path cost as an edge, and obtain the optimal sorting of photo points with the minimum weighted cost value based on the graph structure. The photo-taking module is used to make the robotic arm take photos sequentially through each of the photo-taking points according to the optimal sorting of the photo-taking points.
7. A computer device, characterized in that, include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and configured to be executed by the processor to implement the method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, It stores a computer program thereon; the computer program is executed by a processor to implement the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Path planning method for six-degree-of-freedom mechanical arm to grab complex parts
CN117047776A
Mechanical arm path planning method based on improved A*ant colony fusion artificial potential field
CN118123820A
