The application discloses a
robot impedance force control method suitable for a
variable stiffness environment. First, an impedance filter is determined according to environment parameters,
inertia parameters and stiffness parameters of the impedance filter are determined, and a damping parameter is adjusted according to environment stiffness. Then, a reference trajectory of an end
effector of a mechanical arm is calculated according to the environment parameters and expected force information,
contact force is detected in real time, and a
contact force error is calculated, so that the
contact force error is converted into a position deviation through a
constant impedance filter or a variable impedance filter, the position deviation is superimposed with the reference trajectory to obtain a command position of the end
effector of the mechanical arm, and finally, the end
effector operates according to the command position to realize accurate force control. The scheme of the application applies different impedance filters according to the known or unknown environment stiffness, can be applied to a work scene with variable environment stiffness, and compared with a traditional impedance force control method, can realize stable operation and accurate force control of the mechanical arm in the
variable stiffness environment, and is conveniently applied to various application scenes.