Visible to the public Hierarchical Safe, and Distributed Feedback Control of Multiagent Legged Robots for Cooperative Locomotion and Manipulation