Skip to content

VFH+ Implementation for Real-time Local Obstacle Avoidance in Autonomous Vehicle Navigation #52

@Khushi0512

Description

@Khushi0512

Description:

Vector Field Histogram (VFH) is a local obstacle avoidance algorithm for mobile robot operating in unknown or dynamic environment in real time. VFH utilizes two phases of processing: creating 2D cartesian histogram grid from ranged sensor reading (LiDAR/ultrasonic) and making 1D polar histogram which shows an object-density around the vehicle in a specific direction.
Steering commands are chosen by finding "valleys" (sectors of low obstacle density) in the polar histogram, considering the vehicle's current heading and desired direction. VFH+ is an enhanced version of the original VFH that includes trajectory look-ahead verification and cost function optimization to generate a more continuous motion.

Plan for Implementation:

  1. Sensor Simulation: Simulate LiDAR/range sensor data returning obstacle distances in polar coordinates
  2. Cartesian Histogram Grid: Build 2D occupancy grid with certainty values, updated continuously
  3. Polar Histogram Construction:
  • Convert Cartesian grid to 1D polar histogram around robot position

  • Apply smoothing to reduce noise and sensor uncertainty

  1. Candidate Direction Selection:
  • Identify sectors with obstacle density below threshold (valleys)

  • Calculate cost function considering target direction, current heading, and previous direction

  1. Speed Control: Implement dynamic speed adjustment based on obstacle proximity
  2. Trajectory Verification: Look-ahead collision checking for selected direction
  3. Visualization: Display histogram grid, polar histogram, selected direction, and vehicle path

Expected Outcomes:

  • Real-time obstacle avoidance simulation in dynamic environments
  • Smooth navigation through dense obstacle courses at speeds 0.5-0.8 m/s
  • GIF animation showing vehicle avoiding static and moving obstacles
  • Comparative analysis with potential field methods (VFF)
  • Performance metrics: average speed, collision avoidance success rate, path smoothness
  • Demonstration of superior performance in U-shaped traps and narrow passages
  • Unit tests for histogram construction, direction selection, and collision prediction

Execution structure and Pre-requisite

  1. Pre-requisite: NumPy, Matplotlib, SciPy
  2. File Structure:
  • main algorithm
  • occupancy grid management
  • 1D histogram construction
  • range sensor simulation
  1. Parameters: Grid resolution, histogram sector size, threshold values, safety margins
  2. Test Scenarios: Dense obstacle field, moving obstacles, narrow corridors, dead-end situations
  3. Advantages: Fast computation, real-time capable, handles sensor uncertainty well
  4. Limitations: Local planner only (no global optimality), may get stuck in local minima
  5. Integration: Can be combined with global planner (like Hybrid A*) for hierarchical planning

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions