Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Agüero <caguero@openrobotics.org>
  • Loading branch information
caguero committed Dec 2, 2024
1 parent 5a5f719 commit e684572
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/plugins/world_control/WorldControl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ void WorldControl::ProcessMsg()
{
std::lock_guard<std::recursive_mutex> lock(this->dataPtr->mutex);

// ignore the message if it's associated with a step
const auto &header = this->dataPtr->msg.header();
if (this->dataPtr->msg.stepping())
{
return;
Expand Down
21 changes: 0 additions & 21 deletions test/integration/camera_tracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -176,27 +176,6 @@ TEST(MinimalSceneTest, GZ_UTILS_TEST_ENABLED_ONLY_ON_LINUX(Config))
EXPECT_GT(10, abs(camera->WorldPose().Pos().Y() - 100));
EXPECT_GT(10, abs(camera->WorldPose().Pos().Z() - 100));

// Move target object to new position
trackedVis->SetWorldPose({130, 130, 130, 0, 0, 0});

// Follow
result = false;
executed = node.Request("/gui/follow", req, timeout, rep, result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_TRUE(rep.data());

msgs::Vector3d reqOffset;
reqOffset.set_x(1.0);
reqOffset.set_y(1.0);
reqOffset.set_z(1.0);
result = false;
executed = node.Request("/gui/follow/offset", reqOffset, timeout, rep,
result);
EXPECT_TRUE(executed);
EXPECT_TRUE(result);
EXPECT_TRUE(rep.data());

// Many update loops to process many events
maxSleep = 600;
for (auto it : {150.0, 200.0})
Expand Down

0 comments on commit e684572

Please sign in to comment.