The application provides an edge-computing-based real-
time control method and
system for a mechanical arm, relates to the technical field of mechanical arm control, and comprises the following steps: acquiring state information of the mechanical arm and a task instruction; performing semantic analysis at an
edge node and converting the semantic analysis into a joint space trajectory sequence; performing
time domain decomposition to generate an execution section and a cache section; generating a motion plan based on a time optimization criterion and calculating a control instruction; acquiring an actual state to calculate a deviation; when the deviation exceeds a threshold value, calculating a deviation influence quantity and generating a compensation quantity to correct the cache section and realize real-
time control. The application realizes high-precision real-
time control and intelligent correction of the mechanical arm.