Mercurial Hosting > traffic-intelligence
comparison scripts/safety-analysis.py @ 1028:cc5cb04b04b0
major update using the trafficintelligence package name and install through pip
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 15 Jun 2018 11:19:10 -0400 |
parents | 933670761a57 |
children | e5c43496d9d8 |
comparison
equal
deleted
inserted
replaced
1027:6129296848d3 | 1028:cc5cb04b04b0 |
---|---|
1 #! /usr/bin/env python3 | 1 #! /usr/bin/env python3 |
2 | |
3 import storage, prediction, events, moving | |
4 | 2 |
5 import sys, argparse, random | 3 import sys, argparse, random |
6 from multiprocessing import Pool | 4 from multiprocessing import Pool |
7 | 5 |
8 import matplotlib.pyplot as plt | 6 import matplotlib.pyplot as plt |
9 import numpy as np | 7 import numpy as np |
8 | |
9 from trafficintelligence import storage, prediction, events, moving | |
10 | 10 |
11 # todo: very slow if too many predicted trajectories | 11 # todo: very slow if too many predicted trajectories |
12 # add computation of probality of unsucessful evasive action | 12 # add computation of probality of unsucessful evasive action |
13 | 13 |
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') |