The Safety Force Field sample checks whether a desired control (i.e., a choice of steering angle and longitudinal acceleration) is safe when all actors (ego-vehicle and other obstacles) execute a safety procedure. Safety is with respect to the obstacles in a given obstacle array, or egomotion/vehicleIO state. If the control is deemed unsafe, it is corrected to a safe one.
In this sample, only the ego-vehicle executes a corrected control. Other vehicles do not apply any control correction. A lane graph can optionally be specified and will make the safety procedure line up parallel to the given lane.
The command line for the sample is:
./sample_safetyforcefield --testcase=[0|1]
                          --useRoadStructure=[0|1]
                          --expandClaimedSets=[0|1]
where
--testcase=[0|1]
    Specifies a predefined synthetic scenario.
    Scenario 0 has an ego-vehicle with two other vehicles that are cutting in the ego-vehicle's driving direction.
    Scenario 1 has an ego-vehicle following another slow vehicle.
    Default value: 0
--useRoadStructure=[0|1]
    1 for safety procedure to line up with a road
    Default value: 0
--expandClaimedSets=[0|1]
    1 for claimed sets to expand by possible reaction time uncertainty
    Default value: 0
./sample_safetyforcefield
./sample_safetyforcefield --useRoadStructure=1 --expandClaimedSets=1
The output is composed of two images:
In the top down view of claimed sets:
In the control constraint image:
 
For more details, please refer to Safety Force Field.