CARLA
LibCarla
source
carla
trafficmanager
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
9
using
ActorId
=
carla::rpc::ActorId
;
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
carla::traffic_manager::Stage::Update
virtual void Update(const unsigned long index)=0
carla::traffic_manager::Stage::Stage
Stage()
Definition:
Stage.h:15
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
carla::traffic_manager::Stage::~Stage
virtual ~Stage()
Definition:
Stage.h:17
carla::traffic_manager::Stage::RemoveActor
virtual void RemoveActor(const ActorId actor_id)=0
carla::traffic_manager::Stage::Stage
Stage(const Stage &)
Definition:
Stage.h:16
carla::traffic_manager::ActorId
carla::ActorId ActorId
Definition:
AtomicActorSet.h:21
carla::traffic_manager::Stage::Reset
virtual void Reset()=0
ActorId.h
carla::rpc::ActorId
uint32_t ActorId
Definition:
ActorId.h:14
carla::traffic_manager::Stage
Stage type interface.
Definition:
Stage.h:12
Generated by
1.8.13