Comment by sircastor
I did this, though Robotics is adjacent for me. My software is still web tech interfacing with robots. If I wanted to, I could probably transfer internally to do more direct work with robots.
The way I did it was to find robotics companies that needed a web dev. I had to stick with it for a bit because either a bad match or in one case they withdrew the opening (I’m 90% sure they were about to hire me too)
My current company is ROS specific. It wouldn’t hurt you to learn ROS stuff as it’s quite popular.