Visible to the public Towards optimal robot locomotion in fluids through physics-informed learning with distributed sensing