Reinforcement learning for bio-inspired robot locomotion