-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19e2f1b
commit da88b1c
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from time import thread_time | ||
import numpy as np | ||
|
||
class Waypoint: | ||
""" | ||
3D coordinate with a timestamp. | ||
""" | ||
|
||
coordinate: np.ndarray | ||
"""R^3 coordinate""" | ||
timestamp: float | ||
"""Time as float""" | ||
|
||
def __init__(self, coordinate: np.ndarray, timestamp: float) -> None: | ||
self.coordinate = coordinate | ||
self.timestamp = timestamp | ||
|
||
|
||
class TrajectoryFactory: | ||
""" | ||
Generates waypoints | ||
""" | ||
|
||
def __init__(self) -> None: | ||
pass | ||
|
||
def get_waypoint(self) -> Waypoint: | ||
waypoint = Waypoint( | ||
coordinate=np.asarray([0,0,0]), | ||
timestamp=0 | ||
) | ||
return waypoint | ||
|