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

#include <Map.h>

+ 类 carla::client::Map 继承关系图:
+ carla::client::Map 的协作图:

Public 类型

using TopologyList = std::vector<std::pair<SharedPtr<Waypoint>, SharedPtr<Waypoint>>>
 

Public 成员函数

std::vector< road::element::LaneMarkingCalculateCrossedLanes (const geom::Location &origin, const geom::Location &destination) const
 
void CookInMemoryMap (const std::string &path) const
 Cooks InMemoryMap used by the traffic manager
 
std::vector< SharedPtr< Waypoint > > GenerateWaypoints (double distance) const
 
std::vector< geom::LocationGetAllCrosswalkZones () const
 
std::vector< SharedPtr< Landmark > > GetAllLandmarks () const
 Returns all the larndmarks in the map
 
std::vector< SharedPtr< Landmark > > GetAllLandmarksOfType (std::string type) const
 Returns all the landmarks in the map of a specific type
 
const geom::GeoLocationGetGeoReference () const
 
SharedPtr< JunctionGetJunction (const Waypoint &waypoint) const
 
std::vector< std::pair< SharedPtr< Waypoint >, SharedPtr< Waypoint > > > GetJunctionWaypoints (road::JuncId id, road::Lane::LaneType type) const
 Returns a pair of waypoints (start and end) for each lane in the junction
 
std::vector< SharedPtr< Landmark > > GetLandmarkGroup (const Landmark &landmark) const
 Returns all the landmarks in the same group including this one
 
std::vector< SharedPtr< Landmark > > GetLandmarksFromId (std::string id) const
 Returns all the larndmarks in the map with a specific OpenDRIVE id
 
const road::MapGetMap () const
 
const std::string & GetName () const
 
const std::string & GetOpenDrive () const
 
const std::vector< geom::Transform > & GetRecommendedSpawnPoints () const
 
TopologyList GetTopology () const
 
SharedPtr< WaypointGetWaypoint (const geom::Location &location, bool project_to_road=true, int32_t lane_type=static_cast< uint32_t >(road::Lane::LaneType::Driving)) const
 
SharedPtr< WaypointGetWaypointXODR (carla::road::RoadId road_id, carla::road::LaneId lane_id, float s) const
 
 Map (rpc::MapInfo description, std::string xodr_content)
 
 Map (std::string name, std::string xodr_content)
 
 ~Map ()
 

Private 属性

const rpc::MapInfo _description
 
const road::Map _map
 
std::string open_drive_file
 

额外继承的成员函数

- Private 成员函数 继承自 carla::NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
 NonCopyable (NonCopyable &&)=delete
 
NonCopyableoperator= (const NonCopyable &)=delete
 
NonCopyableoperator= (NonCopyable &&)=delete
 

详细描述

在文件 client/Map.h27 行定义.

成员类型定义说明

◆ TopologyList

在文件 client/Map.h64 行定义.

构造及析构函数说明

◆ Map() [1/2]

carla::client::Map::Map ( rpc::MapInfo description,
std::string xodr_content )
explicit

在文件 client/Map.cpp30 行定义.

引用了 open_drive_file.

◆ Map() [2/2]

carla::client::Map::Map ( std::string name,
std::string xodr_content )
explicit

在文件 client/Map.cpp35 行定义.

◆ ~Map()

carla::client::Map::~Map ( )
default

成员函数说明

◆ CalculateCrossedLanes()

std::vector< road::element::LaneMarking > carla::client::Map::CalculateCrossedLanes ( const geom::Location & origin,
const geom::Location & destination ) const

在文件 client/Map.cpp105 行定义.

◆ CookInMemoryMap()

void carla::client::Map::CookInMemoryMap ( const std::string & path) const

Cooks InMemoryMap used by the traffic manager

在文件 client/Map.cpp187 行定义.

引用了 carla::traffic_manager::InMemoryMap::Cook().

+ 函数调用图:

◆ GenerateWaypoints()

std::vector< SharedPtr< Waypoint > > carla::client::Map::GenerateWaypoints ( double distance) const

在文件 client/Map.cpp95 行定义.

◆ GetAllCrosswalkZones()

std::vector< geom::Location > carla::client::Map::GetAllCrosswalkZones ( ) const

在文件 client/Map.cpp115 行定义.

◆ GetAllLandmarks()

std::vector< SharedPtr< Landmark > > carla::client::Map::GetAllLandmarks ( ) const

Returns all the larndmarks in the map

在文件 client/Map.cpp138 行定义.

◆ GetAllLandmarksOfType()

std::vector< SharedPtr< Landmark > > carla::client::Map::GetAllLandmarksOfType ( std::string type) const

Returns all the landmarks in the map of a specific type

在文件 client/Map.cpp160 行定义.

◆ GetGeoReference()

const geom::GeoLocation & carla::client::Map::GetGeoReference ( ) const

在文件 client/Map.cpp111 行定义.

◆ GetJunction()

SharedPtr< Junction > carla::client::Map::GetJunction ( const Waypoint & waypoint) const

在文件 client/Map.cpp119 行定义.

引用了 carla::client::Waypoint::GetJunctionId().

+ 函数调用图:

◆ GetJunctionWaypoints()

std::vector< std::pair< SharedPtr< Waypoint >, SharedPtr< Waypoint > > > carla::client::Map::GetJunctionWaypoints ( road::JuncId id,
road::Lane::LaneType type ) const

Returns a pair of waypoints (start and end) for each lane in the junction

在文件 client/Map.cpp125 行定义.

◆ GetLandmarkGroup()

std::vector< SharedPtr< Landmark > > carla::client::Map::GetLandmarkGroup ( const Landmark & landmark) const

Returns all the landmarks in the same group including this one

在文件 client/Map.cpp173 行定义.

引用了 carla::client::Landmark::_signal, carla::road::Signal::GetControllers() , 以及 carla::road::element::RoadInfoSignal::GetSignal().

+ 函数调用图:

◆ GetLandmarksFromId()

std::vector< SharedPtr< Landmark > > carla::client::Map::GetLandmarksFromId ( std::string id) const

Returns all the larndmarks in the map with a specific OpenDRIVE id

在文件 client/Map.cpp148 行定义.

◆ GetMap()

const road::Map & carla::client::Map::GetMap ( ) const
inline

在文件 client/Map.h42 行定义.

引用了 _map.

◆ GetName()

const std::string & carla::client::Map::GetName ( ) const
inline

在文件 client/Map.h38 行定义.

引用了 _description , 以及 carla::rpc::MapInfo::name.

◆ GetOpenDrive()

const std::string & carla::client::Map::GetOpenDrive ( ) const
inline

在文件 client/Map.h46 行定义.

引用了 open_drive_file.

◆ GetRecommendedSpawnPoints()

const std::vector< geom::Transform > & carla::client::Map::GetRecommendedSpawnPoints ( ) const
inline

在文件 client/Map.h50 行定义.

引用了 _description , 以及 carla::rpc::MapInfo::recommended_spawn_points.

◆ GetTopology()

Map::TopologyList carla::client::Map::GetTopology ( ) const

在文件 client/Map.cpp70 行定义.

◆ GetWaypoint()

SharedPtr< Waypoint > carla::client::Map::GetWaypoint ( const geom::Location & location,
bool project_to_road = true,
int32_t lane_type = static_cast<uint32_t>(road::Lane::LaneType::Driving) ) const

在文件 client/Map.cpp44 行定义.

引用了 GetWaypoint().

被这些函数引用 GetWaypoint().

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

◆ GetWaypointXODR()

SharedPtr< Waypoint > carla::client::Map::GetWaypointXODR ( carla::road::RoadId road_id,
carla::road::LaneId lane_id,
float s ) const

在文件 client/Map.cpp59 行定义.

类成员变量说明

◆ _description

const rpc::MapInfo carla::client::Map::_description
private

在文件 client/Map.h104 行定义.

被这些函数引用 GetName() , 以及 GetRecommendedSpawnPoints().

◆ _map

const road::Map carla::client::Map::_map
private

在文件 client/Map.h106 行定义.

被这些函数引用 GetMap().

◆ open_drive_file

std::string carla::client::Map::open_drive_file
private

在文件 client/Map.h102 行定义.

被这些函数引用 GetOpenDrive() , 以及 Map().


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