Commit 9e1f53ad authored by Christoph Kochendoerfer's avatar Christoph Kochendoerfer
Browse files

changed control strategies to use vectors of shared pointer

parent 45d09110
......@@ -53,7 +53,7 @@ public:
/// @param entity_id Specifies the entity to be updated
/// @param control_strategies Specifies the desired movement behaviour for the entity
virtual void UpdateControlStrategies(
UniqueId entity_id, std::vector<std::unique_ptr<mantle_api::ControlStrategy>>& control_strategies) = 0;
UniqueId entity_id, std::vector<std::shared_ptr<mantle_api::ControlStrategy>> control_strategies) = 0;
/// Checks, if a control strategy of a certain type for a specific entity has been fulfilled
......@@ -44,7 +44,7 @@ struct IControllerConfig
// TODO: Check why map_query_service is part of the interface because it is not set from engine side but only in the
// environment on calling AddController()
ILaneLocationQueryService* map_query_service{nullptr};
std::vector<std::unique_ptr<mantle_api::ControlStrategy>> control_strategies;
std::vector<std::shared_ptr<mantle_api::ControlStrategy>> control_strategies;
inline bool operator==(const IControllerConfig& lhs, const IControllerConfig& rhs) noexcept
......@@ -323,7 +323,7 @@ public:
(std::uint64_t entity_id,
std::vector<std::unique_ptr<mantle_api::ControlStrategy>>& control_strategies),
std::vector<std::shared_ptr<mantle_api::ControlStrategy>> control_strategies),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment