The invention relates to the technical field of
robot motion control, and discloses a
robot control method and
system combining singular point avoidance and obstacle function control. The
robot control method is applied to
robot control equipment and specifically comprises the following steps that S101, a
robot control request is received, a position coordinate
system in a Cartesian space is established at the
tail end of a mechanical arm, and a
tail end position vector x = [x, y, z] T and a
virtual wall center coordinate C are defined, the radial distance r = x-c from the
tail end to the center of the
virtual wall and a radial unit vector are calculated, boundary parameters are set, a
virtual wall area is defined by an outer boundary
radius rmax and an inner boundary
radius rmin, and a safe
motion range is formed; s102, decomposing the expected velocity vdes in the Cartesian space into a radial component and a tangential component; the limitation that a traditional
potential field method is prone to oscillation and a speed truncation method is discontinuous is broken through by fusing a control obstacle function and a singular point evasion strategy, and strict mathematical constraints established by the control obstacle function ensure that the tail end does not break through a virtual wall boundary absolutely.