Skip to content

Commit

Permalink
Fix code check
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Jun 11, 2021
1 parent bcb6488 commit 01b01d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Param.cc
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ bool ParsePoseUsingStringStream(const std::string &_input,

if (!isValidPose)
return ParseUsingStringStream<ignition::math::Pose3d>(_input, _key, _value);

if (values.size() == 6u)
{
_value = ignition::math::Pose3d(values[0], values[1], values[2],
Expand Down
6 changes: 3 additions & 3 deletions test/integration/pose_1_9_sdf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@ TEST(Pose1_9, ModelPoses)
ASSERT_NE(nullptr, model);
ASSERT_EQ("model_with_empty_pose_with_attribute_false", model->Name());
EXPECT_EQ(Pose::Zero, model->RawPose());

std::cout << "model_with_rpy_pose_no_attribute" << std::endl;
model = world->ModelByIndex(3);
ASSERT_NE(nullptr, model);
ASSERT_EQ("model_with_rpy_pose_no_attribute", model->Name());
EXPECT_EQ(Pose(1, 2, 3, 0.4, 0.5, 0.6), model->RawPose());

std::cout << "model_with_rpy_pose_with_attribute_true" << std::endl;
model = world->ModelByIndex(4);
ASSERT_NE(nullptr, model);
ASSERT_EQ("model_with_rpy_pose_with_attribute_true", model->Name());
EXPECT_EQ(Pose(1, 2, 3, IGN_DTOR(0.4), IGN_DTOR(0.5), IGN_DTOR(0.6)),
model->RawPose());

std::cout << "model_with_rpy_pose_with_attribute_false" << std::endl;
model = world->ModelByIndex(5);
ASSERT_NE(nullptr, model);
Expand Down

0 comments on commit 01b01d6

Please sign in to comment.