Robotic arm obstacle avoidance planning method, device and storage medium based on incremental model
Through the robotic arm obstacle avoidance planning method based on the incremental learning model, the problem of random initial trajectory and random noise generation of the robotic arm in high-dimensional space is solved, and more efficient trajectory optimization and online learning are achieved, which is suitable for high-dimensional planning. Task.
Patent Information
- Application Number
- CN202211198234.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-09-29
AI Technical Summary
Existing robot arm obstacle avoidance planning methods face high-dimensional space due to random initial trajectories and random noise, resulting in slow planning speed and low efficiency, and cannot effectively overcome the problem of dimensionality disaster and disaster forgetting.
The robot arm obstacle avoidance planning method based on the incremental learning model is used to obtain the obstacle information and target configuration, use the Gaussian distribution to generate the noise trajectory, and update the parameters according to the evaluation results, gradually optimizing the trajectory until convergence to obtain the optimal trajectory parameters , improve the quality of the initial trajectory and optimization efficiency.
It improves the efficiency of robot arm obstacle avoidance planning, overcomes the problem of disaster forgetting, realizes online learning and efficient trajectory optimization, and is suitable for high-dimensional planning tasks.
Smart Images

Figure CN115556098B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of transmission tower assembly, and in particular relates to a method, device and storage medium for obstacle avoidance planning of a robotic arm based on an incremental model. Background Art
[0002] Robotic arms are currently widely used to replace humans in completing various operational tasks, playing an increasingly important role in areas such as painting, automatic assembly, and logistics. In many actual operation scenarios, robotic arms need to avoid surrounding obstacles during operation, so obstacle avoidance planning has become an important core technology for robotic arms to complete complex operations.
[0003] Since the obstacle avoidance planning of the manipulator belongs to the planning problem in high-dimensional space, the commonly used Dijkstra algorithm and A* algorithm will encounter the problem of dimensionality curse. Therefore, the current manipulator obstacle avoidance planning methods often adopt two types of methods, which can overcome the dimensionality curse, namely sampling-based methods and random trajectory optimization-based methods. Among them, the most commonly used sampling-based methods are the RRT series methods. The other type of methods based on random trajectory optimization include: the motion planning method based on random noise optimization (STOMP) proposed by Kalakrishnan et al., and the GSTOMP algorithm proposed by Magyar et al. This type of method uses the framework of path integral stochastic optimal control, does not need to calculate the gradient of the cost function, and has a wide range of applications. However, the current methods based on random trajectory optimization have slow planning speed and low efficiency. The main reason is that when this method faces a new problem, the initial trajectory is random, and the noise generated during the optimization process is also random. Summary of the invention
[0004] The purpose of the present invention is to provide a method, device and storage medium for obstacle avoidance planning of a robotic arm based on an incremental model to solve the problem of random initial trajectory.
[0005] To achieve the purpose of the present invention, the specific technical solutions provided by the present invention are as follows:
[0006] First aspect
[0007] The present invention provides a robot arm obstacle avoidance planning method based on an incremental model, the method comprising the following steps:
[0008] Step 1: Obtain the obstacle information e and target configuration θ of the current task goal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ;
[0009] Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur+ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0010]
[0011]
[0012] where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor; Step 3: Update the current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance.
[0013] Second aspect
[0014] Corresponding to the above method, the present application provides a robot arm obstacle avoidance planning device based on an incremental model, the device comprising an empirical optimal initialization parameter Θ cur Acquisition unit, current optimal update amount δΘ acquisition unit and optimal trajectory parameter Θ opt Get unit;
[0015] The empirically optimal initialization parameter Θ cur The acquisition unit is used to obtain the obstacle information e and target configuration θ of the current task goal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ;
[0016] The current optimal update amount δθ acquisition unit is used to obtain the optimal update amount θ near the current trajectory. cur Generate K noise trajectories Θ using Gaussian distribution cur +ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0017]
[0018]
[0019] where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor;
[0020] Optimal trajectory parameter Θ opt The acquisition unit is used to update the current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance.
[0021] The third aspect
[0022] The present invention provides a storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the incremental model-based robotic arm obstacle avoidance planning method as described above.
[0023] Compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. The existing robot obstacle avoidance trajectory optimization methods are all online optimization, and the initial points are randomly generated. The present invention proposes to use an incremental learning model to learn the mapping of obstacle environment and target configuration to the optimal random trajectory parameters, that is, to use historical experience data to learn the initial trajectory curve, which can initialize the trajectory to a suboptimal solution, thereby improving the optimization efficiency;
[0025] 2. The incremental learning model used in the present invention can overcome the problem of disaster forgetting, and can also be learned online, with strong model representation capabilities;
[0026] 3. The present invention proposes to generate a training data set using a method of randomly initializing obstacle and target configurations and efficiently exploring the optimal random trajectory, with high data generation efficiency and better optimality indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a method flow chart provided by an embodiment of the present invention; DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0029] like Figure 1 As shown, this embodiment provides a robot arm obstacle avoidance planning method based on an incremental model, and the method includes the following steps:
[0030] Step 1: Obtain the obstacle information e and target configuration θ of the current taskgoal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ;
[0031] Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0032]
[0033]
[0034] where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor; Step 3: Update the current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance.
[0035] Preferably, the specific formula of the incremental learning model is:
[0036]
[0037]
[0038]
[0039] Where z = [e, θ goal ], e is obstacle information, c k is the center of the kth receptive field, w k is the weight of the kth basis function, ψ k (z) is the kth basis function, and W is the sum of K weights;
[0040] The training data set is incrementally brought into the above model for training to obtain a trained incremental learning model.
[0041] Preferably, the training data set is obtained by the following steps:
[0042] Step 1: In the obstacle space {(x c ,y c ,z c), l,w,h} space and target configuration space Θ goal Multiple obstacles and target points are randomly generated in space;
[0043] Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +∈, where ∈ is Gaussian noise with a mean of δΘ. Each noise trajectory is evaluated and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0044]
[0045]
[0046] Step 3: Update current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , otherwise return to step 2;
[0047] Step 4: Obstacle information e and target configuration θ goal and the optimal trajectory parameter Θ opt It is stored as a piece of data in the dataset D.
[0048] Preferably, before obtaining the training data set, the method further includes converting the robot arm obstacle avoidance problem into an optimization problem, as follows:
[0049] The obstacle is considered as a cube obstacle and the center coordinates of the cube (x c ,y c ,z c ) and length, width and height l, w, h to represent obstacle information, and use θ goal Represents the target configuration of the robot arm, where the 4-DOF robot arm where φ i is the degree of freedom of the i-th joint, let θ = [θ s ,θ1,…,θ T ,θ goal ], where θ t is the configuration of the robot arm at time t; the robot arm obstacle avoidance problem is transformed into an optimization problem as follows:
[0050]
[0051] in represents the configuration and obstacle cost, R is a semi-positive definite matrix, represents the quadratic cost along the trajectory, E[·] represents the expectation, It represents the configuration of the robot at the i-th moment. For a 4-DOF robot, the configuration at the i-th moment is: for
[0052] Corresponding to the above method, an embodiment of the present invention further provides a robot arm obstacle avoidance planning device based on an incremental model, the device comprising an empirical optimal initialization parameter Θ cur Acquisition unit, current optimal update amount δΘ acquisition unit and optimal trajectory parameter Θ opt Get unit;
[0053] The empirically optimal initialization parameter Θ cur The acquisition unit is used to obtain the obstacle information e and target configuration θ of the current task goal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ;
[0054] The current optimal update amount δθ acquisition unit is used to obtain the optimal update amount θ near the current trajectory. cur Generate K noise trajectories Θ using Gaussian distribution cur +ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0055]
[0056]
[0057] where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor;
[0058] Optimal trajectory parameter Θ opt The acquisition unit is used to update the current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance.
[0059] Preferably, the specific formula of the incremental learning model is:
[0060]
[0061]
[0062]
[0063] Where z = [e, θ goal ], e is obstacle information, c k is the center of the kth receptive field, w k is the weight of the kth basis function, ψ k (z) is the kth basis function, and W is the sum of K weights;
[0064] The training data set is incrementally brought into the above model for training to obtain a trained incremental learning model.
[0065] Preferably, the training data set is obtained by the following steps:
[0066] Step 1: In the obstacle space {(x c ,y c ,z c ), l,w,h} space and target configuration space Θ goal Multiple obstacles and target points are randomly generated in space;
[0067] Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +∈, where ∈ is Gaussian noise with a mean of δΘ. Each noise trajectory is evaluated and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is:
[0068]
[0069]
[0070] Step 3: Update current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , otherwise return to step 2;
[0071] Step 4: Obstacle information e and target configuration θ goal and the optimal trajectory parameter Θ opt It is stored as a piece of data in the dataset D.
[0072] Preferably, a robot arm obstacle avoidance problem conversion unit is further included, and the robot arm obstacle avoidance problem conversion unit is used to perform the following before obtaining the training data set:
[0073] The obstacle is considered as a cube obstacle and the center coordinates of the cube (x c,y c ,z c ) and length, width and height l, w, h to represent obstacle information, and use θ goal Represents the target configuration of the robot arm, where the 4-DOF robot arm where φ i is the degree of freedom of the i-th joint, let θ = [θ s ,θ1,…,θ T ,θ goal ], where θ t is the configuration of the robot arm at time t; the robot arm obstacle avoidance problem is transformed into an optimization problem as follows:
[0074]
[0075] in represents the configuration and obstacle cost, R is a semi-positive definite matrix, represents the quadratic cost along the trajectory, E[·] represents the expectation, It represents the configuration of the robot at the i-th moment. For a 4-DOF robot, the configuration at the i-th moment is: for
[0076] In addition, an embodiment of the present invention also provides a storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the incremental model-based robotic arm obstacle avoidance planning method as described above.
[0077] The method provided by the present invention can use empirical information to obtain a better initial trajectory. On this basis, only a small amount of online iterative optimization is needed to achieve the optimization task. Compared with other planning methods, the planning speed is significantly improved and can be widely used in other high-dimensional planning tasks.
[0078] The optional implementation modes of the embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present invention, various simple modifications can be made to the technical scheme of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
[0079] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.
Claims
1. A robot arm obstacle avoidance planning method based on an incremental model, characterized in that: The method comprises the following steps: Step 1: Obtain the obstacle information e and target configuration θ of the current task goal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ; Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is: where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor; Step 3: Update current parameters: θt t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance; The specific formula of the incremental learning model is: Where z = [e, θ goal ], e is obstacle information, c k is the center of the kth receptive field, w k is the weight of the kth basis function, ψ k (z) is the kth basis function, and W is the sum of K weights; The training data set is incrementally brought into the above model for training to obtain a trained incremental learning model; The training data set is obtained by the following steps: Step 1: In the obstacle space {(x c ,y c ,z c ), l,w,h} space and target configuration space Θ goal Multiple obstacles and target points are randomly generated in space; Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +∈, where ∈ is Gaussian noise with a mean of δΘ. Each noise trajectory is evaluated and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is: Step 3: Update current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , otherwise return to step 2; Step 4: Obstacle information e and target configuration θ goal and the optimal trajectory parameter Θ opt It is stored as a piece of data in the dataset D.
2. The incremental model-based obstacle avoidance planning method for a robotic arm according to claim 1, characterized in that: Before obtaining the training data set, the step of converting the robot obstacle avoidance problem into an optimization problem is also included, as follows: The obstacle is considered as a cube obstacle and the center coordinates of the cube (x c ,y c ,z c ) and length, width and height l, w, h to represent obstacle information, and use θ goal Represents the target configuration of the robot arm, where the 4-DOF robot arm where φ i is the degree of freedom of the i-th joint, let θ = [θ s ,θ1,…,θ T ,θ goal ], where θ t is the configuration of the robot arm at time t; the robot arm obstacle avoidance problem is transformed into an optimization problem as follows: in represents the configuration and obstacle cost, R is a semi-positive definite matrix, represents the quadratic cost along the trajectory, E[·] represents the expectation, It represents the configuration of the robot at the i-th moment. For a 4-DOF robot, the configuration at the i-th moment is: for 3. A robot arm obstacle avoidance planning device based on an incremental model, characterized in that: The device includes an empirically optimal initialization parameter θ cur Acquisition unit, current optimal update amount δΘ acquisition unit and optimal trajectory parameter Θ opt Get unit; The empirically optimal initialization parameter Θ cur The acquisition unit is used to obtain the obstacle information e and target configuration θ of the current task goal Input into the trained incremental learning model to obtain the empirically optimal initialization parameter Θ cur ; The current optimal update amount δθ acquisition unit is used to obtain the optimal update amount θ near the current trajectory. cur Generate K noise trajectories Θ using Gaussian distribution cur +ε, where ε is Gaussian noise with a mean of zero. Each noise trajectory is evaluated, and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is: where q(θ k,i ) is the return for each time step, S(Θ k,t ) is the total reward of T steps, λ is the reward factor; Optimal trajectory parameter Θ opt The acquisition unit is used to update the current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , the robot arm is based on the optimal trajectory parameter Θ opt Perform obstacle avoidance; The specific formula of the incremental learning model is: Where z = [e, θ goal ], e is obstacle information, c k is the center of the kth receptive field, w k is the weight of the kth basis function, ψ k (z) is the kth basis function, and W is the sum of K weights; The training data set is incrementally brought into the above model for training to obtain a trained incremental learning model; The training data set is obtained by the following steps: Step 1: In the obstacle space {(x c ,y c ,z c ), l,w,h} space and target configuration space Θ goal Multiple obstacles and target points are randomly generated in space; Step 2: Θ near the current trajectory cur Generate K noise trajectories Θ using Gaussian distribution cur +∈, where ∈ is Gaussian noise with a mean of δΘ. Each noise trajectory is evaluated and the current optimal update amount δΘ is obtained based on the evaluation result. The specific formula is: Step 3: Update current parameters: θ t,cur =θ t,cur +δθ i , where θ t,cur is the configuration of the robot arm at the tth time step, evaluates whether it converges, and if it converges, obtains the optimal trajectory parameter Θ opt , otherwise return to step 2; Step 4: Obstacle information e and target configuration θ goal and the optimal trajectory parameter Θ opt It is stored as a piece of data in the dataset D.
4. The incremental model-based robot arm obstacle avoidance planning device according to claim 3, characterized in that: It also includes a robot arm obstacle avoidance problem conversion unit, which is used to perform the following before obtaining the training data set: The obstacle is considered as a cube obstacle and the center coordinates of the cube (x c ,y c ,z c ) and length, width and height l, w, h to represent obstacle information, and use θ goal Represents the target configuration of the robot arm, where the 4-DOF robot arm where φ i is the degree of freedom of the i-th joint, let θ = [θ s ,θ1,…,θ T ,θ goal ], where θ t is the configuration of the robot arm at time t; the robot arm obstacle avoidance problem is transformed into an optimization problem as follows: in represents the configuration and obstacle cost, R is a semi-positive definite matrix, represents the quadratic cost along the trajectory, E[·] represents the expectation, It represents the configuration of the robot at the i-th moment. For a 4-DOF robot, the configuration at the i-th moment is: for 5. A storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the incremental model-based robotic arm obstacle avoidance planning method as described in claim 1 or 2.
Citation Information
Patent Citations
Vehicle obstacle avoidance track planning method based on Gaussian pseudo-spectral method
CN111381597A
Aircraft attitude control method, system and device based on reinforcement learning
CN112198890A
