From a3c2475042eb341aadca24677a1c6cbe8adb0e46 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Wed, 2 Mar 2022 22:26:39 -0800 Subject: [PATCH] Use pose multiplication instead of addition The ign-math Pose addition operator is going to be deprecated, so use the multiplication operator instead. It works in the opposite order, matching the behavior of coordinate transform multiplication. Signed-off-by: Steve Peters --- test/integration/air_pressure.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/air_pressure.cc b/test/integration/air_pressure.cc index f0670319..635ee835 100644 --- a/test/integration/air_pressure.cc +++ b/test/integration/air_pressure.cc @@ -192,8 +192,8 @@ TEST_F(AirPressureSensorTest, SensorReadings) EXPECT_DOUBLE_EQ(vertRef, sensor->ReferenceAltitude()); EXPECT_DOUBLE_EQ(vertRef, sensorNoise->ReferenceAltitude()); - sensor->SetPose(sensorNoise->Pose() + - ignition::math::Pose3d(0, 0, 1.5, 0, 0, 0)); + sensor->SetPose( + ignition::math::Pose3d(0, 0, 1.5, 0, 0, 0) * sensorNoise->Pose()); // verify msg received on the topic WaitForMessageTestHelper msgHelper(topic);