This is a simple wrapper class on Carla's waypoint object. 更多...
#include <SimpleWaypoint.h>
Public 成员函数 | |
bool | CheckIntersection () const |
Returns true if the object's waypoint belongs to an intersection (Doesn't use OpenDrive). | |
bool | CheckJunction () const |
Returns true if the object's waypoint belongs to an intersection. | |
float | Distance (const cg::Location &location) const |
Calculates the distance from the object's waypoint to the passed location. | |
float | Distance (const SimpleWaypointPtr &other) const |
Calculates the distance the other SimpleWaypoint object. | |
float | DistanceSquared (const cg::Location &location) const |
Calculates the square of the distance to given location. | |
float | DistanceSquared (const SimpleWaypointPtr &other) const |
Calculates the square of the distance to other waypoints. | |
cg::Vector3D | GetForwardVector () const |
Returns the vector along the waypoint's direction. | |
GeoGridId | GetGeodesicGridId () |
uint64_t | GetId () const |
Returns the unique id for the waypoint. | |
GeoGridId | GetJunctionId () const |
Method to retreive junction id of the waypoint. | |
SimpleWaypointPtr | GetLeftWaypoint () |
This method is used to get the closest left waypoint for a lane change. | |
cg::Location | GetLocation () const |
Returns the location object for this waypoint. | |
std::vector< SimpleWaypointPtr > | GetNextWaypoint () const |
Returns the list of next waypoints. | |
std::vector< SimpleWaypointPtr > | GetPreviousWaypoint () const |
Returns the list of previous waypoints. | |
SimpleWaypointPtr | GetRightWaypoint () |
This method is used to get the closest right waypoint for a lane change. | |
RoadOption | GetRoadOption () |
cg::Transform | GetTransform () const |
Return transform object for the current waypoint. | |
WaypointPtr | GetWaypoint () const |
Returns a carla::shared_ptr to carla::waypoint. | |
void | SetGeodesicGridId (GeoGridId _geodesic_grid_id) |
Accessor methods for geodesic grid id. | |
void | SetIsJunction (bool value) |
This method is used to set whether the waypoint belongs to a junction. | |
void | SetLeftWaypoint (SimpleWaypointPtr &waypoint) |
This method is used to set the closest left waypoint for a lane change. | |
uint64_t | SetNextWaypoint (const std::vector< SimpleWaypointPtr > &next_waypoints) |
This method is used to set the next waypoints. | |
uint64_t | SetPreviousWaypoint (const std::vector< SimpleWaypointPtr > &next_waypoints) |
This method is used to set the previous waypoints. | |
void | SetRightWaypoint (SimpleWaypointPtr &waypoint) |
This method is used to set the closest right waypoint for a lane change. | |
void | SetRoadOption (RoadOption _road_option) |
SimpleWaypoint (WaypointPtr _waypoint) | |
~SimpleWaypoint () | |
Private 类型 | |
using | SimpleWaypointPtr = std::shared_ptr<SimpleWaypoint> |
Private 属性 | |
bool | _is_junction = false |
GeoGridId | geodesic_grid_id = 0 |
Integer placing the waypoint into a geodesic grid. | |
SimpleWaypointPtr | next_left_waypoint |
Pointer to left lane change waypoint. | |
SimpleWaypointPtr | next_right_waypoint |
Pointer to right lane change waypoint. | |
std::vector< SimpleWaypointPtr > | next_waypoints |
List of pointers to next connecting waypoints. | |
std::vector< SimpleWaypointPtr > | previous_waypoints |
List of pointers to previous connecting waypoints. | |
RoadOption | road_option = RoadOption::Void |
RoadOption for the actual waypoint. | |
WaypointPtr | waypoint |
Pointer to Carla's waypoint object around which this class wraps around. | |
This is a simple wrapper class on Carla's waypoint object.
The class is used to represent discrete samples of the world map.
在文件 SimpleWaypoint.h 第 38 行定义.
|
private |
在文件 SimpleWaypoint.h 第 40 行定义.
carla::traffic_manager::SimpleWaypoint::SimpleWaypoint | ( | WaypointPtr | _waypoint | ) |
在文件 SimpleWaypoint.cpp 第 16 行定义.
引用了 next_left_waypoint, next_right_waypoint , 以及 waypoint.
carla::traffic_manager::SimpleWaypoint::~SimpleWaypoint | ( | ) |
在文件 SimpleWaypoint.cpp 第 21 行定义.
bool carla::traffic_manager::SimpleWaypoint::CheckIntersection | ( | ) | const |
Returns true if the object's waypoint belongs to an intersection (Doesn't use OpenDrive).
在文件 SimpleWaypoint.cpp 第 111 行定义.
引用了 next_waypoints.
bool carla::traffic_manager::SimpleWaypoint::CheckJunction | ( | ) | const |
Returns true if the object's waypoint belongs to an intersection.
在文件 SimpleWaypoint.cpp 第 103 行定义.
引用了 _is_junction.
float carla::traffic_manager::SimpleWaypoint::Distance | ( | const cg::Location & | location | ) | const |
Calculates the distance from the object's waypoint to the passed location.
在文件 SimpleWaypoint.cpp 第 87 行定义.
引用了 carla::geom::Location::Distance() , 以及 GetLocation().
float carla::traffic_manager::SimpleWaypoint::Distance | ( | const SimpleWaypointPtr & | other | ) | const |
Calculates the distance the other SimpleWaypoint object.
在文件 SimpleWaypoint.cpp 第 91 行定义.
引用了 carla::geom::Location::Distance() , 以及 GetLocation().
float carla::traffic_manager::SimpleWaypoint::DistanceSquared | ( | const cg::Location & | location | ) | const |
Calculates the square of the distance to given location.
在文件 SimpleWaypoint.cpp 第 95 行定义.
引用了 GetLocation().
float carla::traffic_manager::SimpleWaypoint::DistanceSquared | ( | const SimpleWaypointPtr & | other | ) | const |
Calculates the square of the distance to other waypoints.
在文件 SimpleWaypoint.cpp 第 99 行定义.
引用了 GetLocation().
cg::Vector3D carla::traffic_manager::SimpleWaypoint::GetForwardVector | ( | ) | const |
GeoGridId carla::traffic_manager::SimpleWaypoint::GetGeodesicGridId | ( | ) |
在文件 SimpleWaypoint.cpp 第 119 行定义.
引用了 geodesic_grid_id , 以及 waypoint.
uint64_t carla::traffic_manager::SimpleWaypoint::GetId | ( | ) | const |
GeoGridId carla::traffic_manager::SimpleWaypoint::GetJunctionId | ( | ) | const |
SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::GetLeftWaypoint | ( | ) |
This method is used to get the closest left waypoint for a lane change.
在文件 SimpleWaypoint.cpp 第 39 行定义.
引用了 next_left_waypoint.
cg::Location carla::traffic_manager::SimpleWaypoint::GetLocation | ( | ) | const |
Returns the location object for this waypoint.
在文件 SimpleWaypoint.cpp 第 47 行定义.
引用了 waypoint.
被这些函数引用 Distance(), Distance(), DistanceSquared(), DistanceSquared(), SetLeftWaypoint() , 以及 SetRightWaypoint().
std::vector< SimpleWaypointPtr > carla::traffic_manager::SimpleWaypoint::GetNextWaypoint | ( | ) | const |
std::vector< SimpleWaypointPtr > carla::traffic_manager::SimpleWaypoint::GetPreviousWaypoint | ( | ) | const |
SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::GetRightWaypoint | ( | ) |
This method is used to get the closest right waypoint for a lane change.
在文件 SimpleWaypoint.cpp 第 43 行定义.
引用了 next_right_waypoint.
RoadOption carla::traffic_manager::SimpleWaypoint::GetRoadOption | ( | ) |
在文件 SimpleWaypoint.cpp 第 141 行定义.
引用了 road_option.
cg::Transform carla::traffic_manager::SimpleWaypoint::GetTransform | ( | ) | const |
WaypointPtr carla::traffic_manager::SimpleWaypoint::GetWaypoint | ( | ) | const |
Returns a carla::shared_ptr to carla::waypoint.
在文件 SimpleWaypoint.cpp 第 31 行定义.
引用了 waypoint.
被这些函数引用 carla::traffic_manager::MotionPlanStage::GetLandmarkTargetVelocity().
void carla::traffic_manager::SimpleWaypoint::SetGeodesicGridId | ( | GeoGridId | _geodesic_grid_id | ) |
void carla::traffic_manager::SimpleWaypoint::SetIsJunction | ( | bool | value | ) |
This method is used to set whether the waypoint belongs to a junction.
在文件 SimpleWaypoint.cpp 第 107 行定义.
引用了 _is_junction.
void carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint | ( | SimpleWaypointPtr & | waypoint | ) |
This method is used to set the closest left waypoint for a lane change.
在文件 SimpleWaypoint.cpp 第 69 行定义.
引用了 GetLocation(), next_left_waypoint, waypoint, carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
uint64_t carla::traffic_manager::SimpleWaypoint::SetNextWaypoint | ( | const std::vector< SimpleWaypointPtr > & | next_waypoints | ) |
uint64_t carla::traffic_manager::SimpleWaypoint::SetPreviousWaypoint | ( | const std::vector< SimpleWaypointPtr > & | next_waypoints | ) |
This method is used to set the previous waypoints.
在文件 SimpleWaypoint.cpp 第 62 行定义.
引用了 previous_waypoints.
void carla::traffic_manager::SimpleWaypoint::SetRightWaypoint | ( | SimpleWaypointPtr & | waypoint | ) |
This method is used to set the closest right waypoint for a lane change.
在文件 SimpleWaypoint.cpp 第 78 行定义.
引用了 GetLocation(), next_right_waypoint, waypoint, carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.
void carla::traffic_manager::SimpleWaypoint::SetRoadOption | ( | RoadOption | _road_option | ) |
在文件 SimpleWaypoint.cpp 第 137 行定义.
引用了 road_option.
|
private |
在文件 SimpleWaypoint.h 第 59 行定义.
被这些函数引用 CheckJunction() , 以及 SetIsJunction().
|
private |
Integer placing the waypoint into a geodesic grid.
在文件 SimpleWaypoint.h 第 57 行定义.
被这些函数引用 GetGeodesicGridId() , 以及 SetGeodesicGridId().
|
private |
Pointer to left lane change waypoint.
在文件 SimpleWaypoint.h 第 51 行定义.
被这些函数引用 GetLeftWaypoint(), SetLeftWaypoint() , 以及 SimpleWaypoint().
|
private |
Pointer to right lane change waypoint.
在文件 SimpleWaypoint.h 第 53 行定义.
被这些函数引用 GetRightWaypoint(), SetRightWaypoint() , 以及 SimpleWaypoint().
|
private |
List of pointers to next connecting waypoints.
在文件 SimpleWaypoint.h 第 47 行定义.
被这些函数引用 CheckIntersection(), GetNextWaypoint() , 以及 SetNextWaypoint().
|
private |
List of pointers to previous connecting waypoints.
在文件 SimpleWaypoint.h 第 49 行定义.
被这些函数引用 GetPreviousWaypoint() , 以及 SetPreviousWaypoint().
|
private |
RoadOption for the actual waypoint.
在文件 SimpleWaypoint.h 第 55 行定义.
被这些函数引用 GetRoadOption() , 以及 SetRoadOption().
|
private |
Pointer to Carla's waypoint object around which this class wraps around.
在文件 SimpleWaypoint.h 第 45 行定义.
被这些函数引用 GetForwardVector(), GetGeodesicGridId(), GetId(), GetJunctionId(), GetLocation(), GetTransform(), GetWaypoint(), SetLeftWaypoint(), SetRightWaypoint() , 以及 SimpleWaypoint().