Vector Field Histogram
R2026bAvoid obstacles using vector field histogram
Libraries:
Navigation Toolbox /
Control Algorithms
Description
The Vector Field Histogram (VFH) block enables your vehicle to avoid obstacles based on range sensor data. Given a range sensor reading in terms of ranges and angles, and a target direction to drive toward, the VFH controller computes an obstacle-free steering direction.
For more information on the algorithm details, see Vector Field Histogram under Algorithms.
Examples
Limitations
The
RangesandAnglesinputs are limited to 4000 elements when generating code for models that use this block.
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"navlib/Control Algorithms/Vector Field Histogram"
Example: add_block("navlib/Control Algorithms/Vector Field Histogram","myModel/myBlock",MakeNameUnique="on")
Algorithms
Extended Capabilities
Version History
Introduced in R2019b
See Also
Blocks
- Pure Pursuit | Publish (ROS Toolbox) | Subscribe (ROS Toolbox) | Timed Elastic Band

