26#include "modules/common_msgs/basic_msgs/pnc_point.pb.h"
27#include "modules/common_msgs/planning_msgs/planning.pb.h"
94 const double y)
const;
121 double *ptr_s,
double *ptr_s_dot,
double *ptr_d,
122 double *ptr_d_dot)
const;
141 const double rear_to_com_distance,
159 const double x,
const double y)
const;
Implements a class of 2-dimensional vectors.
process point query and conversion related to trajectory
common::TrajectoryPoint QueryNearestPointByPosition(const double x, const double y) const
query a point of trajectory that its position is closest to the given position.
common::math::Vec2d ComputeCOMPosition(const double rear_to_com_distance, const common::PathPoint &path_point) const
Compute the position of center of mass(COM) of the vehicle, given the distance from rear wheels to th...
TrajectoryAnalyzer()=default
constructor
const std::vector< common::TrajectoryPoint > & trajectory_points() const
get all points of the trajectory
void TrajectoryTransformToCOM(const double rear_to_com_distance)
Transform the current trajectory points to the center of mass(COM) of the vehicle,...
common::PathPoint QueryMatchedPathPoint(const double x, const double y) const
query a point on trajectory that its position is closest to the given position.
common::TrajectoryPoint QueryNearestPointByAbsoluteTime(const double t) const
query a point of trajectory that its absolute time is closest to the give time.
void ToTrajectoryFrame(const double x, const double y, const double theta, const double v, const common::PathPoint &matched_point, double *ptr_s, double *ptr_s_dot, double *ptr_d, double *ptr_d_dot) const
convert a position with theta and speed to trajectory frame,
std::vector< common::TrajectoryPoint > trajectory_points_
~TrajectoryAnalyzer()=default
destructor
common::TrajectoryPoint QueryNearestPointByRelativeTime(const double t) const
query a point of trajectory that its relative time is closest to the give time.
unsigned int seq_num()
get sequence number of the trajectory