Mercurial Hosting > traffic-intelligence
comparison scripts/safety-analysis.py @ 482:f6415f012640
adding functionalities (save images directly to display trajectories to create movies
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 02 Apr 2014 16:12:24 -0400 |
parents | 6551a3cf1750 |
children | 30b3455978d9 |
comparison
equal
deleted
inserted
replaced
481:b6ad86ee7033 | 482:f6415f012640 |
---|---|
11 # add computation of probality of unsucessful evasive action | 11 # add computation of probality of unsucessful evasive action |
12 | 12 |
13 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene') | 13 parser = argparse.ArgumentParser(description='The program processes indicators for all pairs of road users in the scene') |
14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file') | 14 parser.add_argument('--cfg', dest = 'configFilename', help = 'name of the configuration file') |
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') | 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 = utils.TrackingParameters() | 19 params = utils.TrackingParameters() |
20 params.loadConfigFile(args.configFilename) | 20 params.loadConfigFile(args.configFilename) |
21 | 21 |