I’m applying for transfer to JHU this year. My current school in CA is a private university, whose computer science program ranks higher than JHU. I think for undergraduate the ranking of your specific major generally matters much less than it does for grad school. I love the vibe of JHU campus and the structure of curriculum so I decided to transfer.
JHU has always been particularly strong in biological sciences which is pretty related to robotics.