A Distributed Control System For A Self-Contained Bipedal Robot