1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page dwx_safetyforcefield_sample Safety Force Field Sample
6 @note SW Release Applicability: This sample is available in **NVIDIA DRIVE Software** releases.
8 @section dwx_safetyforcefield_description Description
10 The Safety Force Field sample checks whether a desired control (i.e., a choice of steering angle and longitudinal acceleration)
11 is safe when all actors (ego-vehicle and other obstacles) execute a safety procedure. Safety is with respect to the obstacles in a given
12 obstacle array, or egomotion/vehicleIO state. If the control is deemed unsafe, it is corrected to a safe one.
14 In this sample, only the ego-vehicle executes a corrected control. Other vehicles do not apply any control correction.
15 A lane graph can optionally be specified and will make the safety procedure line up parallel to the given lane.
17 @section dwx_safetyforcefield_running Running the Sample
19 The command line for the sample is:
21 ./sample_safetyforcefield --testcase=[0|1]
22 --useRoadStructure=[0|1]
23 --expandClaimedSets=[0|1]
28 Specifies a predefined synthetic scenario.
29 Scenario 0 has an ego-vehicle with two other vehicles that are cutting in the ego-vehicle's driving direction.
30 Scenario 1 has an ego-vehicle following another slow vehicle.
32 --useRoadStructure=[0|1]
33 1 for safety procedure to line up with a road
35 --expandClaimedSets=[0|1]
36 1 for claimed sets to expand by possible reaction time uncertainty
39 @subsection dwx_safetyforcefield_examples Examples
41 #### Running the sample with default arguments
43 ./sample_safetyforcefield
45 #### Running the sample using a expanding claimed set that lines up with the road structure
47 ./sample_safetyforcefield --useRoadStructure=1 --expandClaimedSets=1
49 @section dwx_safetyforcefield_output Output
51 The output is composed of two images:
52 - The left image is a top down view of the claimed sets, i.e., the likely trajectories of the actors executing their safety procedures.
53 - The right image is a control constraint image of the ego-vehicle.
55 In the top down view of claimed sets:
57 - The ego-vehicle's claimed set is magenta.
58 - Other vehicles claimed sets are cyan.
59 - Rendering hovers over the ego-vehicle, where the claimed set remains stationary.
61 In the control constraint image:
63 - The X-axis indicates the front wheel steering angle. Any pixel on the left half of the image has a positive steering angle.
64 On the X-axis there is one gray marking per degree.
65 - The Y-axis indicates acceleration. Any pixel on the top half of the image has positive acceleration.
66 On the Y-axis there is one gray marking per meter per second squared.
67 - The white unfilled box indicates the steering angle and acceleration limits.
68 - A green pixel indicates a safe control, which meets all control constraints.
69 - A red pixel indicates an unsafe control, which violates at least one of the control constraints.
70 - The black circle is the ego-vehicle's control before actuation.
71 - The blue circle is the ego-vehicle's control after actuation.
72 - The dark green circle is the initial control on the ego-vehicle's safety procedure.
74 
76 @section dwx_safetyforcefield_more Additional Information
78 For more details, please refer to @ref safetyforcefield_mainsection.