The application relates to a method for determining the joint
stroke of a mechanical arm by using a Monte Carlo method, comprising the following steps: step 1, determining the
pose constraint of the mechanical arm, wherein the
pose constraint comprises the activity range and the pointing range of the end position of the mechanical arm; step 2, constructing the
inverse kinematics equation of the mechanical arm according to the configuration parameters of the mechanical arm, wherein the configuration parameters comprise the included angle between the rotation axes of each adjacent joint of the mechanical arm; and step 3, taking a certain state of the mechanical arm containing different
joint angle information as a Monte Carlo sample point, and calculating the
joint angle information set in different Monte Carlo sample points according to the
pose constraint of the mechanical arm and the
inverse kinematics equation, wherein the
joint angle information set comprises the
stroke envelope of different joints in the mechanical arm. The application can determine the
stroke envelope of the joint unit of the mechanical arm in the case that the configuration of the mechanical arm is known and a certain specified probability is determined, so as to guide the fine design of the envelope formed by the joints of the mechanical arm.