Safer reinforcement learning for robotics