Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
apollo::hdmap::MapPathPoint Class Reference

#include <path.h>

Inheritance diagram for apollo::hdmap::MapPathPoint:
Inheritance graph
Collaboration diagram for apollo::hdmap::MapPathPoint:
Collaboration graph

Public Member Functions

 MapPathPoint ()=default
 
 MapPathPoint (const common::math::Vec2d &point, double heading)
 
 MapPathPoint (const common::math::Vec2d &point, double heading, LaneWaypoint lane_waypoint)
 
 MapPathPoint (const common::math::Vec2d &point, double heading, std::vector< LaneWaypoint > lane_waypoints)
 
double heading () const
 
void set_heading (const double heading)
 
const std::vector< LaneWaypoint > & lane_waypoints () const
 
void add_lane_waypoint (LaneWaypoint lane_waypoint)
 
void add_lane_waypoints (const std::vector< LaneWaypoint > &lane_waypoints)
 
void clear_lane_waypoints ()
 
std::string DebugString () const
 
- Public Member Functions inherited from apollo::common::math::Vec2d
constexpr Vec2d (const double x, const double y) noexcept
 Constructor which takes x- and y-coordinates. More...
 
constexpr Vec2d () noexcept
 Constructor returning the zero vector. More...
 
double x () const
 Getter for x component. More...
 
double y () const
 Getter for y component. More...
 
void set_x (const double x)
 Setter for x component. More...
 
void set_y (const double y)
 Setter for y component. More...
 
double Length () const
 Gets the length of the vector. More...
 
double LengthSquare () const
 Gets the squared length of the vector. More...
 
double Angle () const
 Gets the angle between the vector and the positive x semi-axis. More...
 
void Normalize ()
 Returns the unit vector that is co-linear with this vector. More...
 
double DistanceTo (const Vec2d &other) const
 Returns the distance to the given vector. More...
 
double DistanceSquareTo (const Vec2d &other) const
 Returns the squared distance to the given vector. More...
 
double CrossProd (const Vec2d &other) const
 Returns the "cross" product between these two Vec2d (non-standard). More...
 
double InnerProd (const Vec2d &other) const
 Returns the inner product between these two Vec2d. More...
 
Vec2d rotate (const double angle) const
 rotate the vector by angle. More...
 
void SelfRotate (const double angle)
 rotate the vector itself by angle. More...
 
Vec2d operator+ (const Vec2d &other) const
 Sums two Vec2d. More...
 
Vec2d operator- (const Vec2d &other) const
 Subtracts two Vec2d. More...
 
Vec2d operator* (const double ratio) const
 Multiplies Vec2d by a scalar. More...
 
Vec2d operator/ (const double ratio) const
 Divides Vec2d by a scalar. More...
 
Vec2doperator+= (const Vec2d &other)
 Sums another Vec2d to the current one. More...
 
Vec2doperator-= (const Vec2d &other)
 Subtracts another Vec2d to the current one. More...
 
Vec2doperator*= (const double ratio)
 Multiplies this Vec2d by a scalar. More...
 
Vec2doperator/= (const double ratio)
 Divides this Vec2d by a scalar. More...
 
bool operator== (const Vec2d &other) const
 Compares two Vec2d. More...
 
std::string DebugString () const
 Returns a human-readable string representing this object. More...
 

Static Public Member Functions

static void RemoveDuplicates (std::vector< MapPathPoint > *points)
 
static std::vector< MapPathPointGetPointsFromSegment (const LaneSegment &segment)
 
static std::vector< MapPathPointGetPointsFromLane (LaneInfoConstPtr lane, const double start_s, const double end_s)
 
- Static Public Member Functions inherited from apollo::common::math::Vec2d
static Vec2d CreateUnitVec2d (const double angle)
 Creates a unit-vector with a given angle to the positive x semi-axis. More...
 

Protected Attributes

double heading_ = 0.0
 
std::vector< LaneWaypointlane_waypoints_
 
- Protected Attributes inherited from apollo::common::math::Vec2d
double x_ = 0.0
 
double y_ = 0.0
 

Constructor & Destructor Documentation

◆ MapPathPoint() [1/4]

apollo::hdmap::MapPathPoint::MapPathPoint ( )
default

◆ MapPathPoint() [2/4]

apollo::hdmap::MapPathPoint::MapPathPoint ( const common::math::Vec2d point,
double  heading 
)
inline

◆ MapPathPoint() [3/4]

apollo::hdmap::MapPathPoint::MapPathPoint ( const common::math::Vec2d point,
double  heading,
LaneWaypoint  lane_waypoint 
)
inline

◆ MapPathPoint() [4/4]

apollo::hdmap::MapPathPoint::MapPathPoint ( const common::math::Vec2d point,
double  heading,
std::vector< LaneWaypoint lane_waypoints 
)
inline

Member Function Documentation

◆ add_lane_waypoint()

void apollo::hdmap::MapPathPoint::add_lane_waypoint ( LaneWaypoint  lane_waypoint)
inline

◆ add_lane_waypoints()

void apollo::hdmap::MapPathPoint::add_lane_waypoints ( const std::vector< LaneWaypoint > &  lane_waypoints)
inline

◆ clear_lane_waypoints()

void apollo::hdmap::MapPathPoint::clear_lane_waypoints ( )
inline

◆ DebugString()

std::string apollo::hdmap::MapPathPoint::DebugString ( ) const

◆ GetPointsFromLane()

static std::vector<MapPathPoint> apollo::hdmap::MapPathPoint::GetPointsFromLane ( LaneInfoConstPtr  lane,
const double  start_s,
const double  end_s 
)
static

◆ GetPointsFromSegment()

static std::vector<MapPathPoint> apollo::hdmap::MapPathPoint::GetPointsFromSegment ( const LaneSegment segment)
static

◆ heading()

double apollo::hdmap::MapPathPoint::heading ( ) const
inline

◆ lane_waypoints()

const std::vector<LaneWaypoint>& apollo::hdmap::MapPathPoint::lane_waypoints ( ) const
inline

◆ RemoveDuplicates()

static void apollo::hdmap::MapPathPoint::RemoveDuplicates ( std::vector< MapPathPoint > *  points)
static

◆ set_heading()

void apollo::hdmap::MapPathPoint::set_heading ( const double  heading)
inline

Member Data Documentation

◆ heading_

double apollo::hdmap::MapPathPoint::heading_ = 0.0
protected

◆ lane_waypoints_

std::vector<LaneWaypoint> apollo::hdmap::MapPathPoint::lane_waypoints_
protected

The documentation for this class was generated from the following file: