Mercurial Hosting > traffic-intelligence
view scripts/safety-analysis.py @ 336:124f85c6cfae
modifed default probability to float
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 14 Jun 2013 13:47:00 -0400 |
parents | 3950bfe22768 |
children | dc2e68e936c7 |
line wrap: on
line source
#! /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]) # for the demo, output automatically a map