From 595b4b1684ec8a21c93c6f2ddee8e699def35a32 Mon Sep 17 00:00:00 2001 From: Tomas Baca Date: Wed, 24 Apr 2024 22:11:12 +0200 Subject: [PATCH] fixing tests --- test/control_manager/bumper/test.cpp | 2 +- test/include/remote_control_test.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/control_manager/bumper/test.cpp b/test/control_manager/bumper/test.cpp index 0af9844..e643860 100644 --- a/test/control_manager/bumper/test.cpp +++ b/test/control_manager/bumper/test.cpp @@ -40,7 +40,7 @@ Eigen::Vector3d Tester::getBodyVelocity() { vel.header = uav_state->header; vel.vector = uav_state->velocity.linear; - auto result = this->transformer_->transformSingle(vel, "fcu_untilted"); + auto result = this->transformer_->transformSingle(vel, _uav_name_ + "/fcu_untilted"); if (result) { return Eigen::Vector3d(result->vector.x, result->vector.y, result->vector.z); diff --git a/test/include/remote_control_test.h b/test/include/remote_control_test.h index e3a1839..3db1fe4 100644 --- a/test/include/remote_control_test.h +++ b/test/include/remote_control_test.h @@ -64,7 +64,7 @@ Eigen::Vector3d RemoteControlTest::getFcuUntiltedVelocity() { vel_world.header = uav_state->header; vel_world.vector = uav_state->velocity.linear; - auto vel_fcu_untilted = transformer_->transformSingle(vel_world, "fcu_untilted"); + auto vel_fcu_untilted = transformer_->transformSingle(vel_world, _uav_name_ + "/fcu_untilted"); if (vel_fcu_untilted) { return Eigen::Vector3d(vel_fcu_untilted->vector.x, vel_fcu_untilted->vector.y, vel_fcu_untilted->vector.z);