20 lines
587 B
C++
20 lines
587 B
C++
|
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
|
||
|
// de Barcelona (UAB).
|
||
|
//
|
||
|
// This work is licensed under the terms of the MIT license.
|
||
|
// For a copy, see <https://opensource.org/licenses/MIT>.
|
||
|
|
||
|
#include "carla/client/TrafficSign.h"
|
||
|
#include "carla/client/detail/Simulator.h"
|
||
|
#include "carla/client/ActorList.h"
|
||
|
|
||
|
namespace carla {
|
||
|
namespace client {
|
||
|
|
||
|
carla::road::SignId TrafficSign::GetSignId() const {
|
||
|
return std::string(GetEpisode().Lock()->GetActorSnapshot(*this).state.traffic_light_data.sign_id);
|
||
|
}
|
||
|
|
||
|
} // namespace client
|
||
|
} // namespace carla
|