Abstract
Path planning for legged robots requires a balance between local obstacle avoidance and a comprehensive understanding of global environmental structures. While traditional algorithms like A are robust, they often encounter computational bottlenecks in large-scale or complex environments. Recent "Neural A" approaches have utilized Convolutional Neural Networks (CNNs) to guide the search process, yet these models often suffer from a local bias that ignores long-range spatial dependencies. This paper introduces ViT-A, a framework that integrates the global attention mechanisms of Vision Transformers (ViT) with the reliability of A search. By processing maps through self-attention, ViT-A* generates superior guidance maps that significantly reduce search time and node exploration. The system's efficacy is demonstrated through benchmarks on the Mobile Robot Planning Benchmark (MRPB) and real-world deployments on Boston Dynamics Spot and Unitree Go1 robots.
Introduction
Path planning is a fundamental challenge in mobile robotics, determining the optimal route from a start point to a goal while navigating obstacles. Traditional methods, such as A* and Rapidly-exploring Random Trees (RRT), are standard in the industry but scale poorly as map size and complexity increase. To address this, researchers have turned to neural-guided search, where a neural network predicts which areas of a map are most likely to contain the optimal path, effectively creating a heuristic "guidance map."
However, existing neural planners primarily rely on CNNs. While CNNs are excellent at detecting local features, they struggle to capture the global topology of large floor plans—such as understanding that a specific hallway on one side of a building eventually connects to a goal on the far side. ViT-A* addresses this "tunnel vision" by replacing the CNN backbone with a Vision Transformer, allowing the planner to maintain a global perspective of the environment.
Methodology
The ViT-A* framework consists of a multi-stage pipeline designed for end-to-end training and efficient execution:
- Map Patching: The input 2D occupancy map is partitioned into small, manageable patches.
- Transformer Encoding: Unlike the local filters of a CNN, the Vision Transformer utilizes self-attention to compare every patch with every other patch in the map. This allows the model to learn long-range dependencies and the overall layout of the environment.
- Guidance Map Generation: A decoder transforms these global embeddings into a "Guidance Map." This map assigns lower costs to regions that are likely part of the optimal path and higher costs to dead ends or irrelevant areas.
- Differentiable A: The system employs a differentiable version of the A algorithm. This allows the entire architecture—from the raw map input to the final path output—to be optimized using backpropagation during the training phase.
- Hardware Integration: For real-world deployment, the global path generated by ViT-A* is passed to a local planner (such as the Timed-Elastic-Band planner) within a ROS navigation stack, which manages the specific gait and obstacle avoidance for legged platforms like the Spot and Go1.
Experimental Setup and Datasets
The performance of ViT-A was evaluated using the Mobile Robot Planning Benchmark (MRPB)*. This dataset provides a variety of realistic 2D floor plans, including:
- Office Environments: Complex layouts with multiple rooms and narrow corridors (e.g.,
office01,office02). - Large Public Spaces: Expansive areas like malls that test the scalability of the planner.
- Maze Structures: Highly intricate paths designed to challenge the search efficiency of the algorithm.
Maps in the benchmark ranged from 280x280 to 760x760 pixels. To ensure versatility, the authors utilized a specific positional encoding technique that allows the ViT to process maps of varying dimensions without requiring retraining for different building sizes.
Key Insights and Results
The core advantage of ViT-A lies in its ability to reduce the search space. By providing a more accurate "intuition" of the map, the algorithm explores significantly fewer nodes (the "green area" in search visualizations) compared to standard A or CNN-based planners.
Performance Metrics
In comparative testing against classic A and CNN-based Neural A (N-A), ViT-A showed marked improvements in speed and efficiency:
- Scalability: On a large 760x760 "mall" map, ViT-A solved the path in 12.73 seconds, whereas the CNN-based N-A took 16.57 seconds, and classic A required 36.24 seconds*.
- Efficiency: In maze environments, ViT-A demonstrated a 17% speed increase over traditional A.
- Real-World Robustness: The system was successfully validated on Boston Dynamics Spot and Unitree Go1 robots, confirming that the learned global plans are practical for real-world legged locomotion.
Conclusion and Future Work
ViT-A* demonstrates that global context is a critical component of efficient robot navigation. By leveraging the long-range modeling capabilities of Vision Transformers, the framework provides a faster, more scalable alternative to traditional and CNN-based planners.
Future research will focus on expanding the system's capabilities, including:
- Semantic Planning: Moving beyond binary occupancy grids to plan directly on RGB images, allowing robots to distinguish between different terrain types (e.g., avoiding mud or tall grass).
- 3-DOF Planning: Incorporating robot orientation (heading) into the global plan to improve navigation in extremely tight or constrained spaces.
- Unstructured Environments: Testing the framework in complex outdoor settings to further prove its versatility beyond indoor floor plans.
Summary updated