From ed8f0f9e572310bdddbda5ce4730b803d37f236a Mon Sep 17 00:00:00 2001 From: Tom Noble Date: Wed, 4 Dec 2024 20:08:06 +0000 Subject: [PATCH] Replaces SetUp() with constructors --- moveit_core/robot_state/test/attached_body_test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/moveit_core/robot_state/test/attached_body_test.cpp b/moveit_core/robot_state/test/attached_body_test.cpp index 7560b8d3f2..45534f188e 100644 --- a/moveit_core/robot_state/test/attached_body_test.cpp +++ b/moveit_core/robot_state/test/attached_body_test.cpp @@ -44,7 +44,7 @@ class SingleLinkRobot : public ::testing::Test { public: - virtual void SetUp() override + SingleLinkRobot() { static const std::string URDF_XML = R"( @@ -90,9 +90,8 @@ class SingleLinkRobot : public ::testing::Test class SingleAttachedBody : public SingleLinkRobot { public: - virtual void SetUp() override + SingleAttachedBody() { - SingleLinkRobot::SetUp(); // Is this necessary? const moveit::core::LinkModel* link = robot_model_->getLinkModel("link"); std::string name = "root_body"; Eigen::Isometry3d pose;