|
FERS 1.0.0
The Flexible Extensible Radar Simulator
|
Represents a path with coordinates and allows for various interpolation methods. More...
#include "path.h"
Public Types | |
| enum class | InterpType { INTERP_STATIC , INTERP_LINEAR , INTERP_CUBIC } |
| Types of interpolation supported by the Path class. More... | |
Public Member Functions | |
| Path (const InterpType type=InterpType::INTERP_STATIC) noexcept | |
| Constructs a Path object with a specified interpolation type. | |
| ~Path ()=default | |
| Path (const Path &)=delete | |
| Path (Path &&)=delete | |
| Path & | operator= (const Path &)=delete |
| Path & | operator= (Path &&)=delete |
| void | addCoord (const Coord &coord) noexcept |
| Adds a coordinate to the path. | |
| void | finalize () |
| Finalizes the path, preparing it for interpolation. | |
| InterpType | getType () const noexcept |
| Retrieves the current interpolation type of the path. | |
| const std::vector< Coord > & | getCoords () const noexcept |
| Gets the list of coordinates in the path. | |
| Vec3 | getPosition (RealType t) const |
| Retrieves the position at a given time along the path. | |
| Vec3 | getVelocity (RealType t) const |
| Retrieves the velocity at a given time along the path. | |
| void | setInterp (InterpType settype) noexcept |
| Changes the interpolation type. | |
Represents a path with coordinates and allows for various interpolation methods.
|
strong |
Types of interpolation supported by the Path class.
| Enumerator | |
|---|---|
| INTERP_STATIC | |
| INTERP_LINEAR | |
| INTERP_CUBIC | |
Definition at line 35 of file path.h.
|
explicitnoexcept |
|
default |
|
delete |
|
delete |
|
noexcept |
Adds a coordinate to the path.
| coord | The coordinate to be added. |
Definition at line 26 of file path.cpp.
References math::Coord::t.
Referenced by fers_get_interpolated_motion_path(), and math::from_json().
Here is the caller graph for this function:| void math::Path::finalize | ( | ) |
Finalizes the path, preparing it for interpolation.
Definition at line 141 of file path.cpp.
References INTERP_CUBIC, INTERP_LINEAR, and INTERP_STATIC.
Referenced by fers_get_interpolated_motion_path(), and math::from_json().
Here is the caller graph for this function:
|
noexcept |
Gets the list of coordinates in the path.
Definition at line 83 of file path.h.
Referenced by serial::KmlGenerator::generateKml().
Here is the caller graph for this function:Retrieves the position at a given time along the path.
| t | The time parameter at which to get the position. |
| PathException | If finalize() has not been called before this method. |
Definition at line 35 of file path.cpp.
References getPositionCubic(), getPositionLinear(), getPositionStatic(), INTERP_CUBIC, INTERP_LINEAR, INTERP_STATIC, and LOG.
Referenced by fers_get_interpolated_motion_path().
Here is the call graph for this function:
Here is the caller graph for this function:
|
noexcept |
Retrieves the velocity at a given time along the path.
| t | The time parameter at which to get the velocity. |
| PathException | If finalize() has not been called before this method. |
Definition at line 59 of file path.cpp.
References EPSILON, INTERP_CUBIC, INTERP_LINEAR, INTERP_STATIC, LOG, and math::Coord::t.
Referenced by fers_get_interpolated_motion_path().
Here is the caller graph for this function:
|
noexcept |
Changes the interpolation type.
| settype | The new interpolation type to be used. |
Definition at line 158 of file path.cpp.
Referenced by fers_get_interpolated_motion_path(), and math::from_json().
Here is the caller graph for this function: