When my son was two he was climbing out of his crib it was surprising to me that he was really doing this, but then I knew it was time for a bed because I did not want him to hurt his self. So we went out and bought him a bed and he was still getting up during the night coming in our room.
One day I was at the store and it came across to me that maybe if I got him a tent he would stay in his room and sleep in the tent. Guess what it worked even with him taking naps because he did not want to take them but he was happy to when he got his tent. He's three now almost four and we still in the winter time put his tent up in his room and he has a choice to sleep in his tent or his bed.
There are nights that he still gets up and come to our room but it's not every night and don't I band him on those night because some kids do have bad dreams or there might be something else going on. So I just go to his to room and grab his sleeping bag and he sleeps in his sleeping bag.