Skip to content

Commit

Permalink
Address reviewer feedback.
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Dec 18, 2021
1 parent b026553 commit bc78a37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions dart/collision/CollisionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,18 +218,18 @@ class CollisionGroup
/// template.
void unsubscribeFrom();

// Check if this is subscribed to bodyNode and the other sources
/// Check if this is subscribed to bodyNode and the other sources
template <typename... Others>
bool isSubscribedTo(
const dynamics::BodyNode* bodyNode, const Others*... others);

// Check if this is subscribed to skeleton and the other sources
/// Check if this is subscribed to skeleton and the other sources
template <typename... Others>
bool isSubscribedTo(
const dynamics::Skeleton* skeleton, const Others*... others);

// Return true. This function is for terminating the recursive variadic
// template
/// Return true. This function is for terminating the recursive variadic
/// template
bool isSubscribedTo();

/// Return true if this CollisionGroup contains shapeFrame
Expand Down
4 changes: 2 additions & 2 deletions unittests/unit/test_CollisionGroups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ TEST_P(CollisionGroupsTest, RemovedSkeletonSubscription)
boxShape);

// Needed to update subscribtions
world->step(1);
world->step();

EXPECT_TRUE(group->hasShapeFrame(sn));
const auto* skel_A_ptr = skel_A.get();
Expand All @@ -322,7 +322,7 @@ TEST_P(CollisionGroupsTest, RemovedSkeletonSubscription)
world->removeSkeleton(skel_A);
world->removeSkeleton(skel_B);

world->step(1);
world->step();

EXPECT_FALSE(group->hasShapeFrame(sn));
EXPECT_FALSE(group->isSubscribedTo(skel_A_ptr));
Expand Down

0 comments on commit bc78a37

Please sign in to comment.