Sleep compulsions are used by some people to cope with stress; they calm and sooth the person to sleep. Rocking the body to sleep is considered a common sleeping habit. It is not dangerous, but it could be embarrassing if the person is with company....