Gun Travel: Is your RV a Vehicle or a Residence?

So we have laws on homes and castle doctrines. But an RV is a vehicle right? Or is it a home? Is it your castle? Well, that depends.