A method for controlling a profiling gripper robot adapted to additive manufacturing equipment
By collecting and calculating feedback information from micro motors in real time, and combining dynamic gain correction and feedforward compensation torque, high-precision and safe clamping of complex surface topological features is achieved. This solves the problem that it is difficult to balance positioning accuracy and force safety limits in traditional clamping control methods, and enables stable clamping under multi-source resistance disturbances.
Patent Information
- Application Number
- CN202611685585.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing clamping control methods struggle to balance absolute positioning accuracy and force safety limits when dealing with complex and varied surface topological features. This can easily lead to scratches on the part surface or slippage due to insufficient force. Furthermore, traditional control strategies lack dynamic gain adjustment logic for position and force errors, making it difficult to accurately quantify and maintain the safest boundary of closed-loop contour clamping under multi-source resistance disturbances.
By acquiring the target rotation angle and preset gripping force of the output flange, the feedback speed of the micro motor and the feedback gripping force output by the tactile sensor are collected in real time. The error of the rotation angle and gripping force is calculated and compensated, and position-force coordinated adjustment is performed. Combined with dynamic gain correction and feedforward compensation torque, the target speed and output control torque of the micro motor are generated to achieve closed-loop contour clamping.
It improves the absolute accuracy of contour clamping and the safety limit against clamping damage, effectively suppresses destructive overshoot at the moment of contact, and ensures accurate quantification and steady-state maintenance of the closed-loop contour clamping boundary under multi-source nonlinear resistance disturbance.
Smart Images

Figure CN123169145A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robotic arm control technology, specifically to a control method for a contour-following gripper robotic arm adapted to additive manufacturing equipment. Background Technology
[0002] As high-end manufacturing technologies become increasingly complex and precise, the automated gripping and non-destructive transfer of irregularly shaped and fragile components face severe challenges. These parts often possess irregular curved surfaces and extremely fragile local structures, placing extremely high demands on the gripping stability and compliance of robotic arms. However, in the highly integrated transmission systems of micro-robotic arms, limited by physical size, the reduction mechanism inevitably suffers from nonlinear disturbances such as gear meshing backlash and frictional damping. Traditional single-position control is prone to causing damage upon contact with objects, while simple force control struggles to achieve precise spatial trajectory tracking. When faced with complex and varied surface topological features, existing technologies cannot simultaneously guarantee absolute positioning accuracy and force safety limits, easily leading to surface scratches or slippage due to insufficient force, failing to meet the reliable gripping requirements of modern precision manufacturing.
[0003] Existing gripping control methods typically place sensors at the joints and end effectors to assess the gripping state by collecting displacement and stress data. However, these methods often rely on linearly superimposing the position and force closed loops as two independent discrete systems, or employing fixed impedance control logic. At the underlying drive level, current technologies generally directly convert position deviations into the target drive speed of the motor, without fully considering the commutation backlash caused by the inherent backlash of the transmission gear train. When processing sensor data, the system often separates spatial kinematic parameters from end-effector contact dynamic parameters, focusing on applying rigid constraints to absolute thresholds in a single physical dimension. This results in coupling interference between force and position adjustments, lacking a deep parameter coupling correction mechanism.
[0004] In actual clamping, there is a complex nonlinear time-varying coupling between the end contact force and the spatial position. The simple addition of independent parameters cannot accurately reflect the underlying mechanical anomalies during clamping. However, existing control strategies lack dynamic gain adjustment logic for position and force errors, making it difficult to decouple the interference relationship between the manipulator's posture approach and the surge in part stress. When the system is subjected to strong disturbances, especially low-frequency strong disturbances or when the steady-state accuracy requirements of the system are very high, it is prone to significant physical hysteresis. In addition, the high reduction ratio of the mechanism brings huge rotational inertia and time-varying loads, making traditional pure time-delay feedback regulation prone to destructive overshoot at the moment of contact, making it difficult to accurately quantify and maintain the safest boundary of closed-loop contour clamping under multi-source resistance disturbances.
[0005] The information disclosed in the background section is only intended to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0006] The purpose of this invention is to provide a control method for a contour-following gripper adapted to additive manufacturing equipment, so as to solve the problems mentioned in the background art.
[0007] To achieve the above objectives, the present invention provides the following technical solution: A method for controlling a contour-following gripper adapted to additive manufacturing equipment, comprising the following steps: Step 1: Obtain the target rotation angle of the output flange, the preset gripping force, and the dynamic parameters of the robotic arm system, and collect the feedback speed of the micro motor, the feedback rotation angle of the output flange, and the feedback gripping force output by the tactile sensor in real time. Step 2: Extract the running direction of the micro motor, and determine the mechanical transmission backlash direction and numerically compensate the feedback angle based on the running direction. Calculate the compensation angle, extract the position error based on the deviation between the target angle and the compensation angle, and extract the gripping force error based on the deviation between the preset gripping force and the feedback gripping force. Step 3: Using position error and gripping force error as input parameters, perform position-force coordinated adjustment: Calculate the force closed-loop PID correction coefficient based on the gripping force error, and use the force closed-loop PID correction coefficient to multiply and couple the position closed-loop PID adjustment amount generated based on the position error to perform dynamic gain correction and generate the target speed of the micro motor. Step 4: Calculate the speed error between the target speed and the feedback speed, input the speed error into the speed closed-loop controller to generate the basic adjustment torque, convert the feedback grab force into the end load torque, and construct the feedforward compensation torque in combination with the dynamic parameters. Add the basic adjustment torque and the feedforward compensation torque to calculate the output control torque of the micro motor. Step 5: Output a real-time drive signal to the micro motor according to the output control torque to drive the transmission mechanism of the robotic arm system to complete the closed-loop contour clamping operation of the additive manufacturing part.
[0008] Furthermore, the dynamic parameters include the equivalent rotational inertia of a single finger joint of the robotic hand and the damping coefficient of the hybrid gear train; Obtain the structural transmission parameters of the robotic arm system, including the lever arm from the fingertip gripping point to the rotation center of the output flange, the total transmission ratio of the hybrid gear train, and the total transmission efficiency of the hybrid gear train. Obtain the mechanical transmission backlash compensation value, which is obtained by pre-calibrating the meshing clearance of gears in the hybrid gear train; Obtain multi-loop coordinated control adjustment parameters, which include position closed-loop PID parameters, force closed-loop PID parameters, and velocity closed-loop PID parameters.
[0009] Furthermore, the specific calculation steps for the compensation angle are as follows: Determine the positive and negative polarities of the feedback speed of the micro motor, extract the unit polarity coefficient value corresponding to the direction of the feedback speed, and construct the transmission hysteresis direction polarity term; The mechanical transmission backlash compensation value is multiplied with the transmission backlash direction polarity term to construct a dynamic numerical compensation term; The compensation angle is calculated by summing the feedback angle of the output flange with the dynamic numerical compensation term.
[0010] Furthermore, the specific steps for extracting position error and gripping force error are as follows: Perform a difference calculation between the target rotation angle and the compensation rotation angle, and calculate the spatial position deviation based on the target rotation angle, which is then extracted as the position error. The difference between the preset gripping force and the feedback gripping force is calculated, and the deviation of the end force is calculated based on the preset gripping force and extracted as the gripping force error.
[0011] Furthermore, the specific steps for generating the position closed-loop PID control are as follows: The position closed-loop PID parameters include position proportional coefficient, position integral coefficient, and position derivative coefficient; the force closed-loop PID parameters include force proportional coefficient, force integral coefficient, and force derivative coefficient. The position error is multiplied with the position proportional coefficient to construct the position proportional adjustment term, and then integrated with the position integral coefficient to construct the position integral adjustment term. Finally, the position differential coefficient is multiplied with the position differential coefficient to construct the position differential adjustment term. The position proportional control term, position integral control term, and position derivative control term are summed to generate the position closed-loop PID control quantity.
[0012] Furthermore, the specific steps for generating the target rotational speed are as follows: The grasping force error is multiplied with the force proportional coefficient to construct the force proportional feedback term, and then integrated and multiplied with the force integral coefficient to construct the force integral feedback term. Finally, the grasping force error is differentiated and multiplied with the force differential coefficient to construct the force differential feedback term. The force proportional feedback term, force integral feedback term, force differential feedback term, and numerical value are continuously summed to calculate the force closed-loop PID correction coefficient. The position closed-loop PID control quantity and the force closed-loop PID correction coefficient are multiplied and coupled to perform dynamic gain correction, thereby generating the target speed of the micro motor.
[0013] Furthermore, the specific steps for generating the basic regulating torque are as follows: The speed closed-loop PID parameters include the speed proportional coefficient, the speed integral coefficient, and the speed derivative coefficient; The difference between the target speed and the feedback speed is calculated, and the speed deviation is calculated based on the target speed. The speed error is extracted and multiplied with the speed proportional coefficient to construct the speed proportional adjustment term. The speed error is also multiplied with the speed integral coefficient to construct the speed integral adjustment term. Finally, the speed error is multiplied with the speed derivative coefficient to construct the speed derivative adjustment term. The basic adjustment torque is generated by summing the speed proportional adjustment term, speed integral adjustment term, and speed derivative adjustment term.
[0014] Furthermore, the specific calculation steps for the output control torque are as follows: The feedback gripping force is multiplied with the lever arm from the gripping point of the fingertip to the rotation center of the output flange to calculate the end load torque. The feedback speed is differentiated by time to obtain the motor angular acceleration. This motor angular acceleration is then multiplied with the equivalent rotational inertia of a single finger joint to construct the inertial drag feedforward term. The feedback speed is multiplied by the damping coefficient of the hybrid gear train to construct the friction damping feedforward term; The total transmission ratio and the total transmission efficiency of the hybrid gear train are multiplied to obtain the transmission attenuation factor, and the end load torque is divided by the transmission attenuation factor to construct the load compensation feedforward term. The feedforward torque is constructed by continuously summing the inertial drag feedforward term, the friction damping feedforward term, and the load compensation feedforward term. The output control torque of the micro motor is calculated by summing the basic adjustment torque and the feedforward compensation torque.
[0015] Furthermore, the specific steps for performing closed-loop contour clamping operation on additively manufactured parts are as follows: The output control torque is divided by the preset electromagnetic torque constant of the micro motor to perform electromechanical signal dimensionality reduction and transformation, and the target drive current is calculated. The target drive current is converted into a real-time drive signal and output to the power drive layer of the micro motor to drive the transmission mechanism and complete the closed-loop contour clamping operation of the additive manufacturing part.
[0016] Compared with the prior art, the beneficial effects of the present invention are: This invention performs polarity determination and numerical compensation on the feedback angle based on the extracted direction of rotation of the micro motor to obtain the compensation angle. After extracting the position error and gripping force error, it calculates the force closed-loop PID correction coefficient based on the gripping force error. This force closed-loop PID correction coefficient is then used to multiply and couple the position closed-loop PID adjustment amount generated based on the position error, performing dynamic gain correction to generate the target speed of the micro motor. This invention overcomes the defects of the separation of position and force closed loops or simple linear addition in control, which leads to response hysteresis. It transforms the force state into a correction factor and deeply couples it with the position adjustment, realizing full-speed positioning when there is no contact and smooth deceleration when the stress surges. It eliminates the deviation caused by gear reversal backlash and improves the absolute accuracy of contour clamping and the safety limit against clamping damage. This invention also generates a basic regulating torque by inputting the rotational speed error into the speed closed-loop controller. Combining the equivalent rotational inertia of a single finger joint with the damping coefficient of the hybrid gear train, a dynamic feedforward calculation is performed on the calculated end-load torque. This constructs a feedforward compensation torque including inertial resistance feedforward terms, friction damping feedforward terms, and load compensation feedforward terms. The two are then superimposed to calculate the output control torque. This mechanism allows the driving torque to pre-compensate the large rotational inertia and frictional losses caused by the large transmission ratio, rather than waiting for position lag before correction. By introducing multi-dimensional feedforward disturbance rejection logic, destructive overshoot generated at the moment of contact is effectively suppressed, transforming lag compensation into dynamic state prediction, achieving accurate quantification and steady-state maintenance of the closed-loop contour clamping boundary under multi-source nonlinear resistance disturbances. Attached Figure Description
[0017] Figure 1 This is a schematic diagram of the overall method flow of the present invention; Figure 2 The figure shows the coupled response of feedback gripping force and target rotation speed under position-force coordinated regulation. Detailed Implementation
[0018] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to specific embodiments.
[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0020] Example: Please see Figures 1-2 The present invention provides a technical solution: A method for controlling a contour-following gripper adapted to additive manufacturing equipment, comprising the following steps: Step 1: Obtain the target rotation angle of the output flange, the preset gripping force, and the dynamic parameters of the robotic arm system, and collect the feedback speed of the micro motor, the feedback rotation angle of the output flange, and the feedback gripping force output by the tactile sensor in real time.
[0021] In the clamping conditions of additively manufactured components, the components often possess extremely fragile interlaminar mechanical weak zones and irregular free-form surfaces. Simple geometric fit can easily lead to localized stress concentration, resulting in surface peeling or structural crushing. To accurately establish the absolute physical constraint boundary of contour clamping, this embodiment first obtains the target rotation angle and preset gripping force of the output flange. The target rotation angle defines the absolute spatial geometric endpoint of the robot arm approaching the component surface; while the preset gripping force defines the upper limit of the force that the component can withstand without structural damage. In this embodiment, the preset gripping force is obtained by pre-testing the interlaminar tensile yield strength of a specific additive manufacturing consumable using a materials mechanics testing machine, combined with material brittleness calculations. Its minimum reference value is set at 2.5N to maintain the clamping surface just enough to generate static friction to overcome the component's own weight and prevent slippage; its maximum critical value is set at 5.0N, exceeding this physical limit will directly crush or penetrate the interlaminar weak zone on the component surface.
[0022] After establishing external constraints, the dynamic parameters, structural transmission parameters, mechanical transmission backlash compensation values, and multi-loop collaborative control adjustment parameters of the manipulator system are extracted simultaneously. To obtain sufficient gripping torque, micro-manipulators generally employ highly integrated, high-reduction-ratio components, which inevitably introduces significant mechanical inertia, internal frictional resistance, and commutation backlash. First, the lever arm from the fingertip gripping point to the rotation center of the output flange, the total transmission ratio of the hybrid gear train, and the total transmission efficiency are obtained. The lever arm is extracted using the manipulator's three-dimensional geometric model and set to 40mm; this parameter serves as the geometric reference for converting the linear normal gripping force into rotational load torque. The total transmission ratio of the hybrid gear train is set to 100 to ensure sufficient basic physical amplification of the micro-motor's weak output torque while avoiding excessive amplification of equivalent inertia. The total transmission efficiency of the hybrid gear train is obtained by measuring the dynamic torque attenuation using a micro-dynamometer mounted on both ends of the input shaft and output flange, and its value is set to 0.80. The introduction of this measured parameter quantifies the dynamic friction interference of the mechanical structure, ensuring that the dynamic feedforward command can accurately offset the transmission attenuation. Secondly, the mechanical transmission backlash compensation value, pre-calibrated based on the gear meshing clearance, is obtained. This mechanical transmission backlash compensation value is obtained through physical calibration by locking the motor rotor and measuring the maximum free swing angle of the output flange using a high-precision dial indicator, and is set to 0.2°. This value limit eliminates the touch blind zone caused by hardware commutation backlash at the underlying software level, ensuring absolute rigidity of spatial positioning. Multi-loop collaborative control adjustment parameters are obtained, including position closed-loop PID parameters, force closed-loop PID parameters, and speed closed-loop PID parameters. These parameters are obtained through critical proportional gain method tuning during the equipment no-load and load commissioning phases, configuring reference gain weights for the differential and integral calculations of the control loop deviation.
[0023] Next, dynamic parameters including the equivalent rotational inertia of a single finger joint and the hybrid gear train damping coefficient are obtained. The hybrid gear train damping coefficient is obtained through system identification by injecting a sweep frequency excitation signal into the motor via a servo driver; it characterizes the viscous frictional resistance characteristics of the gear lubricating oil film and the bearing. The calculation formula for the equivalent rotational inertia of a single finger joint is as follows: In the formula, The equivalent rotational inertia of a single finger joint. This refers to the absolute rotational inertia of the rotor of the micro motor. The absolute physical rotational inertia of a single finger joint and its connecting rod. This represents the overall transmission ratio of the hybrid gear train.
[0024] The equivalent rotational inertia of the finger represents the overall rotational resistance of the transmission architecture when translated to the rotor shaft of the micro-motor. A larger value indicates mechanical sluggishness and a higher risk of destructive overshoot due to contact transients, while a smaller value indicates agile drive response. This parameter uses the inherent rotational inertia of the micro-motor rotor as the baseline and adds the absolute rotational inertia of the finger to the damping modulation term of the square of the total transmission ratio. Based on the kinetic energy equivalence principle in mechanical transmission, the inertia reflected from the load end to the motor end must be stripped away by the dimensionality reduction of the square of the transmission ratio. This further avoids the controller from outputting excessive feedforward commands due to misjudging the large load at the end, ensuring the physical rationality of the control torque calculation.
[0025] After completing the static constant loading, high-frequency data acquisition is performed. Based on the bus communication bandwidth limit and the peak computing power load of the microcontroller, this embodiment sets the real-time data acquisition period to 1ms. This absolute time constant limit ensures that the computing unit can rapidly capture microsecond-level contact stress distortion to trigger deceleration, preventing mechanical overshoot induced by physical lag in the sampled data.
[0026] During this acquisition cycle, the feedback speed of the micro motor, the feedback angle of the output flange, and the feedback gripping force output by the tactile sensor are acquired. The feedback speed of the micro motor is directly obtained by performing time differentiation on the encoder pulse increment within the current acquisition cycle, representing the current transient kinetic energy of the actuator. The feedback angle reflects the absolute geometric angular displacement of the robot's output shaft in three-dimensional space, and its calculation formula is as follows: In the formula, The feedback angle of the output flange. This is the current real-time pulse accumulation value of the encoder. The zero-point pulse value at the start of motion. This refers to the physical harness resolution per turn of the encoder. This represents the overall transmission ratio of the hybrid gear train.
[0027] The feedback angle of the output flange represents the absolute physical angular displacement of the robot's end effector in three-dimensional space; a larger value indicates a wider gripper opening and closing stroke, while a smaller value indicates that it is in the micro-fitting stage. This feedback angle is positively driven by the difference between the current and initial pulses, eliminating the uncertainty of the initial position during startup by subtraction, and is negatively constrained by the encoder resolution and the total transmission ratio. Due to the extremely small space at the end of the miniature gripper, the encoder is usually placed at the tail of the motor. By introducing the reciprocal of the transmission ratio to perform dimensionality reduction calculation, the high-frequency discrete pulses at the motor end are accurately restored to the true low-frequency geometric angle at the flange end, eliminating the measurement misalignment caused by the physical transmission chain span.
[0028] The feedback gripping force maps to the actual contact stress at the fingertips of the gripper, and its calculation formula is as follows: In the formula, The feedback gripping force output by the tactile sensor. The tactile sensing coefficients are pre-calibrated using a materials mechanics testing machine. This is the real-time analog output voltage of the tactile sensor. This is the zero-load bias potential caused by environmental temperature drift.
[0029] The feedback gripping force characterizes the real-time normal compressive stress between the fingertip and the surface of the additively manufactured component. A larger value indicates that the contact surface is under strong pressure and may even face the risk of crushing weak interlayer areas, while a smaller value indicates that it has just overcome its own weight or is within a safe period of slight contact. This feedback gripping force is positively driven by the real-time output voltage of the sensor. By subtracting the zero-point bias potential, the static noise caused by environmental temperature drift and mechanical preload is accurately eliminated, and the sensing coefficient is used as the force-to-electricity conversion multiplier. In actual working conditions, it is extremely difficult for piezoresistive components to be absolutely zero. By introducing a difference subtraction mechanism to perform benchmark tare, the weak electrical signal is restored to the true mechanical dimension, further eliminating the clamping misjudgment induced by the initial state noise when there is no contact.
[0030] Step 2: Extract the running direction of the micro motor, and determine the mechanical transmission backlash direction and perform numerical compensation based on the running direction to obtain the compensation angle. Extract the position error based on the deviation between the target angle and the compensation angle, and extract the gripping force error based on the deviation between the preset gripping force and the feedback gripping force.
[0031] In alternating forward and reverse rotation, gear transmission mechanisms inevitably exhibit physical meshing clearances due to manufacturing tolerances, leading to a backlash dead zone in power transmission. To address this mechanical hysteresis, the control unit first extracts the direction of rotation of the micro-motor to determine the current transmission backlash direction. In actual operation, due to the high risk of zero-point oscillation in the algebraic calculations for polarity extraction at standstill or extremely low speeds, this embodiment pre-sets a zero-speed hysteresis dead zone threshold in the underlying control loop. This zero-speed hysteresis dead zone threshold is determined by capturing the background electrical noise frequency and amplitude of the encoder differential signal using an oscilloscope in standstill and extremely low-speed micro-motion states, converting it into micro-speed fluctuations, and adding an immunity margin measurement; it is set to 0.05 rad / s. When the absolute value of the feedback speed is lower than this zero-speed hysteresis dead zone threshold, the control unit determines that no physical commutation has occurred and maintains the polarity coefficient of the previous control cycle. This cutoff setting filters out high-frequency electrical noise in standstill states, ensuring the uniqueness of the commutation compensation action and the smoothness of mechanical operation.
[0032] After filtering out zero-speed interference, the control unit performs mechanical transmission hysteresis direction determination and numerical compensation, determines the positive or negative polarity of the feedback speed of the micromotor, and extracts the unit polarity coefficient value corresponding to the feedback speed direction to construct the transmission hysteresis direction polarity term. The transmission hysteresis direction polarity term characterizing the direction of rotation of the micromotor is a piecewise sign function based on the speed hysteresis dead zone, and its specific output value determination logic is as follows: When the feedback speed of the micro motor is greater than the set zero-speed hysteresis dead zone threshold, the actuator is determined to be in an effective positive operating state, and the output value of the transmission hysteresis direction polarity term is positive one. When the feedback speed of the micro motor is less than the negative zero-speed hysteresis dead zone threshold, the actuator is determined to be in an effective reverse operation state, and the output value of the transmission hysteresis direction polarity term is negative one. When the absolute value of the feedback speed of the micro motor is less than or equal to the set zero-speed hysteresis dead zone threshold, it is determined that the actuator is in a stationary state or an extremely low-speed oscillation range. The polarity term of the transmission hysteresis direction is maintained and the value determined in the previous control cycle is output.
[0033] Through the above-mentioned judgment logic, the continuously fluctuating physical velocity quantity is transformed into a discrete integer direction operator, thereby providing accurate algebraic polarity constraints for hysteresis numerical compensation.
[0034] The mechanical transmission hysteresis compensation value is multiplied by the transmission hysteresis direction polarity term to construct a dynamic numerical compensation term. The feedback angle of the output flange is then summed with the dynamic numerical compensation term to calculate the compensation angle. The calculation formula is as follows: In the formula, To calculate the compensation angle, The feedback angle of the output flange. This is the hysteresis compensation value for mechanical transmission. To characterize the polarity of the transmission backlash direction in terms of the direction of rotation of a micro motor, This refers to the feedback speed of the micro motor. The rotor angle of the micro motor. It is a time variable.
[0035] The compensation angle represents the absolute true geometric pose of the end effector after eliminating mechanical backlash; a larger value indicates that the gripper is deployed in a large stroke space, while a smaller value indicates that it is approaching a micro-close contact state. This compensation angle is driven positively by the theoretical feedback angle and dynamically modulated by the product of the motor speed polarity and the backlash constant; the speed polarity objectively maps the physical reversal transient of the gear's force surface, determining the addition or subtraction property of the backlash constant. Real gear commutation conditions inevitably involve physical idle stroke; relying solely on ideal calculations will introduce a measurement blind spot. This formula extracts the transient speed polarity of the power source, imparts directional modulation to the fixed assembly clearance, accurately fills the dead zone caused by manufacturing tolerances, and eliminates spatial positioning misalignment caused by transmission backlash.
[0036] After obtaining the accurate real-time spatial compensation pose, the position error and grasping force error are extracted separately. A difference calculation is performed between the target rotation angle and the calculated compensation rotation angle, using the static absolute geometric target rotation angle as a benchmark for subtraction, to calculate the spatial position deviation, which is then extracted as the position error. This calculation quantifies the remaining physical distance the actuator needs to approach the target endpoint, providing a spatial displacement drive benchmark for the underlying control loop.
[0037] Simultaneously, the difference between the preset gripping force and the measured feedback gripping force is calculated. The preset gripping force, representing a safe physical upper limit, is used as a deduction to calculate the end-force deviation, which is then extracted as the gripping force error. This gripping force error quantifies the bearing margin of the current physical compression state of the gripper relative to the material failure limit of the component. When this gripping force error is positive and large, it indicates that the contact stress is within the allowable elastic range, and the action buffer space is sufficient. When it approaches zero or even becomes negative, it reveals that the compression load is rapidly consuming the bearing margin, thereby triggering the avoidance adjustment of the subsequent control loop.
[0038] Step 3: Using position error and gripping force error as input parameters, perform position-force coordinated adjustment: Calculate the force closed-loop PID correction coefficient based on the gripping force error, and use the force closed-loop PID correction coefficient to multiply and couple the position closed-loop PID adjustment amount generated based on the position error to perform dynamic gain correction, thereby generating the target speed of the micro motor.
[0039] Given the fragile surface and anisotropic weak zones of additively manufactured components, rigid position control based solely on geometric paths is prone to stress concentration and localized crushing at the moment of contact. Furthermore, single force constraint control lacks geometric guidance, failing to guarantee the spatial approach accuracy of the gripper during the idle stroke phase. Therefore, this embodiment uses the extracted position error and gripping force error as parallel input parameters to perform position-force coordinated adjustment, coupling spatial constraints and force constraints in the underlying control loop for calculation.
[0040] The position closed-loop PID parameters include a position proportional coefficient, a position integral coefficient, and a position derivative coefficient. The force closed-loop PID parameters include a force proportional coefficient, a force integral coefficient, and a force derivative coefficient. The position closed-loop PID control is generated by multiplying the position error by the position proportional coefficient to construct a position proportional control term, performing time integration and product operations with the position integral coefficient to construct a position integral control term, and performing time differentiation and product operations with the position derivative coefficient to construct a position derivative control term. Finally, the position proportional control term, position integral control term, and position derivative control term are summed to generate the position closed-loop PID control.
[0041] In this embodiment, the position closed-loop PID parameters are calculated by inputting a step position command to the drive loop and observing the oscillation period of the robot's response using the critical proportional method, under the no-load state where the gripper is not in contact with any object. The position proportional coefficient is set to 12.5, the position integral coefficient to 0.2, and the position derivative coefficient to 1.5. The relatively large position proportional coefficient ensures that the robot has extremely fast spatial approximation speed during the no-load phase; the extremely small position integral coefficient limits the integral saturation caused by accumulated deviations during long-distance movement; and the moderate position derivative coefficient provides digital damping for the actuator at the moment of physical start and stop. This position closed-loop PID adjustment represents the basic drive intensity necessary to eliminate the current spatial deviation in the pure geometric motion space.
[0042] However, the closed-loop PID control at this position does not include contact force constraints. To quantify the suppressive effect of external physical impedance on the action command, this embodiment extracts pre-configured force closed-loop PID parameters. The grasping force error is multiplied by the force proportional coefficient to construct a force proportional feedback term, multiplied by the force integral coefficient over time to construct a force integral feedback term, and multiplied by the force differential coefficient over time to construct a force differential feedback term. Subsequently, the force proportional feedback term, force integral feedback term, force differential feedback term, and value 1 are continuously summed to calculate the force closed-loop PID correction coefficient.
[0043] The force closed-loop PID parameters are obtained by measuring the step force deviation when the gripper is pressed against a high-stiffness force gauge. The force proportional coefficient is set to 0.10, the force integral coefficient to 0.01, and the force differential coefficient to 0.002. Since this set of parameters does not directly generate physical torque but is used to construct a dynamic multiplier factor, limiting it to an extremely small order of magnitude ensures that even if the force at the contact end changes drastically, the correction coefficient only exhibits a smooth damping decay, avoiding a cliff-like negative output that induces a reverse surge in the generator.
[0044] Conventional additive decoupling operations are prone to inducing severe oscillations in the drive current when there is a polarity conflict between the position command (requiring forward movement) and the force constraint (requiring backward movement), thus masking the true contact mechanical boundaries. Therefore, the control unit multiplies and couples the generated position closed-loop PID adjustment with the force closed-loop PID correction coefficient to perform dynamic gain correction and generate the target speed of the micromotor. The calculation formula based on this is as follows: In the formula, The target speed of the micro motor, For positional error, This is the positional scaling factor. For position integral coefficients, These are the position differential coefficients. To account for the gripping force error, This is the force proportionality coefficient. For force integral coefficients, For force differential coefficients, It is a time variable.
[0045] The target speed represents the transient kinetic energy command required for the motor to eliminate the overall deviation; a larger value indicates that the actuator is rapidly approaching the target, while a value approaching zero or negative indicates that it is in a compliant contact or unloading phase. This speed is positively driven by the position error and its calculus operation with respect to time, constructing the basic driving operator in the geometric space; simultaneously, it is multiplicatively modulated by the dynamic weights of the grasping force error evolution. When the force margin is sufficient, this dynamic weight amplifies the spatial command; when the contact stress approaches the failure limit, the weights decay sharply or even return to zero, limiting the output of the speed command. This formula introduces nonlinear product coupling, transforming the force state into a dynamic limiting coefficient, avoiding polar oscillations caused by conventional additive decoupling, and ensuring the integrity of brittle components.
[0046] Step 4: Calculate the speed error between the target speed and the feedback speed, input the speed error into the speed closed-loop controller to generate the basic adjustment torque, convert the feedback gripping force into the end load torque, and construct the feedforward compensation torque in combination with the dynamic parameters. Superimpose the basic adjustment torque and the feedforward compensation torque to calculate the output control torque of the micro motor.
[0047] The speed closed-loop PID parameters include the speed proportional coefficient, speed integral coefficient, and speed derivative coefficient. Since the target speed only represents the motion intention at the algorithm level, and the motor is inevitably hampered by its own electrical inertia in real physical space, there will inevitably be a speed tracking delay. Therefore, the control unit performs a difference calculation between the target speed and the feedback speed, and uses the target speed as a benchmark to perform a subtraction calculation to obtain the speed deviation, which is extracted as the speed error. This speed error accurately quantifies the degree of dynamic lag between the actual kinetic energy and the desired kinetic energy of the current actuator.
[0048] Subsequently, the control unit performs a product operation on the speed error with the speed proportional coefficient to construct the speed proportional adjustment term, performs a time integration and product operation on the speed integral coefficient to construct the speed integral adjustment term, and performs a time differentiation and product operation on the speed derivative coefficient to construct the speed derivative adjustment term; finally, the speed proportional adjustment term, the speed integral adjustment term, and the speed derivative adjustment term are summed to generate the basic adjustment torque.
[0049] In this embodiment, the speed closed-loop PID parameters are tested separately for the underlying speed loop in the frequency domain under the condition of locking the outer loop (position loop and force loop). The parameters are obtained by inputting a 50Hz square wave speed command to the motor driver and calculating the overshoot and settling time of the speed waveform using servo host computer software. The speed proportional coefficient is set to 1.2, the speed integral coefficient to 0.1, and the speed derivative coefficient to 0.01. A relatively large speed proportional coefficient ensures the motor's rapid electrical tracking of the transient target speed; a moderate speed integral coefficient eliminates the steady-state speed dead zone caused by mechanical friction; and a very small speed derivative coefficient is specifically used to suppress current spikes during high-speed start-stop. This basic regulating torque represents the passive electrical correction driving force generated by the speed deviation feedback, aiming to eliminate motion hysteresis. The 20ms period of the 50Hz square wave is highly compatible with the 1ms underlying data acquisition period. In this embodiment, sinusoidal frequency sweep excitation is performed on the micromotor and hybrid gear train transmission chain in advance, and the mechanical resonance frequency of the hardware architecture is extracted using frequency domain analysis. To avoid triggering destructive resonance during the parameter tuning stage, one-third of this resonance frequency is selected as the upper limit of the test frequency, thus setting the frequency of the square wave speed command to 50Hz. This allows the micromotor to undergo a severe transient switch from rapid acceleration to sudden reversal within its 10ms half-wave period.
[0050] However, simple deviation feedback adjustment is essentially a reactive compensation mechanism. When faced with the large mechanical inertia of gears, internal viscous friction, and sudden external contact resistance, it is prone to inducing sluggish response or squeeze overshoot. To achieve highly agile low-level control, this embodiment simultaneously incorporates dynamic parameters to construct a feedforward compensation torque, performing advance cancellation of known physical impedance. The end-load torque is calculated by multiplying the feedback gripping force by the lever arm from the fingertip gripping point to the output flange rotation center. The feedback speed is then differentiated over time to obtain the motor angular acceleration, which is multiplied by the equivalent moment of inertia of a single finger joint to construct the inertial drag feedforward term. The feedback speed is multiplied by the damping coefficient of the hybrid gear train to construct the friction damping feedforward term. The total transmission ratio and total transmission efficiency of the hybrid gear train are multiplied to obtain the transmission attenuation factor, and the end-load torque is divided by this transmission attenuation factor to construct the load compensation feedforward term. Finally, the inertial drag feedforward term, the friction damping feedforward term, and the load compensation feedforward term are continuously summed to construct the feedforward compensation torque.
[0051] In this process, the damping coefficient of the hybrid gear train is determined by controlling the micro-manipulator to rotate at multiple constant speeds under no-load conditions. The maintaining torque of the motor at each speed is read, and the viscous damping coefficient is extracted by fitting the linear slope of the speed and torque, with its value set to 0.015. Feedforward compensation calculations precisely quantify and actively advance the inertial hysteresis during actuator acceleration, the viscous friction during gear operation, and the reverse squeezing resistance when gripping objects.
[0052] Finally, the control unit sums the base adjustment torque and the feedforward compensation torque to calculate the output control torque of the micro motor. The calculation formula is as follows: In the formula, To output control torque, For speed error, , , These are the speed proportional coefficient, speed integral coefficient, and speed differential coefficient, respectively. For time variables, The equivalent rotational inertia of a single finger joint. For feedback of rotational speed, Let be the damping coefficient of the hybrid gear train. This is the end load torque. This is the overall transmission ratio of the hybrid gear train. This represents the total transmission efficiency.
[0053] The output control torque represents the ultimate physical drive command; a larger value indicates that the motor is outputting a higher electromagnetic torque to overcome high mechanical resistance or to perform rapid acceleration, while a smaller value indicates that it is in a constant speed no-load or unloading period. This output control torque is driven by the basic feedback of speed error and the positive superposition of three dynamic feedforwards. Speed error and its calculus term extract kinetic energy to execute deviations; angular acceleration excites inherent inertial resistance; feedback speed maps the viscous friction caused by gear fluid shear; and the end load torque maps the actual compressive resistance experienced by the gripper. This formula integrates passive error correction with active pre-compensation of known physical resistance, injecting the kinetic energy required to overcome inertia, friction, and external loads in advance, eliminating transmission chain lag, and ensuring high-sensitivity torque tracking of the robot when contacting brittle components.
[0054] Step 5: Output a real-time drive signal to the micro motor according to the output control torque to drive the transmission mechanism of the robotic arm system to complete the closed-loop contour clamping operation of the additive manufacturing part.
[0055] Since micromotors are essentially controlled by stator current and cannot directly respond to torque parameters, this torque control quantity needs to be converted into a corresponding electrical signal to provide an actual electrical drive source for the power drive layer of the micromotor. First, the output control torque is divided by the preset electromagnetic torque constant of the micromotor to convert the torque command into an electrical signal, and the target drive current is calculated. This calculation removes the mechanical inertia attribute, quantifies the magnitude of the drive current that the micromotor stator winding must input to generate the required thrust, and converts the dynamic torque into an electrical control quantity that can be tracked by the underlying hardware.
[0056] In this embodiment, the preset electromagnetic torque constant is obtained through a locked-rotor dynamometer: the output shaft of the micro motor is rigidly locked on the dynamometer, and a constant DC current of 1.0A is injected into the stator coil. The static locked-rotor torque value measured at this time is calibrated as the preset electromagnetic torque constant, and its value is set to 0.032. This parameter is the physical conversion benchmark for the linear mapping of torque control requirements to electrical control commands. If the preset electromagnetic torque constant is larger than the actual properties of the motor, the calculated target current will be smaller, resulting in insufficient output resistance from the gripper when contacting the component, leading to slippage. If the preset electromagnetic torque constant is smaller, the output current will be larger, which can easily cause transient overload at the moment of contact with the component, crushing brittle materials. By setting the electromagnetic torque constant, it is ensured that the physical resistance calculated by the control algorithm can be accurately converted into ampere-level current in the stator coil.
[0057] Subsequently, the calculated target drive current is converted into a real-time drive signal and output to the power drive layer of the micro motor. This real-time drive signal is specifically a pulse-width modulated voltage signal with a real-time duty cycle, which controls the on / off state of the power switch, causing the stator coils to excite the corresponding rotating magnetic field, thereby traction of the rotor to generate tangential shear stress. By continuously outputting this signal to the power drive layer, the transmission mechanism of the robotic arm system is driven. This final electrical execution action transforms all the mechanical backlash compensation, contact force dynamic limiting, and dynamic feedforward cancellation operators accumulated in the control loop into the actual physical displacement and normal contact compression of the gripper fingertips, ultimately smoothly completing the closed-loop contour clamping operation on the fragile surface of the additively manufactured part.
[0058] Table 1 is an example table of comprehensive data on the multi-dimensional parameter evolution of position-force coordinated adjustment and electromechanical conversion of a micro-manipulator throughout the entire process from approaching the unloaded space, contacting the force limit, to finally achieving steady-state pressure holding.
[0059] Table 1: Evolution Data of Position-Force Co-control and Electromechanical Conversion Parameters during the Facing Clamping Process The data in Table 1 demonstrates the ability of this method to accurately quantify and decouple spatial approximation and force boundaries in the context of additive manufacturing component clamping. Although the position errors of samples 1 to 7 are in the high range (0.12 to 1.00), the feedback gripping force is always 0 because there is no contact with the component. The force closed-loop PID correction coefficient is maintained at the extreme value of 1.4. The target rotation speed is driven by the position deviation and decreases proportionally, reflecting the pure geometric motion characteristics of the robot without physical impedance. Samples 8 to 16 show a steadily increasing feedback gripping force (0.2 to 3.95) and a significantly decreasing force closed-loop PID correction coefficient (1.38 to 1). Thanks to the multiplicative coupling constraint, the target rotation speed shows a smooth damping decay (from 1.38 to 0.26), indicating that the gripper is conforming to the component in a compliant manner and there is no polar oscillation common in additive decoupling. The correction coefficients of samples 17 to 25 eventually converge to zero, and the target rotation speed is completely limited. However, at the same time, the target drive current does not drop due to the zero rotation speed, but gradually stabilizes in a constant range of 4.06, ensuring that the feedback gripping force is accurately maintained at the safe upper limit of 4.00. The table demonstrates that conventional rigid position control is prone to stress overload at the moment of contact, while this embodiment accurately filters out spatial geometric residual interference, achieving a lossless transition from dynamic approximation to steady-state pressure holding.
[0060] The above formulas are all dimensionless calculations. The formulas are derived from software simulations using a large amount of collected data, and are the closest to the real situation. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0061] The above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any other combination thereof. When implemented in software, the above embodiments can be implemented, in whole or in part, as a computer program product. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution.
[0062] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0063] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A control method for a contour-following gripper robot adapted to additive manufacturing equipment, characterized in that, The specific steps include: Step 1: Obtain the target rotation angle of the output flange, the preset gripping force, and the dynamic parameters of the robotic arm system, and collect the feedback speed of the micro motor, the feedback rotation angle of the output flange, and the feedback gripping force output by the tactile sensor in real time. Step 2: Extract the direction of rotation of the micro motor, and based on the direction of rotation, determine the mechanical transmission backlash direction and perform numerical compensation on the feedback angle to calculate the compensation angle. The specific calculation steps for the compensation angle are as follows: Determine the positive and negative polarities of the feedback speed of the micro motor, extract the unit polarity coefficient value corresponding to the direction of the feedback speed, and construct the transmission hysteresis direction polarity term; The mechanical transmission backlash compensation value is multiplied with the transmission backlash direction polarity term to construct a dynamic numerical compensation term; The compensation angle is calculated by summing the feedback angle of the output flange with the dynamic numerical compensation term. The position error is extracted based on the deviation between the target angle and the compensated angle, and the gripping force error is extracted based on the deviation between the preset gripping force and the feedback gripping force. Step 3: Using position error and gripping force error as input parameters, perform position-force coordinated adjustment: Calculate the force closed-loop PID correction coefficient based on the gripping force error, and use the force closed-loop PID correction coefficient to multiply and couple the position closed-loop PID adjustment amount generated based on the position error to perform dynamic gain correction and generate the target speed of the micro motor. Step 4: Calculate the speed error between the target speed and the feedback speed, input the speed error into the speed closed-loop controller to generate the basic adjustment torque, convert the feedback grab force into the end load torque, and construct the feedforward compensation torque in combination with the dynamic parameters. Add the basic adjustment torque and the feedforward compensation torque to calculate the output control torque of the micro motor. Step 5: Output a real-time drive signal to the micro motor according to the output control torque to drive the transmission mechanism of the robotic arm system to complete the closed-loop contour clamping operation of the additive manufacturing part.
2. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 1, characterized in that: The dynamic parameters include the equivalent rotational inertia of a single finger joint of the robotic arm and the damping coefficient of the hybrid gear train; Obtain the structural transmission parameters of the robotic arm system, including the lever arm from the fingertip gripping point to the rotation center of the output flange, the total transmission ratio of the hybrid gear train, and the total transmission efficiency of the hybrid gear train. Obtain the mechanical transmission backlash compensation value, which is obtained by pre-calibrating the meshing clearance of gears in the hybrid gear train; Obtain multi-loop coordinated control adjustment parameters, which include position closed-loop PID parameters, force closed-loop PID parameters, and velocity closed-loop PID parameters.
3. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 1, characterized in that: The specific steps for extracting position error and gripping force error are as follows: Perform a difference calculation between the target rotation angle and the compensation rotation angle, and calculate the spatial position deviation based on the target rotation angle, which is then extracted as the position error. The difference between the preset gripping force and the feedback gripping force is calculated, and the deviation of the end force is calculated based on the preset gripping force and extracted as the gripping force error.
4. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 2, characterized in that: The specific steps for generating the position closed-loop PID control are as follows: The position closed-loop PID parameters include position proportional coefficient, position integral coefficient, and position derivative coefficient; the force closed-loop PID parameters include force proportional coefficient, force integral coefficient, and force derivative coefficient. The position error is multiplied with the position proportional coefficient to construct the position proportional adjustment term, and then integrated with the position integral coefficient to construct the position integral adjustment term. Finally, the position differential coefficient is multiplied with the position differential coefficient to construct the position differential adjustment term. The position proportional control term, position integral control term, and position derivative control term are summed to generate the position closed-loop PID control quantity.
5. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 4, characterized in that: The specific steps for generating the target rotational speed are as follows: The grasping force error is multiplied with the force proportional coefficient to construct the force proportional feedback term, and then integrated and multiplied with the force integral coefficient to construct the force integral feedback term. Finally, the grasping force error is differentiated and multiplied with the force differential coefficient to construct the force differential feedback term. The force proportional feedback term, force integral feedback term, force differential feedback term, and numerical value are continuously summed to calculate the force closed-loop PID correction coefficient. The position closed-loop PID control quantity and the force closed-loop PID correction coefficient are multiplied and coupled to perform dynamic gain correction, thereby generating the target speed of the micro motor.
6. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 2, characterized in that: The specific steps for generating the basic regulating torque are as follows: The speed closed-loop PID parameters include the speed proportional coefficient, the speed integral coefficient, and the speed derivative coefficient; The difference between the target speed and the feedback speed is calculated, and the speed deviation is calculated based on the target speed. The speed error is extracted and multiplied with the speed proportional coefficient to construct the speed proportional adjustment term. The speed error is also multiplied with the speed integral coefficient to construct the speed integral adjustment term. Finally, the speed error is multiplied with the speed derivative coefficient to construct the speed derivative adjustment term. The basic adjustment torque is generated by summing the speed proportional adjustment term, speed integral adjustment term, and speed derivative adjustment term.
7. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 6, characterized in that: The specific calculation steps for the output control torque are as follows: The feedback gripping force is multiplied with the lever arm from the gripping point of the fingertip to the rotation center of the output flange to calculate the end load torque. The feedback speed is differentiated by time to obtain the motor angular acceleration. This motor angular acceleration is then multiplied with the equivalent rotational inertia of a single finger joint to construct the inertial drag feedforward term. The feedback speed is multiplied by the damping coefficient of the hybrid gear train to construct the friction damping feedforward term; The total transmission ratio and the total transmission efficiency of the hybrid gear train are multiplied to obtain the transmission attenuation factor, and the end load torque is divided by the transmission attenuation factor to construct the load compensation feedforward term. The feedforward torque is constructed by continuously summing the inertial drag feedforward term, the friction damping feedforward term, and the load compensation feedforward term. The output control torque of the micro motor is calculated by summing the basic adjustment torque and the feedforward compensation torque.
8. The control method for a contour-following gripper adapted to additive manufacturing equipment according to claim 1, characterized in that: The specific steps for closed-loop contour clamping of additively manufactured parts are as follows: The output control torque is divided by the preset electromagnetic torque constant of the micro motor to perform electromechanical signal dimensionality reduction and transformation, and the target drive current is calculated. The target drive current is converted into a real-time drive signal and output to the power drive layer of the micro motor to drive the transmission mechanism and complete the closed-loop contour clamping operation of the additive manufacturing part.
