Fixes RPC error when using update_vehicle_lights
This commit is contained in:
parent
19ae10af01
commit
39e0fcbf1d
|
@ -103,7 +103,7 @@ void Parameters::SetRandomRightLaneChangePercentage(const ActorPtr &actor, const
|
|||
|
||||
}
|
||||
|
||||
void Parameters::SetUpdateVehicleLightState(const ActorPtr &actor, const bool do_update) {
|
||||
void Parameters::SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update) {
|
||||
|
||||
const auto entry = std::make_pair(actor->GetId(), do_update);
|
||||
auto_update_vehicle_lights.AddEntry(entry);
|
||||
|
|
|
@ -147,7 +147,7 @@ public:
|
|||
void SetRandomRightLaneChangePercentage(const ActorPtr &actor, const float percentage);
|
||||
|
||||
/// Method to set the automatic vehicle light state update flag.
|
||||
void SetUpdateVehicleLightState(const ActorPtr &actor, const bool do_update);
|
||||
void SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update);
|
||||
|
||||
/// Method to set the distance to leading vehicle for all registered vehicles.
|
||||
void SetGlobalDistanceToLeadingVehicle(const float dist);
|
||||
|
|
|
@ -186,7 +186,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
/// Set the automatical management of the vehicle lights
|
||||
/// Set the automatic management of the vehicle lights
|
||||
void SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update){
|
||||
TrafficManagerBase* tm_ptr = GetTM(_port);
|
||||
if(tm_ptr != nullptr){
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
/// If less than 0, it's a % increase.
|
||||
virtual void SetGlobalPercentageSpeedDifference(float const percentage) = 0;
|
||||
|
||||
/// Method to set the automatical management of the vehicle lights
|
||||
/// Method to set the automatic management of the vehicle lights
|
||||
virtual void SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update) = 0;
|
||||
|
||||
/// Method to set collision detection rules between vehicles.
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
_client->call("set_global_percentage_speed_difference", percentage);
|
||||
}
|
||||
|
||||
/// Method to set the automatical management of the vehicle lights
|
||||
/// Method to set the automatic management of the vehicle lights
|
||||
void SetUpdateVehicleLights(const carla::rpc::Actor &_actor, const bool do_update) {
|
||||
DEBUG_ASSERT(_client != nullptr);
|
||||
_client->call("update_vehicle_lights", std::move(_actor), do_update);
|
||||
|
|
|
@ -349,9 +349,9 @@ void TrafficManagerLocal::SetGlobalPercentageSpeedDifference(const float percent
|
|||
parameters.SetGlobalPercentageSpeedDifference(percentage);
|
||||
}
|
||||
|
||||
/// Method to set the automatical management of the vehicle lights
|
||||
/// Method to set the automatic management of the vehicle lights
|
||||
void TrafficManagerLocal::SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update) {
|
||||
parameters.SetUpdateVehicleLightState(actor, do_update);
|
||||
parameters.SetUpdateVehicleLights(actor, do_update);
|
||||
}
|
||||
|
||||
void TrafficManagerLocal::SetCollisionDetection(const ActorPtr &reference_actor, const ActorPtr &other_actor, const bool detect_collision) {
|
||||
|
|
|
@ -166,7 +166,7 @@ public:
|
|||
/// If less than 0, it's a % increase.
|
||||
void SetGlobalPercentageSpeedDifference(float const percentage);
|
||||
|
||||
/// Method to set the automatical management of the vehicle lights
|
||||
/// Method to set the automatic management of the vehicle lights
|
||||
void SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update);
|
||||
|
||||
/// Method to set collision detection rules between vehicles.
|
||||
|
|
|
@ -61,7 +61,7 @@ public:
|
|||
/// If less than 0, it's a % increase.
|
||||
void SetGlobalPercentageSpeedDifference(float const percentage);
|
||||
|
||||
/// Method to set the automatical management of the vehicle lights
|
||||
/// Method to set the automatic management of the vehicle lights
|
||||
void SetUpdateVehicleLights(const ActorPtr &actor, const bool do_update);
|
||||
|
||||
/// Method to set collision detection rules between vehicles.
|
||||
|
|
Loading…
Reference in New Issue