Robot motion control method, electronic equipment, robot and storage medium
By re-planning the deceleration and acceleration sections in the robot motion sequence, the problem of heavy development and maintenance workload in the existing technology is solved, and the robot's compatibility and stop time function for multiple motion modes and weaving types are realized.
Patent Information
- Application Number
- CN202411049891.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-31
AI Technical Summary
The existing method of implementing the weaving function requires re-development of motion instructions for each movement mode and weaving type, resulting in a huge workload of development and maintenance, and it is difficult to be compatible with multiple motion instructions and trajectory types.
Obtain the motion sequence through trajectory planning, divide and re-plan the deceleration section and acceleration section, increase the time series density of the deceleration section and reduce the time series density of the acceleration section, generate new positions and time sequences, and combine them into a motion sequence. Realize the stop and stop time functions of the robot under different movement modes and weaving types.
It avoids coupling with trajectory planning, reduces repetitive work of position, speed and acceleration planning, supports multiple motion instructions and trajectory types, eliminates the need to re-develop new motion instructions, and achieves the effective stopping time of the robot in various motion forms. Function.
Smart Images

Figure CN118809601A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot motion control method, electronic equipment, a robot and a storage medium. Background Art
[0002] Oscillating welding is a welding process that uses the robot's welding torch to periodically swing along the welding path to make the welding trajectory present a specific shape, usually including triangles, trapezoids, spirals, etc. Oscillating welding has a wider weld bead and higher welding strength than general welding. Stop time is a sub-function of oscillating welding. Setting the stop time of the welding torch at a specific position during oscillating welding can make the molten pool deeper and also improve the welding strength.
[0003] The existing implementation method of the swing welding function is usually completed in the trajectory planning link, and the swing welding is treated as a motion instruction. The acceleration, deceleration and stop sections are planned in the swing welding instruction to realize the movement stop of the robot at the swing welding stop point. Since the swing welding function has multiple motion modes (such as straight line, arc, etc.) and multiple swing welding types (such as triangle, spiral, etc.), the implementation method of the aforementioned swing welding function needs to redevelop corresponding motion instructions to support each different motion mode and swing welding type, and the workload of development and maintenance is huge. Summary of the invention
[0004] The present invention provides a robot motion control method, electronic equipment, a robot and a storage medium, aiming to enable the robot to realize motion stopping and stopping time functions in the weaving welding process according to various motion modes and weaving welding types.
[0005] To achieve the above object, the robot motion control method proposed in the present invention comprises:
[0006] Obtaining a first motion sequence through trajectory planning, wherein the first motion sequence includes a first position sequence and a first time sequence;
[0007] Dividing the first time series into a deceleration segment and an acceleration segment;
[0008] Replanning the deceleration section and the acceleration section in a first preset manner to increase the time series density of the deceleration section and reduce the time series density of the acceleration section;
[0009] According to the replanned deceleration segment and acceleration segment, interpolating and updating the first position sequence in a second preset manner to obtain a second position sequence;
[0010] Determine the total extension time of each deceleration segment and each acceleration segment after replanning, and generate a second time series according to the total extension time and the time of the first time series;
[0011] The second position sequence and the second time sequence are combined to obtain a motion sequence, so as to issue a motion instruction according to the motion sequence.
[0012] In some embodiments, the deceleration section is connected to the acceleration section adjacent to the rear thereof via a stop section.
[0013] In some embodiments, the step of dividing the first time series into a deceleration segment and an acceleration segment includes:
[0014] Acquire stop parameters, where the stop parameters at least include a stop duration and a stop trigger period;
[0015] Determine each stop segment in the first time series according to the stop parameter;
[0016] A time sequence of a first length connected to the front of each stop segment is divided into a deceleration segment, and a time sequence of a second length connected to the rear of each stop segment is divided into an acceleration segment.
[0017] In some embodiments, before the step of obtaining the corresponding first position sequence and first time sequence through trajectory planning, the robot motion control method further includes:
[0018] Receive a function instruction, and execute trajectory planning of a corresponding function according to the function instruction.
[0019] In some embodiments, the function instruction includes the stop parameter.
[0020] In some embodiments, the step of replanning the deceleration segment and the acceleration segment in a first preset manner includes:
[0021] The deceleration section is replanned using a first reconstruction method, and the acceleration section is replanned using a first reconstruction method.
[0022] In some embodiments, the step of interpolating and updating the first position sequence in a second preset manner according to the replanned deceleration segment and acceleration segment to obtain a second position sequence includes:
[0023] Fitting the first position sequence using a second reconstruction method;
[0024] The portion of the first position sequence corresponding to the deceleration segment is re-interpolated according to the re-planned deceleration segment, and the portion of the first position sequence corresponding to the acceleration segment is re-interpolated according to the re-planned acceleration segment to obtain a second position sequence.
[0025] The present invention also proposes an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the above-mentioned robot motion control method when executed by the processor.
[0026] The present invention also proposes a robot, comprising a robot body and the above-mentioned electronic device, wherein the electronic device is communicatively connected with the robot body; the electronic device is arranged on the robot body, or the electronic device and the robot body are arranged separately.
[0027] The present invention further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned robot motion control method are implemented.
[0028] The technical solution of the robot motion control method of the present invention is that after the corresponding first time sequence and first position sequence are obtained by trajectory planning, the first time sequence obtained by trajectory planning is divided into a deceleration segment and an acceleration segment, and the deceleration segment and the acceleration segment are re-planned so that the time sequence density of the deceleration segment increases and the time sequence density of the acceleration segment decreases, and then the first position sequence is interpolated and updated according to the re-planned deceleration segment and acceleration segment to obtain a second position sequence with a position sequence segment with increased density and a position sequence segment with reduced density, and then a second time sequence is generated according to the total extension time and the time of the first time sequence, and the second position sequence is combined with the second time sequence to obtain a motion sequence, and motion instructions are issued according to the motion sequence to control the motion of the robot's motion end. In this way, when the motion of the robot's motion end is controlled according to the motion instructions issued by the motion sequence, there is a trajectory segment that controls the robot's motion end to first perform a deceleration motion and then perform an acceleration motion, and the intersection point between the deceleration motion trajectory segment and the acceleration motion trajectory segment can be set as a stop point, so that the robot's motion end stops at the intersection point. When the robot motion control method of this embodiment is applied to a robot for swing welding, the stop point and stop time functions can be effectively realized during the swing welding process. Moreover, since the swing welding stop function processing implemented in this solution is performed after the trajectory planning link, the first time sequence and the first position sequence obtained by trajectory planning are processed to obtain a second motion sequence with acceleration, deceleration, and stop. This technical solution has at least the following advantages: avoiding coupling with trajectory planning, not repeating position, speed, and acceleration planning, and supporting transition; compatible with motion instructions such as straight lines and arcs, and no need to redevelop new motion instructions; compatible with triangle, trapezoid, spiral and other swing welding trajectory types, and no need to redevelop new trajectory types; therefore, the technical solution of the present invention enables the robot to realize the stop time function for various motion forms, solving the problem of huge workload in development and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic flow chart of the first embodiment of the robot motion control method of the present invention;
[0030] Figure 2 It is a flow chart of the second embodiment of the robot motion control method of the present invention;
[0031] Figure 3 A schematic diagram of the position of a stop point in an embodiment of the present invention;
[0032] Figure 4 A schematic diagram of a flow chart of a third embodiment of a robot motion control method of the present invention;
[0033] Figure 5 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0035] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0036] It should also be noted that when an element is referred to as being "fixed on" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element at the same time. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.
[0037] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0038] The present invention provides a robot motion control method, which can be applied to robots performing welding operations, and can also be applied to robots with other functions, such as writing robots, paint robots, etc. In the following embodiments of the present invention, the implementation terminal of the robot motion control method can be an electronic device, which can be a robot control panel, a desktop computer, a notebook, a palm computer, a server, a single-chip microcomputer and other computing devices.
[0039] See also Figure 1 , Figure 1 It is a flow chart of the first embodiment of the robot motion control method of the present invention.
[0040] In this embodiment, the robot motion control method includes:
[0041] Step S10, obtaining a corresponding first position sequence and a first time sequence through trajectory planning;
[0042] Among them, the corresponding first position sequence and the first time sequence can be combined into a motion sequence (recorded as the first motion sequence), and the time points in the first time sequence correspond to the position points in the first position sequence one by one. The electronic device can be pre-stored with one or more trajectory planning programs, and the trajectory planning program can be a trajectory planning program for uniform motion planning, or a trajectory planning program for non-uniform motion planning; that is, in some embodiments, the first motion sequence can be a uniform motion sequence, and the first motion sequence can also be a non-uniform motion sequence. After the robot is started, the trajectory is planned by a default trajectory planning program, or by selecting a trajectory planning program corresponding to the current robot motion form. For example, when the robot is for a linear motion form, the trajectory planning program corresponding to the linear motion form is used, and when the robot is for an arc motion form, the trajectory planning program corresponding to the arc motion form is used. The electronic device obtains the first position sequence and the first time sequence through trajectory planning.
[0043] Step S20, dividing the first time series into a deceleration segment and an acceleration segment;
[0044] After obtaining the first time series, the electronic device can divide the first time series into deceleration segments and acceleration segments. Each deceleration segment or acceleration segment refers to a certain time series in the first time series; the number of deceleration segments and acceleration segments can be preset or determined according to a preset parameter; the length of the deceleration segment and acceleration segment can be preset or determined according to a preset parameter.
[0045] Step S30, replanning the deceleration segment and the acceleration segment in a first preset manner to increase the time series density of the deceleration segment and reduce the time series density of the acceleration segment;
[0046] The electronic device is pre-set with a first preset method (which may be a preset calculation or other processing method). After the deceleration segments and acceleration segments in the first time series are divided and determined, the first preset method is used to re-plan each deceleration segment and each deceleration segment, that is, the distribution of each time point in each deceleration segment and each acceleration segment is re-planned, so that the distribution of each time point in each deceleration segment is denser (that is, the density of the time series is increased), and the distribution of each time point in each acceleration segment is sparser (that is, the density of the time series is reduced); that is, the intervals between each time point in the re-planned deceleration segment become smaller, and the intervals between each time point in the re-planned acceleration segment increase. Among them, the first preset method can be a quintic polynomial method, of course, it can also be other methods that can achieve the above purpose (changing the density of the time series).
[0047] Step S40, interpolating and updating the first position sequence in a second preset manner according to the replanned deceleration segment and acceleration segment to obtain a second position sequence;
[0048] The electronic device also pre-sets a second preset method, which can be a cubic spline fitting method, or other methods that can achieve the same purpose. After the re-planning of each deceleration segment and each acceleration segment is completed, the first position sequence is interpolated and updated using the second preset method according to the re-planned deceleration segment and acceleration segment, so that the position sequence corresponds to the time sequence. Since only the time points in the deceleration segment and the acceleration segment have changed in the first time sequence, only the part of the first position sequence corresponding to the deceleration segment and the acceleration segment can be re-interpolated (the rest of the part does not need to be re-interpolated), and the update of the first position sequence can be completed. After the re-interpolation is completed, the second position sequence (actually the updated first position sequence) is obtained.
[0049] Since the distribution of time points in the replanned deceleration segment is denser, and the distribution of time points in the replanned acceleration segment is sparser, the interpolation position interval of the part corresponding to the deceleration segment in the second position sequence becomes smaller than that of other parts, and the interpolation position interval of the part corresponding to the acceleration segment in the second position sequence becomes larger than that of other parts. When the position instruction is issued at a fixed period according to the second position sequence, the speed at the interpolation position corresponding to the deceleration segment becomes smaller, and the speed at the interpolation position corresponding to the acceleration segment becomes larger. Optionally, the end speed of the deceleration segment can be set to zero, and the starting speed of the acceleration segment can also be set to zero. The end point of the deceleration segment can be the same position point (i.e., the stop point) as the starting point of the acceleration segment adjacent to the rear thereof, that is, the deceleration segment and the acceleration segment adjacent to the rear thereof are connected by the stop segment, that is, each time point between the deceleration segment and the acceleration segment adjacent to the rear thereof is a time point corresponding to the same stop point.
[0050] Step S50, determining the total extension time of each deceleration segment and each acceleration segment after replanning, and generating a second time series according to the total extension time and the time of the first time series;
[0051] Since in the re-planned deceleration section, the positions corresponding to the start point and the end point of the time series are consistent with the positions before the re-planning, that is, the positions remain unchanged, but the speeds decrease successively. Therefore, while ensuring that the speed integral area is the same, it is necessary to extend the time length of the deceleration section to achieve this; similarly, it is necessary to extend the time length of the acceleration section to achieve this; that is, the re-planned deceleration section is longer than the original deceleration section, and the re-planned acceleration section is longer than the original acceleration section.
[0052] By calculating the extension time of the replanned deceleration section and the extension time of the replanned acceleration section, the total extension time of each replanned deceleration section and each acceleration section can be determined according to the number of deceleration sections and acceleration sections; and then, according to the total extension time and the time of the first time series (i.e., the time length), a second time series is generated whose time length is equal to the length of the first time series plus the total extension time. Among them, the second time series is an equally spaced time series, and the time interval is the same as the time interval of the first time series. The method of generating the second time series can be: on the basis of the first time series, a time series with a length equal to the total extension time is extended to generate the second time series; the method of generating the second time series can also be: according to the time of the first time series and the total extension time, the time length of the new time series is obtained, and according to the time length, a new equally spaced time series (i.e., the second time series) is generated.
[0053] Step S60: Combining the second position sequence and the second time sequence to obtain a second motion sequence, so as to issue a motion instruction according to the second motion sequence.
[0054] After obtaining the second position sequence and the second time sequence, the electronic device matches the interpolation positions in the second position sequence with the time points in the second time sequence one by one in time order, thereby combining to obtain a motion sequence (recorded as the second motion sequence). Since the intervals of some interpolation positions in the second position sequence become smaller, and the intervals of some interpolation positions become larger, that is, in the obtained second motion sequence, there are deceleration sequence speed segments and acceleration sequence speed segments. When the motion instructions issued according to the second motion sequence, the motion instructions corresponding to the position points where the interpolation position intervals become smaller, will control the speed of the robot's motion end to decrease, forming a deceleration motion, while the motion instructions corresponding to the position points where the interpolation position intervals become larger, will control the speed of the robot's motion end to increase, forming an acceleration motion, and between the deceleration motion and the acceleration motion, a motion stop point can be effectively formed, effectively realizing the stop time function of the robot's motion end. Among them, the length of the stop time of the robot's motion end at the stop point can be determined according to the length of the time sequence segment between the deceleration segment and the acceleration segment adjacent to the rear when the deceleration segment and the acceleration segment are divided.
[0055] The technical solution of the robot motion control method of this embodiment is, after obtaining the corresponding first time series and first position sequence through trajectory planning, dividing the first time series obtained by trajectory planning into a deceleration segment and an acceleration segment, and re-planning the deceleration segment and the acceleration segment so that the time series density of the deceleration segment increases and the time series density of the acceleration segment decreases, and then interpolating and updating the first position sequence according to the re-planned deceleration segment and acceleration segment to obtain a second position sequence having position sequence segments with increased density and position sequence segments with reduced density, and then generating a second time sequence according to the total extension time and the time of the first time sequence, combining the second position sequence with the second time sequence to obtain a second motion sequence, and issuing motion instructions according to the second motion sequence to control the motion of the robot's motion end. In this way, when the movement of the robot's moving end is controlled according to the motion instructions issued by the second motion sequence, the robot's moving end is controlled to first perform a deceleration motion trajectory segment and then an acceleration motion trajectory segment. The intersection point between the deceleration motion trajectory segment and the acceleration motion trajectory segment can be set as a stopping point, so that the robot's moving end stops moving at the intersection point, and the stopping time can be set by changing the length of the time series segment between the deceleration segment and the acceleration segment when dividing the deceleration segment and the acceleration segment.
[0056] When the robot motion control method of this embodiment is applied to a robot used for swing welding, the swing welding stop time function can be effectively realized. In addition, since the swing welding stop function processing of this solution is performed after the trajectory planning link, the first time sequence and the first position sequence obtained by trajectory planning are processed to obtain the second motion sequence with acceleration, deceleration, and stop. Therefore, the technical solution of this embodiment has at least the following advantages: 1. Avoid coupling with trajectory planning, do not repeat position, speed and acceleration planning, and support transition; 2. Compatible with motion instructions such as straight lines and arcs, and new motion instructions do not need to be redeveloped; 3. Compatible with triangle, trapezoid, spiral and other swing welding trajectory types, and new trajectory types do not need to be redeveloped.
[0057] See also Figure 2 , Figure 2 It is a flow chart of the second embodiment of the invented robot motion control method.
[0058] In this embodiment, the above step S20 includes:
[0059] Step S21, obtaining stop parameters;
[0060] Step S22, determining each stop segment in the first time series according to the stop parameter;
[0061] Step S23, dividing the time sequence of the first length connected to the front of each stop segment into a deceleration segment, and dividing the time sequence of the second length connected to the rear of each stop segment into an acceleration segment.
[0062] Among them, the stop parameters at least include the stop duration and the stop trigger cycle. The stop trigger cycle refers to how often the stop function is performed, that is, at which points the stop can be determined; for example, the stop trigger cycle is one quarter of a complete motion trajectory cycle, which means that the stop process is performed once every one quarter of the running cycle, that is, it stops at a stop point; the stop duration is the time the motion end stops at the stop point. The stop parameters can be pre-stored in the electronic device. The electronic device can pre-store multiple sets of stop parameters. According to the motion mode executed by the robot, the corresponding stop parameters are selected, for example, the stop parameters are included in the execution instruction; the stop parameters can also be actively input into the electronic device by the user through the input device. In this way, the stop point and stop duration of each motion mode can be adjusted according to different needs, for example, according to different welding needs, the stop point and stop duration of the same or different types of weaving welding modes can be adjusted. Of course, in some embodiments, the stop parameters can also include the length of the deceleration section and the acceleration section.
[0063] After obtaining the stop parameters from the electronic device, the various stop points are determined according to the stop trigger period in the stop parameters, and the length of each stop segment is determined according to the stop duration. Figure 3 The triangular trajectory shown in the figure is used for pendulum welding. If the stop trigger period in the stop parameter is one quarter of a period, the stop point can be determined as the position point of the four circles in the figure.
[0064] After determining each stop segment, a time sequence of a first length connected to each stop segment is divided into a deceleration segment, and a time sequence of a second length connected to each stop segment is divided into a deceleration segment, so as to obtain multiple groups of deceleration segments, stop segments, and acceleration segments. The first length and the second length can be preset lengths or lengths included in the stop parameters, and the first length and the second length can be equal or different.
[0065] In some embodiments, before step S10, the robot motion control method further includes: receiving a function instruction, and executing trajectory planning of a corresponding function according to the function instruction.
[0066] When the user sends a running function instruction (e.g., triangle weaving welding mode, spiral weaving welding mode) to the robot through an input device (e.g., a touch screen, a function button, or a voice recognition device), the electronic device receives the function instruction and calls the corresponding trajectory planning program (the electronic device may be preset with trajectory planning programs corresponding to various function modes) according to the function instruction to execute the trajectory planning of the corresponding function. In this way, the robot motion control method can realize the stop time function for various function modes.
[0067] In some embodiments, the function instruction may include a stop parameter, that is, the user can actively input the stop parameter, so that the user can more conveniently adjust the stop point and stop duration of the robot's motion end according to needs, which can more flexibly meet usage needs.
[0068] In some embodiments, the step of replanning the deceleration section and the acceleration section using a first preset method includes: replanning the deceleration section using a first reconstruction method, and replanning the acceleration section using a first reconstruction method. Among them, the first reconstruction method is a preset curve reconstruction method, which can be a polynomial reconstruction method, a trigonometric function reconstruction method, a spline curve reconstruction method, and so on. Below, the first reconstruction method is used to explain in detail using a quintic polynomial as an example. The deceleration section and the acceleration section are replanned in time by a quintic polynomial, respectively, and the speed changes smoothly. The acceleration at the starting point and end point of the deceleration section and the acceleration at the starting point and end point of the acceleration section are all zero, and the acceleration at the starting point and end point is zero, and the connection is smooth and the shutdown is smooth without impact.
[0069] Among them, one implementation method of replanning the time series using a quintic polynomial is as follows:
[0070] The calculation formula for time series replanning is:
[0071] q(t)=a0+a1(t-t0)+a2(t-t0) 2 +a3(t-t0) 3 +a4(t-t0) 4 +a s (t-t0) 5
[0072] Among them, t∈[t0, t1] is the interpolation independent variable, and the conditions for the starting point and the end point are:
[0073] q(t0)=q0,q(t1)=q1
[0074]
[0075]
[0076] The coefficients are calculated as follows:
[0077]
[0078] Taking the deceleration section as an example, the input q0 and q1 are the starting time and the end time respectively. Since the original time series has t0=q0 and t1=q1, v0 and v1 are 1 and 0 respectively, and the acceleration b0 of the starting point and the acceleration b1 of the end point are both 0.
[0079] To make the replanning speed change monotonically, The derivative of is zero at t = t0. Taking the derivative and substituting the known values, we can get the calculation formula for the extended duration T:
[0080]
[0081] Given the extended time series t∈[t0, t0+T], substituting the quintic polynomial interpolation, we get the re-planned time series q(t), which is the re-planned deceleration segment, where the extension time of the deceleration segment is T-t1. The time series of the re-planned acceleration segment can be obtained in the same way.
[0082] See also Figure 4 , Figure 4 It is a flow chart of the third embodiment of the invented robot motion control method.
[0083] In this embodiment, the above step S40 includes:
[0084] Step S41, fitting the first position sequence using a second reconstruction method;
[0085] Step S42: re-interpolate the portion of the first position sequence corresponding to the deceleration segment according to the re-planned deceleration segment, and re-interpolate the portion of the first position sequence corresponding to the acceleration segment according to the re-planned acceleration segment to obtain a second position sequence.
[0086] Among them, the second reconstruction method is a preset curve reconstruction method, which can be a polynomial reconstruction method, a trigonometric function reconstruction method, a spline curve reconstruction method, and the like. In this embodiment, the second reconstruction method is described in detail by taking cubic spline as an example. By using cubic spline curve to fit the position and posture, it can be ensured that the robot does not deviate from the original trajectory, and avoid re-planning the position and posture, resulting in the coupling of the swing welding function and trajectory planning, and the hidden danger of increased maintenance workload. In addition, the cubic spline fitting formula with known intermediate speed can avoid curve deformation, and the calculation method of the given starting point and end point interpolation intermediate point is convenient for dynamic function call, and a function mechanism for loop interpolation to obtain a complete trajectory is realized.
[0087] Among them, one implementation method of using a cubic spline curve to fit the position and speed is as follows:
[0088] The function form of the cubic spline curve is:
[0089] s(t)={q k (t),t∈[t k , t k+1 ], k = 0, ..., n-1}, q k (t) = a k0 +a k1 (tt k )+a k2 (tt k ) 2 +a k3 (tt k ) 3
[0090] When the initial velocity and final velocity are known, we have:
[0091]
[0092] Taking the deceleration stage as an example, input the first position sequence q k , time t k and speed v k , the constant term in the above row can be obtained, and the new position sequence s(t) can be obtained by re-interpolation according to the time series t∈[t0, t0+T] of the deceleration segment obtained by the above re-planning. The new position sequence corresponding to the acceleration segment can be obtained in the same way.
[0093] It should be noted that all the above-mentioned embodiments of the robot motion control method of the present application can be arbitrarily combined or combined to form a new embodiment when there is no contradiction or conflict between them.
[0094] The present invention also provides an electronic device, referring to Figure 5 , Figure 5 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention.
[0095] The electronic device of the embodiment of the present invention can be a computing device such as a desktop computer, a notebook, a palm computer, and a server. Figure 5 As shown, the electronic device may include: a processor 1001 (e.g., a CPU), a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0096] Those skilled in the art will understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0097] like Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.
[0098] exist Figure 5 In the electronic device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the above-mentioned robot motion control method are implemented.
[0099] The present invention also provides a robot, comprising a robot body and the above-mentioned electronic device, wherein the electronic device is communicatively connected to the robot body; wherein the electronic device can be arranged on the robot body, or the electronic device can be arranged separately from the robot body. wherein the robot can be a robot for welding operation, or a robot of other functional types.
[0100] Based on the computer program proposed in the aforementioned embodiment, the present invention further proposes a storage medium, which stores the computer program. When the computer program is executed by a controller, the robot motion control method recorded in the aforementioned embodiment is implemented.
[0101] Since the electronic device, robot and storage medium of the present invention can implement the steps of the above-mentioned robot motion control method, they at least have all the beneficial effects brought by the technical solutions of the above-mentioned robot motion control method embodiments, which will not be described one by one here.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, 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 an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0103] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0105] If the integrated module is implemented in the form of a software function module 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, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0106] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.
Claims
1. A robot motion control method, characterized in that: include: Obtaining a corresponding first position sequence and a first time sequence through trajectory planning; Dividing the first time series into a deceleration segment and an acceleration segment; Replanning the deceleration section and the acceleration section in a first preset manner to increase the time series density of the deceleration section and reduce the time series density of the acceleration section; According to the replanned deceleration segment and acceleration segment, interpolating and updating the first position sequence in a second preset manner to obtain a second position sequence; Determine the total extension time of each deceleration segment and each acceleration segment after replanning, and generate a second time series according to the total extension time and the time of the first time series; The second position sequence and the second time sequence are combined to obtain a motion sequence, so as to issue a motion instruction according to the motion sequence.
2. The robot motion control method according to claim 1, characterized in that: The deceleration section is connected to the acceleration section adjacent to the rear thereof through a stop section.
3. The robot motion control method according to claim 2, characterized in that: The step of dividing the first time series into a deceleration section and an acceleration section comprises: Acquire stop parameters, where the stop parameters at least include a stop duration and a stop trigger period; Determine each stop segment in the first time series according to the stop parameter; A time sequence of a first length connected to the front of each stop segment is divided into a deceleration segment, and a time sequence of a second length connected to the rear of each stop segment is divided into an acceleration segment.
4. The robot motion control method according to claim 3, characterized in that: Before the step of obtaining the corresponding first position sequence and first time sequence through trajectory planning, the robot motion control method further includes: Receive a function instruction, and execute trajectory planning of a corresponding function according to the function instruction.
5. The robot motion control method according to claim 4, characterized in that: The function instruction includes the stop parameter.
6. The robot motion control method according to any one of claims 1 to 5, characterized in that: The step of replanning the deceleration section and the acceleration section in a first preset manner comprises: The deceleration section is replanned using a first reconstruction method, and the acceleration section is replanned using a first reconstruction method.
7. The robot motion control method according to any one of claims 1 to 5, characterized in that: The step of interpolating and updating the first position sequence in a second preset manner according to the replanned deceleration segment and acceleration segment to obtain a second position sequence includes: Fitting the first position sequence using a second reconstruction method; The portion of the first position sequence corresponding to the deceleration segment is re-interpolated according to the re-planned deceleration segment, and the portion of the first position sequence corresponding to the acceleration segment is re-interpolated according to the re-planned acceleration segment to obtain a second position sequence.
8. An electronic device, characterized in that: The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the robot motion control method according to any one of claims 1 to 7 are implemented.
9. A robot, characterized in that: It comprises a robot body and the electronic device as claimed in claim 8, wherein the electronic device is communicatively connected with the robot body; the electronic device is arranged on the robot body, or the electronic device and the robot body are arranged separately.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the robot motion control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Moving target curve control data construction method
CN113341884A
Robot motion track planning method, device and equipment and storage medium
CN118276563A
Welding robot controller
JP2006059037A
Method of controlling continuous path movement of robot and robot system performing the same
KR1020120072594A
