Mercurial Hosting > traffic-intelligence
diff scripts/safety-analysis.py @ 334:1d90e9080cb2
moved python scripts to the scripts directory
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jun 2013 10:34:11 -0400 |
parents | python/safety-analysis.py@c9201f6b143a |
children | 3950bfe22768 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/safety-analysis.py Fri Jun 14 10:34:11 2013 -0400 @@ -0,0 +1,29 @@ +#! /usr/bin/env python + +import sys,getopt + +import matplotlib.pyplot as plt +import numpy as np + +from ConfigParser import ConfigParser + +options, args = getopt.getopt(sys.argv[1:], 'hi:d:t:o:f:',['help']) + +options = dict(options) + +print options, args + +if '--help' in options.keys() or '-h' in options.keys() or len(sys.argv) == 1: + print('Usage: '+sys.argv[0]+' --help|-h config_file.cfg\n' + 'The program processes indicators for all pairs of road users in the scene\n\n' + 'Order matters between positional and named arguments') + sys.exit() + +# TODO work on the way to indicate an interaction definition + +if len(args)>0: # consider there is a configuration file + params = utils.TrackingParameters() + params.loadConfigFile(args[0]) + + +