Skip to content

Commit

Permalink
Replaces SetUp() with constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
TSNoble committed Dec 4, 2024
1 parent 31f0cc6 commit ed8f0f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions moveit_core/robot_state/test/attached_body_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
class SingleLinkRobot : public ::testing::Test
{
public:
virtual void SetUp() override
SingleLinkRobot()
{
static const std::string URDF_XML = R"(
<?xml version="1.0" ?>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ed8f0f9

Please sign in to comment.