libcarla/include/carla/client/TrafficSign.cpp
2024-10-18 13:19:59 +08:00

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