|
Brick
|
#include <hermite_point.h>
Represents a boundary point along a Hermite spline.
Each point stores position (2D), first derivative (tangent/velocity), and optional second derivative (acceleration) information.
Public Member Functions | |
| HermitePoint ()=default | |
| Default constructor initializing all vectors to zero. | |
| HermitePoint (const Translation2d &point, const Translation2d &tangent, const Translation2d &second_derivative=Translation2d()) | |
| Constructs a HermitePoint from Translation2d vectors. | |
| HermitePoint (double x, double y, double vx, double vy) | |
| Constructs a HermitePoint from scalar position and tangent components. | |
| HermitePoint (double x, double y, double vx, double vy, double ax, double ay) | |
| Constructs a HermitePoint from scalar position, tangent, and second derivative components. | |
| Translation2d | get_point () const |
| Translation2d | get_tangent () const |
| Translation2d | get_second_derivative () const |
Static Public Member Functions | |
| static HermitePoint | from_derivatives (const Translation2d &point, const Translation2d &tangent, const Translation2d &second_derivative=Translation2d()) |
| Factory method constructing HermitePoint from explicit derivative vectors. | |
| static HermitePoint | from_heading (units::Length x, units::Length y, Rotation2d heading, double speed, Rotation2d accel_heading=Rotation2d(), double accel_mag=0.0) |
| Factory method constructing HermitePoint from heading angle and scalar speed. | |
| static HermitePoint | from_heading (const Translation2d &point, Rotation2d heading, double speed, Rotation2d accel_heading=Rotation2d(), double accel_mag=0.0) |
| Factory method constructing HermitePoint from position vector, heading angle, and speed. | |
| static HermitePoint | from_pose (const Pose2d &pose, double speed, double accel_mag=0.0) |
| Factory method constructing HermitePoint from Pose2d and speeds. | |
|
inline |
Constructs a HermitePoint from Translation2d vectors.
| point | 2D position vector. |
| tangent | Tangent (first derivative) vector. |
| second_derivative | Second derivative vector (default zero). |
|
inline |
Constructs a HermitePoint from scalar position and tangent components.
| x | X coordinate. |
| y | Y coordinate. |
| vx | X tangent component. |
| vy | Y tangent component. |
|
inline |
Constructs a HermitePoint from scalar position, tangent, and second derivative components.
| x | X coordinate. |
| y | Y coordinate. |
| vx | X tangent component. |
| vy | Y tangent component. |
| ax | X second derivative component. |
| ay | Y second derivative component. |
|
inlinestatic |
Factory method constructing HermitePoint from explicit derivative vectors.
| point | 2D position vector. |
| tangent | Tangent vector. |
| second_derivative | Second derivative vector. |
|
inlinestatic |
Factory method constructing HermitePoint from position vector, heading angle, and speed.
| point | 2D position vector. |
| heading | Heading angle. |
| speed | Tangent magnitude. |
| accel_heading | Second derivative direction. |
| accel_mag | Second derivative magnitude. |
|
inlinestatic |
Factory method constructing HermitePoint from heading angle and scalar speed.
| x | X coordinate in inches. |
| y | Y coordinate in inches. |
| heading | Heading angle. |
| speed | Tangent magnitude (speed factor). |
| accel_heading | Second derivative direction. |
| accel_mag | Second derivative magnitude. |
|
inlinestatic |
Factory method constructing HermitePoint from Pose2d and speeds.
| pose | 2D position and orientation. |
| speed | Tangent magnitude. |
| accel_mag | Second derivative magnitude. |
|
inline |
|
inline |
|
inline |