Mercurial Hosting > traffic-intelligence
changeset 1147:8c0ec7e1eb8e
minor
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Wed, 06 May 2020 00:58:21 -0400 |
parents | b219d5a1bb55 |
children | eb88d2984637 |
files | scripts/safety-analysis.py trafficintelligence/events.py |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/safety-analysis.py Wed Apr 29 01:09:55 2020 -0400 +++ b/scripts/safety-analysis.py Wed May 06 00:58:21 2020 -0400 @@ -18,6 +18,7 @@ # TODO analyze only parser.add_argument('--prediction-method', dest = 'predictionMethod', help = 'prediction method (constant velocity (cvd: vector computation (approximate); cve: equation solving; cv: discrete time (approximate)), normal adaptation, point set prediction)', choices = ['cvd', 'cve', 'cv', 'na', 'ps', 'mp']) parser.add_argument('-p', dest = 'prototypeDatabaseFilename', help = 'name of the database containing the prototypes') +# parser.add_argument('--categorize', dest = 'categorize', help = 'computes interaction categories', action = 'store_true') TODO, add angle parameters in tracking.cfg - the safety analysis parameters should probably be spun off tracking.cfg parser.add_argument('--no-motion-prediction', dest = 'noMotionPrediction', help = 'does not compute indicators like TTC depending on motion prediction', action = 'store_true') parser.add_argument('--pet', dest = 'computePET', help = 'computes PET', action = 'store_true') parser.add_argument('--display-cp', dest = 'displayCollisionPoints', help = 'display collision points', action = 'store_true')
--- a/trafficintelligence/events.py Wed Apr 29 01:09:55 2020 -0400 +++ b/trafficintelligence/events.py Wed May 06 00:58:21 2020 -0400 @@ -219,11 +219,6 @@ minDistances[instant] = moving.MovingObject.minDistance(self.roadUser1, self.roadUser2, instant) self.addIndicator(indicators.SeverityIndicator(Interaction.indicatorNames[3], minDistances, mostSevereIsMax = False)) - # categories = {'headon': 0, - # 'rearend': 1, - # 'side': 2, - # 'parallel': 3} - def categorize(self, velocityAngleTolerance, parallelAngleTolerance): '''Computes the interaction category by instant velocityAngleTolerance and parallelAngleTolerance in radian'''