Autoware.Auto
|
|
This is the design document for the tracking_test_framework
package.
We need a data generation and testing framework for testing the object tracking module in AutowareAuto. The framework should enable the user to create test cases with easily definable specifications.
The framework will provide APIs for generating data for the tracked objects to be fed into the unit tests for tracking algorithms. The following can be considered an initial draft to be refined upon :
Shape
class which is used to represent the tracked objects in 2D.Line
, Rectangle
and Circle
each of which are the programmatic representations of LiDAR ray, cars and pedestrians respectively. These subclasses implement their own version of intersect_with_line
function which gives back the intersection points of the Line
with the Rectangle
and Circle
thus mimicking behaviour of getting back tracked points on the objects when the rays from the sensor touch the surface of the objects.Line
and use it we need : Starting point represented as a 2D vector [xs,ys] and ending point as a 2D vector[xe,ye]. The line will have a direction and length determined by start and end points in the coordinate frame.Rectangle
and use it we need : Center point represented as a 2D vector [xc,yc] and size(length * breadth) as a 2D vector[l, b] plus an orientation [angle] w.r.t. x axis in degrees represented as float. The Rectangle's borders and corner points will be determined by these inputs provided and the borders are needed when we are trying to get intersection points with the Line
.Circle
and use it we need : Center point represented as a 2D vector [xc,yc] and radius [r] represented as a float.https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto/-/issues/886