openstb.simulator.system.trajectory
Trajectory plugins for the openSTB simulator.
Classes:
| Name | Description |
|---|---|
Linear |
An ideal linear trajectory. |
Linear
Linear(start_position, end_position, speed, start_time=None)
Bases: Trajectory
An ideal linear trajectory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_position
|
array-like of 3 floats
|
The start and end position of the trajectory in the global coordinate system. |
required |
end_position
|
array-like of 3 floats
|
The start and end position of the trajectory in the global coordinate system. |
required |
speed
|
float
|
The speed of the system in metres per second. |
required |
start_time
|
(datetime, str, int)
|
The time at which the trajectory starts. If a datetime instance is given, it will be converted to UTC. An string in the ISO 8601 format "YYYY-MM-DDTHH:MM:SS+ZZ:ZZ", where the "+ZZ:ZZ" represents the offset of the timezone, can be given. If the timezone offset is not given, it will be assumed to be UTC. An integer representing a UTC POSIX timestamp (seconds since midnight on 1 January 1970) can be given. If no start time is given, it is set to the time the trajectory instance is initialised. |
None
|
Source code in openstb/simulator/system/trajectory.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |