CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Private 类型 | Private 属性 | 所有成员列表
carla::traffic_manager::SimpleWaypoint类 参考

This is a simple wrapper class on Carla's waypoint object. 更多...

#include <SimpleWaypoint.h>

+ carla::traffic_manager::SimpleWaypoint 的协作图:

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< SimpleWaypointPtrGetNextWaypoint () const
 Returns the list of next waypoints.
 
std::vector< SimpleWaypointPtrGetPreviousWaypoint () 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< SimpleWaypointPtrnext_waypoints
 List of pointers to next connecting waypoints.
 
std::vector< SimpleWaypointPtrprevious_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.h38 行定义.

成员类型定义说明

◆ SimpleWaypointPtr

在文件 SimpleWaypoint.h40 行定义.

构造及析构函数说明

◆ SimpleWaypoint()

carla::traffic_manager::SimpleWaypoint::SimpleWaypoint ( WaypointPtr _waypoint)

在文件 SimpleWaypoint.cpp16 行定义.

引用了 next_left_waypoint, next_right_waypoint , 以及 waypoint.

◆ ~SimpleWaypoint()

carla::traffic_manager::SimpleWaypoint::~SimpleWaypoint ( )

在文件 SimpleWaypoint.cpp21 行定义.

成员函数说明

◆ CheckIntersection()

bool carla::traffic_manager::SimpleWaypoint::CheckIntersection ( ) const

Returns true if the object's waypoint belongs to an intersection (Doesn't use OpenDrive).

在文件 SimpleWaypoint.cpp111 行定义.

引用了 next_waypoints.

◆ CheckJunction()

bool carla::traffic_manager::SimpleWaypoint::CheckJunction ( ) const

Returns true if the object's waypoint belongs to an intersection.

在文件 SimpleWaypoint.cpp103 行定义.

引用了 _is_junction.

◆ Distance() [1/2]

float carla::traffic_manager::SimpleWaypoint::Distance ( const cg::Location & location) const

Calculates the distance from the object's waypoint to the passed location.

在文件 SimpleWaypoint.cpp87 行定义.

引用了 carla::geom::Location::Distance() , 以及 GetLocation().

+ 函数调用图:

◆ Distance() [2/2]

float carla::traffic_manager::SimpleWaypoint::Distance ( const SimpleWaypointPtr & other) const

Calculates the distance the other SimpleWaypoint object.

在文件 SimpleWaypoint.cpp91 行定义.

引用了 carla::geom::Location::Distance() , 以及 GetLocation().

+ 函数调用图:

◆ DistanceSquared() [1/2]

float carla::traffic_manager::SimpleWaypoint::DistanceSquared ( const cg::Location & location) const

Calculates the square of the distance to given location.

在文件 SimpleWaypoint.cpp95 行定义.

引用了 GetLocation().

+ 函数调用图:

◆ DistanceSquared() [2/2]

float carla::traffic_manager::SimpleWaypoint::DistanceSquared ( const SimpleWaypointPtr & other) const

Calculates the square of the distance to other waypoints.

在文件 SimpleWaypoint.cpp99 行定义.

引用了 GetLocation().

+ 函数调用图:

◆ GetForwardVector()

cg::Vector3D carla::traffic_manager::SimpleWaypoint::GetForwardVector ( ) const

Returns the vector along the waypoint's direction.

在文件 SimpleWaypoint.cpp51 行定义.

引用了 waypoint.

◆ GetGeodesicGridId()

GeoGridId carla::traffic_manager::SimpleWaypoint::GetGeodesicGridId ( )

在文件 SimpleWaypoint.cpp119 行定义.

引用了 geodesic_grid_id , 以及 waypoint.

◆ GetId()

uint64_t carla::traffic_manager::SimpleWaypoint::GetId ( ) const

Returns the unique id for the waypoint.

在文件 SimpleWaypoint.cpp35 行定义.

引用了 waypoint.

◆ GetJunctionId()

GeoGridId carla::traffic_manager::SimpleWaypoint::GetJunctionId ( ) const

Method to retreive junction id of the waypoint.

在文件 SimpleWaypoint.cpp129 行定义.

引用了 waypoint.

◆ GetLeftWaypoint()

SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::GetLeftWaypoint ( )

This method is used to get the closest left waypoint for a lane change.

在文件 SimpleWaypoint.cpp39 行定义.

引用了 next_left_waypoint.

◆ GetLocation()

cg::Location carla::traffic_manager::SimpleWaypoint::GetLocation ( ) const

Returns the location object for this waypoint.

在文件 SimpleWaypoint.cpp47 行定义.

引用了 waypoint.

被这些函数引用 Distance(), Distance(), DistanceSquared(), DistanceSquared(), SetLeftWaypoint() , 以及 SetRightWaypoint().

+ 这是这个函数的调用关系图:

◆ GetNextWaypoint()

std::vector< SimpleWaypointPtr > carla::traffic_manager::SimpleWaypoint::GetNextWaypoint ( ) const

Returns the list of next waypoints.

在文件 SimpleWaypoint.cpp23 行定义.

引用了 next_waypoints.

◆ GetPreviousWaypoint()

std::vector< SimpleWaypointPtr > carla::traffic_manager::SimpleWaypoint::GetPreviousWaypoint ( ) const

Returns the list of previous waypoints.

在文件 SimpleWaypoint.cpp27 行定义.

引用了 previous_waypoints.

◆ GetRightWaypoint()

SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::GetRightWaypoint ( )

This method is used to get the closest right waypoint for a lane change.

在文件 SimpleWaypoint.cpp43 行定义.

引用了 next_right_waypoint.

◆ GetRoadOption()

RoadOption carla::traffic_manager::SimpleWaypoint::GetRoadOption ( )

在文件 SimpleWaypoint.cpp141 行定义.

引用了 road_option.

◆ GetTransform()

cg::Transform carla::traffic_manager::SimpleWaypoint::GetTransform ( ) const

Return transform object for the current waypoint.

在文件 SimpleWaypoint.cpp133 行定义.

引用了 waypoint.

◆ GetWaypoint()

WaypointPtr carla::traffic_manager::SimpleWaypoint::GetWaypoint ( ) const

Returns a carla::shared_ptr to carla::waypoint.

在文件 SimpleWaypoint.cpp31 行定义.

引用了 waypoint.

被这些函数引用 carla::traffic_manager::MotionPlanStage::GetLandmarkTargetVelocity().

+ 这是这个函数的调用关系图:

◆ SetGeodesicGridId()

void carla::traffic_manager::SimpleWaypoint::SetGeodesicGridId ( GeoGridId _geodesic_grid_id)

Accessor methods for geodesic grid id.

在文件 SimpleWaypoint.cpp115 行定义.

引用了 geodesic_grid_id.

◆ SetIsJunction()

void carla::traffic_manager::SimpleWaypoint::SetIsJunction ( bool value)

This method is used to set whether the waypoint belongs to a junction.

在文件 SimpleWaypoint.cpp107 行定义.

引用了 _is_junction.

◆ SetLeftWaypoint()

void carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint ( SimpleWaypointPtr & waypoint)

This method is used to set the closest left waypoint for a lane change.

在文件 SimpleWaypoint.cpp69 行定义.

引用了 GetLocation(), next_left_waypoint, waypoint, carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.

+ 函数调用图:

◆ SetNextWaypoint()

uint64_t carla::traffic_manager::SimpleWaypoint::SetNextWaypoint ( const std::vector< SimpleWaypointPtr > & next_waypoints)

This method is used to set the next waypoints.

在文件 SimpleWaypoint.cpp55 行定义.

引用了 next_waypoints.

◆ SetPreviousWaypoint()

uint64_t carla::traffic_manager::SimpleWaypoint::SetPreviousWaypoint ( const std::vector< SimpleWaypointPtr > & next_waypoints)

This method is used to set the previous waypoints.

在文件 SimpleWaypoint.cpp62 行定义.

引用了 previous_waypoints.

◆ SetRightWaypoint()

void carla::traffic_manager::SimpleWaypoint::SetRightWaypoint ( SimpleWaypointPtr & waypoint)

This method is used to set the closest right waypoint for a lane change.

在文件 SimpleWaypoint.cpp78 行定义.

引用了 GetLocation(), next_right_waypoint, waypoint, carla::geom::Vector3D::x , 以及 carla::geom::Vector3D::y.

+ 函数调用图:

◆ SetRoadOption()

void carla::traffic_manager::SimpleWaypoint::SetRoadOption ( RoadOption _road_option)

在文件 SimpleWaypoint.cpp137 行定义.

引用了 road_option.

类成员变量说明

◆ _is_junction

bool carla::traffic_manager::SimpleWaypoint::_is_junction = false
private

在文件 SimpleWaypoint.h59 行定义.

被这些函数引用 CheckJunction() , 以及 SetIsJunction().

◆ geodesic_grid_id

GeoGridId carla::traffic_manager::SimpleWaypoint::geodesic_grid_id = 0
private

Integer placing the waypoint into a geodesic grid.

在文件 SimpleWaypoint.h57 行定义.

被这些函数引用 GetGeodesicGridId() , 以及 SetGeodesicGridId().

◆ next_left_waypoint

SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::next_left_waypoint
private

Pointer to left lane change waypoint.

在文件 SimpleWaypoint.h51 行定义.

被这些函数引用 GetLeftWaypoint(), SetLeftWaypoint() , 以及 SimpleWaypoint().

◆ next_right_waypoint

SimpleWaypointPtr carla::traffic_manager::SimpleWaypoint::next_right_waypoint
private

Pointer to right lane change waypoint.

在文件 SimpleWaypoint.h53 行定义.

被这些函数引用 GetRightWaypoint(), SetRightWaypoint() , 以及 SimpleWaypoint().

◆ next_waypoints

std::vector<SimpleWaypointPtr> carla::traffic_manager::SimpleWaypoint::next_waypoints
private

List of pointers to next connecting waypoints.

在文件 SimpleWaypoint.h47 行定义.

被这些函数引用 CheckIntersection(), GetNextWaypoint() , 以及 SetNextWaypoint().

◆ previous_waypoints

std::vector<SimpleWaypointPtr> carla::traffic_manager::SimpleWaypoint::previous_waypoints
private

List of pointers to previous connecting waypoints.

在文件 SimpleWaypoint.h49 行定义.

被这些函数引用 GetPreviousWaypoint() , 以及 SetPreviousWaypoint().

◆ road_option

RoadOption carla::traffic_manager::SimpleWaypoint::road_option = RoadOption::Void
private

RoadOption for the actual waypoint.

在文件 SimpleWaypoint.h55 行定义.

被这些函数引用 GetRoadOption() , 以及 SetRoadOption().

◆ waypoint

WaypointPtr carla::traffic_manager::SimpleWaypoint::waypoint
private

Pointer to Carla's waypoint object around which this class wraps around.

在文件 SimpleWaypoint.h45 行定义.

被这些函数引用 GetForwardVector(), GetGeodesicGridId(), GetId(), GetJunctionId(), GetLocation(), GetTransform(), GetWaypoint(), SetLeftWaypoint(), SetRightWaypoint() , 以及 SimpleWaypoint().


该类的文档由以下文件生成: