File size: 1,158 Bytes
985c397 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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 | # SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any, Final
from Base.Metadata import export
from Base.Persistence import Persistence
@export(
Include="Mod/Robot/App/Trajectory.h",
Namespace="Robot",
Constructor=True,
Delete=True,
)
class Trajectory(Persistence):
"""
Trajectory class
Author: Juergen Riegel (Juergen.Riegel@web.de)
License: LGPL-2.1-or-later
"""
def insertWaypoints(self) -> Any:
"""adds one or a list of waypoint to the end of the trajectory"""
...
def position(self) -> Any:
"""returns a Frame to a given time in the trajectory"""
...
def velocity(self) -> Any:
"""returns the velocity to a given time in the trajectory"""
...
def deleteLast(self) -> Any:
"""
deleteLast(n) - delete n waypoints at the end
deleteLast() - delete the last waypoint
"""
...
Duration: Final[float]
"""duration of the trajectory"""
Length: Final[float]
"""length of the trajectory"""
Waypoints: list
"""waypoints of this trajectory"""
|