scenario_simulator_v2 C++ API
test_primitive.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
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 
15 #ifndef SIMPLE_SENSOR_SIMULATOR__TEST__TEST_PRIMITIVE_HPP_
16 #define SIMPLE_SENSOR_SIMULATOR__TEST__TEST_PRIMITIVE_HPP_
17 
18 #include <gtest/gtest.h>
19 
20 #include <memory>
23 
24 #include "../../utils/helper_functions.hpp"
25 
27 using namespace simple_sensor_simulator;
28 
29 class PrimitiveTest : public ::testing::Test
30 {
31 protected:
33  : pose_(utils::makePose(1.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0)),
34  primitive_(std::make_unique<Box>(2.0f, 2.0f, 2.0f, pose_))
35  {
36  }
37 
38  geometry_msgs::msg::Pose pose_;
39  std::unique_ptr<Primitive> primitive_;
40 };
41 
42 #endif // SIMPLE_SENSOR_SIMULATOR__TEST__TEST_PRIMITIVE_HPP_
Definition: test_primitive.hpp:30
geometry_msgs::msg::Pose pose_
Definition: test_primitive.hpp:38
std::unique_ptr< Primitive > primitive_
Definition: test_primitive.hpp:39
PrimitiveTest()
Definition: test_primitive.hpp:32
Definition: constants.hpp:19
Definition: cache.hpp:27
Definition: helper_functions.hpp:35
geometry_msgs::msg::Pose makePose(double x, double y, double z=0.0, geometry_msgs::msg::Quaternion q=geometry_msgs::msg::Quaternion())
Definition: test_utils.hpp:69