An Obstacle avoidance method for a redundant manipulator controlled through a recurrent neural network