Mercurial Hosting > traffic-intelligence
comparison scripts/safety-analysis.py @ 536:95276d310972
renamed TrackingParameters to ProcessParameters
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 02 Jul 2014 11:35:05 -0400 |
parents | e37f38274d4f |
children | a80ef6931fd8 |
comparison
equal
deleted
inserted
replaced
535:5ad2f51ae42f | 536:95276d310972 |
---|---|
14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) | 14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file', required = True) |
15 parser.add_argument('--prediction-method', dest = 'predictionMethod', help = 'prediction method (constant velocity (vector computation), constant velocity, normal adaptation, point set prediction)', choices = ['cvd', 'cv', 'na', 'ps']) | 15 parser.add_argument('--prediction-method', dest = 'predictionMethod', help = 'prediction method (constant velocity (vector computation), constant velocity, normal adaptation, point set prediction)', choices = ['cvd', 'cv', 'na', 'ps']) |
16 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true') | 16 parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true') |
17 args = parser.parse_args() | 17 args = parser.parse_args() |
18 | 18 |
19 params = storage.TrackingParameters() | 19 params = storage.ProcessParameters(args.configFilename) |
20 params.loadConfigFile(args.configFilename) | |
21 | 20 |
22 # parameters for prediction methods | 21 # parameters for prediction methods |
23 if args.predictionMethod: | 22 if args.predictionMethod: |
24 predictionMethod = args.predictionMethod | 23 predictionMethod = args.predictionMethod |
25 else: | 24 else: |