Skip to content

Commit

Permalink
Adds debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
TSNoble committed Dec 4, 2024
1 parent 4c3f01e commit 9dd95e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions moveit_core/robot_state/test/attached_body_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
#include <urdf_parser/urdf_parser.h>
#include <gtest/gtest.h>

class SingleLinkRobot : public testing::Test
class SingleLinkRobot : public ::testing::Test
{
public:
virtual void SetUp() override
{
std::cout << "SingleLinkRobot" << std::endl;
static const std::string URDF_XML = R"(
<?xml version="1.0" ?>
<robot name="single_link_robot">
Expand Down Expand Up @@ -90,6 +91,7 @@ class SingleLinkRobot : public testing::Test
auto srdf_model = std::make_shared<srdf::Model>();
srdf_model->initString(*urdf_model, SRDF_XML);
robot_model_ = std::make_shared<moveit::core::RobotModel>(urdf_model, srdf_model);
std::cout << robot_model_->getName() << std::endl;
}

virtual void TearDown() override
Expand All @@ -102,9 +104,10 @@ class SingleLinkRobot : public testing::Test

class SingleAttachedBody : public SingleLinkRobot
{
public:
protected:
virtual void SetUp() override
{
std::cout << "SingleAttachedBody" << std::endl;
const moveit::core::LinkModel* link = robot_model_->getLinkModel("link");
std::string name = "root_body";
Eigen::Isometry3d pose;
Expand Down

0 comments on commit 9dd95e8

Please sign in to comment.