Getting up and walking around while in a state of sleep is referred to as somnambulism or as we know it, sleepwalking. This undesirable activity usually occurs early in the night, most often 1-2 hours after falling asleep.
Sleepwalking is much more predominant in children than it is in adults. As children transition into their teen years, the sleepwalking usually phases out. If you are experiencing an occasional episode of sleepwalking, it can be normal. However, when the episodes become frequent, it may be time to consult a doctor.