DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

/dvs/git/dirty/gitlab-master_av/dw/sdk/samples/safetyforcefield/README.md
Go to the documentation of this file.
1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
2 
3 @page dwx_safetyforcefield_sample Safety Force Field Sample
4 @tableofcontents
5 
6 @note SW Release Applicability: This sample is available in **NVIDIA DRIVE Software** releases.
7 
8 @section dwx_safetyforcefield_description Description
9 
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.
13 
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.
16 
17 @section dwx_safetyforcefield_running Running the Sample
18 
19 The command line for the sample is:
20 
21  ./sample_safetyforcefield --testcase=[0|1]
22  --useRoadStructure=[0|1]
23  --expandClaimedSets=[0|1]
24 
25 where
26 
27  --testcase=[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.
31  Default value: 0
32  --useRoadStructure=[0|1]
33  1 for safety procedure to line up with a road
34  Default value: 0
35  --expandClaimedSets=[0|1]
36  1 for claimed sets to expand by possible reaction time uncertainty
37  Default value: 0
38 
39 @subsection dwx_safetyforcefield_examples Examples
40 
41 #### Running the sample with default arguments
42 
43  ./sample_safetyforcefield
44 
45 #### Running the sample using a expanding claimed set that lines up with the road structure
46 
47  ./sample_safetyforcefield --useRoadStructure=1 --expandClaimedSets=1
48 
49 @section dwx_safetyforcefield_output Output
50 
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.
54 
55 In the top down view of claimed sets:
56 
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.
60 
61 In the control constraint image:
62 
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.
73 
74 ![](safetyforcefield/sample_safetyforcefield.png)
75 
76 @section dwx_safetyforcefield_more Additional Information
77 
78 For more details, please refer to @ref safetyforcefield_mainsection.