CARLA
Stage.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "carla/rpc/ActorId.h"
5 
6 namespace carla {
7 namespace traffic_manager {
8 
10 
11 /// Stage type interface.
12 class Stage {
13 
14 public:
15  Stage() {};
16  Stage(const Stage&) {};
17  virtual ~Stage() {};
18 
19  // This method should be called every update cycle
20  // and represents the core operation of the stage.
21  virtual void Update(const unsigned long index) = 0;
22  // This method should remove an actor from the internal state of the stage type.
23  virtual void RemoveActor(const ActorId actor_id) = 0;
24  // This method should flush all internal state of the state type.
25  virtual void Reset() = 0;
26 };
27 
28 } // namespace traffic_manager
29 } // namespace carla
virtual void Update(const unsigned long index)=0
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
virtual void RemoveActor(const ActorId actor_id)=0
Stage(const Stage &)
Definition: Stage.h:16
carla::ActorId ActorId
uint32_t ActorId
Definition: ActorId.h:14
Stage type interface.
Definition: Stage.h:12