Skip to content

Commit

Permalink
codecheck
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <ichen@osrfoundation.org>
  • Loading branch information
iche033 committed Apr 15, 2021
1 parent b9e6779 commit abdcfb2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/integration/velocity_control_system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ class VelocityControlTest : public ::testing::TestWithParam<int>

std::vector<math::Pose3d> modelPoses;
std::vector<math::Pose3d> linkPoses;
testSystem.OnPostUpdate([&linkPoses, &modelPoses](const gazebo::UpdateInfo &,
testSystem.OnPostUpdate([&linkPoses, &modelPoses](
const gazebo::UpdateInfo &,
const gazebo::EntityComponentManager &_ecm)
{
auto modelId = _ecm.EntityByComponents(
Expand Down Expand Up @@ -228,7 +229,8 @@ class VelocityControlTest : public ::testing::TestWithParam<int>
linkPoses[i-1].Rot().Euler().X(), 1e-5) << i;
EXPECT_NEAR(linkPoses[i].Rot().Euler().Y(),
linkPoses[i-1].Rot().Euler().Y(), 1e-5) << i;
EXPECT_GT(linkPoses[i].Rot().Euler().Z(), linkPoses[i-1].Rot().Euler().Z()) << i;
EXPECT_GT(linkPoses[i].Rot().Euler().Z(),
linkPoses[i-1].Rot().Euler().Z()) << i;
}
}
};
Expand Down

0 comments on commit abdcfb2

Please sign in to comment.