#include <Map.h>
Public Types | |
using | TopologyList = std::vector< std::pair< SharedPtr< Waypoint >, SharedPtr< Waypoint > >> |
Public Member Functions | |
std::vector< road::element::LaneMarking > | CalculateCrossedLanes (const geom::Location &origin, const geom::Location &destination) const |
void | CookInMemoryMap (const std::string &path) const |
Cooks InMemoryMap used by the traffic manager. More... | |
std::vector< SharedPtr< Waypoint > > | GenerateWaypoints (double distance) const |
std::vector< geom::Location > | GetAllCrosswalkZones () const |
std::vector< SharedPtr< Landmark > > | GetAllLandmarks () const |
Returns all the larndmarks in the map. More... | |
std::vector< SharedPtr< Landmark > > | GetAllLandmarksOfType (std::string type) const |
Returns all the landmarks in the map of a specific type. More... | |
const geom::GeoLocation & | GetGeoReference () const |
SharedPtr< Junction > | GetJunction (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. More... | |
std::vector< SharedPtr< Landmark > > | GetLandmarkGroup (const Landmark &landmark) const |
Returns all the landmarks in the same group including this one. More... | |
std::vector< SharedPtr< Landmark > > | GetLandmarksFromId (std::string id) const |
Returns all the larndmarks in the map with a specific OpenDRIVE id. More... | |
const road::Map & | GetMap () const |
const std::string & | GetName () const |
const std::string & | GetOpenDrive () const |
const std::vector< geom::Transform > & | GetRecommendedSpawnPoints () const |
TopologyList | GetTopology () const |
SharedPtr< Waypoint > | GetWaypoint (const geom::Location &location, bool project_to_road=true, int32_t lane_type=static_cast< uint32_t >(road::Lane::LaneType::Driving)) const |
SharedPtr< Waypoint > | GetWaypointXODR (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 Attributes | |
const rpc::MapInfo | _description |
const road::Map | _map |
std::string | open_drive_file |
Additional Inherited Members | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Definition at line 27 of file client/Map.h.
using carla::client::Map::TopologyList = std::vector<std::pair<SharedPtr<Waypoint>, SharedPtr<Waypoint> >> |
Definition at line 64 of file client/Map.h.
|
explicit |
Definition at line 30 of file client/Map.cpp.
References open_drive_file.
|
explicit |
Definition at line 35 of file client/Map.cpp.
References open_drive_file, and ~Map().
|
default |
std::vector< road::element::LaneMarking > carla::client::Map::CalculateCrossedLanes | ( | const geom::Location & | origin, |
const geom::Location & | destination | ||
) | const |
Definition at line 105 of file client/Map.cpp.
References _map, and carla::road::Map::CalculateCrossedLanes().
void carla::client::Map::CookInMemoryMap | ( | const std::string & | path | ) | const |
Cooks InMemoryMap used by the traffic manager.
Definition at line 187 of file client/Map.cpp.
References carla::traffic_manager::InMemoryMap::Cook().
Definition at line 95 of file client/Map.cpp.
References _map, and carla::road::Map::GenerateWaypoints().
std::vector< geom::Location > carla::client::Map::GetAllCrosswalkZones | ( | ) | const |
Definition at line 115 of file client/Map.cpp.
References _map, and carla::road::Map::GetAllCrosswalkZones().
Returns all the larndmarks in the map.
Definition at line 138 of file client/Map.cpp.
References _map, and carla::road::Map::GetAllSignalReferences().
std::vector< SharedPtr< Landmark > > carla::client::Map::GetAllLandmarksOfType | ( | std::string | type | ) | const |
Returns all the landmarks in the map of a specific type.
Definition at line 160 of file client/Map.cpp.
References _map, and carla::road::Map::GetAllSignalReferences().
const geom::GeoLocation & carla::client::Map::GetGeoReference | ( | ) | const |
Definition at line 111 of file client/Map.cpp.
References _map, and carla::road::Map::GetGeoReference().
Definition at line 119 of file client/Map.cpp.
References carla::road::Map::GetJunction(), carla::client::Waypoint::GetJunctionId(), and GetMap().
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.
Definition at line 125 of file client/Map.cpp.
References carla::road::Map::GetJunctionWaypoints(), and GetMap().
std::vector< SharedPtr< Landmark > > carla::client::Map::GetLandmarkGroup | ( | const Landmark & | landmark | ) | const |
Returns all the landmarks in the same group including this one.
Definition at line 173 of file client/Map.cpp.
References _map, carla::client::Landmark::_signal, carla::road::Signal::GetControllers(), carla::road::Map::GetControllers(), GetLandmarksFromId(), carla::road::element::RoadInfoSignal::GetSignal(), and carla::road::Map::GetSignals().
Returns all the larndmarks in the map with a specific OpenDRIVE id.
Definition at line 148 of file client/Map.cpp.
References _map, and carla::road::Map::GetAllSignalReferences().
Referenced by GetLandmarkGroup().
|
inline |
Definition at line 42 of file client/Map.h.
Referenced by GetJunction(), and GetJunctionWaypoints().
|
inline |
Definition at line 38 of file client/Map.h.
|
inline |
Definition at line 46 of file client/Map.h.
|
inline |
Definition at line 50 of file client/Map.h.
References carla::road::Lane::Driving.
Map::TopologyList carla::client::Map::GetTopology | ( | ) | const |
Definition at line 70 of file client/Map.cpp.
References _map, and carla::road::Map::GenerateTopology().
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 |
Definition at line 44 of file client/Map.cpp.
References _map, carla::road::Map::GetClosestWaypointOnRoad(), and carla::road::Map::GetWaypoint().
SharedPtr< Waypoint > carla::client::Map::GetWaypointXODR | ( | carla::road::RoadId | road_id, |
carla::road::LaneId | lane_id, | ||
float | s | ||
) | const |
Definition at line 59 of file client/Map.cpp.
References _map, and carla::road::Map::GetWaypoint().
|
private |
Definition at line 104 of file client/Map.h.
|
private |
Definition at line 106 of file client/Map.h.
Referenced by CalculateCrossedLanes(), GenerateWaypoints(), GetAllCrosswalkZones(), GetAllLandmarks(), GetAllLandmarksOfType(), GetGeoReference(), GetLandmarkGroup(), GetLandmarksFromId(), GetTopology(), GetWaypoint(), and GetWaypointXODR().
|
private |
Definition at line 102 of file client/Map.h.
Referenced by Map().