Skip to content

Commit

Permalink
fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Apr 24, 2024
1 parent 9a0fc79 commit 595b4b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/control_manager/bumper/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/include/remote_control_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 595b4b1

Please sign in to comment.