Pose processing method and device, computer equipment and storage medium
The mandible motion trajectory of the tooth is fitted through the spline fitting function to generate a smooth trajectory, solving the problems of motion incoherence and jitter in the prior art, and achieving the smoothing of the motion trajectory.
Patent Information
- Application Number
- CN202411261703.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-09-10
AI Technical Summary
The prior art has problems of motion discontinuity and jitter due to the existence of noise in calculating the pose trajectory of the teeth mandibular motion.
By obtaining the initial position parameters and multiple continuous pose information, the trajectory is fitted using the spline fitting function to generate a smooth second trajectory, and the rotation and translation parameters are determined based on the smooth trajectory point to achieve the pose Smoothing.
It effectively avoids the problems of motion incoherence and jitter, and ensures the smoothness of the motion trajectory.
Smart Images

Figure CN118887295A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a posture processing method, device, computer equipment and storage medium. Background Art
[0002] As people's quality of life improves, more and more people pay attention to oral problems. Among them, the mandible is one of the most frequently moved parts of the human body. The movement of the mandible is a complex three-dimensional movement controlled by the central nervous system. It involves muscles, temporomandibular joints, and occlusion. It is closely related to the health of the human chewing system.
[0003] When the teeth and jaws are damaged, the patient's mandibular movement trajectory (initial position and a set of continuous postures) can be transmitted to the software, and the movement can be simulated by driving the tooth model during the design process to create a suitable restoration. However, when calculating the posture of the motion trajectory, the existing technology usually has errors in the posture obtained due to the presence of noise, resulting in incoherent and jittery movement of the object driven by the posture. Summary of the invention
[0004] The embodiments of the present application provide a posture processing method, apparatus, computer equipment and storage medium, which can smooth multiple postures, drive objects through the smoothed postures, and solve the problems of incoherent and jittery object motion.
[0005] In a first aspect, an embodiment of the present application provides a posture processing method, which includes: obtaining an initial position parameter and a plurality of continuous first posture information, wherein the first posture information includes a first rotation parameter and a first translation parameter; Determine a first trajectory according to the initial position parameter and a plurality of the first posture information, the first trajectory comprising first trajectory points corresponding to each of the first posture information; Performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, wherein the second trajectory includes second trajectory points corresponding to each of the first trajectory points; Performing rotation fitting processing on the plurality of the first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to the second trajectory points; For each of the second trajectory points, a second translation parameter is determined based on the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and the corresponding second rotation parameter and the corresponding second translation parameter are determined as the second posture information of the second trajectory point to obtain the second posture information of each of the second trajectory points.
[0006] In a second aspect, an embodiment of the present application further provides a posture processing device, which includes: A transceiver unit, used to obtain an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; A processing unit is used to determine a first trajectory according to the initial position parameters and multiple first posture information, the first trajectory including first trajectory points corresponding to each first posture information; perform trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the second trajectory including second trajectory points corresponding to each first trajectory point; perform rotation fitting processing on multiple first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to each second trajectory point; for each second trajectory point, determine a second translation parameter according to the initial position parameters, the corresponding second rotation parameters and the trajectory point position parameters of the second trajectory point, and determine the corresponding second rotation parameters and the corresponding second translation parameters as the second posture information of the second trajectory point to obtain the second posture information of each second trajectory point.
[0007] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0008] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.
[0009] The embodiment of the present application provides a posture processing method, device, computer equipment and storage medium. The method includes: first obtaining an initial position parameter and a plurality of continuous first-position information, wherein the first-position information includes a first rotation parameter and a first translation parameter; then determining a first trajectory according to the initial position parameter and the plurality of first-position information, the first trajectory includes first trajectory points corresponding to each first-position information; then performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the second trajectory includes second trajectory points corresponding to each first trajectory point; performing rotation fitting processing on the plurality of first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to each second trajectory point; finally, for each second trajectory point, determining a second translation parameter according to the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and determining the corresponding second rotation parameter and the corresponding second translation parameter as the second posture information of the second trajectory point, and obtaining the second posture information of each second trajectory point. After acquiring the initial multiple posture information and generating the initial first trajectory, the embodiment of the present application will perform fitting processing on the first trajectory to obtain a smooth second trajectory, and then smooth the posture of each trajectory point based on the smooth second trajectory to obtain the smoothed second posture information corresponding to each trajectory point, thereby achieving smooth processing of the posture; in addition, since the present application constrains the second posture information through the smooth second trajectory, it can ensure that the trajectory generated by the second posture information is smooth, and by driving the object through the second posture information, it can ensure that its motion trajectory is smooth, thereby avoiding the problems of motion incoherence and jitter. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 A schematic diagram of a process flow of a posture processing method provided in an embodiment of the present application; Figure 2 A schematic diagram of a sub-process of a posture processing method provided in an embodiment of the present application; Figure 3 A schematic block diagram of a posture processing device provided in an embodiment of the present application; Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0012] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0013] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0014] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0015] It should be further understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0016] The embodiments of the present application provide a posture processing method, apparatus, computer equipment and storage medium.
[0017] The executor of the posture processing method may be the posture processing device provided in the embodiment of the present application, or a computer device integrated with the posture processing device, wherein the posture processing device may be implemented in hardware or software, and the computer device may be a terminal or a server. After obtaining the initial position parameters and multiple consecutive first posture information, the multiple first posture information are smoothed, and the object is driven by the smoothed posture to solve the problem of incoherent and jittery object motion.
[0018] Among them, the posture processing method provided in the embodiment of the present application can be applied to the scenario of smoothing the motion trajectory of human teeth and mandible, and can also be applied to any other scenario where the initial position and posture are known and the trajectory needs to be smoothed, such as the robot driving the object scenario, the robot or machine motion trajectory smoothing scenario, and the embodiment of the present application does not limit the specific application scenario of the posture processing method. Among them, the target object targeted by the posture processing method can be a three-dimensional model or data obtained by scanning, and its data comes from an industrial scanner, a facial scanner or CBCT data or CT data; the target object targeted by the posture processing method can also be a three-dimensional model virtually designed or simulated by algorithms such as artificial intelligence, such as a three-dimensional model after simulating orthodontic or jaw relationship treatment; the target object targeted by the posture processing method can also be a robot or a machine or an object to be driven.
[0019] Figure 1 is a flow chart of the posture processing method provided in the embodiment of the present application. Figure 1 As shown, the method includes the following steps S110-S150.
[0020] S110, obtaining an initial position parameter and a plurality of continuous first pose information, where the first pose information includes a first rotation parameter and a first translation parameter.
[0021] In some embodiments, the initial position parameter and the first position information are data calculated by monitoring the patient's mandibular movement or data virtually designed or simulated by an artificial intelligence algorithm, and a plurality of continuous first position information are a set of continuous positions. The initial position parameter is the initial position parameter of the patient's mandibular teeth, specifically the position information of the patient's mandibular teeth in three-dimensional space, such as the initial position vector p, where , x, y, z are the coordinate values of the patient's mandibular teeth in each axis on the reference coordinate axis before mandibular movement.
[0022] S120, determining a first trajectory according to the initial position parameters and the plurality of first pose information, the first trajectory comprising first trajectory points corresponding to each piece of first pose information.
[0023] In this embodiment, the first trajectory is composed of first trajectory points corresponding to each first pose information, each first trajectory point corresponds to a trajectory point position parameter, and the trajectory point position parameter may be a three-dimensional coordinate.
[0024] S130 , performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, where the second trajectory includes second trajectory points corresponding to each of the first trajectory points.
[0025] In some embodiments, see Figure 2Specifically, the second trajectory can be obtained through steps S1301-S1305: S1301: Determine a spline curve of a first trajectory.
[0026] In some embodiments, a spline curve of the first trajectory may be initially constructed using an initial curve construction method of a cubic spline curve.
[0027] S1302: Determine a trajectory error value between the spline curve and the first trajectory according to the spline fitting function.
[0028] Specifically, in this embodiment, the spline fitting function is: (1); Among them, f SD is the trajectory error value, is the regularization coefficient, which is an empirical value, f s is the regularization term of the spline curve, e SD,k is the trajectory point P on the spline curve tk The trajectory point X corresponding to the first trajectory k The point error value between SD,k Calculated by formula (2): (2); Among them, T k is the trajectory point P tk Tangent direction on the spline, N k is the trajectory point P tk The normal on the spline, is the trajectory point P tk The radius of curvature on the spline, is the trajectory point P tk The corresponding trajectory point X k The distance between.
[0029] In some embodiments, the regularization term of the spline curve is calculated by formula (3): (3); Among them, F1 is the length of the spline curve, F2 is the change trend value of the spline curve, is the control coefficient of F1, which is an empirical value, such as 0.01, β is the control coefficient of F2, which is an empirical value, such as 0.001, , p(t) is a spline curve.
[0030] S1303, determining whether the spline curve meets the preset convergence condition according to the error value; if so, executing step S1305, if not, executing step S1304.
[0031] Among them, the convergence condition includes that the calculated error value is less than a preset error threshold, and / or the change between the error value calculated for n consecutive times and the error value of the previous iteration cycle is less than a preset change threshold, wherein n is an integer greater than 1.
[0032] S1304. Update the spline curve according to the preset spline curve fitting rule, and return to execute step S1302.
[0033] When the obtained error value does not meet the preset convergence condition, the spline curve needs to be updated to obtain a smooth spline curve with the minimum error value.
[0034] In some implementations, the spline curve fitting rule may be an interpolation rule, that is, the spline curve is updated by adding control points.
[0035] S1305: Determine the spline curve as the second trajectory.
[0036] In this embodiment, when the error value meets the convergence condition, it means that the current spline curve meets the requirement, and the spline curve is determined as the second trajectory.
[0037] The trajectory points closest to the first trajectory points in the curve of the second trajectory are determined as the second trajectory points, so that the second trajectory points corresponding to the first trajectory points are determined in the second trajectory.
[0038] In some embodiments, since the motion trajectory (first trajectory) is sometimes complex, it is difficult to fit it directly with a spline fitting function, and there will be large errors. In order to reduce the difficulty of fitting and improve the fitting accuracy, before fitting the first trajectory, this embodiment first groups the first trajectory, and then performs smoothing (fitting) processing on the trajectories of each group.
[0039] At this time, before executing the step of performing trajectory fitting processing on the first trajectory according to the preset spline fitting function to obtain the second trajectory, the method further includes: The time parameter of each first posture information is obtained; the curve slope of each first trajectory point is determined according to the time parameter and the trajectory point position parameter of each first trajectory point; the multiple first trajectory points are determined as first-state trajectory points and second-state trajectory points according to the curve slope, the first-state trajectory point is a trajectory point among the multiple first trajectory points whose curve slope is greater than or equal to a preset slope threshold, and the second-state trajectory point is a trajectory point among the multiple first trajectory points whose curve slope is less than a preset slope threshold; according to a preset trajectory point quantity threshold, the continuous first-state trajectory points in the first trajectory are grouped to obtain at least one first trajectory point group.
[0040] Specifically, in this embodiment, the first trajectory is expanded in the time domain according to the time parameters of each first pose information, the change of the trajectory over time is obtained, and the slope of the curve of each trajectory point in the first trajectory is calculated, wherein the larger the slope, the larger the movement amplitude of the trajectory point, and the smaller the slope, the smaller the movement amplitude of the trajectory point. In this application, the trajectory point whose curve slope is greater than or equal to the preset slope threshold (such as 0.5) is determined as a first state trajectory point (such as a moving state trajectory point), and the trajectory point whose curve slope is less than the preset slope threshold is determined as a second state trajectory point (such as a stationary state trajectory point).
[0041] Among them, in this embodiment, multiple first trajectory points on the first trajectory are continuous in sequence. In this embodiment, each trajectory point is segmented from the front to the back. Specifically, each first trajectory point is polled from the front to the back, and the continuous first trajectory points with a slope greater than or equal to a preset slope threshold are divided into one section (i.e., a group). When a trajectory point with a slope less than the preset slope threshold appears, the next section (next group) starts. When a slope greater than or equal to the preset slope threshold appears again, the next section starts again. This cycle usually obtains multiple sections of trajectory points, or it is possible to obtain only one section of trajectory points. Spline fitting is performed in each section.
[0042] For continuous first-state trajectory points (i.e., continuous first trajectory points with a slope greater than or equal to a preset slope threshold), it is also necessary to control their grouping size. In this embodiment, continuous first-state trajectory points are grouped based on a trajectory point quantity threshold. The trajectory point quantity threshold can be set to 30, or it can be set to other values according to actual needs. The specific value of the trajectory point quantity threshold is not limited in this embodiment.
[0043] Then, for each first trajectory point group, trajectory fitting processing is performed on the first trajectory point group according to the spline fitting function to obtain second trajectories corresponding to each first trajectory point group.
[0044] Specifically, for each first trajectory point group, the second trajectory of each first trajectory point group is determined through steps S1301-S1305. At this time, each first trajectory point group is equivalent to the first trajectory in steps S1301-S1305.
[0045] In addition, if there are second-state trajectory points, the continuous second-state trajectory points in the first trajectory are determined as a second trajectory point group to obtain at least one second trajectory point group; for each second trajectory point group, the trajectory point position parameter mean is determined according to the trajectory point position parameters of each second-state trajectory point in the second trajectory point group, and each second-state trajectory point in the second trajectory point group is smoothed according to the trajectory point position parameter mean to obtain the second trajectories corresponding to each second trajectory point group.
[0046] It can be seen that in this embodiment, the trajectory points in the second state trajectory point group do not need to be fitted using a spline fitting function, and the smoothing effect can be achieved by simply calculating their mean, thereby reducing the amount of calculation for smoothing processing and improving smoothing efficiency.
[0047] S140, performing rotation fitting processing on the plurality of first rotation parameters according to a spline fitting function to obtain second rotation parameters corresponding to the second trajectory points.
[0048] In this embodiment, a spline fitting function is used to perform rotation fitting processing on the plurality of first rotation parameters to obtain second rotation parameters corresponding to each second trajectory point.
[0049] It should be noted that the data types of the first rotation parameter and the second rotation parameter in this step are quaternions.
[0050] It should be noted that the specific steps of performing rotation fitting processing on multiple first rotation parameters through the spline fitting function in this embodiment are similar to the specific steps of performing trajectory fitting processing on the first trajectory through the spline fitting function in step S130. The main difference is that step S130 uses the trajectory point position parameters (such as three-dimensional coordinates) of each first trajectory point as the input of the spline fitting function, and step S140 uses the first rotation parameters of each first trajectory point as the input of the spline fitting function. This embodiment does not elaborate on the rotation fitting processing of the first rotation parameters in this step.
[0051] S150. For each second trajectory point, determine the second translation parameter according to the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and determine the corresponding second rotation parameter and the corresponding second translation parameter as the second posture information of the second trajectory point to obtain the second posture information of each second trajectory point.
[0052] Specifically, the second translation parameter is determined by a preset translation calculation formula, wherein the translation calculation formula is: (4); Wherein, t(x) is the second translation parameter corresponding to the x-th trajectory point in the second trajectory, r(x) is the second rotation parameter corresponding to the x-th trajectory point in the second trajectory, and p(x) is the trajectory point position parameter of the x-th trajectory point in the second trajectory. is the initial position parameter.
[0053] In formula (4), the data type of the second rotation parameter is a rotation matrix, that is, before executing step S150, it is first necessary to convert the data type of the second rotation parameter from a quaternion to a rotation matrix.
[0054] After smoothing each posture, this embodiment will drive the target object according to each second posture information, wherein the target object can be a human dental and maxillofacial motion model, which can be a virtual three-dimensional model in the software or a physical model. More specifically, the target object is the teeth in the human dental and maxillofacial motion model.
[0055] Since each piece of second posture information is smoothed, in this embodiment, when the human dental and maxillofacial motion model is driven by each piece of second posture information, the smoothing of the mandibular motion trajectory of the oral cavity can be achieved.
[0056] To summarize, after acquiring the initial multiple posture information and generating the initial first trajectory, the embodiment of the present application will perform fitting processing on the first trajectory to obtain a smooth second trajectory, and then smooth the posture of each trajectory point based on the smooth second trajectory to obtain the smoothed second posture information corresponding to each trajectory point, thereby achieving smoothing of the posture; in addition, since the present application constrains the second posture information through a smooth second trajectory, it can ensure that the trajectory generated by the second posture information is smooth, and by driving the object through the second posture information, it can ensure that its motion trajectory is smooth, thereby avoiding the problems of motion incoherence and jitter.
[0057] Figure 3 is a schematic block diagram of a posture processing device 300 provided in an embodiment of the present application. Figure 3 As shown, corresponding to the above posture processing method, the present application also provides a posture processing device 300. The posture processing device 300 includes a unit for executing the above posture processing method, and the posture processing device 300 can be in a terminal or a server. Figure 3 The posture processing device 300 includes a transceiver unit 301 and a processing unit 302.
[0058] The transceiver unit 301 is used to obtain an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; The processing unit 302 is used to determine a first trajectory according to the initial position parameters and multiple first posture information, the first trajectory including first trajectory points corresponding to each first posture information; perform trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the second trajectory including second trajectory points corresponding to each first trajectory point; perform rotation fitting processing on multiple first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to each second trajectory point; for each second trajectory point, determine a second translation parameter according to the initial position parameters, the corresponding second rotation parameters and the trajectory point position parameters of the second trajectory point, and determine the corresponding second rotation parameters and the corresponding second translation parameters as the second posture information of the second trajectory point to obtain the second posture information of each second trajectory point.
[0059] In some embodiments, before executing the step of performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the processing unit 302 is further configured to: Obtaining the time parameter of each first posture information through the transceiver unit 301; determining the curve slope of each first trajectory point respectively according to the time parameter and the trajectory point position parameter of each first trajectory point; determining multiple first trajectory points as first-state trajectory points and second-state trajectory points according to the curve slope, the first-state trajectory point is a trajectory point among the multiple first trajectory points whose curve slope is greater than or equal to the preset slope threshold, and the second-state trajectory point is a trajectory point among the multiple first trajectory points whose curve slope is less than the preset slope threshold; grouping the continuous first-state trajectory points in the first trajectory according to the preset trajectory point quantity threshold to obtain at least one first trajectory point group; At this time, when the processing unit 302 performs the step of performing trajectory fitting processing on the first trajectory according to the preset spline fitting function to obtain the second trajectory, it is specifically used to: For each of the first trajectory point groups, trajectory fitting processing is performed on the first trajectory point group according to the spline fitting function to obtain second trajectories corresponding to each of the first trajectory point groups.
[0060] In some embodiments, after executing the step of determining the plurality of first trajectory points as first state trajectory points and second state trajectory points according to the slope of the curve, the processing unit 302 is further configured to: If there are second-state trajectory points, the continuous second-state trajectory points in the first trajectory are determined as a second trajectory point group to obtain at least one second trajectory point group; for each second trajectory point group, the trajectory point position parameter mean is determined according to the trajectory point position parameters of each second-state trajectory point in the second trajectory point group, and each second-state trajectory point in the second trajectory point group is smoothed according to the trajectory point position parameter mean to obtain the second trajectories corresponding to each second trajectory point group.
[0061] In some embodiments, when the processing unit 302 performs the step of performing rotation fitting processing on the plurality of first rotation parameters according to the spline fitting function to obtain the second rotation parameters respectively corresponding to each second trajectory point, the processing unit 302 is specifically used to: For each trajectory point group in the first trajectory point group and the second trajectory point group, rotation fitting processing is performed on multiple first rotation parameters in the trajectory point group according to the spline fitting function to obtain the second rotation parameters corresponding to each second trajectory point corresponding to the trajectory point group.
[0062] In some embodiments, when the processing unit 302 performs the step of performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain the second trajectory, it is specifically used to: determining a spline curve of the first trajectory; determining a trajectory error value between the spline curve and the first trajectory according to the spline fitting function; Determining whether the spline curve meets a preset convergence condition according to the error value; If the convergence condition is not met, the spline curve is updated according to a preset spline curve fitting rule, and the step of determining the error value between the spline curve and the plurality of first trajectory points according to the spline fitting function is returned to be executed; If the convergence condition is met, the spline curve is determined as the second trajectory.
[0063] In some embodiments, the spline fitting function is: ; Among them, e SD,k is the trajectory point P on the spline curve tk The trajectory point X corresponding to the first trajectory k The point error between , f SD is the trajectory error value, is the regularization coefficient, f s is the regularization term of the spline curve, T k is the trajectory point P tkThe tangent direction on the spline, N k is the trajectory point P tk The normal on the spline, is the trajectory point P tk The radius of curvature on the spline, is the trajectory point P tk The corresponding trajectory point X k The distance between.
[0064] In some embodiments, the regularization term of the spline curve is calculated by the following formula: ; Wherein, F1 is the length of the spline curve, F2 is the change trend value of the spline curve, is the control coefficient of F1, β is the control coefficient of F2, , p(t) is the spline curve.
[0065] In some embodiments, when the processing unit 302 performs the step of determining the second translation parameter according to the initial position parameter, the corresponding second rotation parameter, and the trajectory point position parameter of the second trajectory point, it is specifically configured to: The second translation parameter is determined by a preset translation calculation formula, wherein the translation calculation formula is: ; Wherein, t(x) is the second translation parameter corresponding to the x-th trajectory point in the second trajectory, r(x) is the second rotation parameter corresponding to the x-th trajectory point in the second trajectory, and p(x) is the trajectory point position parameter of the x-th trajectory point in the second trajectory. is the initial position parameter.
[0066] In some embodiments, after executing the step of determining the corresponding second rotation parameter and the corresponding second translation parameter as the second pose information of the second trajectory point to obtain the second pose information of each second trajectory point, the processing unit 302 is further used to: The target object is driven according to each of the second posture information.
[0067] To summarize, after acquiring the initial multiple posture information and generating the initial first trajectory, the posture processing device 300 provided in the embodiment of the present application will perform fitting processing on the first trajectory to obtain a smooth second trajectory, and then smooth the posture of each trajectory point based on the smooth second trajectory to obtain the smoothed second posture information corresponding to each trajectory point, thereby achieving smooth processing of the posture; in addition, since the present application constrains the second posture information through a smooth second trajectory, it can ensure that the trajectory generated by the second posture information is smooth, and by driving the object through the second posture information, it can ensure that its motion trajectory is smooth, thereby avoiding the problems of motion incoherence and jitter.
[0068] It should be noted that technical personnel in the relevant field can clearly understand that the specific implementation process of the above-mentioned posture processing device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and conciseness of the description, it will not be repeated here.
[0069] The above-mentioned posture processing device can be implemented in the form of a computer program, which can be used in Figure 4 Runs on the computer device shown.
[0070] See also Figure 4 , Figure 4 4 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 400 may be a terminal or a server.
[0071] See also Figure 4 The computer device 400 includes a processor 402 , a memory and a network interface 405 connected via a system bus 401 , wherein the memory may include a non-volatile storage medium 403 and an internal memory 404 .
[0072] The non-volatile storage medium 403 may store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions, and when the program instructions are executed, the processor 402 may execute a posture processing method.
[0073] The processor 402 is used to provide computing and control capabilities to support the operation of the entire computer device 400 .
[0074] The internal memory 404 provides an environment for the operation of the computer program 4032 in the non-volatile storage medium 403. When the computer program 4032 is executed by the processor 402, the processor 402 can execute a posture processing method.
[0075] The network interface 405 is used to communicate with other devices over the network. Figure 4The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 400 to which the solution of the present application is applied. The specific computer device 400 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0076] The processor 402 is used to run the computer program 4032 stored in the memory to implement the following steps: Acquire an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; Determine a first trajectory according to the initial position parameter and a plurality of the first posture information, the first trajectory comprising first trajectory points corresponding to each of the first posture information; Performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, wherein the second trajectory includes second trajectory points corresponding to each of the first trajectory points; Performing rotation fitting processing on the plurality of the first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to the second trajectory points; For each of the second trajectory points, a second translation parameter is determined based on the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and the corresponding second rotation parameter and the corresponding second translation parameter are determined as the second posture information of the second trajectory point to obtain the second posture information of each of the second trajectory points.
[0077] It should be understood that in the embodiment of the present application, the processor 402 may be a central processing unit (CPU), and the processor 402 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0078] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0079] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps: Acquire an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; Determine a first trajectory according to the initial position parameter and a plurality of the first posture information, the first trajectory comprising first trajectory points corresponding to each of the first posture information; Performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, wherein the second trajectory includes second trajectory points corresponding to each of the first trajectory points; Performing rotation fitting processing on the plurality of the first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to the second trajectory points; For each of the second trajectory points, a second translation parameter is determined based on the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and the corresponding second rotation parameter and the corresponding second translation parameter are determined as the second posture information of the second trajectory point to obtain the second posture information of each of the second trajectory points.
[0080] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0081] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0082] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0083] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially 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, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A posture processing method, characterized in that: include: Acquire an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; Determine a first trajectory according to the initial position parameter and a plurality of the first posture information, the first trajectory comprising first trajectory points corresponding to each of the first posture information; Performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, wherein the second trajectory includes second trajectory points corresponding to each of the first trajectory points; Performing rotation fitting processing on the plurality of the first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to the second trajectory points; For each of the second trajectory points, a second translation parameter is determined based on the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point, and the corresponding second rotation parameter and the corresponding second translation parameter are determined as the second posture information of the second trajectory point to obtain the second posture information of each of the second trajectory points.
2. The method according to claim 1, characterized in that Before performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the method further includes: Obtaining a time parameter of each of the first posture information; Determining the curve slope of each of the first trajectory points respectively according to the time parameter and the trajectory point position parameter of each of the first trajectory points; Determining the plurality of first trajectory points as first-state trajectory points and second-state trajectory points according to the slope of the curve, the first-state trajectory point being a trajectory point among the plurality of first trajectory points whose slope of the curve is greater than or equal to the preset slope threshold, and the second-state trajectory point being a trajectory point among the plurality of first trajectory points whose slope of the curve is less than the preset slope threshold; According to a preset trajectory point quantity threshold, grouping continuous trajectory points of the first state in the first trajectory to obtain at least one first trajectory point group; The performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory includes: For each of the first trajectory point groups, trajectory fitting processing is performed on the first trajectory point group according to the spline fitting function to obtain second trajectories corresponding to each of the first trajectory point groups.
3. The method according to claim 2, characterized in that After determining the plurality of first track points as first state track points and second state track points according to the slope of the curve, the method further includes: If the second state trajectory point exists, determining the continuous second state trajectory points in the first trajectory as a second trajectory point group to obtain at least one second trajectory point group; For each second trajectory point group, a trajectory point position parameter mean is determined according to the trajectory point position parameters of each second-state trajectory point in the second trajectory point group, and each second-state trajectory point in the second trajectory point group is smoothed according to the trajectory point position parameter mean to obtain the second trajectories corresponding to each second trajectory point group.
4. The method according to claim 3, characterized in that The performing rotation fitting processing on the plurality of the first rotation parameters according to the spline fitting function to obtain the second rotation parameters respectively corresponding to the second trajectory points includes: For each trajectory point group in the first trajectory point group and the second trajectory point group, rotation fitting processing is performed on multiple first rotation parameters in the trajectory point group according to the spline fitting function to obtain the second rotation parameters corresponding to each second trajectory point corresponding to the trajectory point group.
5. The method according to claim 1, characterized in that The performing trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory includes: determining a spline curve of the first trajectory; determining a trajectory error value between the spline curve and the first trajectory according to the spline fitting function; Determining whether the spline curve meets a preset convergence condition according to the error value; If the convergence condition is not met, the spline curve is updated according to a preset spline curve fitting rule, and the step of determining the error value between the spline curve and the plurality of first trajectory points according to the spline fitting function is returned to execute; If the convergence condition is met, the spline curve is determined as the second trajectory.
6. The method according to claim 5, characterized in that The spline fitting function is: ; Among them, e SD,k is the trajectory point P on the spline curve tk The trajectory point X corresponding to the first trajectory k The point error between , f SD is the trajectory error value, is the regularization coefficient, f s is the regularization term of the spline curve, T k is the trajectory point P tk The tangent direction on the spline, N k is the trajectory point P tk The normal on the spline, is the trajectory point P tk The radius of curvature on the spline, is the trajectory point P tk The corresponding trajectory point X k The distance between.
7. The method according to claim 6, characterized in that The regularization term of the spline curve is calculated by the following formula: ; Wherein, F1 is the length of the spline curve, F2 is the change trend value of the spline curve, is the control coefficient of F1, β is the control coefficient of F2, , p(t) is the spline curve.
8. The method according to claim 1, characterized in that The determining the second translation parameter according to the initial position parameter, the corresponding second rotation parameter and the trajectory point position parameter of the second trajectory point comprises: The second translation parameter is determined by a preset translation calculation formula, wherein the translation calculation formula is: ; Wherein, t(x) is the second translation parameter corresponding to the x-th trajectory point in the second trajectory, r(x) is the second rotation parameter corresponding to the x-th trajectory point in the second trajectory, and p(x) is the trajectory point position parameter of the x-th trajectory point in the second trajectory. is the initial position parameter.
9. The method according to any one of claims 1 to 8, characterized in that After determining the corresponding second rotation parameter and the corresponding second translation parameter as the second posture information of the second trajectory point and obtaining the second posture information of each second trajectory point, the method further includes: The target object is driven according to each of the second posture information.
10. A posture processing device, characterized in that: include: A transceiver unit, used to obtain an initial position parameter and a plurality of continuous first pose information, wherein the first pose information includes a first rotation parameter and a first translation parameter; A processing unit is used to determine a first trajectory according to the initial position parameters and multiple first posture information, the first trajectory including first trajectory points corresponding to each first posture information; perform trajectory fitting processing on the first trajectory according to a preset spline fitting function to obtain a second trajectory, the second trajectory including second trajectory points corresponding to each first trajectory point; perform rotation fitting processing on multiple first rotation parameters according to the spline fitting function to obtain second rotation parameters corresponding to each second trajectory point; for each second trajectory point, determine a second translation parameter according to the initial position parameters, the corresponding second rotation parameters and the trajectory point position parameters of the second trajectory point, and determine the corresponding second rotation parameters and the corresponding second translation parameters as the second posture information of the second trajectory point to obtain the second posture information of each second trajectory point.
11. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the posture processing method as described in any one of claims 1-9.
12. A storage medium, characterized in that: The storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the processor executes the posture processing method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Motion track updating method, head-mounted display device and computer readable medium
CN113031783A
Robot trajectory planning method, device and system for realizing C2 continuity
CN113103240A
Cartesian space trajectory planning method and device
CN115179298A
Positioning capability evaluation method and system, electronic device and storage medium
CN115880617A
Data detection method and device, vehicle and storage medium
CN116659529A
Cited By
Dexterous hand digital twinning virtual-real cooperative processing method and system
CN120461456A
