Mercurial Hosting > traffic-intelligence
comparison scripts/safety-analysis.py @ 974:eb42f2f51490
minor argument rename
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 02 Feb 2018 17:03:05 -0500 |
parents | d6c1c05d11f5 |
children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
972:b50145235f9e | 974:eb42f2f51490 |
---|---|
14 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene') | 14 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene') |
15 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) | 15 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) |
16 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to analyse', type = int) | 16 parser.add_argument('-n', dest = 'nObjects', help = 'number of objects to analyse', type = int) |
17 # TODO analyze only | 17 # TODO analyze only |
18 parser.add_argument('--prediction-method', dest = 'predictionMethod', help = 'prediction method (constant velocity (cvd: vector computation (approximate); cve: equation solving; cv: discrete time (approximate)), normal adaptation, point set prediction)', choices = ['cvd', 'cve', 'cv', 'na', 'ps', 'mp']) | 18 parser.add_argument('--prediction-method', dest = 'predictionMethod', help = 'prediction method (constant velocity (cvd: vector computation (approximate); cve: equation solving; cv: discrete time (approximate)), normal adaptation, point set prediction)', choices = ['cvd', 'cve', 'cv', 'na', 'ps', 'mp']) |
19 parser.add_argument('--prototypeDatabaseFilename', dest = 'prototypeDatabaseFilename', help = 'name of the database containing the prototypes') | 19 parser.add_argument('-p', dest = 'prototypeDatabaseFilename', help = 'name of the database containing the prototypes') |
20 parser.add_argument('--no-motion-prediction', dest = 'noMotionPrediction', help = 'does not compute indicators like TTC depending on motion prediction', action = 'store_true') | 20 parser.add_argument('--no-motion-prediction', dest = 'noMotionPrediction', help = 'does not compute indicators like TTC depending on motion prediction', action = 'store_true') |
21 parser.add_argument('--pet', dest = 'computePET', help = 'computes PET', action = 'store_true') | 21 parser.add_argument('--pet', dest = 'computePET', help = 'computes PET', action = 'store_true') |
22 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true') | 22 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true') |
23 parser.add_argument('--nthreads', dest = 'nProcesses', help = 'number of processes to run in parallel', type = int, default = 1) | 23 parser.add_argument('--nthreads', dest = 'nProcesses', help = 'number of processes to run in parallel', type = int, default = 1) |
24 args = parser.parse_args() | 24 args = parser.parse_args() |