38 #include <warehouse_ros/database_loader.h>
44 : conn_(std::move(conn))
52 std::vector<std::string> fnames;
54 for (std::string&
name : names)
57 if (std::regex_match(
name, match, r))
58 fnames.push_back(
name);
66 static std::unique_ptr<warehouse_ros::DatabaseLoader> dbloader;
69 dbloader = std::make_unique<warehouse_ros::DatabaseLoader>(node);
71 return dbloader->loadDatabase();
void filterNames(const std::string ®ex, std::vector< std::string > &names) const
Keep only the names that match regex.
MoveItMessageStorage(warehouse_ros::DatabaseConnection::Ptr conn)
Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been ini...
warehouse_ros::DatabaseConnection::Ptr loadDatabase(const rclcpp::Node::SharedPtr &node)
Load a database connection.