Locomotion Policy Guided Traversability Learning using Volumetric Representations of Complex Environments