Text this: Trajectory Optimization of Eight-link Mechanism for Legs of Walking Bio-robot