A robot-independent soft float control method and system based on elastic offset of instruction position
By calculating the elastic offset of the command position on the motion controller side, the problem that low-end and mid-range drivers cannot achieve soft floating is solved, realizing the universality and safety of compliant control, and making it suitable for a variety of working conditions.
Patent Information
- Application Number
- CN202611175328.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-04
- Publication Date
- 2026-11-20
AI Technical Summary
Existing robot soft floating technology relies on actuator gain modification or dynamic parameter identification, which cannot be implemented on low- to mid-range actuators and poses safety risks and implementation complexity issues.
By implementing elastic offset of the command position on the motion controller side, the elastic offset is calculated using the Jacobian matrix and Cartesian stiffness matrix and superimposed on the joint command position. It is applicable to any EtherCAT servo drive that conforms to the CiA 402 standard, without relying on drive gain modification and dynamic parameter identification.
It achieves compliant control independent of robot model and actuator model, reduces implementation complexity and safety risks, is applicable to a variety of working conditions, and does not require force sensors and dynamic identification.
Smart Images

Figure CN123129126A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot control technology, and in particular to a robot-independent soft float control method and system based on command position elastic offset. Background Technology
[0002] When performing tasks such as loading and unloading alignment, shaft and hole assembly, thin-walled part clamping, and curved surface fitting, the end effector needs to make physical contact with the workpiece or environment. If the robot maintains rigid position control throughout the entire process, the position loop gain of industrial robots is typically as high as several hundred. Even a tiny deviation at the end effector (such as 0.1 mm) can generate contact forces of hundreds of Newtons, far exceeding the tolerance limits of the workpiece and fixture, leading to workpiece surface damage, fixture deformation, or even structural failure. To address this issue, the industry has developed "soft float" technology—allowing the robot's end effector to produce a controllable, compliant offset during the contact phase to absorb the deviation energy and keep the contact force within a safe range.
[0003] The implementation paths of existing soft floating technology can be summarized into the following three categories:
[0004] Path 1: Internal gain modification within the driver. This is the core solution adopted by mainstream manufacturers (FANUC Soft Float, ABB SoftMove, KUKA CartSoft). Its principle is to dynamically modify the position loop proportional gain K within the servo driver. p Velocity loop gain K d Clear the integral gain K i This makes the joint "softer." Specifically, FANUC uses a proprietary servo parameter scaling mechanism to reduce the position loop gain to 10%–70% of its nominal value when soft float is activated; ABB directly modifies the driver parameter set through the IRC5 controller; and KUKA modifies it through the KRC controller. The module's servo parameters. This path has a hard prerequisite: the driver must support real-time modification of the gain register via EtherCAT Process Data Objects (PDOs). However, in reality:
[0005] 1. High-end drives (Beckham AX5000, Yaskawa Σ-7, Panasonic A6) support PDO gain mapping, but require complex configuration and rely on vendor-specific object dictionary entries (e.g., Yaskawa Σ-7 uses object dictionary 0x2001–0x200F to store the gain parameter set, which requires vendor authorization to map to PDO).
[0006] 2. Mid-range drivers (Inovance SV660N, Delta ASDA-B3) support gain switching via DI or SDO, but neither supports PDO gain mapping; the gain parameters cannot be modified in each control cycle via real-time EtherCAT frames, and can only be switched discretely between two preset gain sets via event triggering (DI level switching or SDO online writing, with a delay of 10–100ms), which cannot meet the continuous real-time adjustment requirements of 1–4ms servo cycle;
[0007] 3. Low-end / economical drivers (such as Huichuan SV630N and Hechuan X3E) mostly only support the standard CiA 402CSP mode, do not expose the manufacturer's custom gain-related PDO mapping entry, and some models do not even have gain switching function, only a set of rigid meters and adaptive notch filters.
[0008] This means that a large number of robot systems using low- to mid-range drives (especially projects by domestic robot manufacturers and integrators, and cost-sensitive scenarios) cannot achieve soft floating functionality unless the drive hardware is replaced—which is not feasible due to cost and time constraints.
[0009] In addition, this approach has inherent engineering risks: the driver tracking error increases significantly after the gain is modified, and the original tracking error alarm threshold (usually in the range of 0.1–1 mm) is no longer applicable. A separate dynamic tracking error threshold must be set for the soft float mode, which increases the complexity and risk of safety interlocking.
[0010] Path Two: Torque Estimation Based on Dynamic Models. Patent CN112743541B (Eston) discloses a method for... A torque sensor-based soft-float control method for a robotic arm is proposed. Based on an offline dynamic model of the robotic arm's minimum inertial parameter set, it estimates the external coupling torque online using a generalized momentum observer, and then corrects the desired pose according to an impedance control law. This method requires complete identification of dynamic parameters (including 10 parameters such as link mass, center of mass position, and inertia tensor). The identification process requires a dedicated excitation trajectory and least squares fitting, which has a high implementation threshold, a long cycle, and is sensitive to load changes—re-identification is required after changing the fixture or workpiece.
[0011] Path Three: Stiffness / Damping Adjustment Based on Second-Order System Modeling. Patent CN202311129081.0 (Topstar) models the dynamic characteristics of a second-order system, equating the robot's end effector to a mass-spring-damped system. Compliance is achieved by dynamically adjusting stiffness and damping parameters. While theoretically adjustable, this method still requires modification of the actuator-side parameters in practice. Furthermore, the mapping relationship between the second-order system parameters and the physical actuator parameters depends on system identification, necessitating recalibration for different robot configurations and loads.
[0012] In addition, patent CN109773781A (Eston) discloses a sensorless soft float control method that achieves compliance by adjusting the end position deviation through a proportional coefficient. Although this solution has a simple structure, its proportional coefficient is essentially a scaling of the driver gain, which still requires the driver to support real-time gain modification. Furthermore, it lacks a damping term and is prone to oscillation during high-speed contact.
[0013] In summary, existing technologies have the following three fundamental limitations:
[0014] (1) Driver dependency: Both Path 1 and Path 3 require modification of the driver's internal gain or stiffness parameters and rely on the PDO gain mapping function, which cannot be used for low-end and mid-range drivers. Although Path 2 does not change the gain, it requires dynamic identification, which is also complex to implement.
[0015] (2) Implementation complexity: Path 2 requires offline identification and online observers for 60 minimum inertial parameters; Path 3 requires second-order system identification and parameter mapping calibration. Both require professional engineers for debugging, which is time-consuming and costly.
[0016] (3) Safety risks: Modifying the gain of path one increases the following error, requiring dynamic adjustment of the alarm threshold and increasing the complexity of safety interlocking. When the gain is too low, the driver may oscillate or become unstable, posing a risk of loss of control.
[0017] Therefore, the industry urgently needs a soft floating solution that does not rely on driver gain modification function, does not require dynamic parameter identification, does not require force sensor, and does not increase the complexity of follower error alarm. Summary of the Invention
[0018] The purpose of this invention is to address the shortcomings of existing technologies by proposing a robot-independent soft float control method and system based on command position elastic offset. Its compliant behavior is achieved entirely by superimposing the command position elastic offset on the motion controller side. It does not rely on the real-time modification function of the driver gain, does not require dynamic parameter identification, and does not require a force sensor. It can be applied to any EtherCAT servo driver that conforms to the CiA 402 standard, thus solving the industry pain point that low-end and mid-range drivers cannot achieve soft float functionality.
[0019] To achieve the above objectives, the present invention adopts the following technical solution:
[0020] A robot-independent soft float control method based on commanded position elastic offset includes the following steps:
[0021] Step 1: Within each motion controller servo cycle, read the encoder angles of each joint of the robot. and joint velocity The actual position of the end effector is calculated using forward kinematics. Simultaneously calculate the geometric Jacobian matrix. and its pseudo-reversal ;
[0022] Step 2: Calculate the end position deviation ,in This is the end-taught position recorded when the soft float is activated. The actual position of the end effector calculated using forward kinematics;
[0023] Step 3: Convert the end position deviation into an equivalent external force using the Cartesian stiffness matrix. ,in This is the Cartesian stiffness diagonal matrix converted from the user's compliance ratio; Let X be the equivalent stiffness in the X direction. The equivalent stiffness in the Y direction is... Equivalent stiffness in the Z direction; This represents the end-position deviation vector; the equivalent stiffness in each direction is calculated from the user-defined flexibility ratio. ,in The compliance ratio in the i-th direction ( At that time, the entire direction is rigid. (When the direction is completely smooth) To achieve the maximum equivalent translational stiffness, This stiffness matrix equates the robot end effector to a three-dimensionally decoupled mass-spring-damping system, with each direction set independently. The stiffness value is calculated by the user's flexibility ratio, eliminating the need for dynamic identification.
[0024] Step 4: Map the end effector deviation to joint space using the Jacobian pseudo-inverse, and calculate the elastic offset:
[0025]
[0026]
[0027] in The Cartesian stiffness diagonal matrix, Here, α is the normalized reference value for stiffness, and α is the offset safety factor. This is the damping scaling factor. This refers to the actual velocity at the end point; This represents the initial elastic displacement vector in the joint space. This represents the elastic offset in the joint space. This is the pseudo-inverse of the Jacobian matrix;
[0028] That is: first, the equivalent external force is normalized by stiffness and then mapped to the initial displacement in the joint space. Then, a damping term proportional to the terminal velocity is added to form the final elastic offset. Damping term Maintain a certain compliant baseline (in the non-contact initial state) to prevent a sudden change in stiffness during contact; when At that time, this term has a clear physical meaning: it represents the motion obtained by multiplying the end effector's inertial motion (by Jacobi multiplied by the joint velocity). The joint offset corresponding to the damping force generated is in the same direction as... Instead This is related to the direction of the synthesized elastic offset vector, thus making the direction of the pure elastic term related to the direction of the composite vector. Unlike other methods, it can provide a compliance component orthogonal to the direction of stiffness jump at the moment of contact, effectively absorbing contact impact energy. Furthermore, the initial joint velocity generated by the end-effector inertial motion... The Jacobian mapping is Then through pseudo-reverse left multiplication The damped joint velocity is obtained and tracked by the actuator in the next control cycle, causing the actual end-effector velocity to stabilize, forming a closed loop of encoder feedback → forward kinematics → end-effector deviation → elastic offset. The end-effector is equivalent to a mass-spring-damped system (rather than a pure spring system), resulting in more stable convergence characteristics. The actual end-effector velocity is obtained by left-multiplying the joint velocity by the Jacobian matrix. Damping scaling factor. Tuning principles: When the elastic offset is undamped, overshoot oscillation may occur at the moment of contact at the end. When the value is too large, the elastic offset response becomes sluggish. Based on the engineering tuning experience of this invention on a six-axis industrial robot, Applicable to most operating conditions: use a larger value (1.5–2.0) for high contact speed scenarios to prevent shock and oscillation, and a smaller value (0.8–1.2) for low contact speed scenarios to ensure response sensitivity. This parameter is a dimensionless scalar, does not change with robot configuration, and can be reused after one tuning.
[0029] Step 5: Calculate the gradual change factor based on the current movement distance. Gradual scaling of the elastic offset ;
[0030] Step 6: Add the gradually changed elastic offset to the joint command position output by the trajectory planner to obtain the final command position. ;in, This is the offset due to gravity compensation. The original joint command positions are output by the trajectory planner. This is the joint elastic offset after gradual scaling;
[0031] The object dictionary 0x607A is the basic PDO object that all EtherCAT servo drives must support as specified in the CiA 402 standard. It does not require special configuration from the drive manufacturer, does not require gain register PDO mapping, and does not require special firmware support.
[0032] Preferably, in step 1, the pseudo-inverse of the Jacobian matrix is calculated using the Cholesky decomposition inversion method: first calculate... Perform Cholesky decomposition on A. Solving by previous and back generations , then calculate Where A is the product of the Jacobian matrix and its transpose, and L is the lower triangular matrix obtained from the Cholesky decomposition. It is the inverse of the lower triangular matrix. It is the pseudo-inverse of the Jacobian matrix.
[0033] Preferably, after step 1, a singular configuration protection step is further included: calculating the condition number of the Jacobian matrix. If the preset threshold is exceeded (Default 200) will stop elastic offset stacking, reduce gradient factor to zero, and trigger an alarm.
[0034] Preferably, in step 6, the gravity compensation offset is... Obtained by one of the following methods: (a) using a lookup table to pre-calibrate the gravity moment in the critical configuration section; (b) using the built-in gravity feedforward channel of the actuator; (c) superimposing a gravity sag pre-compensation term in the elastic offset.
[0035] Preferably, in step 5, the gradient factor The current motion distance s(t) is calculated using the following formula:
[0036]
[0037] in, and These represent the gradient activation start and end point travel ratios, respectively; when... hour , when hour
[0038] Preferably, the method further includes motion mode constraints: soft float is activated only in linear motion segments, joint motion segments can only use joint mode compliance (end compliance must not be activated), and circular motion segments, jogging mode, homing mode, and calibration mode are prohibited from activating soft float.
[0039] Preferably, in step 4, a limit is set for the elastic offset of each joint. ,in This is the maximum elastic offset angle for a single joint. When the elastic offset exceeds the limit, clamping is applied to prevent overshoot of the single joint. The offset safety factor... This is the global safety scaling factor, with a default value of 0.8, decoupled from the compliance ratio in each direction; the stiffness normalization reference value Pick .
[0040] Preferably, in step 2, if the offset in any direction... Exceeding the preset offset limit If the elastic offset superposition is stopped immediately, the gradient factor is reset to zero, and the machine is decelerated and stopped.
[0041] Preferably, the method can be used in combination with a driver gain switching register to form a two-stage compliant control: gain switching provides a coarse compliance baseline, and elastic offset provides continuous fine-tuning.
[0042] Preferably, the method does not require modification of any gain parameters within the servo drive, only a standard EtherCAT target position process data object (object dictionary 0x607A), and is applicable to any EtherCAT servo drive conforming to the CiA 402 standard.
[0043] This invention also provides a robot-independent soft float control system based on commanded position elastic offset, used to implement the above-mentioned robot-independent soft float control method based on commanded position elastic offset, the system comprising:
[0044] The kinematics calculation module is used to read the joint encoder angles and velocities, calculate the Jacobian matrix and its pseudo-inverse, and calculate the actual position of the end effector through forward kinematics.
[0045] The elastic offset calculation module is used to calculate the end position deviation, which is converted into an equivalent external force through the Cartesian stiffness matrix and then mapped to the joint space through the Jacobian pseudo-inverse to obtain the elastic offset.
[0046] The gradient control module is used to calculate the gradient factor based on the current motion stroke and to gradually scale the elastic offset.
[0047] The instruction overlay module is used to overlay the gradually changed elastic offset and gravity compensation offset onto the joint instruction position output by the trajectory planner to obtain the final instruction position.
[0048] The output interface module is used to write the final command position to the servo drive via a standard EtherCAT target position process data object, wherein the PID gain inside the servo drive remains a rigid nominal value.
[0049] Preferably, the system further includes a safety interlock module, used to stop elastic offset superposition and perform a safety stop when the offset exceeds the limit, there is an unusual configuration, the joint angle distance limit is insufficient, there is an external emergency stop, or the fixture is abnormal. That is: when the offset exceeds the limit, the offset superposition is stopped immediately and the original command position is restored; when the joint angle distance limit is less than the threshold, the machine is stopped; when an external emergency stop is triggered, the gradient factor is reset to zero and braking is performed; when the fixture drop signal is abnormal, the position is maintained and the offset is turned off.
[0050] By adopting the above technical solution, the core idea of this invention is to shift the signal path of compliance calculation from "internal gain modification of the driver" to "elastic offset superposition of the motion controller command layer". The PID gain inside the driver always maintains a rigid nominal value. All compliance behaviors are achieved by calculating an elastic offset ∆θ on the motion controller side and superimposing it on the joint command position. The command position seen by the driver is no longer the original output of the trajectory planner, but a corrected command superimposed with the elastic offset—the driver only needs to track this corrected command normally and does not require any special functional support. This invention is applicable to passive compliance control scenarios, including but not limited to loading and unloading alignment, shaft hole assembly guidance, flexible clamping of thin-walled parts, insertion in confined spaces, and curved surface fitting.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] 1. Robot Model Independence: This invention performs elastic offset calculations on the motion controller side, independent of specific parameters of the robot's brand or model. The same algorithm code can be directly used for robot systems of different brands and models. When changing models, only the kinematic model parameters (DH parameters or URDF file) need to be updated, without modifying the algorithm logic, recalibrating the control parameters, or requiring force sensors.
[0053] 2. No dynamic identification required: This invention only requires Jacobian matrix calculation and Cartesian stiffness calibration. It does not require identification of the minimum inertial parameter set (eliminating the offline identification process of 60 parameters), dynamic modeling, or torque estimation unit. The implementation threshold is low, and the debugging cycle is shortened from days to hours.
[0054] 3. No risk of tracking error alarm: Because the internal PID gain of the driver always maintains a rigid nominal value, the driver's tracking accuracy is always within the normal range (usually ≤ 0.1mm), and will not trigger an "excessive position deviation" alarm. There is no need to set a dynamic tracking error threshold for the soft-floating mode, reducing the complexity and risk of safety interlocking. This is a significant engineering advantage of this invention compared to traditional gain modification schemes.
[0055] 4. Driver Model Independence: This invention performs elastic offset calculation on the motion controller side. The driver side only requires the standard EtherCAT target position PDO (object dictionary 0x607A), without needing gain register PDO mapping, driver manufacturer-specific configurations, or special firmware support. Object dictionary 0x607A is a fundamental object that all CiA 402 compliant EtherCAT servo drivers must support. When changing drivers, only the 0x607A PDO mapping needs to be confirmed (standard configuration, no additional settings required). No recalibration of control parameters, driver hardware replacement, or driver firmware modification is required—any CiA 402 EtherCAT servo from any gear and brand can be directly replaced.
[0056] 5. Closed-loop stability: This invention forms a closed loop through encoder feedback → positive kinematics → end-effector deviation → elastic offset, eliminating the need for force sensors or torque observers, thus reducing system cost and complexity. Furthermore, since the driver always tracks the command with a rigid gain, there is no risk of oscillation due to gain reduction.
[0057] 6. Full Range Compatibility: For high-end drivers supporting PDO gain mapping (such as Yaskawa Σ-7), this invention can be used in combination with its gain switching function to form a two-stage smoothness: gain switching provides a coarse-range smoothness baseline (1-cycle switching), and elastic offset provides continuous fine-range adjustment (1–2-cycle response), with the overall smoothness range continuously adjustable and responding rapidly. For mid-to-low-end drivers that do not support PDO gain mapping (Inovance SV660N only supports DI / SDO discrete switching, and SV630N does not have gain switching function), this solution can work independently, requiring only the standard 0x607A PDO and no special functions on the driver side beyond the CiA 402 standard. This invention is unaffected during model replacement.
[0058] 7. Load adaptability: Since the elastic offset is calculated in real time through the Jacobian pseudo-inverse, when the robot moves to different configurations, the Jacobian matrix is automatically updated, and the direction and magnitude of the elastic offset automatically adapt to the current configuration, without the need for separate calibration for different workstations.
[0059] 8. Seamless Two-Dimensional Migration: This invention is independent of both robot and driver models. Changing either the robot or driver model requires no modification to the algorithm code. When changing the robot model, only the kinematic model parameters (DH parameters or URDF file) need to be updated; no replacement of driver hardware or force sensors is required, allowing for overall solution migration and reuse. When changing the driver model, the algorithm code remains unchanged; only the standard 0x607A PDO mapping needs to be confirmed. Any EtherCAT servo conforming to the CiA 402 standard can be directly replaced, significantly reducing secondary development costs. Attached Figure Description
[0060] Figure 1 This is a schematic diagram comparing the signal paths of the method of the present invention with those of traditional solutions;
[0061] Figure 2 This is an overall flowchart of the method of the present invention;
[0062] Figure 3 This is a schematic diagram of the elastic offset superposition method of the present invention. Detailed Implementation
[0063] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, so that those skilled in the art can better understand the advantages and features of the present invention, thereby making a clearer definition of the scope of protection of the present invention. The embodiments described in this invention are only some embodiments of the present invention, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0064] Example 1: Stress relief scenario for loading and unloading centering of a six-axis robot
[0065] The Turing TKB2670 six-axis robot (payload 20kg, arm span 1721mm, weight 210kg, repeatability accuracy) For example, a pneumatic two-finger gripper is installed at the end to perform loading and unloading tasks for shaft parts. The workpiece is a steel shaft with a length of 500mm and a diameter of ϕ30mm. A three-jaw pneumatic chuck is installed at a fixed station. The chuck is independently driven by an external air source and its opening and closing can be controlled by a PLC signal.
[0066] The workflow is as follows: The robot picks up the steel shaft from the loading station. Transported above the chuck The steel shaft is fed into the three-jaw chuck opening by descending along the Z-axis. The chuck closes and clamps the steel shaft. Robot gripper releases The robot disengages. The core issue arises at the moment the chuck closes. Due to a combination of factors, including tooling installation errors, deviations between the chuck center and the robot's taught position, and straightness tolerances of the steel shaft, there is typically a 1–3 mm deviation between the chuck clamping center and the current pose of the steel shaft held by the robot's grippers. When the chuck closes, the three jaws forcibly push the steel shaft towards the chuck center, while the robot's grippers still rigidly hold the shaft. This forced displacement is transmitted through the grippers to the robot's flange connection surface, generating significant residual stress and torque. In rigid mode, this residual stress can lead to gripper deformation, scratches on the steel shaft surface, and robot joint torque exceeding limits, triggering an alarm and shutdown.
[0067] The soft floating scheme in this embodiment is used to solve this stress relief problem: soft floating is activated during the chuck closing phase, causing the robot end effector to synchronously offset with the steel shaft in the XY plane, flexibly relieving the stress generated by the forced displacement. After the chuck closes, the robot grippers release, and soft floating is deactivated.
[0068] The driver is a domestically produced mid-range EtherCAT servo (model SV660N), which supports H08 group gain switching (DI / SDO trigger, does not support PDO mapping), but this embodiment does not use this function and only relies on the standard CiA 402 target position PDO (0x607A).
[0069] Test and Measurement System: A six-dimensional force sensor is installed in series between the robot flange and the pneumatic gripper. Torque sensor (ATI Mini45, range) With a resolution of 0.025N and a sampling frequency of 1kHz, it is used for real-time measurement of residual force and torque at the flange connection surface. A checkerboard visual target is attached to the end face of the gripper. Images are captured at 60fps at a working distance of 300mm using a high frame rate 2D camera (Basler ace2, 5 megapixels, 25mm lens). Target corner coordinates are extracted through image processing, achieving a spatial resolution of 0.025N. This is used for non-contact, real-time measurement of end-effector XY plane displacement. All sensor data is synchronized to the motion controller's time base via an EtherCAT distributed clock (DC), eliminating time base jitter. It should be noted that the algorithm in this embodiment does not require a force sensor—the elastic offset calculation relies solely on feedback from the joint encoder (obtained through positive kinematics to determine the end-effector position). The six-dimensional force sensor and 2D vision system are only used for contact force and displacement quantification measurements during the effect verification phase.
[0070] Parameter configuration:
[0071] Softness ratio: (The Z-axis is more rigid to prevent the jaws from sagging in the direction of gravity, and the XY axes are highly compliant to accommodate chuck centering deviations.) The compliance ratio in the X direction. The proportion of compliance in the Y direction. The Z-direction compliance ratio;
[0072] Offset limit:
[0073] Damping coefficient:
[0074] Gradient range: journey, journey
[0075] Maximum equivalent translational stiffness:
[0076] Offset safety factor:
[0077] Stiffness normalized reference value:
[0078] Elastic offset hard limit:
[0079] Condition number threshold:
[0080] Motion controller cycle: 2ms
[0081] Stiffness conversion: based on flexibility ratio Equivalent stiffness in the X direction at the end Similarly... , .
[0082] Workflow:
[0083] (1) The robot grips the steel shaft from the loading position in a rigid mode and moves it to the teaching position above the chuck (the steel shaft is located near the center of the chuck's three-jaw opening, approximately 5mm from the chuck's clamping surface in the Z direction). Record the current end position. As a deviation benchmark. At this point, the stroke... Gradient factor Inelastic offset stacking.
[0084] (2) The robot descends linearly along the Z-axis, feeding the steel shaft into the chuck opening to the target depth. When the stroke s(t) reaches 60%, the gradient factor λ begins to increase linearly from 0; when it reaches 90%, The elastic offset reaches the target value. At this point, the steel shaft has fully entered the chuck clamping area, and soft floating is ready.
[0085] (3) The motion controller sends a closing command to the chuck PLC, and the three jaws of the chuck begin to close and clamp the steel shaft. If there is a deviation between the center of the chuck and the current position of the steel shaft (e.g., a deviation of 2mm in the XY direction), the three jaws of the chuck will push the steel shaft toward the center of the chuck during the closing process.
[0086] (4) Execute steps 1 to 7 within each 2ms cycle: read the angles of 6 joint encoders. and speed Calculate the Jacobian matrix and its pseudo-reversal Forward kinematics for determining the actual position of the distal end Calculate the end deviation Condition number and offset limit Calculate equivalent external force Joint mapping Elastic offset Joint clamping Gradient scaling Superimposed gravity compensation Write 0x607A.
[0087] When the chuck pushes the steel shaft, causing XY offset (with deviation in the X direction) (For example) Equivalent external force After stiffness normalization, the equivalent displacement is Then, after Jacobi pseudo-inverse mapping, it is converted into joint elastic offset ∆q, which is multiplied by the offset safety factor. The command position is then superimposed. The driver tracks the superimposed command position with a rigid nominal PID gain, causing the robot end effector to move synchronously with the forced displacement of the steel shaft, thereby relieving the stress at the flange connection surface.
[0088] (5) After the chuck is closed in place, the motion controller sends a release command to the robot gripper. After the gripper is released, the steel shaft is completely held by the chuck.
[0089] (6) Execute the SOFTOFF instruction, λ gradually changes from 1 back to 0 (gradual change time is about 200ms), the elastic offset is gradually eliminated, the robot resumes rigid tracking of the original trajectory, ensuring that no position jump occurs. After the robot end effector detaches from the workpiece, it returns to a safe position.
[0090] Gravity compensation implementation: This embodiment employs a bilinear lookup table method. After the gripper is installed on the robot, the static gravity moments of each joint at three key configurations (horizontal extension, vertical upward, and 45° forward tilt) are calibrated offline, constructing a two-dimensional lookup table of joint angles and gravity moments. Under each calibration configuration, the region near the joint is traversed with a step size of 0.1°, and the mean steady-state moment value is recorded (averaged over 500 sampling points). After cubic spline interpolation, a continuous gravity moment surface is obtained. During online operation, the estimated gravity moment value is obtained based on the current bilinear interpolation of the joint angle, and is mapped to the end effector gravity droop bias through a Jacobian pseudo-inverse mapping, serving as... Superimposed onto the command position. Calibration took approximately 30 minutes, and the joint gravity torque accuracy was [not specified]. .
[0091] Effect verification: Implement rigid mode (soft float disabled), A comparative test was conducted between the full-process mode and the flexible mode (soft floating activation in this embodiment), with 50 cycles for each mode. Each cycle consisted of the robot gripping the steel shaft. Send to chuck Chuck closing Grippers released The robot exited. During the test, a six-dimensional force sensor recorded the forces and torques on the flange connection surface throughout the entire process. The test results are shown in Table 1.
[0092] Table 1:
[0093] Through a 2D vision system (Basler ace2, spatial resolution) Real-time measurement.
[0094] After the grippers are released, in rigid mode, the strain energy stored due to elastic deformation is released, causing the end to spring back; in flexible mode, the end has already freely offset along with the steel shaft, and there is no strain energy accumulation.
[0095] Effect verification conclusion: In rigid mode, the forced displacement generated by chuck closure is rigidly resisted by the robot, and the residual force accumulated at the flange is as high as Torque is as high as Furthermore, the elastic deformation of the grippers and steel shaft stores energy, which is released after the grippers are released, causing end springback. This severely impacts positioning accuracy and product surface quality. In flexible mode, this embodiment enables the robot end effector to actively follow the steel shaft offset during chuck closure. The flange residual force and torque are reduced to 6.5% and 7.2% of those in rigid mode, respectively. There is no springback after the gripper is released, the loading success rate reaches 100%, and the actuator gain remains constant at the nominal rigid value throughout the entire process, with the following error consistently low. No alarms were triggered.
[0096] Example 2: Used in combination with gain switching scheme
[0097] For drivers that support gain switching registers (such as Yaskawa Σ-7), this embodiment can be used in combination with gain switching:
[0098] (a) Two gain switching settings: Gain Set 1 is rigid mode gain, and Gain Set 2 is compliant mode gain (pre-calibrated lower gain).
[0099] (b) When the motion controller is activated by soft float, it switches to Gain Set2 by writing the gain switching control bit through PDO;
[0100] (c) In this embodiment, continuous fine-tuning is performed by elastic offset to cover the smooth transition between gain switching levels;
[0101] (d) The combined effect of two levels of compliance: gain switching provides a coarse compliance baseline (1-cycle switching), elastic offset provides continuous fine-tuning (1-2 cycle response), and the overall compliance range is continuously adjustable and responds quickly.
[0102] Example 3: Stress relief scenario for small clearance shaft and hole assembly
[0103] The Turing TKB2670 six-axis robot (payload 20kg, arm span 1721mm, weight 210kg, repeatability accuracy) Taking the precision shaft and hole assembly task as an example. The workpiece is a steel shaft with a diameter of ϕ20mm (length 80mm), a mating hole diameter of ϕ20.10mm, and a mating clearance (diameter) of 0.10mm. (Matching), chamfering of the hole The requirement is to insert the steel shaft into the hole to a depth of 30mm. The hole is fixed on the table fixture, and the robot end effector is equipped with a pneumatic two-finger gripper, which picks up the steel shaft from the loading position and transports it to the hole for insertion.
[0104] The core problem stems from the inconsistency in gripping. Each time the pneumatic gripper grasps a steel shaft, the shaft's posture within the gripper varies slightly—including rotational deviations around the gripper axis, translational deviations along the gripper opening direction, and axial angle deviations caused by the asymmetry of the gripper's two fingers closing. The cumulative effect of these deviations is that after each gripping, the relative relationship between the steel shaft axis and the gripper flange axis is not perfectly consistent. For a precision fit with a clearance of 0.10mm, even if the robot's repeatability reaches a certain level... The clamping consistency deviation (typically equivalent to an offset of 0.5–2 mm at the shaft end) far exceeds the fit clearance. In rigid mode, if the end of the steel shaft fails to align with the chamfered area of the hole, the shaft end directly impacts the edge of the hole, causing a sharp increase in contact stress. Even if the shaft end enters the chamfered area, the non-parallelism of the axis due to the clamping posture deviation causes one side of the steel shaft to continuously press against the hole wall during insertion, generating lateral force and friction that increases with the insertion depth, ultimately leading to insertion jamming, hole wall scratches, or robot joint torque exceeding the limit and shutdown.
[0105] The soft floating scheme in this embodiment is used to solve this problem: soft floating is activated during the steel shaft insertion stage, so that the robot end effector is highly compliant in the XY plane. When the steel shaft contacts the chamfer of the hole or the hole wall, the end effector automatically follows the deviation and offsets. The steel shaft slides into the hole along the chamfer and adaptively aligns with the hole axis, thus relieving the lateral squeezing force caused by the gripping posture deviation.
[0106] The driver is a domestically produced mid-range EtherCAT servo (Inovance SV660N), which only relies on the standard CiA 402 target position PDO (0x607A) and does not use the gain switching function.
[0107] Test and Measurement System: A six-dimensional force sensor is installed in series between the robot flange and the pneumatic gripper. Torque sensor (ATI Mini45, range) The sensor has a resolution of 0.025N and a sampling frequency of 1kHz, used for real-time measurement of end-contact force, lateral force, and torque during insertion. A checkerboard visual target is attached to the gripper end face, and images are captured at 60fps from a working distance of 300mm using a high-frame-rate 2D camera (Basler ace2, 5MP, 25mm lens). The spatial resolution is [not specified in the original text]. This is used for non-contact, real-time measurement of end-effector XY plane displacement and angular deflection. Insertion depth is calculated by the difference between the robot's Z-axis encoder position and the orifice reference Z-coordinate. All sensor data is synchronized to the motion controller's time base via an EtherCAT distributed clock (DC), with time base jitter minimized. The six-dimensional force sensor and 2D vision system are only used for effect verification; the system operation does not depend on the force sensor.
[0108] Parameter configuration:
[0109] Softness ratio: (High compliance in the XY direction to absorb lateral forces caused by gripping attitude deviations; high rigidity in the Z direction to provide stable insertion thrust)
[0110] Offset limit:
[0111] Damping coefficient: (High damping suppresses instantaneous impact oscillations between the steel shaft and the chamfer of the borehole opening and the borehole wall.)
[0112] Gradient range: journey, journey
[0113] Maximum equivalent translational stiffness:
[0114] Offset safety factor:
[0115] Stiffness normalized reference value:
[0116] Elastic offset hard limit:
[0117] Condition number threshold:
[0118] Motion controller cycle: 1ms
[0119] Workflow:
[0120] (1) The robot grips the steel shaft from the loading position in a rigid mode and moves it to the teaching position above the orifice (the end face of the steel shaft is about 10mm from the plane of the orifice, and the axis of the steel shaft is aligned with the axis of the orifice). Record the current end position. As a deviation benchmark. At this point, the stroke... Gradient factor Inelastic offset stacking.
[0121] (2) The robot descends linearly along the Z-axis to perform the insertion motion. The first 80% of the stroke is a rigid descent section (the steel shaft end face descends from 10mm to about 2mm). When the trip When it reaches 80%, λ begins to increase linearly from 0; when it reaches 95%, Soft floats are fully activated.
[0122] (3) Chamfering of the contact hole opening on the end face of the steel shaft ( If the clamping posture deviation causes a misalignment or angular deviation between the steel shaft axis and the hole axis, one side of the steel shaft end will first contact the chamfered slope. The motion controller detects the end deviation ∆X within a 1ms cycle, immediately calculates the elastic offset and adds it to the command position, causing the steel shaft to slide along the chamfered slope towards the center of the hole.
[0123] (4) Execute steps 1 to 7 within each 1ms cycle: read the joint encoder. Calculate Jacobi and pseudo-inverse positive kinematics Condition number and offset limit judgment Joint clamping Superimposed gravity compensation Write 0x607A.
[0124] (5) After the steel shaft enters the hole, if the axis is not parallel due to the clamping posture deviation, one side of the steel shaft will contact the hole wall and generate a lateral force. The motion controller detects this continuous deviation in each cycle and continuously generates an elastic offset so that the end follows the hole wall constraint to adaptively adjust—the steel shaft "follows the hole wall," and the lateral extrusion force is absorbed by the compliant behavior rather than accumulated. The Z direction remains rigid ( The insertion thrust is unaffected.
[0125] (6) After the steel shaft is inserted to the target depth of 30mm, the SOFTOFF command is executed, and λ gradually changes from 1 back to 0 (gradual change time is about 200ms). The elastic offset is gradually eliminated and the robot regains rigidity. The end effector returns to the safe position, and one assembly cycle is completed.
[0126] Effect Verification: To verify the impact of clamping consistency deviation on insertion stress, the steel shaft posture was manually fine-tuned and then re-clamped after the clamps were released (simulating clamping consistency fluctuations in actual production), so that the equivalent offset at the end of the steel shaft was randomly distributed within the range of 0–2 mm. Rigid mode was performed (soft float off). A comparative test was conducted on the full-process mode and the flexible mode (in this embodiment), with 50 cycles for each mode.
[0127] Through a 2D vision system (Basler ace2, spatial resolution) Real-time measurement. The offset distribution in flexible mode is positively correlated with the pre-calibrated value of the gripping attitude deviation. This indicates that the elastic offset accurately responded to the clamping deviation.
[0128] Failure Analysis: In flexible mode, both failures occurred when the initial offset of the steel shaft end exceeded 2.5mm, and the steel shaft did not enter the chamfered area at all. The projected width is 1mm), and the shaft end directly impacts the end face of the hole. The rigidity in the Z direction makes it impossible to avoid the impact on the end face. This condition exceeds the design scope of this embodiment (which relies on chamfering and rigidity in the Z direction to ensure insertion force), and requires external visual guidance or a mechanical alignment mechanism for coarse alignment. The test results are shown in Table 2.
[0129] Table 2:
[0130]
[0131] Performance verification conclusion: In rigid mode, the steel shaft misalignment caused by clamping posture deviation cannot be compensated for during insertion, and the lateral force accumulates with the insertion depth—the peak lateral force in 18 successful insertions is still as high as [missing information]. The remaining 32 insertion attempts resulted in shutdowns due to lateral forces exceeding the joint torque threshold, leading to an insertion success rate of only 36%. In flexible mode, this embodiment utilizes high compliance in the XY directions to enable the robot's end effector to actively and adaptively adjust to follow the hole wall constraints, reducing the peak lateral force to 9.3% of that in rigid mode (8N vs 86N), and increasing the insertion success rate to 96%. The actuator tracks commands with rigid nominal gain throughout the entire process, minimizing tracking errors. No tracking error alarm was detected. This result verifies the stress relief capability of this embodiment for clamping consistency deviation in precision small-gap assembly: the compliant behavior is completed on the motion controller side, without the need to modify the gain parameters on the driver side, and without the need for attitude calibration compensation for each clamping.
[0132] Example 4: Comparative Verification of Driver Platforms at Different Levels
[0133] To verify the driver independence of this invention, tests were conducted on the following three driver platforms:
[0134] Platform A: Yaskawa Σ-7 (high-end), supports PDO gain mapping, supports gain switching ( It has a complete vendor-specific object dictionary. This embodiment does not use the aforementioned advanced features, but only uses the standard 0x607A target location PDO.
[0135] Platform B: Huichuan SV660N (mid-range model), does not support PDO gain mapping, but supports H08 group gain switching. (Triggered, not real-time). This embodiment does not use gain switching, but only the standard 0x607A target position PDO.
[0136] Platform C: Huichuan SV630N (Economy Model), does not support PDO gain mapping, lacks gain switching function, and only supports standard... This embodiment uses only the standard 0x607A target location (PDO).
[0137] All three platforms are equipped with a Turing TKB2670 six-axis robot body (with the same mechanical parameters and DH parameter file), the same motion controller hardware, and the same algorithm code for this embodiment. The only difference is the EtherCAT slave configuration file. The PDO mapping address is 0x607A in the example. The test task is the same as in Example 1 (stress relief during loading and unloading of shaft parts), and the test procedure and measurement system are consistent with Example 1.
[0138] Each platform underwent 50 complete cycle tests. The following metrics were measured: (1) Elastic offset response time: the time delay from the generation of end offset to the superposition of elastic offset onto the command position; (2) Offset accuracy: the deviation between the actual end offset and the target offset; (3) Follow-up error: the maximum follow-up error of the position loop inside the driver; (4) Number of follow-up error alarm triggers. The test results are shown in Table 3.
[0139] Table 3:
[0140]
[0141] Analysis: The three platforms have different elastic offset response times ( ), offset accuracy ( There is no difference in performance—the elastic offset calculation is entirely completed on the motion controller side, and differences in driver model and function do not affect the algorithm behavior. The difference in following error stems from driver hardware performance: Platform A has a higher position loop bandwidth (…). Tracking accuracy Platforms B and C have lower bandwidth (approximately 200Hz), resulting in lower tracking accuracy. However, all results were within the normal range of their respective rigid modes, and no follow-up error alarm was triggered. This result verifies the driver independence of this embodiment: without relying on driver gain modification function, gain switching function, or any vendor-specific PDO mapping, a consistent soft float function can be achieved on different gear drivers with only a standard 0x607A target position PDO.
[0142] The descriptions and practices disclosed in this invention are readily apparent and understandable to those skilled in the art, and various modifications and refinements can be made without departing from the principles of this invention. Therefore, any modifications or improvements made without departing from the spirit of this invention should also be considered within the scope of protection of this invention.
Claims
1. A robot-independent soft floating control method based on command position elastic offset, characterized in that, Includes the following steps: Step 1: Within each motion controller servo cycle, read the encoder angles of each joint of the robot. and joint velocity The actual position of the end effector is calculated using forward kinematics. Simultaneously calculate the geometric Jacobian matrix. and its pseudo-reversal ; Step 2: Calculate the end position deviation ,in This is the end-taught position recorded when the soft float is activated. The actual position of the end effector calculated using forward kinematics; Step 3: Convert the end position deviation into an equivalent external force using the Cartesian stiffness matrix. ,in This is the Cartesian stiffness diagonal matrix converted from the user's compliance ratio. This is the end position deviation vector; Step 4: Map the end effector deviation to joint space using the Jacobian pseudo-inverse, and calculate the elastic offset: in The Cartesian stiffness diagonal matrix, Here, α is the normalized reference value for stiffness, and α is the offset safety factor. This is the damping scaling factor. This refers to the actual velocity at the end point; This represents the initial elastic displacement vector in the joint space. This represents the elastic offset in the joint space. This is the pseudo-inverse of the Jacobian matrix; Step 5: Calculate the gradual change factor based on the current movement distance. Gradual scaling of the elastic offset ; Step 6: Add the gradually changed elastic offset to the joint command position output by the trajectory planner to obtain the final command position. ;in, This is the offset due to gravity compensation. The original joint command positions are output by the trajectory planner. This is the joint elastic offset after gradual scaling; Step 7: Write the final command position into the servo driver using a standard EtherCAT target position process data object. The PID gain of the position loop, speed loop, and current loop inside the servo driver remains at a rigid nominal value. The compliant behavior is achieved entirely by superimposing the elastic offset of the command position on the motion controller side.
2. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, In step 1, the pseudoinverse of the Jacobian matrix is calculated using the Cholesky decomposition inversion method: first calculate... Perform Cholesky decomposition on A. Solving by previous and back generations , then calculate Where A is the product of the Jacobian matrix and its transpose, and L is the lower triangular matrix obtained from the Cholesky decomposition. It is the inverse of the lower triangular matrix. This is the pseudo-inverse of the Jacobian matrix; furthermore, after step 1, a singular configuration protection step is included: calculating the condition number cond(J) of the Jacobian matrix, and if it exceeds a preset threshold... If this occurs, the elastic offset stacking will stop, the gradient factor will be reset to zero, and an alarm will be triggered.
3. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, In step 3, the Cartesian stiffness matrix is set independently in each direction. ,in For the proportion of flexibility in each direction, To achieve the maximum equivalent translational stiffness; and, in step 4, a limit is set for the elastic offset of each joint. ,in, For elastic offset hard limiting, clamping is performed when the elastic offset exceeds the limit to prevent single joint overshoot; wherein, the offset safety factor α is a global safety scaling factor with a default value of 0.8, decoupled from the compliance ratio in each direction; the stiffness normalized reference value Take Ktrans,max; and in step 2, if the offset in any direction... Exceeding the preset offset limit If the elastic offset superposition is stopped immediately, the gradient factor is reset to zero, and the machine is decelerated and stopped.
4. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, In step 6, gravity compensation offset Obtained by one of the following methods: (a) using a lookup table to pre-calibrate the gravity moment in the critical configuration section; (b) using the built-in gravity feedforward channel of the actuator; (c) superimposing a gravity sag pre-compensation term in the elastic offset.
5. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, The method can be used in combination with the driver gain switching register to form a two-stage compliant control: gain switching provides a coarse compliance baseline, and elastic offset provides continuous fine-tuning.
6. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, In step 5, the gradient factor From the current exercise schedule Calculate using the following formula: in, and These represent the travel proportions at the start and end points of the gradual activation; when... hour , when hour 7. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, The method also includes motion mode constraints: soft float is activated only in linear motion segments, and soft float is prohibited in circular motion segments, jogging mode, homing mode, and calibration mode.
8. The robot-independent soft floating control method based on command position elastic offset according to claim 1, characterized in that, The method does not require modification of the servo drive's internal gain parameters, only a standard EtherCAT target position process data object, and is applicable to EtherCAT servo drives conforming to the CiA 402 standard.
9. A robot-independent soft float control system based on commanded position elastic offset, used to implement the robot-independent soft float control method based on commanded position elastic offset as described in any one of claims 1-8, characterized in that, The system includes: The kinematics calculation module is used to read the joint encoder angles and velocities, calculate the Jacobian matrix and its pseudo-inverse, and calculate the actual position of the end effector through forward kinematics. The elastic offset calculation module is used to calculate the end position deviation, which is converted into an equivalent external force through the Cartesian stiffness matrix and then mapped to the joint space through the Jacobian pseudo-inverse to obtain the elastic offset. The gradient control module is used to calculate the gradient factor based on the current motion stroke and to gradually scale the elastic offset. The instruction overlay module is used to overlay the gradually changed elastic offset and gravity compensation offset onto the joint instruction position output by the trajectory planner to obtain the final instruction position. The output interface module is used to write the final command position to the servo drive via a standard EtherCAT target position process data object, wherein the PID gain inside the servo drive remains a rigid nominal value.
10. A robot-independent soft floating control system based on command position elastic offset according to claim 9, characterized in that, The system also includes a safety interlock module, which is used to stop the elastic offset superposition and perform a safety stop when the offset exceeds the limit, the configuration is unusual, the joint angle distance limit is insufficient, the external emergency stop is triggered, or the fixture is abnormal.
Citation Information
Patent Citations
Sensorless industrial robot linear soft floating control method
CN109773781A
A soft floating control method for a forceless / torque sensor robotic arm
CN112743541B
Compliant control method and device of robot and electronic equipment
CN117047771B
