Bio-inspired design of sensors and mechanisms in humanoid robotics