A Motion Planning Approach for Nonprehensile Manipulation and Locomotion Tasks of a Legged Robot | Synapse