Skip to content

Commit

Permalink
Update model_documentation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Palazzi authored Aug 24, 2017
1 parent 1e1fcd3 commit 50adb2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions project_11_path_planning/model_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ Here's a bullet list of rubric points along with an explanation of how constrain

A [reference velocity variable](https://github.com/ndrplz/self-driving-car/blob/7b0d9e057931667a04422649fee6d017b3ef7475/project_11_path_planning/src/main.cpp#L74) is used to keep track of current speed of the vehicle. Also, [another constant variable](https://github.com/ndrplz/self-driving-car/blob/7b0d9e057931667a04422649fee6d017b3ef7475/project_11_path_planning/src/utils.h#L13) is used to make sure the car never exeed the maximum speed of 50 mph.

- **Max acceleration and jerk are not exceeded.**

The rubric sets as hard constraint the fact that car does not exceed a total acceleration of 10 m/s^2 and a jerk of 10 m/s^3. This is obtained by setting the initial speed of vehicle to zero, and [gradually accelerating](https://github.com/ndrplz/self-driving-car/blob/7b0d9e057931667a04422649fee6d017b3ef7475/project_11_path_planning/src/main.cpp#L181-L182) until the vehicle has reached the maximum speed allowed (either by the speed limit or by the current road situation).

- **Car does not have collisions.**
Under the reasonable assumption that other cars drive reasonably well, the main risk to hit another car is *rear-ending*. This is avoided using [sensor fusion data to make sure that no other car is dangerously close](https://github.com/ndrplz/self-driving-car/blob/7b0d9e057931667a04422649fee6d017b3ef7475/project_11_path_planning/src/main.cpp#L133-L134) in our same lane. If this is the case, the car [gracefully decelerates](https://github.com/ndrplz/self-driving-car/blob/7b0d9e057931667a04422649fee6d017b3ef7475/project_11_path_planning/src/main.cpp#L179-L180) until the situation gets safer.

Another possibly dangerous situation is the one of *lane changing*. This will be examined in the next point.

- **The car stays in its lane, except for the time between changing lanes.**
- **The car is able to change lanes**

0 comments on commit 50adb2c

Please sign in to comment.