Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse simopenpass
MantleAPI
Commits
9e1f53ad
Commit
9e1f53ad
authored
Dec 06, 2021
by
Christoph Kochendoerfer
Browse files
changed control strategies to use vectors of shared pointer
parent
45d09110
Changes
3
Hide whitespace changes
Inline
Side-by-side
MantleAPI/include/MantleAPI/Execution/i_environment.h
View file @
9e1f53ad
...
...
@@ -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
///
...
...
MantleAPI/include/MantleAPI/Traffic/i_controller_config.h
View file @
9e1f53ad
...
...
@@ -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
...
...
MantleAPI/test/MantleAPI/Test/test_utils.h
View file @
9e1f53ad
...
...
@@ -323,7 +323,7 @@ public:
MOCK_METHOD
(
void
,
UpdateControlStrategies
,
(
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
),
(
override
));
MOCK_METHOD
(
bool
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment