OK, so I decided to do a sketch of what I think would be a cheap and doable humanoid robot leg that can both walk and drive; it may be applicable to other robot designs too. Just pretend this is drawn much better than it actually is. The waifu is supposed to have a curvy, sleek look; think KOS-MOS from Xenosaga, but pretend her thigh-highs/lower legs have been replaced with this leg design.
In rolly mode the robot gets around on large wheels that are built into the foot structure, instead of having separate wheels like roller skates; the robot's upper body also shifts slightly forward, while the angle of the legs to the ground becomes shallower, going from near 90 degrees to more like 75-80 degrees. Big off-road wheels such as Segway wheels are better for crushing through terrain than small roller skate wheels that extend off of a shoe, and when you're a robot, you don't have to have a completely human-like foot structure, so you can have a giant wheel built into your foot. It also has 2-3 smaller, unpowered "training wheels" as toes in front of the large main wheel to help balance; these can be roller skate wheels. The leg uses reverse leg joints for greater stability, similar to some Paralympic sprinters, but when walking, the mass shifter and pulley system are used.
I also included this random Metal Gear fan art I found so I could use it to illustrate a very important feature, the U-shaped bars on the back of the feet. This is how you enable it to both walk and drive. Most robot leg designs that use wheels on the feet either have no alternate mode or they have the wheels retract like airplane landing gear when the robot needs to walk, but I think the U-shaped bar might be a better solution. The bar goes out past the back of the big wheel, enclosing it; the robot puts the U-shaped bar down to contact the ground to walk and raises it up to let the wheels touch the ground in order to drive. You could also put springs somewhere on the leg, maybe the thigh, to serve as an energy return system and save more battery power when walking.