Skip to content

Commit 8025da6

Browse files
committed
PR feedback
Signed-off-by: Louise Poubel <[email protected]>
1 parent 673388d commit 8025da6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/ignition/gazebo/Util.hh

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define IGNITION_GAZEBO_UTIL_HH_
1919

2020
#include <string>
21+
#include <unordered_set>
2122
#include <vector>
2223

2324
#include <ignition/math/Pose3.hh>
@@ -72,8 +73,8 @@ namespace ignition
7273
/// the scoped name could be relative to any entity.
7374
/// \param[in] _delim Delimiter between names, defaults to "::", it can't
7475
/// 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.
7778
std::unordered_set<Entity> IGNITION_GAZEBO_VISIBLE entitiesFromScopedName(
7879
const std::string &_scopedName, const EntityComponentManager &_ecm,
7980
Entity _relativeTo = kNullEntity,

src/Util_TEST.cc

+3-2
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,9 @@ TEST_F(UtilTest, EntitiesFromScopedName)
278278
auto orange14 = createEntity("orange", orange13);
279279
auto pear15 = createEntity("pear", grape11);
280280

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)
283284
{
284285
auto res = gazebo::entitiesFromScopedName(_scopedName, ecm, _relativeTo,
285286
_delim);

0 commit comments

Comments
 (0)