Mercurial Hosting > traffic-intelligence
comparison trafficintelligence/tests/prediction.txt @ 1211:a095d4fbb2ea
work in progress
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 02 May 2023 07:12:26 -0400 |
parents | aafbc0bab925 |
children |
comparison
equal
deleted
inserted
replaced
1210:1bad5f9b60de | 1211:a095d4fbb2ea |
---|---|
13 (15.5...,0.0...) | 13 (15.5...,0.0...) |
14 >>> et.predictPosition(11) # doctest:+ELLIPSIS | 14 >>> et.predictPosition(11) # doctest:+ELLIPSIS |
15 (17.5...,0.0...) | 15 (17.5...,0.0...) |
16 >>> et.predictPosition(12) # doctest:+ELLIPSIS | 16 >>> et.predictPosition(12) # doctest:+ELLIPSIS |
17 (19.5...,0.0...) | 17 (19.5...,0.0...) |
18 | |
19 >>> et = PredictedTrajectoryConstantVelocity(moving.Point(0,0), moving.Point(1,0)) | |
20 >>> et.predictPosition(10) # doctest:+ELLIPSIS | |
21 (10.0...,0.0...) | |
18 | 22 |
19 >>> import random | 23 >>> import random |
20 >>> acceleration = lambda: random.uniform(-0.5,0.5) | 24 >>> acceleration = lambda: random.uniform(-0.5,0.5) |
21 >>> steering = lambda: random.uniform(-0.1,0.1) | 25 >>> steering = lambda: random.uniform(-0.1,0.1) |
22 >>> et = PredictedTrajectoryRandomControl(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2) | 26 >>> et = PredictedTrajectoryRandomControl(moving.Point(0,0),moving.Point(1,1), acceleration, steering, maxSpeed = 2) |