Robots are deployed to perform various tasks and assist mankind. This paper describes the operation of a fourlegged robot, i.e., a quadruped in real-world scenarios, with multiple terrains and obstacles. This work focuses on the design and locomotion of a sprawling-type autonomous quadruped on flat surfaces, slopes, and stairs while simultaneously implementing obstacle avoidance.