15 #ifndef SIMPLE_SENSOR_SIMULATOR__TEST__TEST_RAYCASTER_HPP_
16 #define SIMPLE_SENSOR_SIMULATOR__TEST__TEST_RAYCASTER_HPP_
18 #include <gtest/gtest.h>
20 #include <geometry_msgs/msg/pose.hpp>
21 #include <sensor_msgs/msg/point_cloud2.hpp>
26 #include "../../utils/helper_functions.hpp"
29 using namespace geometry_msgs::msg;
31 constexpr
static double degToRad(
double deg) {
return deg * M_PI / 180.0; }
42 raycaster_->setDirection(config_);
46 simulation_api_schema::LidarConfiguration
config_;
48 const float box_depth_{1.0f};
49 const float box_width_{1.0f};
50 const float box_height_{1.0f};
53 const rclcpp::Time stamp_{0};
Definition: test_raycaster.hpp:34
RaycasterTest()
Definition: test_raycaster.hpp:36
geometry_msgs::msg::Pose origin_
Definition: test_raycaster.hpp:56
geometry_msgs::msg::Pose box_pose_
Definition: test_raycaster.hpp:57
std::unique_ptr< Raycaster > raycaster_
Definition: test_raycaster.hpp:45
simulation_api_schema::LidarConfiguration config_
Definition: test_raycaster.hpp:46
Definition: raycaster.hpp:38
Definition: constants.hpp:19
Definition: helper_functions.hpp:35
auto constructLidarConfiguration(const std::string &entity, const std::string &architecture_type, const double lidar_sensor_delay, const double horizontal_resolution) -> const simulation_api_schema::LidarConfiguration
Definition: helper_functions.hpp:60
std::string string
Definition: junit5.hpp:26
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