CARLA
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CarlaRecorderQuery Class Reference

#include <CarlaRecorderQuery.h>

+ Collaboration diagram for CarlaRecorderQuery:

Classes

struct  Header
 

Public Member Functions

std::string QueryBlocked (std::string Filename, double MinTime=30, double MinDistance=10)
 
std::string QueryCollisions (std::string Filename, char Category1='a', char Category2='a')
 
std::string QueryInfo (std::string Filename, bool bShowAll=false)
 

Private Member Functions

bool CheckFileInfo (std::stringstream &Info)
 
bool ReadHeader (void)
 
void SkipPacket (void)
 

Private Attributes

CarlaRecorderActorBoundingBox ActorBoundingBox
 
CarlaRecorderCollision Collision
 
CarlaRecorderEventAdd EventAdd
 
CarlaRecorderEventDel EventDel
 
CarlaRecorderEventParent EventParent
 
std::ifstream File
 
CarlaRecorderFrame Frame
 
Header Header
 
CarlaRecorderKinematics Kinematics
 
CarlaRecorderLightScene LightScene
 
CarlaRecorderLightVehicle LightVehicle
 
CarlaRecorderPhysicsControl PhysicsControl
 
CarlaRecorderPlatformTime PlatformTime
 
CarlaRecorderPosition Position
 
CarlaRecorderInfo RecInfo
 
CarlaRecorderStateTrafficLight StateTraffic
 
CarlaRecorderTrafficLightTime TrafficLightTime
 
CarlaRecorderAnimVehicle Vehicle
 
CarlaRecorderAnimWalker Walker
 
CarlaRecorderWalkerBones WalkerBones
 

Detailed Description

Definition at line 30 of file CarlaRecorderQuery.h.

Member Function Documentation

◆ CheckFileInfo()

bool CarlaRecorderQuery::CheckFileInfo ( std::stringstream &  Info)
inlineprivate

Definition at line 40 of file CarlaRecorderQuery.cpp.

References CarlaRecorderInfo::Date, File, CarlaRecorderInfo::Magic, CarlaRecorderInfo::Mapfile, CarlaRecorderInfo::Read(), RecInfo, and CarlaRecorderInfo::Version.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ QueryBlocked()

std::string CarlaRecorderQuery::QueryBlocked ( std::string  Filename,
double  MinTime = 30,
double  MinDistance = 10 
)

◆ QueryCollisions()

std::string CarlaRecorderQuery::QueryCollisions ( std::string  Filename,
char  Category1 = 'a',
char  Category2 = 'a' 
)

◆ QueryInfo()

std::string CarlaRecorderQuery::QueryInfo ( std::string  Filename,
bool  bShowAll = false 
)

Definition at line 63 of file CarlaRecorderQuery.cpp.

References ActorBoundingBox, CarlaRecorderKinematics::AngularVelocity, AnimVehicle, AnimWalker, CarlaRecorderActorDescription::Attributes, CarlaRecorderAnimVehicle::bHandbrake, CarlaRecorderLightScene::bOn, CarlaRecorderWalkerBones::Bones, CarlaRecorderActorBoundingBox::BoundingBox, BoundingBox, CarlaRecorderAnimVehicle::Brake, FVehicleLightState::Brake, carla::rpc::VehiclePhysicsControl::center_of_mass, CheckFileInfo(), CarlaRecorderWalkerBones::Clear(), carla::rpc::VehiclePhysicsControl::clutch_strength, Collision, Collision, CarlaRecorderLightScene::Color, carla::rpc::VehiclePhysicsControl::damping_rate_full_throttle, carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_disengaged, carla::rpc::VehiclePhysicsControl::damping_rate_zero_throttle_clutch_engaged, CarlaRecorderEventDel::DatabaseId, CarlaRecorderEventParent::DatabaseId, CarlaRecorderTrafficLightTime::DatabaseId, CarlaRecorderPosition::DatabaseId, CarlaRecorderKinematics::DatabaseId, CarlaRecorderStateTrafficLight::DatabaseId, CarlaRecorderAnimVehicle::DatabaseId, CarlaRecorderAnimWalker::DatabaseId, CarlaRecorderPhysicsControl::DatabaseId, CarlaRecorderLightVehicle::DatabaseId, CarlaRecorderWalkerBones::DatabaseId, CarlaRecorderActorBoundingBox::DatabaseId, CarlaRecorderEventAdd::DatabaseId, CarlaRecorderCollision::DatabaseId1, CarlaRecorderCollision::DatabaseId2, CarlaRecorderEventParent::DatabaseIdParent, CarlaRecorderEventAdd::Description, carla::rpc::VehiclePhysicsControl::drag_coefficient, CarlaRecorderFrame::Elapsed, CarlaRecorderStateTrafficLight::ElapsedTime, EventAdd, EventAdd, EventDel, EventDel, EventParent, EventParent, CarlaRecorderBoundingBox::Extension, File, carla::rpc::VehiclePhysicsControl::final_ratio, FVehicleLightState::Fog, carla::rpc::VehiclePhysicsControl::forward_gears, Frame, FrameEnd, FrameStart, CarlaRecorderAnimVehicle::Gear, carla::rpc::VehiclePhysicsControl::gear_switch_time, GetRecorderFilename(), CarlaRecorderTrafficLightTime::GreenTime, FVehicleLightState::HighBeam, CarlaRecorderFrame::Id, CarlaRecorderCollision::Id, CarlaRecorderActorDescription::Id, CarlaRecorderQuery::Header::Id, CarlaRecorderLightScene::Intensity, FVehicleLightState::Interior, CarlaRecorderCollision::IsActor1Hero, CarlaRecorderCollision::IsActor2Hero, CarlaRecorderStateTrafficLight::IsFrozen, Kinematics, Kinematics, FVehicleLightState::LeftBlinker, CarlaRecorderLightScene::LightId, LightScene, LightVehicle, CarlaRecorderKinematics::LinearVelocity, CarlaRecorderPosition::Location, CarlaRecorderEventAdd::Location, FVehicleLightState::LowBeam, carla::rpc::VehiclePhysicsControl::mass, carla::rpc::VehiclePhysicsControl::max_rpm, carla::rpc::VehiclePhysicsControl::moi, CarlaRecorderBoundingBox::Origin, PhysicsControl, PhysicsControl, PlatformTime, PlatformTime, FVehicleLightState::Position, Position, Position, CarlaRecorderEventDel::Read(), CarlaRecorderEventParent::Read(), CarlaRecorderFrame::Read(), CarlaRecorderAnimWalker::Read(), CarlaRecorderPosition::Read(), CarlaRecorderKinematics::Read(), CarlaRecorderPhysicsControl::Read(), CarlaRecorderStateTrafficLight::Read(), CarlaRecorderTrafficLightTime::Read(), CarlaRecorderLightVehicle::Read(), CarlaRecorderAnimVehicle::Read(), CarlaRecorderCollision::Read(), CarlaRecorderLightScene::Read(), CarlaRecorderPlatformTime::Read(), CarlaRecorderWalkerBones::Read(), CarlaRecorderActorBoundingBox::Read(), CarlaRecorderEventAdd::Read(), ReadHeader(), CarlaRecorderTrafficLightTime::RedTime, FVehicleLightState::Reverse, FVehicleLightState::RightBlinker, CarlaRecorderPosition::Rotation, SceneLight, SkipPacket(), FVehicleLightState::Special1, FVehicleLightState::Special2, CarlaRecorderAnimWalker::Speed, CarlaRecorderStateTrafficLight::State, CarlaRecorderLightVehicle::State, State, StateTraffic, CarlaRecorderAnimVehicle::Steering, carla::rpc::VehiclePhysicsControl::steering_curve, CarlaRecorderAnimVehicle::Throttle, CarlaRecorderPlatformTime::Time, carla::rpc::VehiclePhysicsControl::torque_curve, TrafficLightTime, TrafficLightTime, TriggerVolume, CarlaRecorderEventAdd::Type, carla::rpc::VehiclePhysicsControl::use_gear_autobox, Vehicle, VehicleLight, CarlaRecorderPhysicsControl::VehiclePhysicsControl, Walker, WalkerBones, WalkerBones, carla::rpc::VehiclePhysicsControl::wheels, carla::geom::Vector3D::x, carla::geom::Vector3D::y, CarlaRecorderTrafficLightTime::YellowTime, and carla::geom::Vector3D::z.

Referenced by ACarlaRecorder::ShowFileInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ReadHeader()

bool CarlaRecorderQuery::ReadHeader ( void  )
inlineprivate

Definition at line 22 of file CarlaRecorderQuery.cpp.

References File, CarlaRecorderQuery::Header::Id, and CarlaRecorderQuery::Header::Size.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

+ Here is the caller graph for this function:

◆ SkipPacket()

void CarlaRecorderQuery::SkipPacket ( void  )
inlineprivate

Definition at line 35 of file CarlaRecorderQuery.cpp.

References File, and CarlaRecorderQuery::Header::Size.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

+ Here is the caller graph for this function:

Member Data Documentation

◆ ActorBoundingBox

CarlaRecorderActorBoundingBox CarlaRecorderQuery::ActorBoundingBox
private

Definition at line 67 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ Collision

CarlaRecorderCollision CarlaRecorderQuery::Collision
private

Definition at line 60 of file CarlaRecorderQuery.h.

Referenced by QueryCollisions(), and QueryInfo().

◆ EventAdd

CarlaRecorderEventAdd CarlaRecorderQuery::EventAdd
private

Definition at line 56 of file CarlaRecorderQuery.h.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

◆ EventDel

CarlaRecorderEventDel CarlaRecorderQuery::EventDel
private

Definition at line 57 of file CarlaRecorderQuery.h.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

◆ EventParent

CarlaRecorderEventParent CarlaRecorderQuery::EventParent
private

Definition at line 58 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ File

std::ifstream CarlaRecorderQuery::File
private

◆ Frame

CarlaRecorderFrame CarlaRecorderQuery::Frame
private

Definition at line 55 of file CarlaRecorderQuery.h.

Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().

◆ Header

Definition at line 53 of file CarlaRecorderQuery.h.

◆ Kinematics

CarlaRecorderKinematics CarlaRecorderQuery::Kinematics
private

Definition at line 66 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ LightScene

CarlaRecorderLightScene CarlaRecorderQuery::LightScene
private

Definition at line 65 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ LightVehicle

CarlaRecorderLightVehicle CarlaRecorderQuery::LightVehicle
private

Definition at line 64 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ PhysicsControl

CarlaRecorderPhysicsControl CarlaRecorderQuery::PhysicsControl
private

Definition at line 69 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ PlatformTime

CarlaRecorderPlatformTime CarlaRecorderQuery::PlatformTime
private

Definition at line 68 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ Position

CarlaRecorderPosition CarlaRecorderQuery::Position
private

Definition at line 59 of file CarlaRecorderQuery.h.

Referenced by QueryBlocked(), and QueryInfo().

◆ RecInfo

CarlaRecorderInfo CarlaRecorderQuery::RecInfo
private

Definition at line 54 of file CarlaRecorderQuery.h.

Referenced by CheckFileInfo().

◆ StateTraffic

CarlaRecorderStateTrafficLight CarlaRecorderQuery::StateTraffic
private

Definition at line 61 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ TrafficLightTime

CarlaRecorderTrafficLightTime CarlaRecorderQuery::TrafficLightTime
private

Definition at line 70 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ Vehicle

CarlaRecorderAnimVehicle CarlaRecorderQuery::Vehicle
private

Definition at line 62 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ Walker

CarlaRecorderAnimWalker CarlaRecorderQuery::Walker
private

Definition at line 63 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().

◆ WalkerBones

CarlaRecorderWalkerBones CarlaRecorderQuery::WalkerBones
private

Definition at line 71 of file CarlaRecorderQuery.h.

Referenced by QueryInfo().


The documentation for this class was generated from the following files: