To address the challenges of compliance and safety in robot direct teaching within a constrained task space, this paper proposes a variable admittance control algorithm based on task-space boundary ...