Mercurial > hg > nsaunier > traffic-intelligence
comparison python/moving.py @ 185:c06379f25ab8
utilities for user types
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 25 Nov 2011 18:44:59 -0500 |
| parents | d70e9b36889c |
| children | e2f31813ade6 |
comparison
equal
deleted
inserted
replaced
| 184:d70e9b36889c | 185:c06379f25ab8 |
|---|---|
| 411 ################## | 411 ################## |
| 412 | 412 |
| 413 userTypeNames = ['car', | 413 userTypeNames = ['car', |
| 414 'pedestrian', | 414 'pedestrian', |
| 415 'twowheels', | 415 'twowheels', |
| 416 'bus' | 416 'bus', |
| 417 'truck'] | 417 'truck'] |
| 418 | |
| 419 userType2Num = utils.inverseEnumeration(userTypeNames) | |
| 418 | 420 |
| 419 class MovingObject(STObject): | 421 class MovingObject(STObject): |
| 420 '''Class for moving objects | 422 '''Class for moving objects |
| 421 i.e. with a trajectory and a geometry (volume) (constant) | 423 i.e. with a trajectory and a geometry (volume) (constant) |
| 422 and a usertype (e.g. road user) | 424 and a usertype (e.g. road user) |
