Robotic arm trajectory planning method, device, storage medium and electronic device

By determining the end trajectory target point and preset attitude in the robotic arm simulation software, and conducting trajectory planning and simulation testing, the automation problem of trajectory planning for multi-objective tasks of the robotic arm is solved, and the trajectory is quickly achievable and the shortest path is achieved.

CN116901074BActive Publication Date: 2024-09-06NANJING YUNCHUANG LARGE DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310966920.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2024-09-06
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

When the robot arm performs multi-target tasks, existing technology is difficult to achieve automated and intelligent trajectory planning, resulting in different target point selection sequences and robot arm postures having an impact on trajectory planning solutions, and not all solutions meet the robot arm operating constraints.

Method used

By obtaining the current position coordinates and target point position coordinates in the scenario file of the robot arm simulation software, determine the end trajectory target point, and determine the motion trajectory based on the current position, preset attitude and the end trajectory target point position, and conduct simulation running tests. If possible If achieved, the end trajectory target point is updated, and this process is repeated until all target points are achieved.

Benefits of technology

It realizes the rapid acquisition of the movement trajectory of the robotic arm, ensuring that the trajectory is achievable and the shortest trajectory meets the operating constraints of the robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116901074B
    Figure CN116901074B
Patent Text Reader

Abstract

The embodiments of the present application provide a robot arm trajectory planning method, device, storage medium and electronic device, the method comprising: obtaining the current position coordinates of the tip of the robot arm and the target point position coordinates of each target point in the robot arm simulation software scene file; obtaining the target point whose target point position coordinates are closest to the current position coordinates from all target points as the terminal trajectory target point; obtaining the preset robot arm posture when the tip of the robot arm arrives at the terminal trajectory target point from the current position coordinates; determining the motion trajectory of the tip of the robot arm when it arrives at the terminal trajectory target point from the current position coordinates based on the current position coordinates, the preset robot arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point; performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable; if so, repeating the above steps until the end motion trajectory corresponding to the time when the tip of the robot arm arrives at the last target point among all target points is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of robot arm motion trajectory planning, and in particular to a robot arm trajectory planning method, device, storage medium and electronic equipment. Background Art

[0002] In the production and operation of the robotic arm, in order to make the equipment on the tip of the robotic arm reach the target point, the trajectory of the robotic arm needs to be planned. However, when a single robotic arm performs multi-target tasks, it is difficult to implement trajectory planning in an automated and intelligent way. In the multi-target task process, different target point selection sequences and robotic arm tip postures will have different trajectory planning schemes, only some of which meet the robotic arm operation restrictions, so the trajectory of the robotic arm needs to be planned. Summary of the invention

[0003] The embodiments of the present application provide a robot arm trajectory planning method, device, storage medium and electronic device, which can plan the trajectory of the robot arm and quickly obtain the motion trajectory of the robot arm.

[0004] The present application provides a robot arm trajectory planning method, the method comprising:

[0005] Obtain the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the scene file of the robotic arm simulation software;

[0006] Acquire a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory;

[0007] Obtaining a preset robotic arm posture when the tip of the robotic arm reaches the target point of the termination trajectory from the current position coordinates;

[0008] Determine the motion trajectory of the robotic arm when the tip of the robotic arm reaches the terminal trajectory target point from the current position coordinates based on the current position coordinates, the preset robotic arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point;

[0009] Performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable;

[0010] If yes, then the target point closest to the target point of the terminal track is obtained from all the remaining target points as the next target point of the terminal track, and the position coordinates of the target point of the terminal track corresponding to the original target point of the terminal track are used as the new current position coordinates of the tip of the robot arm;

[0011] Repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

[0012] In the robot arm trajectory planning method described in the embodiment of the present application, after obtaining the current position coordinates of the tip of the robot arm and the target point position coordinates of each target point in the robot arm simulation software scene file, it also includes:

[0013] Based on the current position coordinates and the position coordinates of the target point, a target point that meets the requirements is obtained from all the target points as a trajectory target point, and a trajectory target point set is generated;

[0014] The step of obtaining a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory includes:

[0015] A trajectory target point whose target point position coordinates are closest to the current position coordinates is obtained from the trajectory target point set as the termination trajectory target point.

[0016] In the robot arm trajectory planning method described in the embodiment of the present application, based on the current position coordinates and the target point position coordinates, obtaining a target point that meets the requirements from all the target points as a trajectory target point, and generating a trajectory target point set, includes:

[0017] Obtaining the Euclidean distance between the current position coordinates and each of the target point position coordinates;

[0018] Obtaining the working range of the robotic arm;

[0019] Determine whether the corresponding target point is within the working range based on each of the Euclidean distances and the working range;

[0020] If so, all the corresponding target points are used as the trajectory target points to generate a trajectory target point set.

[0021] In the robot arm trajectory planning method described in the embodiment of the present application, after the simulation operation test of the motion trajectory is performed to determine whether the motion trajectory is achievable, it also includes:

[0022] If not, the end track target point is transferred to the waiting list, and the target point closest to the current position coordinates is obtained from all the remaining target points as the next end track target point;

[0023] When the motion trajectory of the robotic arm when the tip of the robotic arm reaches the next target point of the termination trajectory from the current position coordinates is obtained, and the motion trajectory is achievable in the simulation running test, the target point of the termination trajectory in the waiting list is removed from the waiting list and is used as the target point again;

[0024] Repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

[0025] In the robot arm trajectory planning method described in the embodiment of the present application, after the simulation operation test of the motion trajectory is performed to determine whether the motion trajectory is achievable, it also includes:

[0026] If so, the parameters related to the motion trajectory are saved in the trajectory command list.

[0027] In the robot arm trajectory planning method described in the embodiment of the present application, the above steps are repeated until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test, and further includes:

[0028] Issue commands to the robot arm according to the trajectory command list to perform motion trajectory demonstration.

[0029] In the robot arm trajectory planning method described in an embodiment of the present application, the parameters include the motion trajectory, and the current position coordinates, the position coordinates of the target point of the termination trajectory and the preset robot arm posture corresponding to the motion trajectory.

[0030] An embodiment of the present application also provides a robot arm trajectory planning device, which includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the robot arm trajectory planning method described in any of the above embodiments by calling the computer program stored in the memory.

[0031] An embodiment of the present application also provides an electronic device, which includes the robot arm trajectory planning device described in the above embodiment.

[0032] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the robot arm trajectory planning method described in any of the above embodiments.

[0033] The robot arm trajectory planning method provided in the embodiment of the present application obtains the current position coordinates of the robot arm tip and the target point position coordinates of each target point in the robot arm simulation software scene file, obtains the target point whose target point position coordinates are closest to the current position coordinates from all target points as the terminal trajectory target point, and obtains the preset robot arm posture when the robot arm tip reaches the terminal trajectory target point from the current position coordinates, and then determines the motion trajectory of the robot arm tip when it reaches the terminal trajectory target point from the current position coordinates based on the current position coordinates, the preset robot arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point, and then performs a simulation operation test on the motion trajectory to determine whether the motion trajectory is achievable. If so, obtain the target point closest to the terminal trajectory target point from all remaining target points as the next terminal trajectory target point, and use the terminal trajectory target point position coordinates corresponding to the original terminal trajectory target point as the new current position coordinates of the robot arm tip, and finally repeat the above steps until the terminal motion trajectory corresponding to the last target point among all target points is obtained, and the terminal motion trajectory is achievable in the simulation operation test, so that the trajectory of the robot arm can be planned and the motion trajectory of the robot arm can be quickly obtained. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0035] Figure 1 A schematic flow chart of a robot arm trajectory planning method provided in an embodiment of the present application.

[0036] Figure 2 Another flowchart of the robot arm trajectory planning method provided in an embodiment of the present application.

[0037] Figure 3 A schematic diagram of the structure of a robot arm trajectory planning device provided in an embodiment of the present application.

[0038] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0040] The present application provides a robot arm trajectory planning method, which can be applied to electronic devices, such as smart bracelets, smart watches, smart gloves, smart wristbands, smart clothes, smart pants, and smart shoes.

[0041] See also Figure 1 to Figure 2 , Figure 1 A schematic diagram of a process flow of a robot arm trajectory planning method provided in an embodiment of the present application, Figure 2 Another schematic diagram of a process flow of a robot arm trajectory planning method provided in an embodiment of the present application. The robot arm trajectory planning method is applied to an electronic device, and the method may include the following steps:

[0042] Step 101 , obtaining the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the scene file of the robotic arm simulation software.

[0043] Among them, you can build a scene file that is the same as the actual production line requirements in the robot simulation software Coppeliasim, add the robot, target point and other related objects. The position of the robot and related objects are set by adding them in the scene file. The target point can be set in the scene file or created by providing a three-dimensional coordinate position.

[0044] Among them, multiple target points are set in the scene file. The target points can provide three-dimensional coordinates for specification, or they can be randomly generated within a certain area.

[0045] Among them, other related objects such as obstacles, operating tables, etc. Among them, obstacles can be added or not, and those skilled in the art can set them according to actual conditions, and no specific restrictions are made here. In addition, if obstacles are to be added, those skilled in the art can set the number of obstacles according to actual conditions, and no specific restrictions are made here.

[0046] Step 102: acquiring, from all the target points, a target point whose position coordinates are closest to the current position coordinates as a target point for terminating the trajectory.

[0047] Among them, obtaining the target point whose position coordinates are closest to the current position coordinates of the tip of the robotic arm as the terminal trajectory target point can make the movement trajectory of the robotic arm from the current position to the terminal trajectory target point the shortest.

[0048] In some embodiments, after obtaining the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the robotic arm simulation software scene file, the method further includes:

[0049] Based on the current position coordinates and the position coordinates of the target point, a target point that meets the requirements is obtained from all the target points as a trajectory target point, and a trajectory target point set is generated;

[0050] The step of obtaining a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory includes:

[0051] A trajectory target point whose target point position coordinates are closest to the current position coordinates is obtained from the trajectory target point set as the termination trajectory target point.

[0052] Among them, the target points generated in the scene file may not all meet the requirements, so it is necessary to screen these target points and remove the target points that do not meet the requirements.

[0053] In some embodiments, based on the current position coordinates and the position coordinates of the target point, obtaining a target point that meets the requirements from all the target points as a trajectory target point to generate a trajectory target point set includes:

[0054] Obtaining the Euclidean distance between the current position coordinates and each of the target point position coordinates;

[0055] Obtaining the working range of the robotic arm;

[0056] Determine whether the corresponding target point is within the working range based on each of the Euclidean distances and the working range;

[0057] If so, all the corresponding target points are used as the trajectory target points to generate a trajectory target point set.

[0058] Among them, by calculating the Euclidean distance between the coordinates of each target point and the coordinates of the tip of the robot arm, a preliminary check is made to see whether the target point is within the working range of the robot arm. If the target point is outside the working range of the robot arm, the point is considered as an unfinished point and removed from the list of achievable targets. Then, the target points within the working range of the robot arm are used as trajectory target points, thereby obtaining a trajectory target point set consisting of multiple trajectory target points.

[0059] Step 103, obtaining a preset robotic arm posture when the robotic arm tip reaches the end trajectory target point from the current position coordinates.

[0060] Among them, since different postures of the robot arm need to be achieved through different robot arm motion trajectories, it is necessary to find a suitable posture among the infinite robot arm postures and plan the corresponding motion trajectory. This method uses 20 common postures, and imports these 20 postures into the getPath function in the pyrep package in turn to use motion trajectory calculation, using the SBL algorithm, and also supports the use of trajectory calculation algorithms such as PRM and RRT. That is, there are at least 20 preset robot arm postures in this embodiment, and each one must be performed.

[0061] Step 104, based on the current position coordinates, the preset robot arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point, determine the movement trajectory of the robot arm when the tip of the robot arm reaches the terminal trajectory target point from the current position coordinates.

[0062] Step 105: Perform a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable.

[0063] After obtaining the motion trajectory of the robot arm, Coppeliasim is used to perform a simulation test to determine whether the motion trajectory is achievable. If the motion trajectory is consistent with the actual scene operation and does not touch the robot arm body, the motion trajectory is judged to be achievable, otherwise, it is judged to be unachievable.

[0064] In some embodiments, after performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable, the method further includes:

[0065] If so, the parameters related to the motion trajectory are saved in the trajectory command list.

[0066] In some embodiments, the parameters include the motion trajectory, and the current position coordinates, the end trajectory target point position coordinates and the preset robotic arm posture corresponding to the motion trajectory.

[0067] Among them, the current position coordinates corresponding to the motion trajectory are the starting position coordinates of the tip of the robotic arm in the motion trajectory, the ending trajectory target point position coordinates corresponding to the motion trajectory are the ending position coordinates of the tip of the robotic arm in the motion trajectory, and the preset robotic arm posture is the posture of the robotic arm when the tip of the robotic arm reaches the ending position coordinates from the starting position coordinates.

[0068] Step 106, if yes, then obtain the target point closest to the terminal trajectory target point from all the remaining target points as the next terminal trajectory target point, and use the target point position coordinates corresponding to the next terminal trajectory target point as the new current position coordinates of the tip of the robotic arm.

[0069] For example, the initial position of the tip of the robotic arm is point A, and the corresponding current position coordinates are (x1, y1); the initial terminal trajectory target point is point B, and the corresponding terminal trajectory target point position coordinates are (x2, y2); among all the remaining target points (all target points except point B), the target point closest to the terminal trajectory target point (point B) is point C, and the target point position coordinates corresponding to point C are (x3, y3). At this time, point C is used as the next terminal trajectory target point, and the terminal trajectory target point position coordinates corresponding to point B are (x2, y2) as the new current position coordinates of the tip of the robotic arm, that is, the current position coordinates of the tip of the robotic arm change from (x1, y1) to (x2, y2).

[0070] Step 107, repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

[0071] For example, after the previous step obtains the motion trajectory of the robot arm when the tip of the robot arm arrives at point B from point A, this step will repeat the above steps to obtain the motion trajectory of the robot arm when the tip of the robot arm arrives at point C from point B, until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test, and the motion trajectory of the robot arm performing the multi-target point task will be obtained at this time. For example, there are 11 target points A, B, C, D, E, F, G, H, I, J and K, J is the second to last target point, and K is the last target point, then the last obtained motion trajectory (end motion trajectory) is the motion trajectory of the robot arm when the tip of the robot arm arrives at point K from point J, thereby obtaining the motion trajectory of the robot arm performing the 11 target point tasks A, B, C, D, E, F, G, H, I, J and K.

[0072] In addition, since the present application obtains the target point whose position coordinates are closest to the current position coordinates of the tip of the robotic arm as the target point of the termination trajectory, the obtained motion trajectory is the shortest.

[0073] In some embodiments, the above steps are repeated until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test, and further includes:

[0074] Issue commands to the robot arm according to the trajectory command list to perform motion trajectory demonstration.

[0075] For example, after obtaining the motion trajectory of the robot arm performing 11 target point tasks A, B, C, D, E, F, G, H, I, J and K, commands can be issued to the robot arm according to the trajectory command list to demonstrate the motion trajectory.

[0076] In some embodiments, after performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable, the method further includes:

[0077] If not, the end track target point is transferred to the waiting list, and the target point closest to the current position coordinates is obtained from all the remaining target points as the next end track target point;

[0078] When the motion trajectory of the robotic arm when the tip of the robotic arm reaches the next target point of the termination trajectory from the current position coordinates is obtained, and the motion trajectory is achievable in the simulation running test, the target point of the termination trajectory in the waiting list is removed from the waiting list and is used as the target point again;

[0079] Repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

[0080] Among them, the motion trajectory obtained by some target points may not be realized in the simulation operation test. At this time, the target point is first transferred to the waiting list and not used as a target point. Then the motion trajectory of the next target point is obtained first. After the motion trajectory of the next target point is successfully obtained, the target point is removed from the waiting list and used as a target point again.

[0081] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0082] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0083] As can be seen from the above, the robot arm trajectory planning method provided in the embodiment of the present application obtains the current position coordinates of the robot arm tip and the target point position coordinates of each target point in the robot arm simulation software scene file, obtains the target point with the target point position coordinates closest to the current position coordinates from all target points as the terminal trajectory target point, and obtains the preset robot arm posture when the robot arm tip arrives at the terminal trajectory target point from the current position coordinates, and then determines the motion trajectory of the robot arm tip when it arrives at the terminal trajectory target point based on the current position coordinates, the preset robot arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point, and then performs motion trajectory analysis. A simulation run test is performed to determine whether the motion trajectory is achievable. If so, the target point closest to the target point of the terminating trajectory is obtained from all the remaining target points as the next target point of the terminating trajectory, and the position coordinates of the target point of the terminating trajectory corresponding to the original target point of the terminating trajectory are used as the new current position coordinates of the tip of the robot arm. Finally, the above steps are repeated until the end motion trajectory corresponding to the last target point of all the target points is obtained, and the end motion trajectory is achievable in the simulation run test, so that the trajectory of the robot arm can be planned, the motion trajectory of the robot arm can be quickly obtained, and the motion trajectory of the robot arm is also the shortest.

[0084] An embodiment of the present application also provides a robot arm trajectory planning device, which can be integrated into an electronic device.

[0085] See also Figure 3 , Figure 3 A schematic diagram of the structure of a robot trajectory planning device provided in an embodiment of the present application. The robot trajectory planning device 30 includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the memory 120 can be used to store applications and data. The application stored in the memory 120 contains executable code. The application can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the application stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0086] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0087] Specifically in this embodiment, a computer program is stored in the memory 120 , and the processor 180 executes the robot arm trajectory planning method described in any of the above embodiments by calling the computer program stored in the memory 120 .

[0088] See also Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown, and the electronic device can be used to implement the robot arm trajectory planning method provided in the above embodiment.

[0089] like Figure 4 As shown, the electronic device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4 The structure of the electronic device 1200 shown in the figure does not constitute a limitation on the electronic device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0090] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a user identity module (SIM) card, a memory, etc. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0091] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the robot arm trajectory planning method in the above-mentioned embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, and can plan the trajectory of the robot arm and quickly obtain the motion trajectory of the robot arm. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the electronic device 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0092] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0093] The display unit 140 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 1200, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 4 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to implement input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to implement input and output functions.

[0094] The electronic device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the electronic device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 1200, they will not be repeated here.

[0095] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the electronic device 1200. The audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker 161, which is converted into a sound signal for output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the electronic device 1200.

[0096] The electronic device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 4 The transmission module 170 is shown, but it is understandable that it is not an essential component of the electronic device 1200 and can be omitted as needed without changing the essence of the invention.

[0097] The processor 180 is the control center of the electronic device 1200. It uses various interfaces and lines to connect various parts of the entire electronic device 1200. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the electronic device 1200 and processes data, thereby monitoring the human body as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0098] The electronic device 1200 also includes a power supply 190 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0099] Although not shown, the electronic device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the electronic device 1200 is a touch screen display, and the electronic device 1200 also includes a memory 120, and one or more programs, wherein one or more programs are stored in the memory 120, and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0100] Obtain the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the scene file of the robotic arm simulation software;

[0101] Acquire a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory;

[0102] Obtaining a preset robotic arm posture when the tip of the robotic arm reaches the target point of the termination trajectory from the current position coordinates;

[0103] Determine the motion trajectory of the robotic arm when the tip of the robotic arm reaches the terminal trajectory target point from the current position coordinates based on the current position coordinates, the preset robotic arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point;

[0104] Performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable;

[0105] If yes, then the target point closest to the target point of the terminal track is obtained from all the remaining target points as the next target point of the terminal track, and the position coordinates of the target point of the terminal track corresponding to the original target point of the terminal track are used as the new current position coordinates of the tip of the robot arm;

[0106] Repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

[0107] In some embodiments, the processor 180 is used to obtain a target point that meets the requirements from all the target points as a trajectory target point based on the current position coordinates and the target point position coordinates, and generate a trajectory target point set; obtain a trajectory target point whose target point position coordinates are closest to the current position coordinates from the trajectory target point set as the terminal trajectory target point.

[0108] In some embodiments, the processor 180 is used to obtain the Euclidean distance between the current position coordinates and the position coordinates of each target point; obtain the working range of the robotic arm; based on each Euclidean distance and the working range, determine whether the corresponding target point is within the working range; if so, take all the corresponding target points as the trajectory target points to generate a trajectory target point set.

[0109] In some embodiments, the processor 180 is used to transfer the terminal trajectory target point to a waiting list if not, and obtain the target point closest to the current position coordinates from all the remaining target points as the next terminal trajectory target point; when the motion trajectory of the robotic arm when the tip of the robotic arm arrives at the next terminal trajectory target point from the current position coordinates is obtained, and the motion trajectory can be achieved in the simulation operation test, the terminal trajectory target point in the waiting list is removed from the waiting list and used as the target point again; repeat the above steps until the corresponding end motion trajectory when the tip of the robotic arm arrives at the last target point among all the target points is obtained, and the end motion trajectory can be achieved in the simulation operation test.

[0110] In some embodiments, the processor 180 is configured to save the parameters related to the motion trajectory into a trajectory command list.

[0111] In some embodiments, the processor 180 is used to issue commands to the robotic arm according to the trajectory command list to perform motion trajectory demonstration.

[0112] As can be seen from the above, an embodiment of the present application provides an electronic device 1200, which performs the following steps: obtaining the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the robotic arm simulation software scene file; obtaining the target point whose target point position coordinates are closest to the current position coordinates from all the target points as the terminal trajectory target point; obtaining the preset robotic arm posture when the robotic arm tip arrives at the terminal trajectory target point from the current position coordinates; and determining the position of the robotic arm tip from the current position to the terminal trajectory target point based on the current position coordinates, the preset robotic arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point. The motion trajectory of the robot arm when the coordinates reach the target point of the terminal trajectory; a simulation run test is performed on the motion trajectory to determine whether the motion trajectory is achievable; if so, the target point closest to the target point of the terminal trajectory is obtained from all the remaining target points as the next target point of the terminal trajectory, and the position coordinates of the target point of the terminal trajectory corresponding to the original target point of the terminal trajectory are used as the new current position coordinates of the tip of the robot arm; the above steps are repeated until the end motion trajectory corresponding to the last target point of all the target points is obtained, and the end motion trajectory is achievable in the simulation run test. Through the above steps, the embodiment of the present application can plan the trajectory of the robot arm and quickly obtain the motion trajectory of the robot arm.

[0113] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program runs on a computer, the computer executes the robot arm trajectory planning method described in any of the above embodiments.

[0114] It should be noted that, for the robot trajectory planning method described in the present application, ordinary testers in the field can understand that all or part of the process of implementing the robot trajectory planning method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the robot trajectory planning method. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0115] The above is a detailed introduction to the robot arm trajectory planning method, device, storage medium and electronic device provided in the embodiments of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application; at the same time, for technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A robot arm trajectory planning method, characterized in that: The method comprises: Obtain the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the scene file of the robotic arm simulation software; Acquire a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory; Obtaining a preset robotic arm posture when the tip of the robotic arm reaches the target point of the termination trajectory from the current position coordinates; Determine the motion trajectory of the robotic arm when the tip of the robotic arm reaches the terminal trajectory target point from the current position coordinates based on the current position coordinates, the preset robotic arm posture and the terminal trajectory target point position coordinates corresponding to the terminal trajectory target point; Performing a simulation run test on the motion trajectory to determine whether the motion trajectory is achievable; If yes, then the target point closest to the target point of the terminal track is obtained from all the remaining target points as the next target point of the terminal track, and the position coordinates of the target point of the terminal track corresponding to the original target point of the terminal track are used as the new current position coordinates of the tip of the robot arm; If not, the terminal trajectory target point is transferred to the waiting list, and the target point closest to the current position coordinates is obtained from all the remaining target points as the next terminal trajectory target point. When the motion trajectory of the robotic arm when the tip of the robotic arm reaches the next terminal trajectory target point from the current position coordinates is obtained, and the motion trajectory can be achieved in the simulation operation test, the terminal trajectory target point in the waiting list is removed from the waiting list and used as the target point again, and the above steps are repeated until the corresponding end motion trajectory when the tip of the robotic arm reaches the last target point among all the target points is obtained, and the end motion trajectory can be achieved in the simulation operation test; Repeat the above steps until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test.

2. The robot arm trajectory planning method according to claim 1, characterized in that: After obtaining the current position coordinates of the tip of the robotic arm and the target point position coordinates of each target point in the scene file of the robotic arm simulation software, the method further includes: Based on the current position coordinates and the position coordinates of the target point, a target point that meets the requirements is obtained from all the target points as a trajectory target point, and a trajectory target point set is generated; The step of obtaining a target point whose position coordinates are closest to the current position coordinates from all the target points as the target point for terminating the trajectory includes: A trajectory target point whose target point position coordinates are closest to the current position coordinates is obtained from the trajectory target point set as the termination trajectory target point.

3. The robot arm trajectory planning method according to claim 2, characterized in that: The step of acquiring a target point that meets the requirements from all the target points based on the current position coordinates and the target point position coordinates as a trajectory target point, and generating a trajectory target point set, comprises: Obtaining the Euclidean distance between the current position coordinates and each of the target point position coordinates; Obtaining the working range of the robotic arm; Determine whether the corresponding target point is within the working range based on each of the Euclidean distances and the working range; If so, all the corresponding target points are used as the trajectory target points to generate a trajectory target point set.

4. The robot arm trajectory planning method according to claim 1, characterized in that: After the motion trajectory is simulated and tested to determine whether the motion trajectory is achievable, the method further includes: If so, the parameters related to the motion trajectory are saved in the trajectory command list.

5. The robot arm trajectory planning method according to claim 4, characterized in that: The above steps are repeated until the end motion trajectory corresponding to the last target point among all the target points is obtained, and the end motion trajectory can be realized in the simulation operation test, and further includes: Issue commands to the robot arm according to the trajectory command list to perform motion trajectory demonstration.

6. The robot arm trajectory planning method according to claim 4, characterized in that: The parameters include the motion trajectory, and the current position coordinates, the position coordinates of the target point at the end of the motion trajectory, and the preset robot arm posture corresponding to the motion trajectory.

7. A robot arm trajectory planning device, characterized in that: The device includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is used to execute the robot arm trajectory planning method according to any one of claims 1 to 6 by calling the computer program stored in the memory.

8. An electronic device, characterized in that: The electronic device includes the robot arm trajectory planning device according to claim 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the computer executes the robot arm trajectory planning method according to any one of claims 1 to 6.