Under-actuated manipulator control method, robot, device, apparatus, and medium
By inserting virtual joints into a low-degree-of-freedom robotic arm and performing dimensionality reduction path planning, combined with a joint responsibility separation strategy, the problem of low arrival accuracy of the low-degree-of-freedom robotic arm was solved, and high-precision control of the target pose was achieved.
Patent Information
- Application Number
- CN202611276626.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-27
AI Technical Summary
Because the number of controllable joints in a low-degree-of-freedom robotic arm is less than the number of degrees of freedom in the target pose, existing inverse kinematics solvers cannot effectively control the end effector to reach the target pose, resulting in low reaching accuracy.
An extended kinematic model is used to insert virtual joints for dimensionality reduction path planning. Combined with a joint responsibility separation strategy, the target angle of the controllable joint is determined through trajectory post-processing and kinematic decoupling transformation to control the motion of the end effector of the under-degree-of-freedom robotic arm.
This improves the accuracy of the under-degree-of-freedom robotic arm in reaching the target pose, ensuring that the end effector can effectively reach the target position and attitude, and solving the planning failure problem caused by insufficient degrees of freedom.
Smart Images

Figure CN123169044A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of robotic arm control, and in particular to a method, robot, device, equipment and medium for controlling a robotic arm with insufficient degrees of freedom. Background Technology
[0002] In the field of industrial robotics, a six-degree-of-freedom (DOF) tandem manipulator is the standard configuration for achieving arbitrary position and orientation control of the end effector in three-dimensional space. A typical six-DOF manipulator has six independent rotary joints, each controlling one of the end effector's three translational and three rotational degrees of freedom in space, thus enabling precise attainment of any target pose. Existing motion planning methods are mainly based on inverse kinematics solvers, such as kinematics solver plugins integrated into motion planning frameworks. These solvers receive the target pose and calculate the joint angles using Jacobian matrix iteration or analytical methods, enabling the end effector to precisely reach the given six-DOF target pose.
[0003] However, in practical engineering, there exists a type of under-degree-of-freedom robotic arm. This type of robotic arm has fewer controllable joints than the number of degrees of freedom in the target pose. For example, the end effector's rotational joints may be unable to move due to structural limitations, resulting in the robotic arm lacking control over a single rotational degree of freedom. Furthermore, these robotic arms typically employ parallel linkage mechanisms for transmission, meaning that the actuators for some joints are not directly mounted at the joint positions but transmit power from a distance via parallel linkages. This creates a coupling relationship between the planned joint angles and the actual control angles of the actuators. For this type of under-degree-of-freedom robotic arm, because the number of actual controllable degrees of freedom is less than the number of degrees of freedom in the target pose, standard inverse kinematics solvers fail to meet all constraints, leading to planning failure or returning an unusable solution. The dimensionality reduction solution provided by the framework can only guarantee that the end effector reaches the target position, but cannot effectively control the target pose, thus preventing the end effector of the robotic arm from effectively reaching the target pose.
[0004] In summary, current low-degree-of-freedom robotic arms suffer from the drawback of low accuracy in achieving target pose. Summary of the Invention
[0005] This application aims to propose a control method, robot, device, equipment, and medium for a manipulator with insufficient degrees of freedom, which can improve the accuracy of the manipulator in reaching the target pose.
[0006] In a first aspect, embodiments of this application provide a method for controlling a robotic arm with insufficient degrees of freedom, comprising the following steps: Obtain the target pose, which includes the target position and the target orientation; The target pose is dimensionality-reduced path planning is performed based on the extended kinematics model to obtain the first joint trajectory. The extended kinematics model is a kinematic model in which virtual joints are inserted between the physical joints of the under-degree-of-freedom manipulator. The range of motion of the virtual joints is zero. The dimensionality-reduced path planning is a path planning performed in a solution mode that only constrains the position of the end effector. The first joint trajectory includes the angles of the controllable joints of the under-degree-of-freedom manipulator, the virtual joints, and the uncontrollable joints. The first joint trajectory is post-processed to obtain the second joint trajectory. The post-processing includes removing the angles of the virtual joints and the uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints transmitted by the parallel linkage mechanism in the first joint trajectory. The target angle of each controllable joint is determined based on the joint responsibility separation strategy, wherein the joint responsibility separation strategy is as follows: each controllable joint is divided into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint, and the target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. The target angles of each controllable joint are sent to the motion controller of the under-degree-of-freedom robotic arm to control the end effector of the under-degree-of-freedom robotic arm to move toward the target pose.
[0007] According to some embodiments of this application, before performing dimensionality reduction path planning on the target pose based on the extended kinematics model, the method further includes: Load the extended kinematics model and configure the kinematics solver to the solution mode that only constrains the end effector position; In the extended kinematics model, the virtual joint is set between two adjacent physical joints of the under-degree-of-freedom manipulator, and the upper and lower limits of the joint limit of the virtual joint are both zero; the solution mode that only constrains the position of the end effector is to reduce the position constraints and attitude constraints of the inverse kinematics solution to a solution mode of position constraints.
[0008] According to some embodiments of this application, the step of performing dimensionality reduction path planning on the target pose based on an extended kinematic model to obtain the first joint trajectory includes: Starting from the current pose of the end effector and ending from the target pose, path interpolation is performed in Cartesian space according to a preset interpolation step size to obtain multiple path points. Perform position-only inverse kinematics solution on each of the path points to obtain the joint angles corresponding to each path point; If the proportion of successfully solved path points to the plurality of path points is greater than or equal to a preset proportion threshold, the first joint trajectory is obtained according to the joint angle corresponding to each path point.
[0009] According to some embodiments of this application, the target joint is the wrist pitch joint of the under-degree-of-freedom robotic arm, and the drive actuator of the wrist pitch joint is disposed on the arm upstream of the wrist pitch joint, and the driving force is transmitted to the wrist pitch joint through the parallel linkage mechanism. The kinematic decoupling transformation of the angle of the target joint transmitted via the parallel linkage mechanism in the first joint trajectory includes: The geometric angles of the target joint are kinematically decoupled and transformed according to the first transformation formula to obtain the actuator angles of the target joint. The first transformation formula is: θ4_actuator=θ2+θ3-θ4_geometric-C_offset; Wherein, θ4_actuator is the actuator angle of the target joint, θ4_geometric is the geometric angle of the target joint in the first joint trajectory, θ2 is the angle of the upper arm joint in the first joint trajectory, θ3 is the angle of the lower arm joint in the first joint trajectory, and C_offset is a fixed offset constant determined according to the installation geometry of the parallel linkage mechanism.
[0010] According to some embodiments of this application, the target angle of the controllable joint in the attitude compensation group is determined based on the attitude deviation between the current attitude of the end effector and the target attitude, including: Obtain the current transformation matrix of the coordinate system of the end effector relative to the base coordinate system of the under-degree-of-freedom manipulator, and determine the current posture based on the current transformation matrix; Construct a target attitude rotation matrix based on the target attitude, and determine each Euler angle component of the attitude deviation based on the current transformation matrix and the target attitude rotation matrix. Each Euler angle component includes at least a pitch component and a roll component. The pitch component is superimposed on the current angle of the wrist pitch joint to obtain the target angle of the wrist pitch joint; and the roll component is superimposed on the current angle of the wrist roll joint to obtain the target angle of the wrist roll joint.
[0011] According to some embodiments of this application, after sending the target angles of each controllable joint to the motion controller of the under-degree-of-freedom robotic arm, the method further includes: Using the pose of the end effector after its movement as the new current pose, the steps of performing dimensionality reduction path planning on the target pose based on the extended kinematics model are repeated until the step of sending the target angles of each controllable joint to the motion controller of the under-degree-of-freedom manipulator is executed again, until the pose deviation meets the preset convergence condition or the number of iterations reaches the preset threshold.
[0012] Secondly, embodiments of this application provide a robot, including a robot body, a robotic arm disposed on the robot body, and a controller, wherein the robotic arm is a low-degree-of-freedom robotic arm, and the controller is used to operate the method described in the first aspect embodiment.
[0013] Thirdly, embodiments of this application provide a control device for a robotic arm with insufficient degrees of freedom, comprising: The pose acquisition module is used to acquire the target pose, which includes the target position and the target orientation. The path planning module is used to perform dimensionality reduction path planning on the target pose based on an extended kinematic model to obtain a first joint trajectory. The extended kinematic model is a kinematic model in which virtual joints are inserted between the physical joints of the under-degree-of-freedom manipulator. The range of motion of the virtual joints is zero. The dimensionality reduction path planning is a path planning performed in a solution mode that only constrains the position of the end effector. The first joint trajectory includes the angles of the controllable joints of the under-degree-of-freedom manipulator, the virtual joints, and the uncontrollable joints. The trajectory post-processing module is used to perform trajectory post-processing on the first joint trajectory to obtain the second joint trajectory. The trajectory post-processing includes: removing the angles of the virtual joints and the uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints transmitted by the parallel linkage mechanism in the first joint trajectory. The target angle determination module is used to determine the target angle of each controllable joint based on a joint responsibility separation strategy. The joint responsibility separation strategy is as follows: each controllable joint is divided into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint. The target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. The control module is used to send the target angle of each controllable joint to the motion controller of the under-degree-of-freedom manipulator to control the end effector of the under-degree-of-freedom manipulator to move toward the target pose.
[0014] Fourthly, embodiments of this application provide an electronic device, the device comprising: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the under-degree-of-freedom robotic arm control method as described in the first aspect.
[0015] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the under-degree-of-freedom robotic arm control method as described in the first aspect.
[0016] The under-degree-of-freedom robotic arm control method, robot, device, equipment, and medium of the embodiments of this application have at least the following beneficial effects: In this embodiment, the first joint trajectory is obtained by performing dimensionality-reduced path planning on the target pose based on an extended kinematic model. The extended kinematic model is a kinematic model in which virtual joints with zero range of motion are inserted between the physical joints of the under-degree-of-freedom robotic arm. The dimensionality-reduced path planning is a path planning performed in a solution mode that only constrains the position of the end effector. Thus, on the one hand, the inserted virtual joints ensure that the topology of the kinematic chain meets the processing requirements of the kinematic solver, guaranteeing that the solver under the standard motion planning framework can be initialized and run normally. On the other hand, the dimensionality-reduced path planning reduces the inverse kinematics solution from position and attitude constraints to position constraints, making the controllable joints (fewer than the number of degrees of freedom of the target pose) and position constraints form a redundant system, ensuring the existence of the inverse solution and avoiding planning failure due to insufficient degrees of freedom. Furthermore, by performing trajectory post-processing on the first joint trajectory, the angles of virtual and uncontrollable joints are removed, and the angles of the target joints driven by the parallel linkage mechanism are kinematically decoupled and transformed, eliminating the coupling difference between the geometric angles output by the planning and the actual control angles of the actuator, enabling the trajectory to be correctly executed by the hardware actuator. Based on this, the target angle of each controllable joint is determined according to the joint responsibility separation strategy. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint, which ensures the position arrival accuracy of the end effector. The target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. Thus, while ensuring position accuracy, the motion capability of the existing joints is used to perform targeted closed-loop compensation for the attitude deviation caused by the missing degrees of freedom, so that the end effector of the under-degree-of-freedom manipulator can effectively reach the target pose and improve the arrival accuracy of the under-degree-of-freedom manipulator to the target pose.
[0017] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0018] The present application will be further described below with reference to the accompanying drawings and embodiments, wherein: Figure 1 A flowchart illustrating an embodiment of the under-degree-of-freedom robotic arm control method provided in this application; Figure 2 A schematic diagram of the structure of the under-degree-of-freedom robotic arm control device provided in this application; Figure 3 A schematic diagram of the structure of the electronic device provided in this application. Detailed Implementation
[0019] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0020] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.
[0021] To address the problems of the prior art, embodiments of this application provide a method, robot, device, equipment, and medium for controlling a robot arm with insufficient degrees of freedom. The method for controlling a robot arm with insufficient degrees of freedom provided in this application is described below.
[0022] First, the structure of the under-degree-of-freedom robotic arm addressed in the embodiments of this application will be described.
[0023] The under-degree-of-freedom robotic arm addressed in this application refers to a serial robotic arm with the actual number of controllable joints being less than the number of degrees of freedom of the target pose. Taking a five-degree-of-freedom hydraulic robotic arm as an example, this robotic arm includes six physical rotary joints, numbered from the first to the sixth joint. The first joint is the base rotary joint, the second joint is the upper arm joint, the third joint is the forearm joint, the fourth joint is the wrist pitch joint, the fifth joint is the wrist rotation joint, and the sixth joint is the end effector rotary joint. Due to structural limitations, the sixth joint has a very small range of motion and is considered an uncontrollable joint and locked at zero position in actual control. Therefore, the actual controllable joints of this robotic arm are the first to the fifth joints, totaling five joints. The end effector lacks control capability for one rotational degree of freedom, resulting in the robotic arm exhibiting under-degree-of-freedom characteristics.
[0024] Furthermore, the wrist pitch joint of this robotic arm employs a parallel linkage mechanism for transmission. A parallel linkage mechanism is a transmission mechanism consisting of multiple links forming a parallelogram. In robotic arms, it is often used to achieve remote drive, where the actuator is mounted near the base, and motion is transmitted to the distal joint via the parallel linkages, thereby reducing the load on the distal end. Specifically, in this embodiment, the actuator for the wrist pitch joint (e.g., a hydraulic telescopic cylinder) is not directly mounted at the wrist pitch joint, but rather on the upper arm, and the driving torque is transmitted to the wrist position via two parallel linkages. Due to the geometric constraints of the parallel linkages, when the upper arm and forearm joints rotate, even if the length of the hydraulic telescopic cylinder remains unchanged, the actual spatial angle of the wrist will deflect accordingly. Therefore, the geometric angle of the wrist pitch joint output by the motion planner cannot be directly used as the control command for the actuator and requires kinematic decoupling conversion. Correspondingly, for the controllable joints other than the wrist pitch joint, the actuators directly drive the corresponding joints. The actuator angles correspond one-to-one with the geometric angles, and there is no cross-joint coupling relationship, so there is no need for kinematic decoupling conversion.
[0025] Figure 1 A flowchart illustrating a method for controlling a less-than-degree-of-freedom robotic arm according to an embodiment of this application is shown. This method is applied to an electronic device, such as an industrial computer, embedded controller, or host computer deployed in a robotic arm control system. A method for controlling a less-than-degree-of-freedom robotic arm includes the following steps: Step S101: Obtain the target pose, which includes the target position and the target orientation.
[0026] The target pose mentioned above refers to the spatial pose that the end effector of the robotic arm is expected to reach. The target pose includes the target position and the target orientation. The target position refers to the three-dimensional spatial coordinates that the end effector is expected to reach, such as the coordinates (x, y, z) of the target position in the base coordinate system. The target orientation refers to the spatial orientation that the end effector is expected to reach, such as the orientation represented by quaternions or Euler angles.
[0027] The acquisition of the target pose can be achieved by the electronic device receiving the target pose instruction issued by the upper-layer perception system through the service interface and saving the target pose to an internal variable; or by the electronic device receiving the target pose input by the user, which is not limited here.
[0028] It should be noted that although the target pose in the target pose is not used as a solution constraint in the subsequent dimensionality reduction path planning, it will be used in the subsequent pose compensation step. Therefore, after the electronic device obtains the target pose, it needs to save the target pose in the target pose.
[0029] Step S102: Perform dimensionality reduction path planning on the target pose based on the extended kinematics model to obtain the trajectory of the first joint.
[0030] The aforementioned extended kinematic model refers to the kinematic model obtained by inserting virtual joints between physical joints based on the original kinematic model of a manipulator with insufficient degrees of freedom. For example, the extended kinematic model can be a kinematic chain structure of a manipulator described using a model file in a unified robot description format, in which virtual joints are inserted between adjacent physical joints.
[0031] The aforementioned virtual joints refer to joints added to the kinematic model that do not produce actual physical motion, and their range of motion is constrained to zero. Virtual joints are only used to assist the kinematic chain topology in meeting the internal processing requirements of the kinematic solver, making the coordinate transformation relationships of each joint in the kinematic chain closer to the physical model. It should be noted that virtual joints themselves do not increase the actual degrees of freedom of the robotic arm; they are merely a modeling technique. In contrast, uncontrollable joints are physically existing joints. Both reflect the structural characteristics of the robotic arm from different perspectives.
[0032] The aforementioned dimensionality-reduced path planning refers to path planning performed under a solution mode that only constrains the end effector position. This mode, where the kinematics solver only constrains the three-dimensional position of the end effector while ignoring its attitude, means that when solving inverse kinematics, the kinematics solver only constrains the three-dimensional position of the end effector. Under this mode, the inverse kinematics problem is reduced from six constraints (three position constraints and three attitude constraints) to three position constraints. This makes the solution of three position constraints for five controllable joints a redundant system, meaning that five unknowns correspond to three constraints, ensuring the existence of an inverse solution.
[0033] The aforementioned first joint trajectory refers to the joint angle sequence containing multiple trajectory points obtained from path planning. Each trajectory point includes the angles of all joints in the kinematic chain. In other words, the first joint trajectory includes the angles of the controllable joints, virtual joints, and uncontrollable joints of the under-degree-of-freedom robotic arm.
[0034] Step S103: Perform trajectory post-processing on the first joint trajectory to obtain the second joint trajectory.
[0035] Since the virtual joints in the first joint trajectory do not produce actual physical motion and the uncontrollable joints are locked at zero position, the angle data of both are meaningless for actual control. Furthermore, there is a coupling relationship between the geometric angles of the joints transmitted through the parallel linkage mechanism and the actuator angles, so the first joint trajectory needs to be post-processed.
[0036] The above trajectory post-processing includes: removing the angles of virtual joints and uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints in the first joint trajectory transmitted by the parallel linkage mechanism.
[0037] The aforementioned target joint refers to a joint driven by a parallel linkage mechanism, that is, a joint whose actuator is indirectly driven by the parallel linkage mechanism. The geometric angle of the target joint refers to the rotational angle of the joint in the kinematic model within the kinematic chain coordinate system, while the actuator angle refers to the actual control quantity of the actuator driving the joint. For directly driven joints, the geometric angle and actuator angle are consistent; for target joints driven by a parallel linkage mechanism, there is a coupling difference between the two, therefore kinematic decoupling transformation is required to convert the geometric angle into an actuator angle.
[0038] The aforementioned second joint trajectory refers to the joint angle sequence obtained after trajectory post-processing, which contains only the angles of each controllable joint. The angle of the target joint is the actuator angle, and the angles of the other controllable joints are the planned output angles.
[0039] Step S104: Determine the target angle of each controllable joint based on the joint responsibility separation strategy.
[0040] The aforementioned joint responsibility separation strategy refers to dividing each controllable joint into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined based on the trajectory of the second joint, while the target angle of the controllable joint in the attitude compensation group is determined based on the attitude deviation between the current attitude of the end effector and the target attitude.
[0041] The aforementioned position control group refers to the group of joints located near the base of the kinematic chain among the controllable joints, which mainly determine the three-dimensional spatial position of the end effector. Since dimensionality reduction path planning ensures the accuracy of the end effector position, the target angle of the controllable joints in the position control group can be directly determined based on the trajectory of the second joint, i.e., the planned value is used.
[0042] The aforementioned attitude compensation group refers to the group consisting of joints located at the far end of the kinematic chain among the controllable joints that primarily affect the attitude of the end effector. Since dimensionality reduction path planning abandons attitude constraints, the angles of the joints in the attitude compensation group output by the planning cannot guarantee the correct attitude of the end effector. Therefore, the target angles of the controllable joints in the attitude compensation group are not based on the planned values, but are determined based on the attitude deviation between the current attitude and the target attitude of the end effector, i.e., closed-loop feedback compensation values are used.
[0043] Step S105: Send the target angles of each controllable joint to the motion controller of the under-degree-of-freedom robotic arm to control the end effector of the under-degree-of-freedom robotic arm to move toward the target pose.
[0044] The aforementioned motion controller refers to the control device that drives the actuators of each joint of the robotic arm. The electronic device sends the target angle of each controllable joint to the motion controller through the communication interface. After receiving the data, the motion controller drives the actuators of each joint to move at the target angle, thereby causing the end effector to move toward the target pose.
[0045] In this embodiment, the first joint trajectory is obtained by performing dimensionality-reduced path planning on the target pose based on an extended kinematic model. The extended kinematic model is a kinematic model in which virtual joints with zero range of motion are inserted between the physical joints of a manipulator with insufficient degrees of freedom. The dimensionality-reduced path planning is a path planning performed in a solution mode that only constrains the position of the end effector. Thus, on the one hand, the inserted virtual joints ensure that the topology of the kinematic chain meets the processing requirements of the kinematic solver, guaranteeing that the solver under the standard motion planning framework can be initialized and run normally. On the other hand, the dimensionality-reduced path planning reduces the inverse kinematics solution from position and attitude constraints to position constraints, making the controllable joints (fewer than the number of degrees of freedom of the target pose) and position constraints form a redundant system, ensuring the existence of the inverse solution and avoiding planning failure due to insufficient degrees of freedom. Furthermore, by performing trajectory post-processing on the first joint trajectory, the angles of virtual and uncontrollable joints are removed, and the angles of the target joints transmitted via the parallel linkage mechanism are kinematically decoupled and transformed, eliminating the coupling difference between the geometric angles output by the planning and the actual control angles of the actuator, enabling the trajectory to be correctly executed by the hardware actuator. Based on this, the target angle of each controllable joint is determined according to the joint responsibility separation strategy. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint, which ensures the position arrival accuracy of the end effector. The target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. Thus, while ensuring position accuracy, the motion capability of the existing joints is used to perform targeted closed-loop compensation for the attitude deviation caused by the missing degrees of freedom, so that the end effector of the under-degree-of-freedom manipulator can effectively reach the target pose and improve the arrival accuracy of the under-degree-of-freedom manipulator to the target pose.
[0046] In step S101 above, after acquiring the target pose, the electronic device can save the target pose to a member variable so that it can be extracted and used in subsequent pose compensation steps.
[0047] In some embodiments, before step S102, the following steps are also included: Load the extended kinematics model and configure the kinematics solver to a solution mode that only constrains the end effector position; In the extended kinematics model, virtual joints are set between two adjacent physical joints of the under-degree-of-freedom manipulator, and the upper and lower limits of the joint limits of the virtual joints are both zero; the solution mode for constraining only the position of the end effector is to reduce the position constraints and attitude constraints solved by inverse kinematics to the solution mode of position constraints.
[0048] In this embodiment, during the system startup phase, the electronic device loads the extended kinematics model and configures the kinematics solver to a solution mode that only constrains the end effector position, thus providing a model and solver foundation for subsequent dimensionality reduction path planning. By setting virtual joints with zero upper and lower limits for joint constraints between two adjacent physical joints, the number of topological nodes in the kinematic chain meets the internal processing requirements of the kinematics solver, ensuring that the solver can initialize and run normally. At the same time, by configuring the kinematics solver to a solution mode that only constrains the end effector position, the inverse kinematics solution is reduced from position and attitude constraints to position constraints, making the number of controllable joints of the under-degree-of-freedom robot arm greater than the number of constraints, forming a redundant system. This ensures the existence of the inverse solution and avoids the solution failure caused by an overdetermined system due to the number of constraints exceeding the number of controllable joints in the standard solution mode.
[0049] The aforementioned loading of the extended kinematic model can be achieved by the electronic device reading the kinematic chain description of the robotic arm from a stored kinematic model file and loading it into the motion planning framework when the motion planning node is started. For example, in a control system based on a second-generation robot operating system and motion planning framework, the electronic device can load a unified robot description format model containing virtual joints through a startup file and initialize the kinematics solving plugin.
[0050] The aforementioned virtual joint is positioned between two adjacent physical joints of the under-degree-of-freedom robotic arm. This can be understood as the virtual joint being located between two preceding and following physical joints in the kinematic chain, connected via virtual links. The virtual joint does not move and therefore does not affect the coordinate transformation relationship between the preceding and following physical joints. The upper and lower limits of the virtual joint's joint limits are both zero, locking the angle of the virtual joint to zero, thus effectively making it a fixed connection in kinematic calculations.
[0051] For example, for the robotic arm with six physical rotary joints mentioned above, a virtual joint can be set between the second and third joints, between the third and fourth joints, and between the fourth and fifth joints, for a total of three virtual joints. Each virtual joint can be a rotary joint, and the rotation axis can be set according to the geometry of the kinematic chain. The initial coordinate system transformation of each virtual joint can include a corresponding rotational offset to match the geometry of the kinematic chain, making the coordinate transformation tree of each joint closer to the physical model. The physical parameters of the virtual joints, such as mass and moment of inertia, can be set to minimum values so as not to affect the dynamics calculations. It is understood that the number and placement of virtual joints can be flexibly adjusted according to the actual kinematic chain structure of the robotic arm, and this embodiment does not limit this.
[0052] The solution mode described above, which only constrains the position of the end effector, could be, for example, the solution mode when the inverse position-only configuration option of the kinematics solver plugin is set to active. In this solution mode, the solver only constrains the three-dimensional position of the end effector and ignores its attitude. The five controllable joints solve for three position constraints, forming a redundant system. The solver can return any solution that satisfies the position constraints.
[0053] It should be noted that the key to enabling the controllable joints of a low-degree-of-freedom robotic arm to solve inverse kinematics lies in configuring the solver to a solution mode that only constrains the position of the end effector. The role of the virtual joint is to make the kinematic chain topology meet the internal processing requirements of the solver. The combination of the two allows the low-degree-of-freedom robotic arm to complete path planning using the standard motion planning framework without modifying the underlying solver code.
[0054] In some implementations, step S102 above, which involves performing dimensionality reduction path planning on the target pose based on an extended kinematic model to obtain the first joint trajectory, includes: Starting from the current pose of the end effector and ending at the target pose, path interpolation is performed in Cartesian space according to a preset interpolation step size to obtain multiple path points. Perform position-only inverse kinematics solution for each path point to obtain the joint angles corresponding to each path point; If the proportion of successfully solved path points to multiple path points is greater than or equal to a preset proportion threshold, the first joint trajectory is obtained based on the joint angles corresponding to each path point.
[0055] In this embodiment, path interpolation is performed in Cartesian space according to a preset interpolation step size, and position-only inverse kinematics is solved for each path point, so that the position of each path point on the straight path of the end effector is accurately reached; at the same time, by verifying the proportion of successfully solved path points, it is possible to identify cases where the target is outside the workspace, the path passes through a singular region, or interferes with itself, which are not feasible paths, thereby ensuring the overall feasibility of the generated first joint trajectory.
[0056] The preset interpolation step size mentioned above refers to the step size for discretely sampling the straight path of the end effector in Cartesian space. The preset interpolation step size can be set according to the motion accuracy requirements of the end effector, for example, it can be set to 0.15 meters.
[0057] The above-mentioned inverse kinematics solution for each path point can be performed by calling a kinematics solver configured to constrain only the end effector position for each path point, calculating the joint angles corresponding to that path point, and generating a trajectory point containing the angles of all joints (including controllable joints, virtual joints, and uncontrollable joints).
[0058] The aforementioned preset percentage threshold refers to the success rate threshold used to determine the feasibility of a path; for example, it can be set to 0.9. Understandably, if the proportion of successfully solved path points is lower than the preset percentage threshold, it indicates a problem with the path design, such as the target exceeding the workspace, the path passing through a singularity zone, or interfering with itself. In this case, the entire path can be rejected, and a new path should be planned or an error should be reported. If the proportion of successfully solved path points is greater than or equal to the preset percentage threshold, the failure of individual path points is likely due to numerical noise, boundary conditions, or initial value problems, and the path as a whole is feasible. In scenarios with high accuracy requirements, the preset percentage threshold can also be set to 1, requiring all path points to be reachable.
[0059] The above-mentioned method of obtaining the first joint trajectory based on the joint angles corresponding to each path point can be achieved by forming a trajectory point sequence according to the path order of all the joint angles corresponding to the path points, which can be used as the first joint trajectory; or by extracting the end point of the trajectory as the planning result. This application embodiment does not limit this method.
[0060] In some embodiments, the target joint is the wrist pitch joint of a manipulator with a low degree of freedom. The drive actuator of the wrist pitch joint is located on the arm upstream of the wrist pitch joint and transmits the driving force to the wrist pitch joint through a parallel linkage mechanism. In step S103 above, the kinematic decoupling transformation of the angle of the target joint transmitted through the parallel linkage mechanism in the first joint trajectory includes: The geometric angles of the target joint are kinematically decoupled and transformed according to the first transformation formula to obtain the actuator angles of the target joint. The first transformation formula is: θ4_actuator=θ2+θ3-θ4_geometric-C_offset; Where θ4_actuator is the actuator angle of the target joint, θ4_geometric is the geometric angle of the target joint in the first joint trajectory, θ2 is the angle of the upper arm joint in the first joint trajectory, θ3 is the angle of the lower arm joint in the first joint trajectory, and C_offset is a fixed offset constant determined according to the installation geometry of the parallel linkage mechanism.
[0061] In this embodiment, for the wrist pitch joint driven by the parallel linkage mechanism, the geometric angle of the planning output is converted into the actuator angle that takes into account the coupling effect of the upstream joint angle according to the first conversion formula. This realizes the mapping from the planner space to the controller space, so that the angle of the target joint received by the motion controller can be driven to the actuator to execute correctly, avoiding the end pose deviation caused by the inconsistency between the geometric angle and the actuator angle.
[0062] The physical meaning of the first conversion formula mentioned above is that: the parallel linkage mechanism maintains a relatively parallel relationship. When the upper arm joint and the lower arm joint rotate, even if the length of the actuator remains unchanged, the spatial angle of the wrist will deflect due to the cumulative rotation of the upstream joint. Therefore, the actuator needs to compensate for this passive deflection, that is, the actuator angle of the target joint needs to take into account the cumulative influence of the upper arm joint angle and the lower arm joint angle.
[0063] The aforementioned C_offset is a fixed offset constant determined based on the installation geometry of the parallel linkage mechanism. For example, it can be determined based on the initial installation angle of the parallel linkage. In a specific example, C_offset can be 13π / 12, approximately 3.403 radians. It is understood that for different robotic arms, C_offset can be re-derived and determined based on the installation geometry of their parallel linkage mechanisms, and this application embodiment does not limit this.
[0064] It should be noted that when the angle of the virtual joint is locked to zero, the angle of the virtual joint does not need to be included in the first transformation formula; when there is a coordinate transformation relationship between the virtual joint and the target joint in the extended kinematic model, the angle of the corresponding virtual joint can also be included in the first transformation formula, and since the angle of the virtual joint is zero, the calculation result is not affected.
[0065] In some implementations, step S103 above, removing the angles of virtual joints and uncontrollable joints in the first joint trajectory, can be achieved by: for each trajectory point in the first joint trajectory, traversing its joint angle array, skipping the angle data corresponding to virtual joints and uncontrollable joints according to the joint index, retaining the angle data of each controllable joint, and rearranging the retained angle data according to the actual control order. For example, in the case where the joints in the above kinematic chain are arranged in the order of first joint, first virtual joint, second joint, third joint, second virtual joint, fourth joint, fifth joint, third virtual joint, and sixth joint, skipping the angle data corresponding to the first virtual joint, second virtual joint, third virtual joint, and sixth joint, retaining the angle data of the first joint, second joint, third joint, fourth joint after kinematic decoupling transformation, and fifth joint, and rearranging them according to the actual control order. The same processing can be performed on the velocity and acceleration data in the trajectory points.
[0066] In some implementations, in step S104 above, the target angle of the controllable joint in the attitude compensation group is determined based on the attitude deviation between the current attitude of the end effector and the target attitude, including: obtaining the current transformation matrix of the coordinate system of the end effector relative to the base coordinate system of the under-degree-of-freedom manipulator, and determining the current attitude based on the current transformation matrix. Construct the target attitude rotation matrix based on the target attitude, and determine each Euler angle component of the attitude deviation based on the current transformation matrix and the target attitude rotation matrix. Each Euler angle component includes at least pitch and roll components. The pitch component is superimposed on the current angle of the wrist pitch joint to obtain the target angle of the wrist pitch joint; and the roll component is superimposed on the current angle of the wrist roll joint to obtain the target angle of the wrist roll joint.
[0067] In this embodiment, by acquiring the current attitude of the end effector, calculating the attitude deviation from the target attitude, and superimposing the pitch and roll components of the attitude deviation onto the current angles of the corresponding joints in the attitude compensation group, closed-loop compensation at the attitude level is achieved. Since the current attitude upon which the compensation is based comes from real-time feedback, the compensation direction always points towards the target attitude, thereby gradually correcting the attitude deviation caused by the attitude constraints abandoned by the dimensionality reduction path planning, improving attitude arrival accuracy while ensuring positional accuracy.
[0068] The aforementioned acquisition of the current transformation matrix of the end effector's coordinate system relative to the base coordinate system can be achieved by the electronic device querying a coordinate transformation library for the real-time transformation matrix from the end effector's coordinate system to the base coordinate system. For example, in a control system based on a second-generation robot operating system, the electronic device can query a coordinate transformation library for the real-time transformation matrix from the end effector's link coordinate system to the base link coordinate system. This current transformation matrix reflects the current actual spatial pose of the robotic arm's end effector.
[0069] The above-mentioned construction of the target pose rotation matrix based on the target pose can be achieved by extracting the quaternion of the target pose from the saved target pose and converting the quaternion into a rotation matrix. This target pose rotation matrix is the pose that the end effector needs to reach.
[0070] The determination of the Euler angle components of the attitude deviation based on the current transformation matrix and the target attitude rotation matrix can be achieved by calculating the relative rotation of the end effector from the current attitude to the target attitude based on the current transformation matrix and the target attitude rotation matrix, and extracting the Euler angle representation of this relative rotation to obtain the yaw, pitch, and roll components of the attitude deviation. The yaw, pitch, and roll components correspond to the rotational deviation angles around their respective coordinate axes. It is understood that the decomposition order of the Euler angles can be selected based on the axial configuration of the kinematic chain joints of the robotic arm, for example, a ZYX or XYZ order can be used; this embodiment does not limit this.
[0071] The above-mentioned superposition of the pitch component onto the current angle of the wrist pitch joint can be calculated according to the formula θ4_new=θ4_current+Δpitch, where θ4_current is the current angle of the wrist pitch joint read from the joint state feedback, Δpitch is the pitch component, and θ4_new is the target angle of the wrist pitch joint.
[0072] The aforementioned addition of the roll component to the current angle of the wrist rotation joint can be calculated using the formula θ5_new = θ5_current - Δroll, where θ5_current is the current angle of the wrist rotation joint read from the joint state feedback, Δroll is the roll component, and θ5_new is the target angle of the wrist rotation joint. It should be noted that the minus sign here is because the rotation axis of the wrist rotation joint is opposite to the positive roll direction. If the rotation axis of the wrist rotation joint is the same as the positive roll direction, the roll component can be added to the current angle; this embodiment does not limit this.
[0073] Since the current angles of the wrist pitch and wrist roll joints come from the real-time joint status feedback of the robotic arm, which are actual angles in the actuator space, the target angles obtained after compensation are also in the actuator space and can be directly sent to the motion controller for execution.
[0074] In some embodiments, after step S105, the method further includes: Using the pose after the end effector moves as the new current pose, repeat steps S102 to S105 until the pose deviation meets the preset convergence condition or the number of iterations reaches the preset threshold.
[0075] In this embodiment, since the linear superposition compensation in attitude compensation is approximate, nonlinear errors exist when there are large angular deviations. Furthermore, joint motion changes the kinematic chain configuration, causing changes in the mapping relationship between the joint axis direction and the coordinate axis. Therefore, residual attitude errors may still exist after a single planning and execution. By performing multiple iterations, each iteration recalculates the attitude deviation and compensates for it using the latest pose feedback from the end effector. This allows the attitude error of the end effector to gradually converge, thereby further improving the accuracy of the under-degree-of-freedom robotic arm in reaching the target pose.
[0076] Specifically, in the first iteration, the joints of the position control group drive the end effector to the target position, and the joints of the attitude compensation group perform the first compensation based on the initial attitude deviation. In the second iteration, the pose of the end effector after movement is taken as the new current pose. At this time, the end effector position is basically in place, and the new pose after the first compensation is obtained. The calculated attitude deviation is smaller, and the joints of the attitude compensation group make more precise corrections, while the joints of the position control group hardly need to be adjusted. The attitude deviation gradually decreases in each subsequent iteration. For example, after two to three iterations, it can converge to the range that meets the accuracy requirements of actual operation.
[0077] The convergence of the above iterative process comes from the fact that the direction of each compensation always points to the target attitude, which is guaranteed by real-time pose feedback, and the compensation amount is equal to the current attitude deviation, that is, the proportional coefficient is one. In a small angle range, it is approximately linear feedback control and has asymptotic convergence characteristics.
[0078] The aforementioned preset convergence condition can be that the attitude deviation is less than a preset attitude error threshold, for example, both the pitch and roll components are less than 0.02 radians; the aforementioned preset number of iterations threshold can be set according to the efficiency requirements of the actual operation, for example, it can be set to three. This application embodiment does not limit the specific values of the preset convergence condition and the preset number of iterations threshold.
[0079] In some embodiments, the position control group includes a base rotation joint, an upper arm joint, and a forearm joint, and the posture compensation group includes a wrist pitch joint and a wrist roll joint. Attitude deviations include yaw, pitch, and roll components. The missing degree of freedom of the under-degree-of-freedom manipulator corresponds to the yaw direction, and the yaw component is not compensated.
[0080] In this embodiment, based on the structural characteristics of the robotic arm's kinematic chain, the near-base rotation joint, upper arm joint, and forearm joint are divided into a position control group, while the distal wrist pitch joint and wrist roll joint are divided into an attitude compensation group. The two groups of joints work collaboratively using different control strategies. The position control group uses open-loop programming values to ensure position accuracy, while the attitude compensation group uses closed-loop feedback compensation values to ensure attitude approximation, without interfering with each other, thus fully utilizing the existing joint's motion capabilities. Simultaneously, since the missing degree of freedom corresponds to the yaw direction, and there is no independent joint in the robotic arm capable of controlling the end effector's yaw, yaw component compensation is not performed, avoiding the impact of ineffective compensation on position accuracy and compensation stability.
[0081] It is understood that the above-mentioned grouping method for separating joint responsibilities can be adjusted according to the configuration characteristics of the robotic arm. For example, for a robotic arm with a horizontal multi-joint configuration, the joints in the horizontal plane can be classified into the position control group, and the joints in the vertical direction can be classified into the attitude compensation group. This application embodiment does not limit this.
[0082] To facilitate understanding of the under-degree-of-freedom robotic arm control method provided in the embodiments of this application, a specific application example is used to illustrate the above-mentioned under-degree-of-freedom robotic arm control method. This application example is the control process of a cleaning robot arm reaching the target cleaning posture in a photovoltaic power station cleaning operation scenario.
[0083] In this application example, the cleaning robot includes a mobile chassis and a hydraulic robotic arm mounted on the chassis. The robotic arm needs to deliver the end effector cleaning device to a designated location on the surface to be cleaned. The robotic arm has six physical rotary joints: a base rotary joint, an upper arm joint, a forearm joint, a wrist pitch joint, a wrist flip joint, and an end effector rotary joint. The end effector rotary joint is locked in a zero position due to structural limitations, so the actual controllable joints are the base rotary joint, upper arm joint, forearm joint, wrist pitch joint, and wrist flip joint. The drive cylinder for the wrist pitch joint is mounted on the upper arm and is driven by a parallel linkage mechanism. The joint limits for each joint are as follows: the base rotation joint has a limit of -2.8 radians to 2.8 radians; the upper arm joint has a limit of 1.106 radians to 2.15 radians; the forearm joint has a limit of 1.497 radians to 3.25 radians; the wrist pitch joint has a limit of -0.572 radians to 1.162 radians; the wrist rotation joint has a limit of -1.745 radians to 1.745 radians; and the distal rotation joint has a limit of -0.1 radians to 0.1 radians. The lengths of each link are as follows: the height from the base to the first link is 0.168 meters; the length from the first link to the second link is 1.5 meters; the length from the second link to the third link is 3.2 meters; the length from the third link to the fourth link, including the offset of the parallel links, is approximately 2.716 meters; the length from the fourth link to the fifth link is 0.2804 meters; and the length from the fifth link to the sixth link is 0.3 meters. The fixed offset constant C_offset of the parallel link mechanism is 13π / 12, approximately 3.403 radians.
[0084] The control flow of this application example is as follows: The first step is system startup. The electronic device initiates the motion planning node via the startup file, loading an extended kinematic model containing three virtual joints. These three virtual joints are positioned between the upper arm and forearm joints, between the forearm joint and wrist pitch joint, and between the wrist pitch joint and wrist rotation joint, respectively. The upper and lower limits of the joint constraints for each virtual joint are both zero, and the physical parameters of the virtual joints are set to minimum values. Simultaneously, the electronic device configures the kinematics solver plugin to a solver mode that only constrains the position of the end effector. At this point, the joints in the kinematic chain are arranged in the following order: base rotation joint, first virtual joint, upper arm joint, forearm joint, second virtual joint, wrist pitch joint, wrist rotation joint, third virtual joint, and end effector rotation joint.
[0085] The second step is task reception. The perception system detects the target cleaning pose of the surface to be cleaned. For example, the target position is -1.5 meters x-coordinate, 2.0 meters y-coordinate, and 1.5 meters y-coordinate in the base coordinate system, and the quaternion of the target pose is (0.705, 0.066, -0.705, -0.036). The target pose is then sent to the motion planning node through the service interface. The electronic device saves the target pose to internal variables and simultaneously obtains the actuator angles of the five controllable joints from the joint state topic.
[0086] The third step is dimensionality reduction path planning. The electronic device uses the current pose of the end effector as the starting point and the target pose as the ending point, calls the Cartesian path planning interface, and performs path interpolation in Cartesian space according to a preset interpolation step size of 0.15 meters. It then performs position-only inverse kinematics solution for each path point to obtain the first joint trajectory containing nine joint angles. The proportion of successfully solved path points is greater than the preset proportion threshold of 0.9, and the end effector position accurately reaches the target position.
[0087] The fourth step is kinematic decoupling and conversion. The electronic device performs parallel link kinematic decoupling on the wrist pitch joint in the first joint trajectory, and converts the geometric angle of the wrist pitch joint into the actuator angle according to the first conversion formula θ4_actuator=θ2+θ3-θ4_geometric-13π / 12.
[0088] Step 5: Virtual joint stripping. For each trajectory point in the first joint trajectory, the electronic device skips the angle data corresponding to the first, second, and third virtual joints and the end effector rotational joint, retains the angle data of the base rotational joint, upper arm joint, forearm joint, wrist pitch joint after kinematic decoupling transformation, and wrist roll joint, and rearranges them according to the actual control sequence to obtain the second joint trajectory.
[0089] Step 6: Joint Responsibility Separation and Attitude Compensation. The position control group includes the base rotation joint, upper arm joint, and forearm joint. Its target angle directly adopts the planned value from the second joint trajectory, ensuring accurate end-effector position arrival. The attitude compensation group includes the wrist pitch joint and wrist roll joint. The electronic device queries the coordinate transformation library for the current transformation matrix of the end-effector coordinate system relative to the base coordinate system. Based on the saved target pose, it constructs the target attitude rotation matrix, calculates the attitude deviation from the current pose to the target pose, extracts the pitch and roll components, and superimposes the pitch component onto the current angle of the wrist pitch joint to obtain its target angle. The roll component is superimposed onto the current angle of the wrist roll joint to obtain its target angle. Since the missing degree of freedom corresponds to the yaw direction, the yaw component is not compensated.
[0090] Step 7: Execute the motion. The electronic device sends the target angle sequence of the five controllable joints to the motion controller through the motion interface. The motion controller drives the hydraulic telescopic cylinders of each joint to move at the target angle.
[0091] Step 8, Iterative Approximation. After the initial movement, the end effector reaches an approximate pose. The electronic device uses the pose of the end effector after its movement as the new current pose and repeats steps 2 through 7. After three iterations, the end effector position error converges to within 0.01 meters, the pitch attitude deviation converges to within 0.02 radians, and the roll attitude deviation converges to within 0.02 radians. The yaw deviation cannot be eliminated due to the lack of degrees of freedom, but in the cleaning operation, the end effector cleaning device is not sensitive to yaw rotation, and this deviation is within an acceptable range.
[0092] Through the above control process, the five-joint robotic arm with parallel linkage mechanism, which originally could not accurately reach the target pose due to the lack of a rotational degree of freedom, achieved the target approximation accuracy that meets the requirements of cleaning operations within three iterations under the collaborative control of position accuracy guaranteed by dimensionality reduction path planning and attitude accuracy optimized by closed-loop compensation iteration. Moreover, the entire control process is completed within the standard motion planning framework without modifying the underlying kinematic solver code.
[0093] It should be noted that the under-degree-of-freedom robotic arm control method provided in this application is not only applicable to the cleaning robot scenario described above, but can also be extended to other industrial robotic arm control scenarios with missing or failed joints, such as the degraded operation control of painting robots, welding robots, and handling robots after a joint failure; it can also be applied to engineering robotic arms using parallel linkage mechanisms, such as excavator booms and aerial work platforms; and it can also be applied to the motion control of economical robotic arms that use fewer than six joints due to cost considerations. Furthermore, the virtual joint modeling method and joint responsibility separation strategy in this application can be used in conjunction with other kinematic solvers and path planning algorithms, and the posture compensation method can be further extended to a compensation method based on the pseudo-inverse of the Jacobian matrix to improve the compensation accuracy in scenarios with large angle deviations. This application does not limit these aspects.
[0094] Based on the under-degree-of-freedom robotic arm control method provided in the above embodiments, this application also provides a robot, including a robot body, a robotic arm disposed on the robot body, and a controller, wherein the robotic arm is an under-degree-of-freedom robotic arm, and the controller is used to run the method of the above embodiments.
[0095] Based on the under-degree-of-freedom robotic arm control method provided in the above embodiments, this application also provides a specific implementation of the under-degree-of-freedom robotic arm control device.
[0096] like Figure 2As shown, the under-degree-of-freedom robotic arm control device 200 provided in this application embodiment may include: The pose acquisition module 201 is used to acquire the target pose, which includes the target position and the target orientation. The path planning module 202 is used to perform dimensionality reduction path planning on the target pose based on the extended kinematics model to obtain the first joint trajectory. The extended kinematics model is a kinematic model in which virtual joints are inserted between the physical joints of the under-degree-of-freedom manipulator. The range of motion of the virtual joints is zero. The dimensionality reduction path planning is a path planning performed in a solution mode that only constrains the position of the end effector. The first joint trajectory includes the angles of the controllable joints, virtual joints, and uncontrollable joints of the under-degree-of-freedom manipulator. The trajectory post-processing module 203 is used to perform trajectory post-processing on the first joint trajectory to obtain the second joint trajectory. The trajectory post-processing includes: removing the angles of virtual joints and uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints in the first joint trajectory that are transmitted through the parallel linkage mechanism. The target angle determination module 204 is used to determine the target angle of each controllable joint based on the joint responsibility separation strategy. The joint responsibility separation strategy is as follows: each controllable joint is divided into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint, and the target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. The control module 205 is used to send the target angles of each controllable joint to the motion controller of the under-degree-of-freedom robotic arm, so as to control the end effector of the under-degree-of-freedom robotic arm to move toward the target pose.
[0097] The under-degree-of-freedom robotic arm control device 200 of this application embodiment is used to execute the under-degree-of-freedom robotic arm control method in the above embodiment. Its specific processing procedure is the same as that of the under-degree-of-freedom robotic arm control method in the above embodiment, and will not be described in detail here.
[0098] Figure 3 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.
[0099] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.
[0100] Specifically, the processor 301 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0101] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 302 is non-volatile solid-state memory.
[0102] In some embodiments, memory 302 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Thus, generally, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this disclosure.
[0103] The processor 301 reads and executes computer program instructions stored in the memory 302 to implement any of the under-degree-of-freedom robotic arm control methods in the above embodiments.
[0104] In one example, the electronic device may also include a communication interface 303 and a bus 310. For example, Figure 3 As shown, the processor 301, memory 302, and communication interface 303 are connected through bus 310 and complete communication with each other.
[0105] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0106] Bus 310 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 310 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0107] Furthermore, in conjunction with the under-degree-of-freedom robotic arm control method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the under-degree-of-freedom robotic arm control methods in the above embodiments.
[0108] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0109] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.
[0110] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0111] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0112] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A control method for a sub-degree-of-freedom robotic arm, characterized in that, Includes the following steps: Obtain the target pose, which includes the target position and the target orientation; The target pose is dimensionality-reduced path planning is performed based on the extended kinematics model to obtain the first joint trajectory. The extended kinematics model is a kinematic model in which virtual joints are inserted between the physical joints of the under-degree-of-freedom manipulator. The range of motion of the virtual joints is zero. The dimensionality-reduced path planning is a path planning performed in a solution mode that only constrains the position of the end effector. The first joint trajectory includes the angles of the controllable joints of the under-degree-of-freedom manipulator, the virtual joints, and the uncontrollable joints. The first joint trajectory is post-processed to obtain the second joint trajectory. The post-processing includes removing the angles of the virtual joints and the uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints transmitted by the parallel linkage mechanism in the first joint trajectory. The target angle of each controllable joint is determined based on the joint responsibility separation strategy, wherein the joint responsibility separation strategy is as follows: each controllable joint is divided into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint, and the target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. The target angles of each controllable joint are sent to the motion controller of the under-degree-of-freedom robotic arm to control the end effector of the under-degree-of-freedom robotic arm to move toward the target pose.
2. The under-degree-of-freedom robotic arm control method according to claim 1, characterized in that, Before performing dimensionality reduction path planning on the target pose based on the extended kinematics model, the method further includes: Load the extended kinematics model and configure the kinematics solver to the solution mode that only constrains the end effector position; In the extended kinematics model, the virtual joint is set between two adjacent physical joints of the under-degree-of-freedom manipulator, and the upper and lower limits of the joint limit of the virtual joint are both zero; the solution mode that only constrains the position of the end effector is to reduce the position constraints and attitude constraints of the inverse kinematics solution to a solution mode of position constraints.
3. The under-degree-of-freedom robotic arm control method according to claim 1, characterized in that, The step of performing dimensionality reduction path planning on the target pose based on the extended kinematics model to obtain the first joint trajectory includes: Starting from the current pose of the end effector and ending from the target pose, path interpolation is performed in Cartesian space according to a preset interpolation step size to obtain multiple path points. Perform position-only inverse kinematics solution on each of the path points to obtain the joint angles corresponding to each path point; If the proportion of successfully solved path points to the plurality of path points is greater than or equal to a preset proportion threshold, the first joint trajectory is obtained according to the joint angle corresponding to each path point.
4. The under-degree-of-freedom robotic arm control method according to claim 1, characterized in that, The target joint is the wrist pitch joint of the under-degree-of-freedom robotic arm. The drive actuator of the wrist pitch joint is located on the arm upstream of the wrist pitch joint and transmits the driving force to the wrist pitch joint through the parallel linkage mechanism. The kinematic decoupling transformation of the angle of the target joint transmitted via the parallel linkage mechanism in the first joint trajectory includes: The geometric angles of the target joint are kinematically decoupled and transformed according to the first transformation formula to obtain the actuator angles of the target joint. The first transformation formula is: θ4_actuator=θ2+θ3-θ4_geometric-C_offset; Wherein, θ4_actuator is the actuator angle of the target joint, θ4_geometric is the geometric angle of the target joint in the first joint trajectory, θ2 is the angle of the upper arm joint in the first joint trajectory, θ3 is the angle of the forearm joint in the first joint trajectory, and C_offset is a fixed offset constant determined according to the installation geometry of the parallel linkage mechanism.
5. The under-degree-of-freedom robotic arm control method according to claim 1, characterized in that, The target angle of the controllable joint in the attitude compensation group is determined based on the attitude deviation between the current attitude of the end effector and the target attitude, including: Obtain the current transformation matrix of the coordinate system of the end effector relative to the base coordinate system of the under-degree-of-freedom manipulator, and determine the current posture based on the current transformation matrix; Construct a target attitude rotation matrix based on the target attitude, and determine each Euler angle component of the attitude deviation based on the current transformation matrix and the target attitude rotation matrix. Each Euler angle component includes at least a pitch component and a roll component. The pitch component is superimposed on the current angle of the wrist pitch joint to obtain the target angle of the wrist pitch joint; and the roll component is superimposed on the current angle of the wrist roll joint to obtain the target angle of the wrist roll joint.
6. The under-degree-of-freedom robotic arm control method according to any one of claims 1 to 5, characterized in that, After sending the target angles of each controllable joint to the motion controller of the under-degree-of-freedom robotic arm, the method further includes: Using the pose of the end effector after its movement as the new current pose, the steps of performing dimensionality reduction path planning on the target pose based on the extended kinematics model are repeated until the step of sending the target angles of each controllable joint to the motion controller of the under-degree-of-freedom manipulator is executed again, until the pose deviation meets the preset convergence condition or the number of iterations reaches the preset threshold.
7. A robot, characterized in that, The device includes a robot body, a robotic arm mounted on the robot body, and a controller, wherein the robotic arm is a low-degree-of-freedom robotic arm, and the controller is used to run the method described in any one of claims 1 to 6.
8. A control device for a sub-degree-of-freedom robotic arm, characterized in that, include: The pose acquisition module is used to acquire the target pose, which includes the target position and the target orientation. The path planning module is used to perform dimensionality reduction path planning on the target pose based on an extended kinematic model to obtain a first joint trajectory. The extended kinematic model is a kinematic model in which virtual joints are inserted between the physical joints of the under-degree-of-freedom manipulator. The range of motion of the virtual joints is zero. The dimensionality reduction path planning is a path planning performed in a solution mode that only constrains the position of the end effector. The first joint trajectory includes the angles of the controllable joints of the under-degree-of-freedom manipulator, the virtual joints, and the uncontrollable joints. The trajectory post-processing module is used to perform trajectory post-processing on the first joint trajectory to obtain the second joint trajectory. The trajectory post-processing includes: removing the angles of the virtual joints and the uncontrollable joints in the first joint trajectory, and performing kinematic decoupling transformation on the angles of the target joints transmitted by the parallel linkage mechanism in the first joint trajectory. The target angle determination module is used to determine the target angle of each controllable joint based on a joint responsibility separation strategy. The joint responsibility separation strategy is as follows: each controllable joint is divided into a position control group and an attitude compensation group. The target angle of the controllable joint in the position control group is determined according to the trajectory of the second joint. The target angle of the controllable joint in the attitude compensation group is determined according to the attitude deviation between the current attitude of the end effector and the target attitude. The control module is used to send the target angle of each controllable joint to the motion controller of the under-degree-of-freedom manipulator to control the end effector of the under-degree-of-freedom manipulator to move toward the target pose.
9. An electronic device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the under-degree-of-freedom robotic arm control method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the under-degree-of-freedom robotic arm control method as described in any one of claims 1-7.
