17namespace traffic_manager {
38 std::vector<ActorPtr> actor_list;
40 actor_list.push_back(it->second);
48 std::vector<ActorId> actor_list;
50 actor_list.push_back(it->first);
55 void Insert(std::vector<ActorPtr> actor_list) {
58 for (
auto &actor: actor_list) {
59 actor_set.insert({actor->GetId(), actor});
64 void Remove(std::vector<ActorId> actor_id_list) {
67 for (
auto& actor_id: actor_id_list) {
void Destroy(ActorId actor_id)
void Remove(std::vector< ActorId > actor_id_list)
std::vector< ActorId > GetIDList()
std::map< ActorId, ActorPtr > actor_set
std::mutex modification_mutex
std::vector< ActorPtr > GetList()
void Insert(std::vector< ActorPtr > actor_list)
bool Contains(ActorId id)
carla::SharedPtr< cc::Actor > ActorPtr
This file contains definitions of common data structures used in traffic manager.
boost::shared_ptr< T > SharedPtr
Use this SharedPtr (boost::shared_ptr) to keep compatibility with boost::python, but it would be nice...