Text this: Design of the Variable Stiffness Mechanism with Human-robot Interaction and Research on Optimal Hammering Trajectory