Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/safety-analysis.py @ 476:6551a3cf1750
modified compute-homography to work with argparse
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 25 Mar 2014 19:43:28 -0400 |
| parents | 91679eb2ff2c |
| children | f6415f012640 |
comparison
equal
deleted
inserted
replaced
| 474:59903d14d244 | 476:6551a3cf1750 |
|---|---|
| 40 params.maxPredictedSpeed) | 40 params.maxPredictedSpeed) |
| 41 else: | 41 else: |
| 42 print('Prediction method {} is not valid. See help.'.format(predictionMethod)) | 42 print('Prediction method {} is not valid. See help.'.format(predictionMethod)) |
| 43 sys.exit() | 43 sys.exit() |
| 44 | 44 |
| 45 evasiveActionPredictionParameters = prediction.EvasiveActionPredictionParameters(params.maxPredictedSpeed, | 45 # evasiveActionPredictionParameters = prediction.EvasiveActionPredictionParameters(params.maxPredictedSpeed, |
| 46 params.nPredictedTrajectories, | 46 # params.nPredictedTrajectories, |
| 47 params.minAcceleration, | 47 # params.minAcceleration, |
| 48 params.maxAcceleration, | 48 # params.maxAcceleration, |
| 49 params.maxSteering, | 49 # params.maxSteering, |
| 50 params.useFeaturesForPrediction) | 50 # params.useFeaturesForPrediction) |
| 51 | 51 |
| 52 objects = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'object') | 52 objects = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'object') |
| 53 if params.useFeaturesForPrediction: | 53 if params.useFeaturesForPrediction: |
| 54 features = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'feature') # needed if normal adaptation | 54 features = storage.loadTrajectoriesFromSqlite(params.databaseFilename,'feature') # needed if normal adaptation |
| 55 for obj in objects: | 55 for obj in objects: |
