moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
moveit_ros
trajectory_cache
test
fixtures
warehouse_fixture.hpp
Go to the documentation of this file.
1
// Copyright 2024 Intrinsic Innovation LLC.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
19
#pragma once
20
21
#include <gtest/gtest.h>
22
#include <
moveit/warehouse/moveit_message_storage.hpp
>
23
#include <rclcpp/rclcpp.hpp>
24
27
class
WarehouseFixture
:
public
::testing::Test
28
{
29
public
:
30
WarehouseFixture
();
31
~WarehouseFixture
()
override
;
32
33
protected
:
34
void
SetUp
()
override
;
35
void
TearDown
()
override
;
36
37
rclcpp::Node::SharedPtr
node_
;
38
warehouse_ros::DatabaseConnection::Ptr
db_
;
39
40
private
:
41
void
spinNode();
42
43
std::thread spin_thread_;
44
std::atomic<bool> is_spinning_;
45
};
WarehouseFixture
Test fixture to spin up a node to start a warehouse_ros connection with.
Definition
warehouse_fixture.hpp:28
WarehouseFixture::~WarehouseFixture
~WarehouseFixture() override
Definition
warehouse_fixture.cpp:32
WarehouseFixture::node_
rclcpp::Node::SharedPtr node_
Definition
warehouse_fixture.hpp:37
WarehouseFixture::db_
warehouse_ros::DatabaseConnection::Ptr db_
Definition
warehouse_fixture.hpp:38
WarehouseFixture::WarehouseFixture
WarehouseFixture()
Definition
warehouse_fixture.cpp:27
WarehouseFixture::TearDown
void TearDown() override
Definition
warehouse_fixture.cpp:51
WarehouseFixture::SetUp
void SetUp() override
Definition
warehouse_fixture.cpp:41
moveit_message_storage.hpp
Generated by
1.9.8