|
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 get_total_road_marks(), carla::road::Lane::GetDistance(), carla::road::Lane::GetInfo(), and carla::road::LaneSection::GetLane().
Referenced by get_total_road_marks(), and test_roads().
|
static |
Definition at line 227 of file test_opendrive.cpp.
References IsRoadless().
Referenced by IsRoadless(), TEST(), and TEST().
| TEST | ( | road | , |
| get_waypoint | ) |
Definition at line 383 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), carla::detail::StopWatchTmpl< CLOCK >::GetElapsedTime(), IsRoadless(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), util::Random::Location(), and TEST().
| TEST | ( | road | , |
| iterate_waypoints | ) |
Definition at line 310 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), carla::detail::StopWatchTmpl< CLOCK >::GetElapsedTime(), IsRoadless(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), util::Random::Shuffle(), TEST(), and util::Random::Uniform().
| TEST | ( | road | , |
| parse_files | ) |
Definition at line 231 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), and TEST().
| TEST | ( | road | , |
| parse_geometry | ) |
Definition at line 295 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), pugi::xml_document::load_file(), TEST(), and test_geometry().
| TEST | ( | road | , |
| parse_junctions | ) |
Definition at line 249 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), pugi::xml_document::load_file(), TEST(), and test_junctions().
| TEST | ( | road | , |
| parse_road | ) |
Definition at line 265 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), pugi::xml_document::load_file(), TEST(), and test_roads().
| TEST | ( | road | , |
| parse_road_elevation | ) |
Definition at line 280 of file test_opendrive.cpp.
References BASE_PATH, util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), pugi::xml_document::load_file(), TEST(), and test_road_elevation().
| TEST | ( | road | , |
| parse_road_links | ) |
Definition at line 240 of file test_opendrive.cpp.
References util::OpenDrive::GetAvailableFiles(), carla::opendrive::OpenDriveParser::Load(), util::OpenDrive::Load(), TEST(), and test_road_links().
| TEST | ( | road | , |
| stencil_parsing | ) |
Definition at line 469 of file test_opendrive.cpp.
References kStencilXodr, carla::opendrive::OpenDriveParser::Load(), and TEST().
|
static |
Definition at line 59 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), and test_geometry().
Referenced by TEST(), and test_geometry().
|
static |
Definition at line 171 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), and test_junctions().
Referenced by TEST(), and test_junctions().
|
static |
Definition at line 35 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), and test_road_elevation().
Referenced by TEST(), and test_road_elevation().
|
static |
Definition at line 205 of file test_opendrive.cpp.
References test_road_links().
Referenced by TEST(), and test_road_links().
|
static |
Definition at line 116 of file test_opendrive.cpp.
References pugi::xml_node::child(), pugi::xml_node::children(), get_total_road_marks(), and test_roads().
Referenced by TEST(), and test_roads().
| const std::string BASE_PATH = LIBCARLA_TEST_CONTENT_FOLDER "/OpenDrive/" |
|
staticconstexpr |
Definition at line 430 of file test_opendrive.cpp.
Referenced by TEST().