Autonomous Navigation For Quadrupedal Robots With Optimized Jumping Through Constrained Obstacles