Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/moving.txt @ 987:f026ce2af637
found bug with direct ttc computation
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 07 Mar 2018 23:37:00 -0500 |
| parents | 4f32d82ca390 |
| children | 933670761a57 |
comparison
equal
deleted
inserted
replaced
| 986:3be8aaa47651 | 987:f026ce2af637 |
|---|---|
| 158 True | 158 True |
| 159 >>> Point.timeToCollision(p2, p1, v2, v1, 0.) == None | 159 >>> Point.timeToCollision(p2, p1, v2, v1, 0.) == None |
| 160 True | 160 True |
| 161 >>> Point.midPoint(p1, p2) | 161 >>> Point.midPoint(p1, p2) |
| 162 (0.500000,0.500000) | 162 (0.500000,0.500000) |
| 163 >>> p1=Point(0.,0.) | |
| 164 >>> p2=Point(5.,0.) | |
| 165 >>> v1 = Point(2.,0.) | |
| 166 >>> v2 = Point(1.,0.) | |
| 167 >>> Point.timeToCollision(p1, p2, v1, v2, 0.) | |
| 168 5.0 | |
| 169 >>> Point.timeToCollision(p1, p2, v1, v2, 1.) | |
| 170 4.0 | |
| 163 | 171 |
| 164 >>> objects = storage.loadTrajectoriesFromSqlite('../samples/laurier.sqlite', 'object') | 172 >>> objects = storage.loadTrajectoriesFromSqlite('../samples/laurier.sqlite', 'object') |
| 165 >>> len(objects) | 173 >>> len(objects) |
| 166 5 | 174 5 |
| 167 >>> objects[0].hasFeatures() | 175 >>> objects[0].hasFeatures() |
