Skip to content

Commit

Permalink
Added invalid localization tag test case
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya <aditya050995@gmail.com>
  • Loading branch information
adityapande-1995 committed Mar 3, 2022
1 parent 90f6917 commit 3f42ba6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImuSensor_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ TEST(ImuSensor_TEST, NamedFrameOrientationReference)
}

//////////////////////////////////////////////////
TEST(ImuSensor_TEST, LocalizationTagEmpty)
TEST(ImuSensor_TEST, LocalizationTagInvalid)
{
// Create a sensor manager
ignition::sensors::Manager mgr;
Expand All @@ -776,6 +776,7 @@ TEST(ImuSensor_TEST, LocalizationTagEmpty)
<< " <update_rate>1</update_rate>"
<< " <imu>"
<< " <orientation_reference_frame>"
<< " <localization>UNRECOGNIZED</localization>"
<< " </orientation_reference_frame>"
<< " </imu>"
<< " <always_on>1</always_on>"
Expand Down Expand Up @@ -811,7 +812,6 @@ TEST(ImuSensor_TEST, LocalizationTagEmpty)

math::Quaterniond orientValue(math::Vector3d(0, 0, 0));
EXPECT_EQ(orientValue, sensor->Orientation());

}

//////////////////////////////////////////////////
Expand Down

0 comments on commit 3f42ba6

Please sign in to comment.