20 #ifndef TRACKING_TEST_FRAMEWORK__SHAPES_HPP_ 21 #define TRACKING_TEST_FRAMEWORK__SHAPES_HPP_ 29 #include <Eigen/Geometry> 37 namespace tracking_test_framework
41 class TRACKING_TEST_FRAMEWORK_PUBLIC
Line;
45 class TRACKING_TEST_FRAMEWORK_PUBLIC
Shape 57 virtual ~
Shape() =
default;
62 class TRACKING_TEST_FRAMEWORK_PUBLIC
Line :
public Shape 69 Line(
const Eigen::Vector2f & start,
const Eigen::Vector2f &
end);
106 return m_line_direction;
113 return m_line_length;
118 Eigen::Vector2f m_start{Eigen::Vector2f::Zero()};
120 Eigen::Vector2f m_end{Eigen::Vector2f::Zero()};
124 Eigen::Vector2f m_line_direction{Eigen::Vector2f::Zero()};
134 const Eigen::Vector2f & center,
const Eigen::Vector2f & size,
147 Eigen::Vector2f m_center{Eigen::Vector2f::Zero()};
149 Eigen::Vector2f m_size{Eigen::Vector2f::Zero()};
153 std::array<Line, 4> m_borders{};
155 std::array<Eigen::Vector2f, 4> m_corners{};
176 Eigen::Vector2f m_center{Eigen::Vector2f::Zero()};
183 #endif // TRACKING_TEST_FRAMEWORK__SHAPES_HPP_ class TRACKING_TEST_FRAMEWORK_PUBLIC Line
Forward declaration of the Line class.
Definition: shapes.hpp:41
This is the class which represents the pedestrians as circles in 2D and defines the function intersec...
Definition: shapes.hpp:160
This is the class which represents the line and defines the function intersect_with_line which gives ...
Definition: shapes.hpp:62
float float32_t
Definition: types.hpp:36
This is the base class for the 2D shapes.
Definition: shapes.hpp:45
bool bool8_t
Definition: types.hpp:33
const Eigen::Vector2f & end_point() const
gets the end point of the line
Definition: shapes.hpp:97
This file includes common type definition.
const Eigen::Vector2f & direction() const
gets the line direction
Definition: shapes.hpp:104
const autoware::common::types::float32_t & length() const
gets the line length
Definition: shapes.hpp:111
const Eigen::Vector2f & starting_point() const
gets the starting point of the line
Definition: shapes.hpp:90
end
Definition: scripts/get_open_port.py:23
This is the class which represents the cars as rectangles in 2D and defines the function intersect_wi...
Definition: shapes.hpp:129
std::vector< EigenVectorT, Eigen::aligned_allocator< EigenVectorT > > EigenStlVector
Definition: eigen_stl_vector.hpp:28
This file contains the typedef for using fixed size EigenVectors with std::vector due to issues docum...
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24