宏定义 | |
#define | DEBUG_ASSERT(predicate) DEBUG_ONLY(assert(predicate)); |
#define | DEBUG_ASSERT_EQ(lhs, rhs) DEBUG_ASSERT((lhs) == (rhs)) |
#define | DEBUG_ASSERT_NE(lhs, rhs) DEBUG_ASSERT((lhs) != (rhs)) |
#define | DEBUG_ERROR DEBUG_ASSERT(false); |
#define | DEBUG_ONLY(code) code |
#define | DEVELOPMENT_ASSERT(pred) DEVELOPMENT_ONLY(LIBCARLA_ASSERT_THROW__(pred, #pred)) |
#define | DEVELOPMENT_ONLY(code) code |
#define | LIBCARLA_ASSERT_LEVEL LIBCARLA_ASSERT_LEVEL_DEBUG |
#define | LIBCARLA_ASSERT_LEVEL_DEBUG 30 |
Macro utilities for assertions and debug-only code. | |
#define | LIBCARLA_ASSERT_LEVEL_DEVELOPMENT 20 |
#define | LIBCARLA_ASSERT_LEVEL_RELEASE 10 |
#define | LIBCARLA_ASSERT_THROW__(pred, msg) if (!(pred)) { ::carla::throw_exception(std::runtime_error(msg)); } |
#define | RELEASE_ASSERT(pred) LIBCARLA_ASSERT_THROW__(pred, #pred) |
#define DEBUG_ASSERT | ( | predicate | ) | DEBUG_ONLY(assert(predicate)); |
被这些函数引用 carla::road::MapBuilder::AddConnection(), carla::road::MapBuilder::AddJunctionController(), carla::road::MapBuilder::AddLaneLink(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::road::MapBuilder::AddRoadElevationProfile(), carla::road::MapBuilder::AddRoadGeometryArc(), carla::road::MapBuilder::AddRoadGeometryLine(), carla::road::MapBuilder::AddRoadGeometryParamPoly3(), carla::road::MapBuilder::AddRoadGeometryPoly3(), carla::road::MapBuilder::AddRoadGeometrySpiral(), carla::road::MapBuilder::AddRoadObjectCrosswalk(), carla::road::MapBuilder::AddRoadSection(), carla::road::MapBuilder::AddRoadSectionLane(), carla::geom::Mesh::AddTriangleFan(), carla::geom::Mesh::AddTriangleStrip(), carla::nav::Navigation::AddWalker(), carla::sensor::data::Array< T >::Array(), carla::multigpu::IncomingMessage::buffer(), carla::streaming::detail::tcp::IncomingMessage::buffer(), carla::road::MapBuilder::Build(), carla::road::Lane::ComputeTransform(), carla::streaming::detail::tcp::Client::Connect(), carla::multigpu::Router::ConnectSession(), carla::streaming::detail::MultiStreamState::ConnectSession(), carla::Buffer::copy_from(), carla::road::MapBuilder::CreateController(), carla::nav::Navigation::CreateCrowd(), carla::road::MapBuilder::CreateLaneAccess(), carla::road::MapBuilder::CreateLaneBorder(), carla::road::MapBuilder::CreateLaneHeight(), carla::road::MapBuilder::CreateLaneMaterial(), carla::road::MapBuilder::CreateLaneRule(), carla::road::MapBuilder::CreateLaneSpeed(), carla::road::MapBuilder::CreateLaneVisibility(), carla::road::MapBuilder::CreateLaneWidth(), carla::road::MapBuilder::CreatePointersBetweenRoadSegments(), carla::road::MapBuilder::CreateRoadMark(), carla::road::MapBuilder::CreateRoadMarkTypeLine(), carla::road::MapBuilder::CreateRoadSpeed(), carla::road::MapBuilder::CreateSectionOffset(), carla::profiler::LifetimeProfiler::Deregister(), carla::streaming::detail::Dispatcher::DeregisterSession(), carla::multigpu::Router::DisconnectSession(), carla::streaming::detail::MultiStreamState::DisconnectSession(), carla::geom::Math::DistanceArcToPoint(), carla::client::detail::EpisodeState::EpisodeState(), carla::geom::MeshFactory::Generate(), carla::geom::MeshFactory::GenerateLeftWall(), carla::geom::MeshFactory::GenerateRightWall(), carla::geom::MeshFactory::GenerateSidewalk(), carla::geom::MeshFactory::GenerateTesselated(), carla::rpc::Response< T >::Get(), carla::rpc::Response< T >::Get(), carla::client::detail::ActorVariant::Get(), carla::streaming::detail::token_type::get_endpoint(), carla::traffic_manager::TrafficManagerClient::GetActionBuffer(), carla::client::detail::Simulator::GetActorById(), carla::client::detail::Simulator::GetActorsById(), carla::client::detail::Simulator::GetActorSnapshot(), carla::nav::Navigation::GetAgentRoute(), carla::client::detail::Simulator::GetAllTheActorsInTheEpisode(), carla::road::Lane::GetCornerPositions(), carla::client::detail::Simulator::GetCurrentEpisodeId(), carla::client::detail::Simulator::GetCurrentMap(), carla::road::Lane::GetDistance(), carla::road::MapBuilder::GetEdgeLanePointer(), carla::rpc::Response< T >::GetError(), carla::rpc::Response< void >::GetError(), carla::road::Lane::GetInfo(), carla::road::Lane::GetInfos(), carla::road::MapBuilder::GetLaneNext(), carla::road::Lane::GetLength(), carla::road::LaneSection::GetLength(), carla::client::detail::Simulator::GetNavigation(), carla::road::Road::GetNearestPoint(), carla::road::Map::GetNext(), carla::traffic_manager::TrafficManagerClient::GetNextAction(), carla::nav::Navigation::GetPath(), carla::sensor::s11n::LidarHeaderView::GetPointCount(), carla::sensor::s11n::SemanticLidarHeaderView::GetPointCount(), carla::road::Map::GetPrevious(), carla::nav::Navigation::GetRandomLocation(), carla::client::detail::Simulator::GetRandomLocationFromNavigation(), carla::road::Lane::GetRoad(), carla::road::Map::GetSignalsInDistance(), carla::rpc::Actor::GetStreamToken(), carla::client::detail::Client::Pimpl::GetTimeout(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerSpeed(), carla::nav::Navigation::GetWalkerTransform(), carla::client::detail::Simulator::GetWorldSnapshot(), carla::traffic_manager::TrafficManagerClient::HealthCheckRemoteTM(), carla::sensor::data::ImageTmpl< PixelT >::ImageTmpl(), carla::road::Lane::IsStraight(), carla::nav::Navigation::IsWalkerAlive(), carla::road::Lane::Lane(), carla::client::LaneInvasionCallback::LaneInvasionCallback(), carla::sensor::s11n::LidarHeaderView::LidarHeaderView(), carla::client::RssSensor::Listen(), carla::ListView< IT >::ListView(), carla::client::detail::MakeActorImpl(), UActorBlueprintFunctionLibrary::MakeLidarDefinition(), carla::client::detail::Simulator::NavigationTick(), carla::streaming::detail::tcp::ServerSession::Open(), carla::multigpu::Primary::Open(), carla::road::element::RoadInfoIterator< T, IT >::operator*(), carla::road::element::RoadInfoIterator< T, IT >::operator++(), carla::road::element::RoadInfoIterator< T, IT >::operator->(), carla::nav::Navigation::PauseAgent(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometryArc::PosFromDist(), carla::road::element::GeometrySpiral::PosFromDist(), AOpticalFlowCamera::PostPhysTick(), carla::client::detail::CallbackList< InputsT >::Push(), carla::image::io::detail::io_resolver::read_image(), carla::client::detail::Simulator::RegisterAIController(), carla::client::detail::Simulator::RegisterLightUpdateChangeEvent(), carla::client::detail::Simulator::RegisterOnTickEvent(), carla::streaming::detail::Dispatcher::RegisterSession(), carla::traffic_manager::TrafficManagerClient::RegisterVehicle(), carla::nav::Navigation::RemoveAgent(), carla::traffic_manager::TrafficManagerClient::RemoveImportedRoute(), carla::client::detail::Simulator::RemoveLightUpdateChangeEvent(), carla::client::detail::Simulator::RemoveOnTickEvent(), carla::traffic_manager::TrafficManagerClient::RemoveUploadPath(), carla::sensor::data::LidarData::ResetMemory(), carla::sensor::data::SemanticLidarData::ResetMemory(), carla::road::element::RoadInfoGeometry::RoadInfoGeometry(), carla::road::element::RoadInfoIterator< T, IT >::RoadInfoIterator(), carla::sensor::s11n::SemanticLidarHeaderView::SemanticLidarHeaderView(), carla::sensor::s11n::ImageSerializer::Serialize(), carla::sensor::s11n::NormalsImageSerializer::Serialize(), carla::sensor::s11n::OpticalFlowImageSerializer::Serialize(), carla::sensor::s11n::GBufferFloatSerializer::Serialize(), carla::sensor::s11n::GBufferUint8Serializer::Serialize(), carla::sensor::s11n::DVSEventArraySerializer::Serialize(), carla::traffic_manager::TrafficManagerClient::SetAutoLaneChange(), carla::traffic_manager::TrafficManagerClient::SetBoundariesRespawnDormantVehicles(), carla::traffic_manager::TrafficManagerClient::SetCollisionDetection(), carla::traffic_manager::TrafficManagerClient::SetCustomPath(), carla::traffic_manager::TrafficManagerClient::SetDesiredSpeed(), carla::traffic_manager::TrafficManagerClient::SetDistanceToLeadingVehicle(), carla::traffic_manager::TrafficManagerClient::SetForceLaneChange(), carla::traffic_manager::TrafficManagerClient::SetGlobalDistanceToLeadingVehicle(), carla::traffic_manager::TrafficManagerClient::SetGlobalLaneOffset(), carla::traffic_manager::TrafficManagerClient::SetGlobalPercentageSpeedDifference(), carla::traffic_manager::TrafficManagerClient::SetHybridPhysicsMode(), carla::traffic_manager::TrafficManagerClient::SetHybridPhysicsRadius(), carla::traffic_manager::TrafficManagerClient::SetImportedRoute(), carla::traffic_manager::TrafficManagerClient::SetKeepRightPercentage(), carla::traffic_manager::TrafficManagerClient::SetLaneOffset(), carla::traffic_manager::TrafficManagerClient::SetMaxBoundaries(), carla::traffic_manager::TrafficManagerClient::SetOSMMode(), carla::client::detail::Simulator::SetPedestriansCrossFactor(), carla::client::detail::Simulator::SetPedestriansSeed(), carla::traffic_manager::TrafficManagerClient::SetPercentageIgnoreVehicles(), carla::traffic_manager::TrafficManagerClient::SetPercentageIgnoreWalkers(), carla::traffic_manager::TrafficManagerClient::SetPercentageRunningLight(), carla::traffic_manager::TrafficManagerClient::SetPercentageRunningSign(), carla::traffic_manager::TrafficManagerClient::SetPercentageSpeedDifference(), carla::traffic_manager::TrafficManagerClient::SetRandomDeviceSeed(), carla::traffic_manager::TrafficManagerClient::SetRandomLeftLaneChangePercentage(), carla::traffic_manager::TrafficManagerClient::SetRandomRightLaneChangePercentage(), carla::traffic_manager::TrafficManagerClient::SetRespawnDormantVehicles(), carla::traffic_manager::TrafficManagerClient::SetSynchronousMode(), carla::traffic_manager::TrafficManagerClient::SetSynchronousModeTimeOutInMiliSecond(), carla::traffic_manager::TrafficManagerClient::SetUpdateVehicleLights(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerMaxSpeed(), carla::traffic_manager::TrafficManagerClient::ShutDown(), carla::sensor::data::Array< T >::size(), carla::sensor::RawData::size(), carla::client::detail::Simulator::SpawnActor(), carla::streaming::detail::Stream< StreamStateT >::Stream(), carla::client::detail::Simulator::SubscribeToSensor(), carla::traffic_manager::TrafficManagerClient::SynchronousTick(), carla::client::detail::Simulator::Tick(), carla::time_duration::time_duration(), carla::client::detail::Simulator::UnregisterAIController(), carla::traffic_manager::TrafficManagerClient::UnregisterVehicle(), carla::nav::Navigation::UpdateCrowd(), carla::traffic_manager::TrafficManagerClient::UpdateImportedRoute(), carla::traffic_manager::TrafficManagerClient::UpdateUploadPath(), carla::client::detail::Simulator::WaitForTick(), carla::multigpu::Secondary::Write(), carla::multigpu::Primary::Write(), carla::multigpu::Secondary::Write(), carla::streaming::detail::tcp::ServerSession::Write(), carla::image::io::detail::io_resolver::write_view(), carla::pointcloud::PointCloudIO::WriteHeader(), ARayCastSemanticLidar::WritePointAsync() , 以及 carla::sensor::data::LidarData::WritePointSync().
#define DEBUG_ASSERT_EQ | ( | lhs, | |
rhs ) DEBUG_ASSERT((lhs) == (rhs)) |
被这些函数引用 carla::streaming::detail::tcp::Client::Connect(), carla::streaming::detail::tcp::ServerSession::Open(), carla::multigpu::Primary::ReadData(), carla::multigpu::Secondary::ReadData(), carla::streaming::detail::tcp::Client::ReadData(), carla::streaming::low_level::Client< T >::Subscribe() , 以及 carla::streaming::detail::tcp::ServerSession::Write().
#define DEBUG_ASSERT_NE | ( | lhs, | |
rhs ) DEBUG_ASSERT((lhs) != (rhs)) |
#define DEBUG_ERROR DEBUG_ASSERT(false); |
#define DEBUG_ONLY | ( | code | ) | code |
被这些函数引用 carla::streaming::detail::tcp::Client::Connect(), carla::Buffer::copy_from(), carla::client::detail::EpisodeState::EpisodeState(), carla::streaming::detail::tcp::ServerSession::Open(), carla::multigpu::Primary::ReadData(), carla::multigpu::Secondary::ReadData(), carla::streaming::detail::tcp::Client::ReadData(), carla::multigpu::Secondary::Write(), carla::multigpu::Primary::Write(), carla::multigpu::Secondary::Write(), carla::streaming::detail::tcp::ServerSession::Write() , 以及 carla::multigpu::Secondary::Write().
#define DEVELOPMENT_ASSERT | ( | pred | ) | DEVELOPMENT_ONLY(LIBCARLA_ASSERT_THROW__(pred, #pred)) |
#define LIBCARLA_ASSERT_LEVEL LIBCARLA_ASSERT_LEVEL_DEBUG |
#define LIBCARLA_ASSERT_LEVEL_DEBUG 30 |
Macro utilities for assertions and debug-only code.
Defines three levels of assertions: debug, development, and release. By default, if NDEBUG is defined the level is set to development, otherwise is set to debug.
The following macros are defined here:
#define LIBCARLA_ASSERT_THROW__ | ( | pred, | |
msg ) if (!(pred)) { ::carla::throw_exception(std::runtime_error(msg)); } |
#define RELEASE_ASSERT | ( | pred | ) | LIBCARLA_ASSERT_THROW__(pred, #pred) |
被这些函数引用 carla::road::MapBuilder::AddSignalReference(), carla::road::ComputeTotalLaneWidth(), carla::road::Lane::ComputeTransform(), carla::road::Map::CreateRtree(), carla::geom::MeshFactory::Generate(), carla::geom::MeshFactory::GenerateLeftWall(), carla::road::Map::GenerateMesh(), carla::geom::MeshFactory::GenerateRightWall(), carla::geom::MeshFactory::GenerateSidewalk(), carla::geom::MeshFactory::GenerateTesselated(), carla::road::Map::GenerateWaypoints(), carla::road::Lane::GetCornerPositions(), carla::road::Map::GetLaneWidth(), carla::road::Map::GetLeft(), carla::road::Map::GetMarkRecord(), carla::road::Map::GetNext(), carla::road::Map::GetPredecessors(), carla::road::Map::GetPrevious(), carla::road::Map::GetRight(), carla::road::Map::GetSuccessors(), carla::road::Lane::GetWidth(), carla::road::Lane::IsStraight(), carla::client::ServerSideSensor::ListenToGBuffer(), carla::client::detail::Simulator::MakeActor() , 以及 carla::client::ServerSideSensor::StopGBuffer().