#include <CarlaRecorderQuery.h>
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) |
Definition at line 30 of file CarlaRecorderQuery.h.
|
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().
std::string CarlaRecorderQuery::QueryBlocked | ( | std::string | Filename, |
double | MinTime = 30 , |
||
double | MinDistance = 10 |
||
) |
Definition at line 776 of file CarlaRecorderQuery.cpp.
References CheckFileInfo(), Collision, CarlaRecorderPosition::DatabaseId, CarlaRecorderEventAdd::DatabaseId, CarlaRecorderEventAdd::Description, CarlaRecorderFrame::DurationThis, CarlaRecorderFrame::Elapsed, EventAdd, EventAdd, EventDel, EventDel, EventParent, File, Frame, FrameEnd, FrameStart, GetRecorderFilename(), CarlaRecorderFrame::Id, CarlaRecorderActorDescription::Id, CarlaRecorderQuery::Header::Id, CarlaRecorderPosition::Location, Position, Position, CarlaRecorderEventDel::Read(), CarlaRecorderFrame::Read(), CarlaRecorderPosition::Read(), CarlaRecorderEventAdd::Read(), ReadHeader(), SkipPacket(), State, and CarlaRecorderEventAdd::Type.
Referenced by ACarlaRecorder::ShowFileActorsBlocked().
std::string CarlaRecorderQuery::QueryCollisions | ( | std::string | Filename, |
char | Category1 = 'a' , |
||
char | Category2 = 'a' |
||
) |
Definition at line 596 of file CarlaRecorderQuery.cpp.
References CheckFileInfo(), Collision, Collision, CarlaRecorderEventAdd::DatabaseId, CarlaRecorderCollision::DatabaseId1, CarlaRecorderCollision::DatabaseId2, CarlaRecorderEventAdd::Description, CarlaRecorderFrame::Elapsed, EventAdd, EventAdd, EventDel, EventDel, EventParent, File, Frame, FrameEnd, FrameStart, GetRecorderFilename(), CarlaRecorderFrame::Id, CarlaRecorderActorDescription::Id, CarlaRecorderQuery::Header::Id, CarlaRecorderCollision::IsActor1Hero, CarlaRecorderCollision::IsActor2Hero, Position, CarlaRecorderEventDel::Read(), CarlaRecorderFrame::Read(), CarlaRecorderCollision::Read(), CarlaRecorderEventAdd::Read(), ReadHeader(), SkipPacket(), State, and CarlaRecorderEventAdd::Type.
Referenced by ACarlaRecorder::ShowFileCollisions().
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().
|
inlineprivate |
Definition at line 22 of file CarlaRecorderQuery.cpp.
References File, CarlaRecorderQuery::Header::Id, and CarlaRecorderQuery::Header::Size.
Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().
|
inlineprivate |
Definition at line 35 of file CarlaRecorderQuery.cpp.
References File, and CarlaRecorderQuery::Header::Size.
Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().
|
private |
Definition at line 67 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 60 of file CarlaRecorderQuery.h.
Referenced by QueryCollisions(), and QueryInfo().
|
private |
Definition at line 56 of file CarlaRecorderQuery.h.
Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().
|
private |
Definition at line 57 of file CarlaRecorderQuery.h.
Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().
|
private |
Definition at line 58 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 52 of file CarlaRecorderQuery.h.
Referenced by CheckFileInfo(), QueryBlocked(), QueryCollisions(), QueryInfo(), ReadHeader(), and SkipPacket().
|
private |
Definition at line 55 of file CarlaRecorderQuery.h.
Referenced by QueryBlocked(), QueryCollisions(), and QueryInfo().
|
private |
Definition at line 53 of file CarlaRecorderQuery.h.
|
private |
Definition at line 66 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 65 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 64 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 69 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 68 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 59 of file CarlaRecorderQuery.h.
Referenced by QueryBlocked(), and QueryInfo().
|
private |
Definition at line 54 of file CarlaRecorderQuery.h.
Referenced by CheckFileInfo().
|
private |
Definition at line 61 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 70 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 62 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 63 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().
|
private |
Definition at line 71 of file CarlaRecorderQuery.h.
Referenced by QueryInfo().