Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
  • Loading branch information
ajtudela committed Apr 8, 2024
1 parent 14129e3 commit 6169da3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions scitos2_mira/test/test_mira_framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@ TEST(ScitosMiraFrameworkTest, configure) {
// Check results: the node should be in the unconfigured state as scitos_config plugins is empty
EXPECT_EQ(node->get_current_state().id(), lifecycle_msgs::msg::State::PRIMARY_STATE_UNCONFIGURED);

// Now, set the scitos config parameter. In the the robot this should be a XML file
std::string pkg = ament_index_cpp::get_package_share_directory("scitos2_mira");
node->set_parameter(rclcpp::Parameter("scitos_config", pkg + "/test/scitos_config.xml"));

// Configure the node
node->configure();
node->activate();
// Cleaning up
node->deactivate();
node->cleanup();
}

int main(int argc, char ** argv)
Expand Down

0 comments on commit 6169da3

Please sign in to comment.