Test environment with DataWarehouse setup and help for generating files in a temp dir.
More...
#include <testing_utils.hpp>
|
void | SetUp () override |
| Initialize the node, DataWarehouse and output dir.
|
|
template<typename T > |
void | generateFiles (const std::string &config_name) |
| Helper function for generating all the files for a particular config to a temporary directory.
|
|
void | initializeStep (SetupStep &setup_step) |
|
void | TearDown () override |
| Clean up by removing all files when complete.
|
|
Test environment with DataWarehouse setup and help for generating files in a temp dir.
Definition at line 50 of file testing_utils.hpp.
◆ generateFiles()
template<typename T >
void moveit_setup::MoveItSetupTest::generateFiles |
( |
const std::string & |
config_name | ) |
|
|
inlineprotected |
Helper function for generating all the files for a particular config to a temporary directory.
Uses the same template/config_name structure as DataWarehouse::get
Definition at line 71 of file testing_utils.hpp.
◆ initializeStep()
void moveit_setup::MoveItSetupTest::initializeStep |
( |
SetupStep & |
setup_step | ) |
|
|
inlineprotected |
◆ SetUp()
void moveit_setup::MoveItSetupTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ TearDown()
void moveit_setup::MoveItSetupTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
Clean up by removing all files when complete.
Note that you only want to set delete_when_finished_ to false when testing locally
Definition at line 91 of file testing_utils.hpp.
◆ config_data_
moveit_setup::DataWarehousePtr moveit_setup::MoveItSetupTest::config_data_ |
|
protected |
◆ delete_when_finished_
bool moveit_setup::MoveItSetupTest::delete_when_finished_ { true } |
|
protected |
◆ node_
rclcpp::Node::SharedPtr moveit_setup::MoveItSetupTest::node_ |
|
protected |
◆ output_dir_
std::filesystem::path moveit_setup::MoveItSetupTest::output_dir_ |
|
protected |
◆ placeholder_timestamp_
The documentation for this class was generated from the following file:
- moveit_setup_assistant/moveit_setup_framework/include/moveit_setup_framework/testing_utils.hpp