CARLA
 
载入中...
搜索中...
未找到
DataStructures.h
浏览该文件的文档.
1
2/// This file contains definitions of common data structures used in traffic manager.
3
4#pragma once
5
6#include <chrono>
7#include <deque>
8#include <vector>
9
10#include "carla/client/Actor.h"
11#include "carla/geom/Location.h"
12#include "carla/geom/Rotation.h"
13#include "carla/geom/Vector3D.h"
14#include "carla/rpc/ActorId.h"
15#include "carla/rpc/Command.h"
17
19
20namespace carla {
21namespace traffic_manager {
22
23namespace chr = std::chrono;
24namespace cc = carla::client;
25namespace cg = carla::geom;
26
31using SimpleWaypointPtr = std::shared_ptr<SimpleWaypoint>;
32using Buffer = std::deque<SimpleWaypointPtr>;
33using BufferMap = std::unordered_map<carla::ActorId, Buffer>;
34using TimeInstance = chr::time_point<chr::system_clock, chr::nanoseconds>;
36
42using LocalizationFrame = std::vector<LocalizationData>;
43
49using CollisionFrame = std::vector<CollisionHazardData>;
50
51using ControlFrame = std::vector<carla::rpc::Command>;
52
53using TLFrame = std::vector<bool>;
54
55/// Structure to hold the actuation signals.
57 float throttle;
58 float brake;
59 float steer;
60};
61
62/// Structure to hold the controller state.
69
70} // namespace traffic_manager
71} // namespace carla
int32_t JuncId
Definition RoadTypes.h:17
carla::SharedPtr< cc::Actor > ActorPtr
chr::time_point< chr::system_clock, chr::nanoseconds > TimeInstance
std::vector< carla::rpc::Command > ControlFrame
std::vector< bool > TLFrame
std::deque< std::shared_ptr< SimpleWaypoint > > Buffer
carla::road::JuncId JunctionID
std::vector< CollisionHazardData > CollisionFrame
std::shared_ptr< SimpleWaypoint > SimpleWaypointPtr
std::vector< LocalizationData > LocalizationFrame
carla::SharedPtr< carla::client::Junction > Junction
std::unordered_map< carla::ActorId, Buffer > BufferMap
This file contains definitions of common data structures used in traffic manager.
Definition Carla.cpp:133
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...
Definition Memory.h:20
rpc::ActorId ActorId
Definition ActorId.h:18
Structure to hold the actuation signals.
Structure to hold the controller state.