21#include <gtest/gtest.h>
24#include <rclcpp/rclcpp.hpp>
29 : node_(
rclcpp::Node::make_shared(
"move_group_fixture")), move_group_name_(
"panda_arm")
31 node_->declare_parameter<std::string>(
"warehouse_plugin",
"warehouse_ros_sqlite::DatabaseConnection");
38 if (spin_thread_.joinable())
47 spin_thread_ = std::thread(&MoveGroupFixture::spinNode,
this);
50 db_->setParams(
":memory:", 1);
51 ASSERT_TRUE(
db_->connect());
61void MoveGroupFixture::spinNode()
63 while (is_spinning_ && rclcpp::ok())
65 rclcpp::spin_some(
node_);
~MoveGroupFixture() override
rclcpp::Node::SharedPtr node_
warehouse_ros::DatabaseConnection::Ptr db_
std::string move_group_name_
std::shared_ptr< moveit::planning_interface::MoveGroupInterface > move_group_
warehouse_ros::DatabaseConnection::Ptr loadDatabase(const rclcpp::Node::SharedPtr &node)
Load a database connection.