lissajous
Torch Lissajous trajectory implementation.
类:
| 名称 | 描述 |
|---|---|
LissajousTrajectory |
Batched three-dimensional Lissajous trajectory. |
LissajousTrajectory
dataclass
LissajousTrajectory(*, yaw_from_velocity: bool = True, fixed_yaw: Tensor | None = None, attitude: Tensor | None = None, body_rate: Tensor | None = None, center: Tensor, amplitude: Tensor, frequency: Tensor, phase: Tensor, omega: Tensor)
Bases: SpatialTrajectory
Batched three-dimensional Lissajous trajectory.
方法:
| 名称 | 描述 |
|---|---|
sample |
Sample the batched Lissajous trajectory at time values |
sample_heading |
Sample batched yaw and yaw-rate references for time values |
build_target |
Assemble a batched 12D target tensor from motion primitives. |
__post_init__ |
Initialize shared tensors from the center batch shape when available. |
sample
sample(t: Tensor) -> torch.Tensor
Sample the batched Lissajous trajectory at time values t.
sample_heading
sample_heading(t: Tensor, pos: Tensor, vel: Tensor, acc: Tensor) -> tuple[torch.Tensor, torch.Tensor]
Sample batched yaw and yaw-rate references for time values t.
build_target
build_target(t: Tensor, pos: Tensor, vel: Tensor, acc: Tensor) -> torch.Tensor
Assemble a batched 12D target tensor from motion primitives.
__post_init__
__post_init__()
Initialize shared tensors from the center batch shape when available.