CARLA
Loading...
Searching...
No Matches
CarlaRecorderQuery.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <fstream>
10
27#include "CarlaRecorderFrames.h"
28#include "CarlaRecorderInfo.h"
30#include "CarlaRecorderState.h"
34
36{
37
38 #pragma pack(push, 1)
39 struct Header
40 {
41 char Id;
42 uint32_t Size;
43 };
44 #pragma pack(pop)
45
46public:
47
48 // get general info
49 std::string QueryInfo(std::string Filename, bool bShowAll = false);
50 // get info about collisions
51 std::string QueryCollisions(std::string Filename, char Category1 = 'a', char Category2 = 'a');
52 // get info about blocked actors
53 std::string QueryBlocked(std::string Filename, double MinTime = 30, double MinDistance = 10);
54
55private:
56
57 std::ifstream File;
82
83 // read next header packet
84 bool ReadHeader(void);
85
86 // skip current packet
87 void SkipPacket(void);
88
89 // read the start info structure and check the magic string
90 bool CheckFileInfo(std::stringstream &Info);
91};
CarlaRecorderCollision Collision
CarlaRecorderAnimWalker Walker
CarlaRecorderEventParent EventParent
CarlaRecorderActorBoundingBox ActorBoundingBox
CarlaRecorderFrame Frame
CarlaRecorderEventDel EventDel
CarlaRecorderDoorVehicle DoorVehicle
CarlaRecorderAnimBiker Biker
CarlaRecorderVisualTime VisualTime
CarlaRecorderLightVehicle LightVehicle
CarlaRecorderAnimWheels VehicleWheels
CarlaRecorderStateTrafficLight StateTraffic
CarlaRecorderPhysicsControl PhysicsControl
bool CheckFileInfo(std::stringstream &Info)
CarlaRecorderLightScene LightScene
std::string QueryBlocked(std::string Filename, double MinTime=30, double MinDistance=10)
std::string QueryCollisions(std::string Filename, char Category1='a', char Category2='a')
CarlaRecorderWalkerBones WalkerBones
CarlaRecorderKinematics Kinematics
CarlaRecorderAnimVehicle Vehicle
CarlaRecorderWeather Weather
CarlaRecorderEventAdd EventAdd
CarlaRecorderPlatformTime PlatformTime
CarlaRecorderTrafficLightTime TrafficLightTime
CarlaRecorderPosition Position
CarlaRecorderInfo RecInfo
std::string QueryInfo(std::string Filename, bool bShowAll=false)