Robust and Reusable Methods for Shepherding and Visibility-Based Pursuit