15 #ifndef GEOMETRY__TEST__TEST_UTILS_HPP_
16 #define GEOMETRY__TEST__TEST_UTILS_HPP_
18 #include <geometry_msgs/msg/point.hpp>
19 #include <geometry_msgs/msg/pose.hpp>
20 #include <geometry_msgs/msg/vector3.hpp>
21 #include <traffic_simulator_msgs/msg/bounding_box.hpp>
32 inline geometry_msgs::msg::Point
makePoint(
double x,
double y,
double z = 0.0)
34 geometry_msgs::msg::Point p;
50 inline geometry_msgs::msg::Vector3
makeVector(
double x,
double y,
double z = 0.0)
52 geometry_msgs::msg::Vector3 v;
70 double x,
double y,
double z = 0.0,
71 geometry_msgs::msg::Quaternion q = geometry_msgs::msg::Quaternion())
73 geometry_msgs::msg::Pose p;
93 inline traffic_simulator_msgs::msg::BoundingBox
makeBbox(
94 double dim_x,
double dim_y,
double dim_z = 0.0,
double center_x = 0.0,
double center_y = 0.0,
95 double center_z = 0.0)
97 traffic_simulator_msgs::msg::BoundingBox bbox;
98 bbox.dimensions.x = dim_x;
99 bbox.dimensions.y = dim_y;
100 bbox.dimensions.z = dim_z;
101 bbox.center.x = center_x;
102 bbox.center.y = center_y;
103 bbox.center.z = center_z;
geometry_msgs::msg::Point makePoint(double x, double y, double z=0.0)
Definition: test_utils.hpp:32
geometry_msgs::msg::Vector3 makeVector(double x, double y, double z=0.0)
Definition: test_utils.hpp:50
traffic_simulator_msgs::msg::BoundingBox makeBbox(double dim_x, double dim_y, double dim_z=0.0, double center_x=0.0, double center_y=0.0, double center_z=0.0)
Definition: test_utils.hpp:93
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