|
CARLA
|
#include "test.h"#include "OpenDrive.h"#include "Random.h"#include <carla/StopWatch.h>#include <carla/geom/Location.h>#include <carla/geom/Math.h>#include <carla/opendrive/OpenDriveParser.h>#include <carla/road/MapBuilder.h>#include <carla/road/element/RoadInfoElevation.h>#include <carla/road/element/RoadInfoGeometry.h>#include <carla/road/element/RoadInfoMarkRecord.h>#include <carla/road/element/RoadInfoVisitor.h>#include <third-party/pugixml/pugixml.hpp>#include <fstream>#include <string>Go to the source code of this file.
Functions | |
| static auto | get_total_road_marks (pugi::xml_object_range< pugi::xml_named_node_iterator > &lane_nodes, LaneSection &lane_section) |
| static bool | IsRoadless (carla::road::Map &map) |
| TEST (road, get_waypoint) | |
| TEST (road, iterate_waypoints) | |
| TEST (road, parse_files) | |
| TEST (road, parse_geometry) | |
| TEST (road, parse_junctions) | |
| TEST (road, parse_road) | |
| TEST (road, parse_road_elevation) | |
| TEST (road, parse_road_links) | |
| TEST (road, stencil_parsing) | |
| static void | test_geometry (const pugi::xml_document &xml, std::optional< Map > &map) |
| static void | test_junctions (const pugi::xml_document &xml, std::optional< Map > &map) |
| static void | test_road_elevation (const pugi::xml_document &xml, std::optional< Map > &map) |
| static void | test_road_links (std::optional< Map > &map) |
| static void | test_roads (const pugi::xml_document &xml, std::optional< Map > &map) |
Variables | |
| const std::string | BASE_PATH = LIBCARLA_TEST_CONTENT_FOLDER "/OpenDrive/" |
| static constexpr const char * | kStencilXodr |
|
static |
Definition at line 81 of file test_opendrive.cpp.
References carla::road::Lane::GetDistance(), carla::road::Lane::GetInfo(), and carla::road::LaneSection::GetLane().
Referenced by test_roads().
|
static |
Definition at line 227 of file test_opendrive.cpp.
| TEST | ( | road | , |
| get_waypoint | |||
| ) |
| TEST | ( | road | , |
| iterate_waypoints | |||
| ) |
Definition at line 310 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), carla::detail::StopWatchTmpl< CLOCK >::GetElapsedTime(), IsRoadless(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), carla::logging::log(), util::Random::Shuffle(), and util::Random::Uniform().
| TEST | ( | road | , |
| parse_files | |||
| ) |
Definition at line 231 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), and carla::opendrive::OpenDriveParser::Load().
| TEST | ( | road | , |
| parse_geometry | |||
| ) |
Definition at line 295 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), pugi::xml_document::load_file(), and test_geometry().
| TEST | ( | road | , |
| parse_junctions | |||
| ) |
Definition at line 249 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), pugi::xml_document::load_file(), and test_junctions().
| TEST | ( | road | , |
| parse_road | |||
| ) |
Definition at line 265 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), pugi::xml_document::load_file(), and test_roads().
| TEST | ( | road | , |
| parse_road_elevation | |||
| ) |
Definition at line 280 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), pugi::xml_document::load_file(), and test_road_elevation().
| TEST | ( | road | , |
| parse_road_links | |||
| ) |
Definition at line 240 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), util::OpenDrive::Load(), carla::opendrive::OpenDriveParser::Load(), and test_road_links().
| TEST | ( | road | , |
| stencil_parsing | |||
| ) |
Definition at line 469 of file test_opendrive.cpp.
References kStencilXodr, and carla::opendrive::OpenDriveParser::Load().
|
static |
Definition at line 59 of file test_opendrive.cpp.
References pugi::xml_attribute::as_uint(), pugi::xml_node::attribute(), pugi::xml_node::child(), pugi::xml_node::children(), and road_id.
Referenced by TEST().
|
static |
Definition at line 171 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), and junction.
Referenced by TEST().
|
static |
Definition at line 35 of file test_opendrive.cpp.
References pugi::xml_attribute::as_uint(), pugi::xml_node::attribute(), pugi::xml_node::child(), pugi::xml_node::children(), elevation, and road_id.
Referenced by TEST().
|
static |
|
static |
Definition at line 116 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), get_total_road_marks(), and road_id.
Referenced by TEST().
| const std::string BASE_PATH = LIBCARLA_TEST_CONTENT_FOLDER "/OpenDrive/" |
|
staticconstexpr |
Definition at line 430 of file test_opendrive.cpp.
Referenced by TEST().