Cooperative control system, method and computer program product based on a robot arm and a step-in mechanism
The coordinated control system of the robotic arm and the stepping insertion mechanism achieves high precision and compliance in precision insertion tasks, solving the problem of balancing axial accuracy and lateral rigidity in the insertion process in existing technologies, reducing system costs and improving the adaptability and reliability of the equipment.
Patent Information
- Application Number
- CN202611608193.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-16
- Publication Date
- 2026-11-20
AI Technical Summary
In precision insertion and connector assembly tasks, existing technologies lack coordinated control between the robotic arm and the end effector, making it difficult to balance axial accuracy and lateral rigidity during insertion. Furthermore, the systems are costly, lack flexibility, and are ill-suited for applications requiring large workspaces and multi-task switching.
A collaborative control system based on a robotic arm and a stepping insertion mechanism is adopted. Through a two-stage control logic of pre-insertion and insertion stages, the motion trajectory of the robotic arm is generated by polynomial interpolation. Combined with the Jacobi pseudo-inverse correction method and contact feature judgment, the robotic arm posture is maintained and the axial precision feed of the stepping insertion mechanism is achieved. It has online anomaly detection and adaptive correction capabilities.
It improves the accuracy of insertion direction and lateral stability, reduces system hardware costs and debugging difficulty, adapts to workpiece tolerances and insertion disturbances, and enhances equipment reliability and automation level.
Smart Images

Figure CN123129189A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robotic arm control technology, specifically to a collaborative control system, method, and computer program product based on a robotic arm and a stepping insertion mechanism. Background Technology
[0002] In industrial applications such as precision insertion, connector assembly, pin and socket insertion, charging gun connection, pipe fitting docking, and press-fit pre-assembly, actuators must possess both a wide spatial positioning capability and high-resolution, low-impact, and recoverable precision feeding capability along the insertion direction. Especially in automatic charging and connector assembly tasks, the insertion action requires the end effector to reach the target position and then steadily advance in a single direction, with the ability to adjust and recover online in case of slight misalignment, orifice interference, or mating obstruction.
[0003] In existing technologies, this type of operation typically employs three types of solutions: The first type of solution involves the robotic arm directly performing linear propulsion at the end effector, completing all displacement in the insertion direction through the robotic arm itself. This solution has a simple mechanism, but the insertion action requires multiple joints to work together to achieve precise propulsion of the end effector along a single axis. When multiple joints participate in insertion simultaneously, joint errors, reducer clearances, load deformation, control cycle errors, and attitude drift will be superimposed on the insertion direction, making it difficult to simultaneously achieve axial accuracy, lateral rigidity, and compliant response during the insertion process. When minor misalignment or slight interference occurs during insertion, the multi-joint series system is prone to lateral force amplification, joint torque accumulation, and end effector trajectory deviation, leading to jamming, wear, or even damage.
[0004] The second approach involves adding a pneumatic push rod, electric lead screw, or servo linear module to the end effector of the robotic arm as the insertion actuator. This approach can improve the accuracy of insertion direction control, but existing control strategies typically use the robotic arm and end effector in simple series connection, i.e., the robotic arm is positioned first, and then the end effector propels it, or the two are synchronized in a fixed sequence. This method lacks coordinated control; the robotic arm fails to make fine-tuning adjustments to its posture based on the contact state during the insertion phase, and the end effector feed mechanism fails to dynamically adjust its speed and propulsion strategy based on the residual error of the robotic arm. When workpiece tolerances, posture residuals, assembly disturbances, or external interference exist, the insertion process is still prone to skewing and jamming.
[0005] The third type of solution involves using a dedicated, high-rigidity insertion device to complete alignment and advancement independently. This type of device offers high insertion accuracy, but typically has a fixed stroke, poor adaptability, insufficient flexibility, and high system cost, making it difficult to adapt to application scenarios requiring large workspaces and multi-task switching.
[0006] In addition, existing compliant insertion solutions typically require the configuration of a six-dimensional force sensor, servo driver, high-precision vision positioning system, and complex real-time controller, which significantly increases system hardware costs, debugging costs, and maintenance difficulty. For small and medium-sized assembly equipment, automatic charging equipment, or engineering scenarios that require large-scale deployment, the cost-effectiveness is relatively low. Summary of the Invention
[0007] The purpose of this invention is to address the shortcomings of existing technologies by providing a collaborative control system based on a robotic arm and a stepping insertion mechanism, comprising: The pre-insertion stage control module is used to generate the motion trajectory of each joint of the robotic arm based on the pre-insertion pose of the robotic arm end effector using polynomial interpolation, and to control the robotic arm end effector to move to the pre-insertion pose based on the motion trajectory. The insertion phase control module is used to employ the Jacobi pseudo-inverse correction method to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the pre-insertion allowable error range. It controls the stepping insertion mechanism to insert into the target hole. During insertion, the contact characteristics at the end effector of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, corresponding correction actions are performed to restore it to the normal insertion state. In the normal insertion state, when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter a stable range, the insertion is complete.
[0008] Furthermore, in the pre-insertion stage control module, the robotic arm end effector is in the pre-insertion pose. It is expressed as follows: In the formula, For the target aperture pose, For the pre-interpolation distance, The insertion axis is the unit vector in the direction of the insertion axis; In the formula, This is the minimum safe distance between the stepping insertion mechanism and the target aperture. This is the compensation distance for positioning errors. This is for redundant distances.
[0009] Furthermore, in the pre-insertion stage control module, the specific method for generating the motion trajectory of each joint of the robotic arm using polynomial interpolation based on the pre-insertion pose of the robotic arm end effector is as follows: In the formula, For a moment robotic arm The target angle position of joint number 1. For constant terms, , , , and These are the first, second, third, fourth, and fifth fitting coefficients of the fifth-order polynomial. , , , , and The specific method for obtaining it is as follows: Solving the pre-insertion pose using inverse kinematics of a robotic arm The corresponding target joint angle is determined using the following method: Joint angle vector composed of the real-time angles of all joints of the robotic arm. As the initial value for the iteration, let the first... The joint angle vector for the next iteration is , In the formula, For the first During the nth iteration The angle of joint number 1 is updated using the following formula: For matrix transpose: In the formula, For the first The joint angle vector of the next iteration. In the first The joint angle vector for the next iteration is The pseudo-inverse of the Jacobian matrix, For the first The joint angle vector for the next iteration is The corresponding end effector pose of the robotic arm; Will Decomposed into the first The joint angle vector for the next iteration is Corresponding end effector position and robotic arm end effector posture , Decomposed into the pre-insertion position of the robotic arm end effector and the pre-insertion posture of the robotic arm end effector The position error of the robotic arm end effector during the pre-insertion phase and robotic arm end-effector posture error They are respectively: , for L2 norm Euclidean distance, , Represents the trace of a matrix. Let represent the transpose of the matrix, and let the threshold for the end effector position error of the robotic arm be . The robotic arm end-effector attitude error threshold is ,when and When the inverse kinematics converges, the joint angle vectors obtained after convergence are determined. For pre-insertion pose The corresponding target joint angle vector, according to Get the first The end angle position of joint number 1 ; , , , , and The calculation is obtained by substituting the starting angle position of the joint, the ending angle position of the joint corresponding to the pre-insertion pose, and the total time for the robotic arm to move from the initial position to the pre-insertion pose into the above polynomial.
[0010] Furthermore, in the insertion stage control module, the Jacobi pseudo-inverse correction method is used to control the error of the robotic arm end effector's position and orientation in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose to remain within the allowable error range of the pre-insertion. The specific method is as follows: time Compensation vector of robotic arm joints for: In the formula, Let be the equivalent Jacobian inverse mapping of the robotic arm at its current position. To correct the gain matrix, For a moment The position and attitude error of the end effector of the articulated robotic arm in the lateral plane perpendicular to the insertion axis; Update the joint angles of the robotic arm: , For a moment The next moment of the robotic arm The target angle position of joint number 1. for The Middle The compensation amount of the No. 1 joint; Time The error of the robotic arm's position and orientation in the lateral plane perpendicular to the insertion axis at its end relative to the pre-insertion pose. Decomposed into time intervals The robotic arm end effector and the pre-insertion pose Error in the lateral plane position perpendicular to the insertion axis ,time The robotic arm end effector and the pre-insertion pose attitude error , , , , ,and In the formula, This is the position error threshold. This is the attitude error threshold.
[0011] Furthermore, in the insertion stage control module, the specific method for determining whether the insertion state is normal or abnormal during the insertion process based on the contact characteristics of the end of the stepping insertion mechanism is as follows: The contact feature is either actual contact force or virtual contact force. If the contact feature is actual contact force, the criteria for determining the insertion state are as follows: Normal insertion state: ,and , For a moment The actual axial contact force fed back by the contact force sensor. This is the upper limit threshold for the lateral plane position and attitude error; Abnormal insertion states include slight skew, edge interference, jamming, and overload danger, specifically: Slightly skewed state: and continue One control cycle; Edge interference state: and continue One control cycle; Stuck state: and continue One control cycle; Overload danger condition: Or the current exceeds the hardware protection threshold or is triggered by the mechanical limit; This is the upper limit of the contact feature in the normal insertion state. The contact feature warning threshold is the threshold value for skewed insertion. The contact force threshold for determining jamming. The contact feature threshold represents the hardware security limit.
[0012] Furthermore, the virtual contact force is constructed as follows: set up: For the stepping insertion mechanism at time The current; This is the reference current for the stepper insertion mechanism under no-load or normal low-load insertion conditions. For robotic arm joints At any moment The current; For robotic arm joints Reference current vector in the non-contact state; For the stepping insertion mechanism at time The actual speed; For the stepping insertion mechanism at time Target speed; For the stepping insertion mechanism at time The actual displacement; For the stepping insertion mechanism at time The target displacement; Define the following normalized features: In the formula, For the stepping insertion mechanism at time The normalized deviation index of the stepper motor current. The threshold for the allowable variation of the current in the stepping insertion mechanism; In the formula, For robotic arm joints At any moment The normalized deviation index of mechanical joint current. For joint module joints The threshold for allowable variation in current; In the formula, For the stepping insertion mechanism at time The feed rate normalization tracking residual index, This is the speed tracking error threshold; In the formula, For the stepping insertion mechanism at time The axial displacement normalized tracking residual index This is the position tracking error threshold; In the formula, For the stepping insertion mechanism at time The lateral position and attitude combined normalized deviation index and These are the lateral error threshold and the attitude error threshold, respectively. Based on the above characteristics, the axial virtual contact force for: In the formula, These are the weighting coefficients for the abnormal step current, abnormal joint current, velocity residual, and pose deviation, respectively. When the contact feature uses virtual contact force, the criteria for determining the insertion state are as follows: Normal insertion state: ,and , , and These are the lateral error threshold and the attitude error threshold, respectively. Slightly skewed state: ,and , , and continue One control cycle, The lower limit threshold for deviation determination. The position residual threshold, The velocity residual threshold; Edge interference state: Or a general current anomaly occurs and simultaneously meets the following conditions: and and continue One control cycle; Stuck state: ,or and and continue One control cycle; Overload danger condition: This could be due to a hardware overcurrent fault or a mechanical limit switch triggering. The general criteria for judging abnormal current are: ,or and continue One control cycle; the hardware overcurrent fault criterion is: or , The current protection threshold for the stepper insertion mechanism. For robotic arm joints The current protection threshold.
[0013] Furthermore, in the insertion stage control module, if the insertion state is an abnormal insertion state, the specific method for performing corresponding corrective actions to restore it to a normal insertion state is as follows: In a slightly skewed state, , Stepping insertion mechanism of Acceleration reduction, through Jacobi pseudo-inverse Calculation time Compensation vector of robotic arm joints : Update the joint angles of the robotic arm: The robot arm is subjected to attitude correction. If, after attitude correction, the change in the contact feature is less than the contact feature correction change threshold, the robot arm is controlled to perform perturbation-guided correction in a transverse plane perpendicular to the insertion axis. If, after perturbation-guided correction, the change in the contact feature is less than the contact feature correction change threshold, the robot arm enters an abnormal recovery state. ; In the state of edge interference, Pause axial advance and retreat a certain distance. , , The retraction proportional gain coefficient is then used, followed by a constant propulsion speed. Re-launch, If, after re-advancing, the change in the contact feature is less than the contact feature correction change threshold, the robotic arm is controlled to perform perturbation-guided correction in a transverse plane perpendicular to the insertion axis; if, after performing perturbation-guided correction on the robotic arm, the change in the contact feature is less than the contact feature correction change threshold, then the system enters an abnormal recovery state. If stuck, immediately stop the stepping motion and enter the abnormal recovery state; In case of overload danger, immediately stop all movement in the dangerous direction, maintain or lock the current posture, trigger an alarm and enter a safe termination state, and no longer automatically perform perturbation search or continue insertion.
[0014] Furthermore, upon entering the abnormal recovery state, the stepping insertion mechanism retracts and retryes: it stops advancing and retracts to a preset safe distance, restoring the robotic arm's end effector to the pre-insertion pose. The insertion phase control module controls the stepping insertion mechanism to advance again; if the number of backtracking retries exceeds the preset maximum number of backtracking retries, it enters a safe termination state; After entering the safe termination state, the stepping insertion mechanism stops moving, the robotic arm maintains its current posture, and waits for manual reset.
[0015] A collaborative control method based on a robotic arm and a stepping insertion mechanism includes: Based on the pre-insertion pose of the robotic arm end effector, polynomial interpolation is used to generate the motion trajectory of each joint of the robotic arm, and the robotic arm end effector is controlled to move to the pre-insertion pose based on the motion trajectory. The Jacobi pseudo-inverse correction method is used to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the allowable error range of the pre-insertion. The stepping insertion mechanism is controlled to insert into the target hole. During the insertion process, the contact characteristics of the end effector of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, the corresponding correction action is executed to restore it to the normal insertion state. In the normal insertion state, the insertion is completed when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter the stable range.
[0016] A computer program product includes a computer program / instructions that, when executed by a processor, implement the aforementioned collaborative control method based on a robotic arm and a stepping insertion mechanism.
[0017] The beneficial effects of this invention are as follows: 1. This invention decouples the large-range spatial positioning function of the multi-joint module from the axial precision feeding function of the stepping insertion mechanism at the degree of freedom level, so that the feeding in the insertion direction no longer depends on the multi-joint linkage. This fundamentally avoids the superposition of joint errors, reducer clearance, load deformation and attitude drift in the insertion direction, reduces kinematic coupling error, and improves axial insertion accuracy and lateral rigidity.
[0018] 2. This invention establishes a two-stage collaborative control logic for the pre-insertion stage and the insertion stage, and switches the corresponding comprehensive optimization objectives at different stages. The pre-insertion stage prioritizes positioning speed and smoothness to ensure rapid and accurate positioning, while the insertion stage prioritizes axial accuracy, lateral force suppression, and smooth propulsion, thus achieving low-impact, high-precision, and smooth axial insertion.
[0019] 3. In the insertion stage, the present invention divides responsibilities, with the multi-joint module undertaking attitude locking and micro-amplitude lateral correction based on Jacobi pseudo-inverse, and the stepping insertion mechanism undertaking single-degree-of-freedom axial advancement along the insertion axis. The two perform their respective duties and cooperate with each other, which effectively improves the insertion direction accuracy and lateral stability, and avoids lateral force amplification, joint torque accumulation and end trajectory deviation in the multi-joint serial system during the insertion process.
[0020] 4. By introducing a multi-source feedback closed loop based on actual or virtual contact force, and combining multi-dimensional features such as step current, joint current, velocity residual, displacement residual and pose deviation, this invention can identify insertion states such as normal insertion, slight deviation, edge interference, jamming and overload danger online. It can also perform adaptive correction and recovery actions such as deceleration correction, perturbation guidance and backtracking retry for different abnormal states, thereby improving the compliance and robustness of the insertion process.
[0021] 5. This invention constructs virtual contact force based on motor current, speed fluctuations, and displacement residuals. Without the need for expensive six-dimensional force sensors, it can still achieve contact state perception, compliant control, and anomaly protection, significantly reducing system hardware costs, debugging costs, and maintenance difficulty. This is conducive to large-scale deployment in small and medium-sized assembly equipment and automatic charging equipment.
[0022] 6. By setting up anomaly detection, safety rollback, graded retry, and safety termination mechanisms, this invention constructs a hierarchical fault handling logic from minor anomaly local correction to severe anomaly safe termination. This improves the system's adaptability to workpiece tolerances, minor misalignment, and insertion disturbances, effectively reduces jamming faults and manual intervention, and enhances equipment operational reliability and automation level.
[0023] 7. This invention combines the large-stroke spatial positioning capability of multi-joint modules with the high-precision micro-stroke insertion capability of stepping insertion mechanisms, and has good versatility for multi-joint modules with different degrees of freedom such as 4 joints, 5 joints, and 6 joints. It is suitable for automatic charging, connector assembly, pin and socket, pipe fitting docking and other precision insertion scenarios, and has strong engineering implementation value and application prospects. Attached Figure Description
[0024] Figure 1 This is a system block diagram of the present invention.
[0025] Figure 2 This diagram illustrates the decoupling and collaborative control of the inserted task degrees of freedom.
[0026] Figure 3 This is a flowchart of the phased collaborative control process for the state machine.
[0027] Figure 4 This is a schematic diagram of a hardware structure used in this invention. Figure 4 The reference numerals in the accompanying drawings are explained as follows: 1-First joint, 2-Second joint, 3-Third joint, 4-Fourth joint, 5-Fifth joint, 6-Stepping insertion mechanism. Detailed Implementation
[0028] To make the technical problems, technical solutions, and beneficial effects to be solved by this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and are not intended to limit the scope of this application.
[0029] Example 1 Existing technologies have multiple defects and shortcomings in precision insertion and assembly operations. On the one hand, if the axial insertion is directly completed by a robotic arm, multiple joints need to share the displacement in the insertion direction. This not only results in severe kinematic coupling, which easily introduces end-effector trajectory errors and attitude drift, but also causes the joint modules to continuously bear axial and lateral combined loads throughout the insertion process, easily leading to torque accumulation, insufficient end-effector rigidity, and reduced insertion accuracy. On the other hand, most robotic arms and end-effector insertion mechanisms only use sequential control or simple synchronous control methods, lacking a control mechanism that dynamically allocates weights and provides collaborative compensation based on real-time errors and contact states. When faced with workpiece tolerances, slight misalignment, orifice offset, or contact interference, these issues become more problematic. Furthermore, the lack of a robust online correction, smooth advancement, and automatic recovery strategy makes the system highly susceptible to jamming and requires manual intervention. Conventional smooth insertion solutions often require six-dimensional force sensors, high-precision vision systems, and high-performance servo equipment, significantly increasing the overall system complexity and maintenance costs. In addition, the large-stroke spatial positioning and high-precision micro-stroke insertion actions are handled by the same execution link, making it impossible for the system to balance positioning speed, insertion accuracy, and equipment cost. Moreover, the abnormal detection and graded fault handling mechanisms of the entire equipment are inadequate, and minor contact abnormalities can easily escalate into severe jamming or operation interruption, significantly reducing the reliability of equipment operation and the level of automation.
[0030] To address the above problems, this invention proposes a collaborative control system based on a robotic arm and a stepping insertion mechanism. It adopts an overall architecture that decouples the spatial positioning degree of freedom from the axial feed degree of freedom, and decomposes the insertion task into two sub-tasks: the robotic arm is responsible for large-scale spatial positioning, target posture establishment, and posture maintenance and micro-correction during the insertion process; the stepping insertion mechanism is responsible for high-resolution, controllable, and retractable single-degree-of-freedom feed along the insertion axis.
[0031] In this invention, the hardware includes a robotic arm and a stepping insertion mechanism, such as... Figure 4 As shown, the robotic arm includes, but is not limited to, multi-joint modules with 4, 5, 6 joints or other combinations of degrees of freedom, such as... Figure 4 The first joint 1, second joint 2, third joint 3, fourth joint 4, and fifth joint 5 in the robot arm only need to have their spatial positioning and attitude fine-tuning control relationships re-established based on their forward and inverse kinematic models and Jacobian matrices to be suitable for this system. This allows for large-scale positioning of the target workstation, end-effector attitude establishment, and attitude maintenance and fine-amplitude correction during the insertion phase. The stepping insertion mechanism is installed at the end of the robot arm, such as... Figure 4 The stepping insertion mechanism 6 is used to complete the single-degree-of-freedom linear feed in the insertion axis direction. The stepping insertion mechanism includes a closed-loop stepper motor, a transmission lead screw or linear module, a guide mechanism, and an execution end mounting base.
[0032] A collaborative control system based on a robotic arm and a stepping insertion mechanism, such as Figure 1 As shown, it includes: The pre-insertion stage control module is used to generate the motion trajectory of each joint of the robotic arm based on the pre-insertion pose of the robotic arm end effector using polynomial interpolation, and to control the robotic arm end effector to move to the pre-insertion pose based on the motion trajectory. The insertion phase control module is used to employ the Jacobi pseudo-inverse correction method to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the pre-insertion allowable error range. It controls the stepping insertion mechanism to insert into the target hole. During insertion, the contact characteristics at the end effector of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, corresponding correction actions are performed to restore it to the normal insertion state. In the normal insertion state, when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter a stable range, the insertion is complete.
[0033] First, the insertion task is decoupled at the degree of freedom level.
[0034] Let the total control variable for the insertion task be... for: In the formula, This indicates the control parameters of the robotic arm. This indicates the axial feed control amount of the stepper insertion mechanism.
[0035] Set time Task error It can be decomposed into: In the formula, For a moment The error in the position and orientation of the robotic arm's end effector in the lateral plane perpendicular to the insertion axis relative to the pre-insertion pose, i.e., the time... The actual lateral plane position and actual orientation of the robotic arm's end effector, perpendicular to the insertion axis, relative to the pre-insertion pose. The deviation, the horizontal plane position perpendicular to the insertion axis direction refers to the plane perpendicular to the insertion axis (z-axis, i.e., the vertical axis), that is, the plane formed by the x-axis (horizontal axis) and the y-axis (vertical axis); For a moment The axial depth error of the stepping insertion mechanism along the insertion axis refers to the deviation between the current insertion depth and the target insertion depth.
[0036] like Figure 2 As shown, the division of labor principles are as follows: The robotic arm is responsible for The compensation includes spatial positioning, attitude adjustment, and micro-attitude correction during insertion. Stepping insertion mechanism responsible The compensation, namely, high-precision advance and retraction along the insertion axis; During the insertion phase, if the contact status indicates a slight misalignment or incomplete orifice alignment, the robotic arm performs low-amplitude compliant corrections, and the stepping insertion mechanism performs low-speed exploratory advancement. When the abnormality is significant, the stepping advancement of the stepping insertion mechanism is stopped, and it is then determined whether the robotic arm needs to perform attitude corrections or exit completely.
[0037] By decoupling as described above, the long-stroke positioning capability of the robotic arm and the high-resolution axial feed capability of the stepping insertion mechanism are separated, so that the insertion direction control no longer depends on multi-joint linkage, thereby reducing insertion coupling error from the root.
[0038] The cooperative control logic is driven by a state machine, and the state set is... for: In the formula, For initialization state, For pre-insertion trajectory planning state, For pre-insertion execution state, To insert trajectory planning state, To insert the execution state, To successfully complete the process, This is an abnormal recovery state. The system is in a safe termination state. The phased collaborative control process of state machines is as follows: Figure 3 As shown, the state transition relationship is: In the formula, for The contact characteristics between the end of the stepping insertion mechanism and the workpiece orifice, wherein the contact characteristics are actual contact force or virtual contact force; for Current characteristics of the robotic arm joints or stepping insertion mechanism at each stage; This represents the current insertion depth of the stepping insertion mechanism or the advance distance of the robotic arm.
[0039] To describe the collaborative relationship between the robotic arm and the stepping insertion mechanism at different stages, the hierarchical optimization objective is used as the optimization criterion for control at each stage.
[0040] In the pre-insertion phase (including the pre-insertion trajectory planning state) Pre-insertion execution state The target value is comprehensively optimized using the pre-insertion stage. Optimize target bias positioning speed and smoothness, avoid vibration and impact, and ensure rapid and accurate arrival at the pre-insertion pose: In the formula, For a moment The comprehensive optimization objective value in the pre-insertion stage For a moment Robotic arm joint angular velocity vector For a moment Robotic arm joint angular acceleration vector , and These are the weights for lateral plane position and attitude error, joint velocity, and joint acceleration during the pre-insertion phase, respectively. For a moment The square of the Euclidean norm of the lateral plane position and attitude error perpendicular to the insertion axis is used to amplify the constraint effect of large errors during the pre-insertion stage to ensure accurate end-effector positioning. For a moment The square of the Euclidean norm of the joint velocity of the robotic arm is used to constrain the joint movement speed and avoid excessive speed and movement jitter. For a moment The square of the Euclidean norm of the joint acceleration of the robotic arm is used in the pre-insertion stage to suppress abrupt acceleration changes, eliminate mechanical shocks and vibrations, and ensure smooth motion.
[0041] During the insertion phase (including the insertion trajectory planning state) Insert execution status The target value is optimized by using the insertion phase. Optimize the target bias axial accuracy, lateral force suppression, and propulsion stability, prioritizing axial insertion accuracy, suppressing lateral load, reducing contact resistance, maintaining stable feed, and preventing jamming and skewness. In the formula, For a moment The overall optimization objective value during the insertion phase , , and These are, respectively, the axial depth error weight, the transverse plane position and attitude error weight during the insertion stage, the contact feature weight, and the feed rate weight; For a moment The square of the target insertion depth of the stepping insertion mechanism is used to ensure the accuracy of the insertion depth during the insertion phase. During the insertion phase, it is used to continuously correct the attitude and suppress lateral skew forces; For a moment The square of the contact feature at the end of the stepping insertion mechanism is used to significantly suppress abnormal contact forces during the insertion phase, avoiding hard contact, jamming, and structural wear. The actual contact force or virtual contact force is obtained through a contact force sensor or a virtual contact force sensing method, respectively. For a moment The square of the feed rate of the stepping insertion mechanism is used to constrain the stability of the insertion rate during the insertion phase, preventing sudden changes in speed from causing impacts and misalignment.
[0042] Phased control is achieved by switching optimization objectives under different states. A state machine is used to determine the current task phase and select the corresponding phase control objective based on the current state. Where, Complete parameter initialization; Based on the target pre-insertion pose, at time Comprehensive optimization target value in the pre-insertion stage Generate smooth motion trajectories for multiple joints; The multi-joint trajectory is tracked through position closed-loop, and continues with... As a criterion for evaluating positioning accuracy and smoothness; Based on the target insertion depth, at time... Integrated optimization target value during the insertion phase Generate the feed trajectory of the stepper mechanism; Continue with Real-time adjustment of the control parameters of the robotic arm and the stepping insertion mechanism; Perform a completion check; Perform abnormal rollback and recovery; Perform a safe termination.
[0043] As a specific implementation, the pre-insertion pose of the robotic arm end effector in the pre-insertion stage control module is represented as follows: Before the task starts, it first enters the initialization state. The following parameters are pre-configured: geometric and kinematic parameters of the robotic arm; joint position control parameters of the robotic arm; feed speed, acceleration, maximum stroke, and retraction parameters of the stepping insertion mechanism; insertion target pose, pre-insertion pose, and insertion depth; attitude error threshold, lateral error threshold, and axial propulsion threshold; force control threshold, current threshold, and jamming judgment threshold; number of search retries and safe termination conditions.
[0044] Let the target aperture pose be The pre-insertion pose is The pre-insertion pose is the waiting pose of the robotic arm's end effector before formal insertion. The pre-insertion pose is located at a safe distance from the target pose at the orifice along the opposite direction of the insertion axis, satisfying the following: In the formula, The pre-interpolation distance is the distance from the given distance. arrive Axial safety clearance, This is the unit vector in the direction of the insertion axis.
[0045] Pre-interpolation distance The setting is determined based on a comprehensive consideration of the end structure dimensions, positioning error, insertion stroke, and safety margin, and is set according to the following formula: In the formula, This is the minimum safe distance between the stepping insertion mechanism and the target aperture. The compensation distance for positioning errors (including visual positioning, robotic arm positioning, and tooling positioning). This is the redundant distance used for deceleration, pose fine-tuning, and backoff retry in case of anomalies. , This represents the maximum visual positioning error. This represents the maximum positioning error of the robotic arm. This represents the maximum positioning error of the tooling. , To allow for a redundancy distance for deceleration, To allow for redundant distance for pose fine-tuning, This is to reserve redundant distance for rollback and retry in case of anomalies.
[0046] satisfy and In the formula, To maximize the estimated positioning error, This represents the maximum effective insertion stroke of the stepper insertion mechanism.
[0047] For example, in an automatic charging and plugging scenario, if the visual positioning error is approximately 2-5mm, the robotic arm's repeatability error is approximately 1-3mm, and the pre-plugging distance... Set to 20~50mm; pre-intercalation distance in connector assembly or small pin / socket scenarios. Set to 5~20mm; pre-insertion distance is recommended for scenarios involving large-size charging guns or significant parking errors. Expand to 50~100mm.
[0048] As a specific implementation method, the pre-insertion stage control module uses polynomial interpolation to generate the motion trajectory of each joint of the robotic arm based on the pre-insertion pose of the robotic arm's end effector as follows: After completing the initial configuration, enter the pre-insertion trajectory planning state. The robotic arm is responsible for moving the insertion actuator to the pre-insertion position, while the stepping insertion mechanism remains in the retracted or zero position.
[0049] This embodiment uses a fifth-order polynomial. In other embodiments, a seventh-order polynomial or a higher-order polynomial can also be used, as long as the continuity requirements of the joint trajectory in position, velocity, and acceleration are met. The formula for the fifth-order polynomial is as follows: In the formula, For a moment robotic arm The target angle position of joint number 1. For constant terms, , , , and These are the first, second, third, fourth, and fifth fitting coefficients of the fifth-order polynomial, respectively. , , , , and The specific method for obtaining it is as follows: First, based on the target pose of the orifice and pre-interpolation distance Calculate the pre-insertion pose Then, the inverse kinematics of the robotic arm is used to solve the pre-insertion pose. The corresponding target joint angle is determined using the following method: Joint angle vector composed of the real-time angles of all joints of the robotic arm. As the initial value for the iteration, let the first... The joint angle vector for the next iteration is , In the formula, For the first During the nth iteration The angle of joint number is updated using the following formula: In the formula, For the first The joint angle vector of the next iteration. In the first The joint angle vector for the next iteration is The pseudo-inverse of the Jacobian matrix, For the first The joint angle vector for the next iteration is The corresponding end effector pose of the robotic arm; Will Decomposed into the first The joint angle vector for the next iteration is Corresponding end effector position and robotic arm end effector posture , Decomposed into the pre-insertion position of the robotic arm end effector and the pre-insertion posture of the robotic arm end effector The position error of the robotic arm end effector during the pre-insertion phase and robotic arm end-effector posture error They are respectively: , for L2 norm Euclidean distance, , Represents the trace of a matrix. Let represent the transpose of the matrix, and let the threshold for the end effector position error of the robotic arm be . The robotic arm end-effector attitude error threshold is ,when and When, determine if the inverse kinematics converges (e.g. ≤0.1mm, ≤0.1°), at which point the converged joint angle vector is obtained. This is the pre-insertion pose. The corresponding target joint angle vector.
[0050] , , , , and The boundary conditions are jointly determined by the initial and target states of the joint. This is under the condition that the initial velocity, final velocity, initial acceleration, and final acceleration of the joint are all zero: , , For the first The starting angle position of joint number 1 Feedback is obtained through an encoder installed at the joint. For the first The end angle position of joint number 1 The endpoint time for joint angle adjustment; ; In the formula, For the first The speed of joint # For the first The acceleration of joint number 1, the first The end angle position of joint number 1 This refers to the pre-insertion pose obtained by solving the inverse kinematics of the robotic arm. The corresponding joint angle. The corresponding coefficient is: ; ; ; ; ; , This represents the total time it takes for the robotic arm to move from its initial position to the pre-insertion pose. Therefore, the fitting coefficients are not empirically specified values, but are calculated by substituting the starting angle position of the joint, the ending angle position of the joint corresponding to the pre-insertion pose, and the total time it takes for the robotic arm to move from its initial position to the pre-insertion pose into the above fifth-order polynomial.
[0051] In addition, by constraining the initial and final positions, velocities, and accelerations of the joints through boundary conditions, the joint trajectory is made continuous in terms of position, velocity, and acceleration, thereby reducing mechanical vibration and contact impact.
[0052] The pre-insertion phase ends when the robot arm's end-effector pose enters the allowable pre-insertion error range: [Time value would be inserted here]. The error of the position and orientation of the articulated robotic arm end effector in the lateral plane perpendicular to the insertion axis relative to the pre-insertion pose. Decomposed into time intervals The robotic arm end effector and the pre-insertion pose Error in the lateral plane position perpendicular to the insertion axis ,time The robotic arm end effector and the pre-insertion pose attitude error , ,and In the formula, This is the position error threshold. This is the attitude error threshold.
[0053] After trajectory planning is completed, it enters the pre-insertion execution state. The robotic arm operates in a closed-loop position mode, responsible for tracking the pre-insertion trajectory; the stepping insertion mechanism remains on standby and does not participate in feeding. At this time, it can read the force sensor feedforward signal, joint current, and the stepping status of the robotic arm end effector to determine whether premature contact or external interference has occurred.
[0054] time robotic arm Angular position error of joint number for: In the formula, For a moment robotic arm The actual angular position of joint number 1.
[0055] The control law for each joint adopts a position closed-loop form: For a moment The control output of each joint of the robotic arm is used to drive the joint movement and eliminate angular position errors. ; The angle position proportional gain coefficient (fixed calibration parameter) is used to eliminate static position error. The larger the error, the stronger the output control force, allowing the joint to quickly return to the target position. The differential gain coefficient for angular position (fixed calibration parameter) is used to suppress motion jitter, overshoot and vibration, predict the trend of error change, and decelerate and buffer in advance. for robotic arm Rate of change of the angular position error of joint number 1.
[0056] When the end effector has reached the pre-insertion pose and the error meets the requirements, the state machine switches from the pre-insertion stage to the insertion stage; this switch does not require the robotic arm to be completely stationary and can be smoothly switched when the end effector speed drops to within the allowable range.
[0057] After switching to the insertion phase, the system first enters the insertion trajectory planning state. The axial feed during the insertion phase is undertaken by the stepping insertion mechanism. To ensure smooth propulsion, a trapezoidal velocity curve is used to plan the displacement of the stepping insertion mechanism.
[0058] Let the total insertion depth be Maximum feed rate is acceleration is The target displacement of the stepping insertion mechanism along the insertion direction is Its speed planning is divided into three parts: acceleration, constant speed, and deceleration. Stepping insertion mechanism feed rate It is a trapezoidal curve, a uniformly accelerated curve. If the total insertion depth... Sufficient to reach maximum speed, let the acceleration or deceleration period be... The displacement traveled during the acceleration phase or the displacement traveled during the deceleration phase is The duration of the uniform speed segment is The total feed time of the stepper insertion mechanism is ,but , , , .time Stepping insertion mechanism feed rate ) means: when hour, ;when hour, ;when hour, The corresponding target displacement is: when hour, ;when hour, ;when hour, ;like Then, a triangular velocity curve is used, and its peak velocity is... for: .
[0059] As a specific implementation method, the insertion stage control module employs the Jacobi pseudo-inverse correction method to control the error of the robotic arm end-effector's position and orientation in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose to remain within the allowable pre-insertion error range. The specific method is as follows: After the insertion trajectory planning is completed, the insertion execution state is entered. At this point, the robotic arm switches from position-driven mode to attitude locking and compliant fine-tuning mode; the stepping insertion mechanism switches from standby mode to axial feed-driven mode.
[0060] (1) The robotic arm mainly maintains the position and posture of the end lateral plane and performs small compensation based on contact feedback.
[0061] Set time The error of the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis relative to the pre-insertion pose. for: In the formula, For a moment The x-axis direction (lateral) error in the horizontal plane. For a moment Error in the y-axis direction (longitudinal direction) of the horizontal plane. For a moment Attitude angle error around the x-axis (roll angle error) For a moment Attitude angle error around the y-axis (pitch angle error) For a moment Attitude angle error around the z-axis (yaw angle error) This is the transpose symbol.
[0062] Then time The compensation vector of the robotic arm joint is for: In the formula, Let be the equivalent Jacobian inverse mapping of the robotic arm at its current position. The matrix is a 5×5 diagonal compliance correction gain matrix. The diagonal elements correspond to the independent correction gain terms for each error dimension, while the off-diagonal elements are set to 0. Then, the joint angles of the robotic arm are updated. , for The Middle The compensation amount of joint number 1.
[0063] Compensation vector of robotic arm joints It is a tiny quantity used for lateral plane position and attitude correction, rather than for performing large-stroke propulsion.
[0064] As a specific implementation method, in the insertion stage control module, the insertion state is determined to be either a normal insertion state or an abnormal insertion state by the contact characteristics of the end of the stepping insertion mechanism during the insertion process. The specific method is as follows: The stepping insertion mechanism is responsible for axial advancement, and its control depends on both position planning and the contact characteristics. During insertion, the stepping insertion mechanism acquires the actual contact force through a contact force sensor or a virtual contact force sensing method to obtain the contact characteristics in real time. The actual and virtual contact forces have the same unit. The virtual contact force is calculated using other characteristics without the contact force sensor, and its value approximates the actual contact force.
[0065] Set time Axial depth error of the stepping insertion mechanism along the insertion axis for: In the formula, For a moment The target insertion depth of the stepping insertion mechanism For a moment The actual insertion depth of the stepping insertion mechanism.
[0066] If actual contact force is used, the control law for the stepping insertion mechanism is as follows: In the formula, For a moment The control output of the stepper insertion mechanism For axial position proportional gain, For a moment The actual axial contact force fed back by the contact force sensor. , according to and Determine the specific value. ; The insertion state is classified into the following types: Normal insertion state: ,and , This is the upper limit threshold for the lateral plane position and attitude error; Abnormal insertion states include slight skew, edge interference, jamming, and overload danger, specifically: Slightly skewed state: and continue One control cycle; Edge interference state: and continue One control cycle; Stuck state: and continue One control cycle (e.g., 3 to 5 cycles); Overload danger condition: The current exceeds the hardware protection threshold, or the mechanical limit is triggered. Mechanical limit switching employs two determination methods: hardware limit and software limit. The hardware limit criterion is: the mechanical limit switch, photoelectric switch, or driver limit input signal changes from an untriggered state to a triggered state. The software limit criterion is: when the stepping insertion mechanism's target displacement along the insertion direction... Reaching the upper limit of displacement or lower limit of displacement Nearby preset margin If the control command still points in the limit direction, it is determined to be a software limit trigger, that is: and ,or and .
[0067] This is the upper limit of the contact feature in the normal insertion state. The contact feature warning threshold is the threshold value for skewed insertion. The contact force threshold for determining jamming. The contact feature threshold represents the hardware security limit. , , , The calibration was obtained through normal insertion test, skew contact test, jamming test, and hardware limit test. .
[0068] If virtual contact force is used, the control law for the stepping insertion mechanism is as follows: Virtual contact force sensing constructs the contact characteristics based on motor current, speed fluctuations, and displacement residuals, without relying on a contact force sensor.
[0069] set up: For the stepping insertion mechanism at time The current; This is the reference current for the stepper insertion mechanism under no-load or normal low-load insertion conditions. For robotic arm joints At any moment The current; For robotic arm joints Reference current vector in the non-contact state; For the stepping insertion mechanism at time The actual speed; For the stepping insertion mechanism at time Target speed; For the stepping insertion mechanism at time The actual displacement; For the stepping insertion mechanism at time The target displacement; and These are the lateral position error and attitude error perpendicular to the axis of the stepping insertion mechanism during the insertion process, respectively. , , .
[0070] Define the following normalized features: abnormal step current: In the formula, For the stepping insertion mechanism at time The normalized deviation index of the stepper motor current. This represents the threshold for the allowable variation in current of the stepping insertion mechanism. Anomalies in the stepping current are used to characterize whether the axial insertion resistance increases.
[0071] Joint current abnormality: In the formula, For robotic arm joints At any moment The normalized deviation index of mechanical joint current. For joint module joints The allowable variation threshold of the current. Joint current anomalies are used to characterize whether the robotic arm is subjected to abnormal lateral forces or posture interference.
[0072] Velocity residual term: In the formula, For the stepping insertion mechanism at time The feed rate normalization tracking residual index, This is the speed tracking error threshold (i.e., the maximum allowable speed deviation). If the stepper insertion mechanism issues a propulsion command but the actual speed drops significantly, it indicates the presence of resistance or a jamming tendency.
[0073] Location residual term: In the formula, For the stepping insertion mechanism at time The axial displacement normalized tracking residual index This is the position tracking error threshold. If the target displacement continues to increase while the actual displacement does not, it indicates that the insertion process is blocked.
[0074] Positional deviation term In the formula, For the stepping insertion mechanism at time The lateral position and attitude combined normalized deviation index and These are the lateral error threshold and the attitude error threshold, respectively. The pose deviation term is used to reflect whether there is a tendency for skewed insertion.
[0075] Based on the above characteristics, the axial virtual contact force Defined as: In the formula, These are the weighting coefficients for the step current anomaly term, the joint current anomaly term, the velocity residual term, and the pose deviation term, respectively, and they satisfy the following: These weights can be obtained through experimental calibration. For example, in systems where axial jamming is more likely to manifest as abnormal step current and position residuals, the weights can be increased. , In systems where lateral skew is more easily manifested as changes in joint current, it can improve... , .
[0076] The control law for the stepper insertion mechanism is: according to , Based on the rate of change, lateral error, and attitude error, the inserted state is classified into the following types: Normal insertion state: , , , and These are the lateral error threshold and the attitude error threshold, respectively.
[0077] Slightly skewed state: , ,and , , and continue One control cycle, The lower limit threshold for deviation judgment (used to determine the lower limit of perceptible deviation, for example, a value of 0.2 to 0.5). The position residual threshold, For example, the velocity residual threshold. , , and continue The formula specifies a control cycle, where 0.7 and 0.5 are example values and can be adjusted according to the actual equipment calibration.
[0078] Edge interference state: Or a general current anomaly occurs and simultaneously meets the following conditions: and and continue One control cycle; Stuck state: ,or and and continue One control cycle; Overload danger condition: This could be due to a hardware overcurrent fault or a mechanical limit switch triggering.
[0079] Current anomalies are divided into general current anomalies and hardware overcurrent anomalies. The criteria for judging general current anomalies are as follows: or and continue One control cycle; hardware overcurrent anomaly specifically manifests as: or , The current protection threshold for the stepper insertion mechanism. For robotic arm joints The current protection threshold. Mechanical limit switches employ both hardware and software limit judgment methods. The hardware limit judgment criterion is: the limit input signal of the mechanical limit switch, photoelectric switch, or driver changes from an untriggered state to a triggered state. The software limit judgment criterion is: when the stepping insertion mechanism moves along the target displacement in the insertion direction... Reaching the upper limit of displacement or lower limit of displacement Nearby preset margin If the control command still points in the limit direction, it is determined to be a software limit trigger, that is: and ,or and .
[0080] As a specific implementation, in the insertion stage control module, if the insertion state is a normal insertion state, the stepping insertion mechanism is controlled to insert along the insertion axis at a preset speed; if the insertion state is an abnormal insertion state, a corresponding correction action is performed to restore it to a normal insertion state. The specific method is as follows: Different states correspond to different real-time adjustment actions: In normal insertion state, The stepping insertion mechanism is based on time. Stepping insertion mechanism feed rate Advance; In a slightly skewed state, , Stepping insertion mechanism of Acceleration reduction, through Jacobi pseudo-inverse Calculation time Compensation vector of robotic arm joints : Update the joint angles of the robotic arm: The robot arm is subjected to minor posture corrections. If, after minor posture corrections, the contact characteristics (actual or virtual contact force) do not decrease (meaning the change in contact characteristics is less than the contact characteristic correction change threshold), the robot arm is controlled to perform perturbation-guided corrections in a transverse plane perpendicular to the insertion axis. If, after perturbation-guided corrections, the contact characteristics still do not decrease, the robot arm enters an abnormal recovery state. ; In the state of edge interference, Pause axial advance and retreat a certain distance. , , This is the backoff proportional gain coefficient (backoff gain, used to dynamically determine the backoff distance based on the magnitude of the position residual), followed by a constant advance speed. Re-launch, If, after re-advancing, the contact characteristics (actual or virtual contact force) still do not decrease, the robotic arm is controlled to perform perturbation-guided correction in a transverse plane perpendicular to the insertion axis. If, after performing perturbation-guided correction on the robotic arm, the contact characteristics still do not decrease, the system enters an abnormal recovery state. ; If stuck, immediately stop stepping and enter abnormal recovery state. ; In case of overload danger, immediately stop all movement in the dangerous direction, maintain or lock the current posture, trigger the alarm, and enter the safe termination state. It will no longer automatically perform perturbation search or continue insertion.
[0081] The specific method for perturbation search described above is as follows: Perform a preset small-amplitude fixed-point perturbation or small-range continuous scanning action, analyze the changing trend of the contact characteristics at different perturbation positions, and determine the actual offset direction of the orifice based on the increase or decrease law of the contact characteristics (actual contact force or virtual contact force). The specific method is as follows: Let the contact characteristics be... , Actual contact force or virtual contact force Execute at the current location , , , Orientational perturbation, and continuous acquisition at each location. The contact characteristics of each control cycle are calculated. , , , The average values of the contact features in the directions are respectively , , , The contact feature gradient in the X-axis direction for: The contact feature gradient in the Y-axis direction for: , The lateral perturbation step size is... This represents the small displacement of the robotic arm's end effector in the X and Y horizontal planes during a single perturbation-guided search. The optimal correction displacement vector for the perturbation search is calculated. , , For the smallest positive constant (regularization coefficient, such as...) To prevent the denominator from being 0, a negative sign is required. This indicates the direction of the negative gradient, which is the direction of the fastest descent of the virtual force. If The contact feature in the direction is minimized, indicating that the direction Directional movement reduces contact resistance, therefore determining the orifice's location... Direction. To avoid noise-induced misjudgment, only when the difference between the contact feature in the minimum contact feature direction and the contact feature in other directions is greater than a preset minimum contact feature difference. Only when the minimum contact feature direction is met is the correction direction adopted; otherwise, the number of samplings is increased or the propulsion speed is reduced before re-searching. The optimal correction displacement vector is searched based on the perturbation. Generate the lateral correction amount at the end of the robotic arm. , , To correct the scaling factor for gradient descent, the lateral position error is updated as follows: , This is the original lateral position error vector between the end point and the orifice before the current correction action was performed. To complete this fine-tuning, the updated lateral error is obtained. As the input deviation for the next control cycle, construct the Cartesian correction vector at the end of the robotic arm. , , This represents the distance the robotic arm's end effector needs to translate in the X direction. Let be the distance the robotic arm's end effector needs to translate in the Y direction. This is the angular correction amount for the rotation of the robotic arm's end effector around the X-axis (roll angle). This is the angle correction amount for the robotic arm's end effector rotating (pitch angle) around the Y-axis. The angular correction for the end effector's rotation (yaw angle) around the Z-axis is generated via the Jacobian pseudo-inverse generation time of the robotic arm. Perturbation correction vector of robotic arm joint , Update the joint angles of the robotic arm: , for The Middle The compensation amount for joint #1. It should be noted that if the perturbation only includes ±x and ±y directions, only the lateral position error can be directly updated; the attitude error is still obtained from visual pose, joint kinematics estimation, or actual torque information. If it is necessary to estimate the attitude deviation simultaneously through a search, the compensation amount for joint #2 should be further increased. , Small-angle attitude perturbations are performed, and the contact feature gradient in the corresponding direction is calculated using the same method.
[0082] As a specific implementation method, in the insertion stage control module, when the stepping insertion mechanism reaches the set insertion depth and the contact feature enters the stable range during normal insertion, the insertion is completed. The specific method is as follows: When the stepping insertion mechanism reaches the set insertion depth and the contact characteristics (actual contact force or virtual contact force) enter a stable range, the task is considered successful and the system enters a successful completion state. Specifically: Let the current insertion depth be... The target insertion depth is The depth criterion is: , Let the depth difference threshold be ; let the contact feature interval be . Then the contact feature The criterion for entering the stable region is: And continue for several control cycles.
[0083] As a specific implementation method, the anomaly recovery state employs a two-layer detection logic: first, single-item anomaly detection, then comprehensive anomaly determination. When any of the following conditions are detected, or the comprehensive anomaly evaluation value... Reaching the abnormal threshold At that time, it enters an abnormal recovery state. : (1) If a propulsion command has been issued but the actual displacement does not increase, the following method can be used to determine the cause: In length Within the sliding time window, the stepping insertion mechanism at time... Target speed satisfy: , This is the lower limit of the advancing speed of the stepping insertion mechanism, and the stepping insertion mechanism at time... Target displacement increment satisfy: , Let be the lower limit of the displacement increment of the stepping insertion mechanism, and let be the stepping insertion mechanism at time . actual displacement increment satisfy: If so, it is determined that a propulsion command has been issued but the actual displacement does not increase; Alternatively, when using virtual contact force, the stepping insertion mechanism at any time... Axial displacement normalized tracking residual index satisfy: And the stepping insertion mechanism at time Feed rate normalized tracking residual index satisfy: and continue If a control cycle is not completed, it is determined that a propulsion command has been issued but the actual displacement does not increase.
[0084] (2) The lateral plane position and attitude correction does not converge. The judgment method is as follows: Let the first The overall pose error after the second correction for: If M consecutive corrections satisfy: , For the first The overall pose error after each correction, i.e., the percentage decrease in error after each correction is less than the minimum convergence ratio. If so, it is determined that the lateral plane position and attitude correction has not converged; or when using virtual contact force, , and The first The virtual contact force after the second correction and the first The virtual contact force after the second correction indicates that the virtual contact force has not been effectively reduced, and it is also determined that the lateral plane position and attitude correction has not converged.
[0085] For example, setting The error rate is 5%~10%, and M is 2~3 times. If there is no real-time visual pose data during the insertion process, the end-effector pose can be calculated using the joint feedback of the robotic arm, and the correction effect can be judged by combining the joint current, step current and virtual contact force characteristics.
[0086] Let the anomaly criterion be: In the formula, This represents the number of rollback retries that have been performed. , and These are the contact force weighting coefficient, the robotic arm pose error weight, and the weight of the number of times the backtracking retry has been performed.
[0087] When a single abnormal condition is met, the abnormal protection action is triggered directly; when there is no single abnormal condition and the condition is met... When the abnormality protection action is triggered, the abnormality protection action includes: immediately stopping the stepping advance; the stepping insertion mechanism retracting to a safe distance; and the robotic arm maintaining its posture or retracting to the pre-insertion position.
[0088] Let the preset maximum number of rollback retries be . ,like At that time, from abnormal recovery state Enter safe termination state .
[0089] Entering safe termination state The rear stepping insertion mechanism stops moving, the robotic arm maintains or locks its current posture, automatic correction, retraction, and re-insertion are prohibited, and an alarm is triggered. After the abnormality is manually resolved and a reset is performed, the state machine returns to the safe termination state. Return to initialization state .
[0090] This embodiment applies the collaborative control method to the scenario of automatic charging gun insertion in vehicles. The hardware consists of a 5-joint module robotic arm, a stepping insertion mechanism, a camera, a status acquisition unit, and a main control unit. It should be noted that the 5-joint module is only one implementation method; if a 4-joint, 6-joint, or other multi-joint robotic arm is used, the same degree-of-freedom decoupling control method can also be applied.
[0091] (1) Calculation of target pose and pre-insertion pose After the vehicle comes to a complete stop, the vision system identifies the pose of the charging port. Let the identified target port pose be: In the formula, These are the x, y, and y coordinates of the target orifice, respectively. These are the yaw angle, pitch angle, and roll angle of the target aperture, respectively. set up: , , Then the pre-insertion distance for: Therefore, the pre-insertion pose is: This position indicates that the gun head is stopped 40mm directly in front of the charging port, which avoids premature collision and ensures that the stepping insertion mechanism has enough stroke to complete the insertion.
[0092] (2) Pre-insertion trajectory planning Joint angle vector composed of the real-time angles of all joints of the robotic arm. As the initial value for iteration: The inverse joint angles corresponding to the pre-insertion pose are: A fifth-order polynomial trajectory is used for each joint: And satisfy the boundary conditions: , , , , , This method generates smooth joint trajectories, allowing the end effector of the robotic arm to move to the vicinity of the pre-insertion pose.
[0093] When the following conditions are met: and Furthermore, when the end-effector speed is lower than the allowable switching speed, the system switches from the pre-insertion state to the insertion state.
[0094] (3) Switching of responsibilities during the insertion phase Once the insertion phase begins, the robotic arm no longer performs large axial advances, but instead focuses on attitude locking and lateral fine-tuning; the stepping insertion mechanism is responsible for advancing along the insertion axis.
[0095] Let the target insertion depth be... Maximum speed of the stepping insertion mechanism Let the low-speed exploration speed of the stepping insertion mechanism be... The stepping insertion mechanism advances according to a trapezoidal speed curve, and in the normal insertion state, it is driven by... Advance to .
[0096] (4) Calculation of virtual contact force characteristics At the current moment, the following signal is collected: the current of the stepper insertion mechanism. The reference current of the stepper insertion mechanism under no-load or normal low-load insertion conditions. The threshold for allowable variation in current of the stepping insertion mechanism The abnormal step current term is: If at the current moment, the target speed of the stepping insertion mechanism The actual speed of the stepping insertion mechanism Speed tracking error threshold Then the velocity residual term is: If at the current moment, the target displacement of the stepping insertion mechanism The actual displacement of the stepping insertion mechanism Position tracking error threshold Then the position residual term is: If the lateral error and attitude error are small, then the pose deviation term abnormal joint current items ; Let the weights be: ; The virtual contact feature is then: set up: If the current state is normal insertion, the stepping insertion mechanism continues to advance at the planned speed.
[0097] (5) Cooperative correction under slight skew conditions If at some later moment the calculation yields: And the lateral error is close to the threshold, for example: If the deviation is small, it is determined to be a slight skew state. The control strategy at this time is: The speed of the stepping insertion mechanism is determined by Reduce to Times, such as 2.5 The robot arm joint angles are updated via Jacobi pseudo-inverse to perform minor pose corrections, such as lateral corrections. This indicates that the robotic arm's control end effector makes a fine adjustment in the opposite direction of the deviation. If corrected Descending to The following steps restore the normal insertion state; if a single minor lateral correction is completed... Not dropped to The perturbation-guided search process is then initiated, with the horizontal perturbation amplitude set. Continuous sampling at each perturbation location In one control cycle, the robotic arm drives the stepping insertion mechanism to move along the horizontal plane respectively. , , , The direction is slightly perturbed; the state acquisition module collects current, velocity, and displacement data at each perturbation location and calculates the corresponding average value of the virtual contact characteristics; if the calculation result shows... Direction corresponding The smallest indicates that along Fine-tuning the direction helps reduce contact resistance, and the system generates a path accordingly. Lateral position correction command. After fine-tuning, the stepping insertion mechanism advances again at 1mm / s; if after advancing again... Descending to If the deviation persists after multiple perturbations, then the system will return to normal insertion.
[0098] (6) Backtracking and retrying for edge interference If at a certain moment occurs or If the jamming condition persists for three consecutive control cycles, it is determined to be in a stuck state. At this time, the system executes the following: immediately stop the end-effector stepping; the stepping insertion mechanism reverses and re-inserts at low speed. Let the safe retraction distance be... If the end of the robotic arm is in the pre-insertion pose attitude error After performing perturbation-guided correction, the calculated attitude fine-tuning amount is: After completing the retraction and attitude correction, the stepper insertion mechanism advances again at a lower speed. If the number of consecutive retries exceeds If the attempt fails again, the system will enter a safe termination state and issue an alarm.
[0099] (7) Successful insertion determination When the actual insertion depth of the stepping insertion mechanism meets the following requirements: For example Furthermore, the virtual contact characteristics remain stable within the normal range. If the insertion is successful, it is determined that the control cycle continues for several control cycles, such as 5 cycles.
[0100] The system then enters a hold state. After charging is complete, the stepping insertion mechanism smoothly pulls out in the reverse direction, and the robotic arm returns to its standby state along a preset trajectory.
[0101] Example 2 A collaborative control method based on a robotic arm and a stepping insertion mechanism includes: Based on the pre-insertion pose of the robotic arm end effector, polynomial interpolation is used to generate the motion trajectory of each joint of the robotic arm, and the robotic arm end effector is controlled to move to the pre-insertion pose based on the motion trajectory. The Jacobi pseudo-inverse correction method is used to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the allowable error range of the pre-insertion. The stepping insertion mechanism is controlled to insert into the target hole. During the insertion process, the contact characteristics of the end effector of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, the corresponding correction action is executed to restore it to the normal insertion state. In the normal insertion state, the insertion is completed when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter the stable range.
[0102] Example 3 A computer program product includes a computer program / instructions that, when executed by a processor, implement the collaborative control method based on a robotic arm and a stepping insertion mechanism as described in Embodiment 2.
[0103] The contents not described in detail in this specification are prior art known to those skilled in the art. Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0104] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0105] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0106] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit its scope of protection. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that after reading the present invention, they can still make various changes, modifications or equivalent substitutions to the specific implementation of the invention, but these changes, modifications or equivalent substitutions are all within the scope of protection of the pending claims of the invention.
Claims
1. A collaborative control system based on a robotic arm and a stepping insertion mechanism, characterized in that, include: The pre-insertion stage control module is used to generate the motion trajectory of each joint of the robotic arm based on the pre-insertion pose of the robotic arm end effector using polynomial interpolation, and to control the robotic arm end effector to move to the pre-insertion pose based on the motion trajectory. The insertion phase control module is used to employ the Jacobi pseudo-inverse correction method to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the pre-insertion allowable error range. It controls the stepping insertion mechanism to insert into the target hole. During insertion, the contact characteristics at the end of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, corresponding correction actions are performed to restore it to the normal insertion state. In the normal insertion state, when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter a stable range, the insertion is complete.
2. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 1, characterized in that, In the pre-insertion stage control module, the robotic arm end effector is positioned in the pre-insertion pose. It is expressed as follows: In the formula, For the target aperture pose, For the pre-interpolation distance, The insertion axis is the unit vector in the direction of the axis. In the formula, This is the minimum safe distance between the stepping insertion mechanism and the target aperture. This is the compensation distance for positioning errors. This is for redundant distances.
3. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 2, characterized in that, In the pre-insertion stage control module, the specific method for generating the motion trajectory of each joint of the robotic arm using polynomial interpolation based on the pre-insertion pose of the robotic arm's end effector is as follows: In the formula, For a moment robotic arm The target angle position of joint number 1. For constant terms, , , , and These are the first, second, third, fourth, and fifth fitting coefficients of the fifth-order polynomial. , , , , and The specific method for obtaining it is as follows: Solving the pre-insertion pose using inverse kinematics of a robotic arm The corresponding target joint angle is determined using the following method: Joint angle vector composed of the real-time angles of all joints of the robotic arm. As the initial value for the iteration, let the first... The joint angle vector for the next iteration is , In the formula, For the first During the nth iteration The angle of joint number 1 is updated using the following formula: For matrix transpose: In the formula, For the first The joint angle vector of the next iteration. In the first The joint angle vector for the next iteration is The pseudo-inverse of the Jacobian matrix, For the first The joint angle vector for the next iteration is The corresponding end effector pose of the robotic arm; Will Decomposed into the first The joint angle vector for the next iteration is Corresponding end effector position and robotic arm end effector posture , Decomposed into the pre-insertion position of the robotic arm end effector and the pre-insertion posture of the robotic arm end effector The position error of the robotic arm end effector during the pre-insertion phase and robotic arm end-effector posture error They are respectively: , for L2 norm Euclidean distance, , Represents the trace of a matrix. Let represent the transpose of the matrix, and let the threshold for the end effector position error of the robotic arm be . The attitude error threshold of the robotic arm end effector is ,when and When the inverse kinematics converges, the joint angle vectors obtained after convergence are determined. For pre-insertion pose The corresponding target joint angle vector, according to Get the first The end angle position of joint number 1 ; , , , , and The calculation is obtained by substituting the starting angle position of the joint, the ending angle position of the joint corresponding to the pre-insertion pose, and the total time for the robotic arm to move from the initial position to the pre-insertion pose into the above polynomial.
4. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 3, characterized in that, In the insertion phase control module, the Jacobi pseudo-inverse correction method is used to control the error of the robotic arm end effector's position and orientation in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose to remain within the allowable error range of the pre-insertion. The specific method is as follows: time Compensation vector of robotic arm joints for: In the formula, This is the equivalent Jacobian inverse mapping of the robotic arm at its current position. To correct the gain matrix, For a moment The position and orientation error of the end effector of the articulated robotic arm in the lateral plane perpendicular to the insertion axis; Update the joint angles of the robotic arm: , For a moment The next moment of the robotic arm The target angle position of joint number 1. for The Middle The compensation amount of the joint; Time The error of the robotic arm's position and orientation in the lateral plane perpendicular to the insertion axis at its end relative to the pre-insertion pose. Decomposed into time intervals The robotic arm end effector and the pre-insertion pose Error in the lateral plane position perpendicular to the insertion axis ,time The robotic arm end effector and the pre-insertion pose attitude error , , , , ,and In the formula, This is the position error threshold. This is the attitude error threshold.
5. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 4, characterized in that, In the insertion stage control module, the specific method for determining whether the insertion state is normal or abnormal based on the contact characteristics at the end of the stepping insertion mechanism during the insertion process is as follows: The contact feature is either actual contact force or virtual contact force. If the contact feature is actual contact force, the criteria for determining the insertion state are as follows: Normal insertion state: ,and , For a moment The actual axial contact force fed back by the contact force sensor. This is the upper limit threshold for the lateral plane position and attitude error; Abnormal insertion states include slight skew, edge interference, jamming, and overload danger, specifically: Slightly skewed state: and continue One control cycle; Edge interference state: and continue One control cycle; Stuck state: and continue One control cycle; Overload danger condition: Or the current exceeds the hardware protection threshold or is triggered by the mechanical limit; This is the upper limit of the contact feature in the normal insertion state. The contact feature warning threshold is the threshold value for skewed insertion. The contact force threshold for determining jamming. The contact feature threshold represents the hardware security limit.
6. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 5, characterized in that, The virtual contact force is constructed as follows: set up: For the stepping insertion mechanism at time The current; This is the reference current for the stepper insertion mechanism under no-load or normal low-load insertion conditions. For robotic arm joints At any moment The current; For robotic arm joints Reference current vector in the non-contact state; For the stepping insertion mechanism at time The actual speed; For the stepping insertion mechanism at time Target speed; For the stepping insertion mechanism at time The actual displacement; For the stepping insertion mechanism at time The target displacement; Define the following normalized features: In the formula, For the stepping insertion mechanism at time The normalized deviation index of the stepper motor current. The threshold for the allowable variation of the current in the stepping insertion mechanism; In the formula, For robotic arm joints At any moment The normalized deviation index of mechanical joint current. For joint module joints The threshold for allowable variation in current; In the formula, For the stepping insertion mechanism at time The feed rate normalization tracking residual index This is the speed tracking error threshold; In the formula, For the stepping insertion mechanism at time The axial displacement normalized tracking residual index This is the position tracking error threshold; In the formula, For the stepping insertion mechanism at time The lateral position and attitude combined normalized deviation index and These are the lateral error threshold and the attitude error threshold, respectively. Based on the above characteristics, the axial virtual contact force for: In the formula, These are the weighting coefficients for the abnormal step current, abnormal joint current, velocity residual, and pose deviation, respectively. When the contact feature uses virtual contact force, the criteria for determining the insertion state are as follows: Normal insertion state: ,and , , and These are the lateral error threshold and the attitude error threshold, respectively. Slightly skewed state: ,and , , and continue One control cycle, The lower limit threshold for deviation determination. The position residual threshold, The velocity residual threshold; Edge interference state: Or a general current anomaly occurs and simultaneously meets the following conditions: and and continue One control cycle; Stuck state: or and and continue One control cycle; Overload danger condition: This could be due to a hardware overcurrent fault or a mechanical limit switch triggering. The general criteria for judging abnormal current are: ,or and continue One control cycle; the hardware overcurrent fault criterion is: or , The current protection threshold for the stepper insertion mechanism. For robotic arm joints The current protection threshold.
7. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 6, characterized in that, In the insertion stage control module, if the insertion state is an abnormal insertion state, the specific method for performing corresponding correction actions to restore it to a normal insertion state is as follows: In a slightly skewed state, , Stepping insertion mechanism of Acceleration reduction, through Jacobi pseudo-inverse Calculation time Compensation vector of robotic arm joints : Update the joint angles of the robotic arm: The robot arm is subjected to attitude correction. If, after attitude correction, the change in the contact feature is less than the contact feature correction change threshold, the robot arm is controlled to perform perturbation-guided correction in a transverse plane perpendicular to the insertion axis. If, after perturbation-guided correction, the change in the contact feature is less than the contact feature correction change threshold, the robot arm enters an abnormal recovery state. ; In the state of edge interference, Pause axial advance and retreat a distance. , , The retraction proportional gain coefficient is then used, followed by a constant propulsion speed. Re-launch, ; If, after re-advancing, the change in the contact feature is less than the contact feature correction change threshold, the robotic arm is controlled to perform perturbation-guided correction in a transverse plane perpendicular to the insertion axis; if, after performing perturbation-guided correction on the robotic arm, the change in the contact feature is less than the contact feature correction change threshold, then the system enters an abnormal recovery state. If stuck, immediately stop the stepping motion and enter the abnormal recovery state; In case of overload danger, immediately stop all movement in the dangerous direction, maintain or lock the current posture, trigger an alarm and enter a safe termination state, and no longer automatically perform perturbation search or continue insertion.
8. The collaborative control system based on a robotic arm and a stepping insertion mechanism according to claim 7, characterized in that, After entering the abnormal recovery state, the stepping insertion mechanism retracts and retryes: it stops advancing and retracts to a preset safe distance, restoring the robotic arm's end effector to the pre-insertion pose. The insertion phase control module controls the stepping insertion mechanism to advance again; if the number of backtracking retries exceeds the preset maximum number of backtracking retries, it enters a safe termination state; After entering the safe termination state, the stepping insertion mechanism stops moving, the robotic arm maintains its current posture, and waits for manual reset.
9. A collaborative control method based on a robotic arm and a stepping insertion mechanism, characterized in that, include: Based on the pre-insertion pose of the robotic arm end effector, polynomial interpolation is used to generate the motion trajectory of each joint of the robotic arm, and the robotic arm end effector is controlled to move to the pre-insertion pose based on the motion trajectory. The Jacobi pseudo-inverse correction method is used to control the position and orientation of the robotic arm end effector in the lateral plane perpendicular to the insertion axis direction relative to the pre-insertion pose, keeping the error within the allowable error range of the pre-insertion. The stepping insertion mechanism is controlled to insert into the target hole. During the insertion process, the contact characteristics of the end effector of the stepping insertion mechanism determine whether the insertion state is normal or abnormal. If the insertion state is normal, the stepping insertion mechanism is controlled to insert along the insertion axis direction at a preset speed. If the insertion state is abnormal, the corresponding correction action is executed to restore it to the normal insertion state. In the normal insertion state, the insertion is completed when the stepping insertion mechanism reaches the set insertion depth and the contact characteristics enter the stable range.
10. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the collaborative control method based on the robotic arm and stepping insertion mechanism as described in claim 9.
