File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 18
18
#define IGNITION_GAZEBO_UTIL_HH_
19
19
20
20
#include < string>
21
+ #include < unordered_set>
21
22
#include < vector>
22
23
23
24
#include < ignition/math/Pose3.hh>
@@ -72,8 +73,8 @@ namespace ignition
72
73
// / the scoped name could be relative to any entity.
73
74
// / \param[in] _delim Delimiter between names, defaults to "::", it can't
74
75
// / be empty.
75
- // / \return The entity or kNullEntity if no entity was found with that
76
- // / name .
76
+ // / \return All entities that match the scoped name and relative to
77
+ // / requirements, or an empty set otherwise .
77
78
std::unordered_set<Entity> IGNITION_GAZEBO_VISIBLE entitiesFromScopedName (
78
79
const std::string &_scopedName, const EntityComponentManager &_ecm,
79
80
Entity _relativeTo = kNullEntity ,
Original file line number Diff line number Diff line change @@ -278,8 +278,9 @@ TEST_F(UtilTest, EntitiesFromScopedName)
278
278
auto orange14 = createEntity (" orange" , orange13);
279
279
auto pear15 = createEntity (" pear" , grape11);
280
280
281
- auto checkEntities = [&ecm](const std::string &_scopedName, Entity _relativeTo,
282
- const std::unordered_set<Entity> &_result, const std::string &_delim)
281
+ auto checkEntities = [&ecm](const std::string &_scopedName,
282
+ Entity _relativeTo, const std::unordered_set<Entity> &_result,
283
+ const std::string &_delim)
283
284
{
284
285
auto res = gazebo::entitiesFromScopedName (_scopedName, ecm, _relativeTo,
285
286
_delim);
You can’t perform that action at this time.
0 commit comments