Skip to content

Commit

Permalink
Remove debug output
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <[email protected]>
  • Loading branch information
christophfroehlich and saikishor authored Dec 5, 2024
1 parent ab0311d commit b0db6cc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hardware_interface/test/test_component_interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1052,15 +1052,13 @@ TEST(TestComponentInterfaces, dummy_sensor_default_joint)
auto state_interfaces = sensor_hw.export_state_interfaces();
ASSERT_EQ(2u, state_interfaces.size());

std::cout << "test 1" << std::endl;
auto [contains_sens1_vol, si_sens1_vol] =
test_components::vector_contains(state_interfaces, "sens1/voltage");
ASSERT_TRUE(contains_sens1_vol);
EXPECT_EQ("sens1/voltage", state_interfaces[si_sens1_vol]->get_name());
EXPECT_EQ("voltage", state_interfaces[si_sens1_vol]->get_interface_name());
EXPECT_EQ("sens1", state_interfaces[si_sens1_vol]->get_prefix_name());
EXPECT_TRUE(std::isnan(state_interfaces[si_sens1_vol]->get_value()));
std::cout << "test 2" << std::endl;

auto [contains_joint1_pos, si_joint1_pos] =
test_components::vector_contains(state_interfaces, "joint1/position");
Expand All @@ -1070,7 +1068,6 @@ TEST(TestComponentInterfaces, dummy_sensor_default_joint)
EXPECT_EQ("joint1", state_interfaces[si_joint1_pos]->get_prefix_name());
EXPECT_TRUE(std::isnan(state_interfaces[si_joint1_pos]->get_value()));

std::cout << "test 3" << std::endl;
// Not updated because is is UNCONFIGURED
sensor_hw.read(TIME, PERIOD);
EXPECT_TRUE(std::isnan(state_interfaces[si_sens1_vol]->get_value()));
Expand Down

0 comments on commit b0db6cc

Please sign in to comment.