filtering
BoxFilter
A class composes multiple filtering functions.
Construct a new object.
Parameters:
-
(paramsFilterParams) –Filtering parameters.
-
(tf_bufferTransformBuffer) –Transformation buffer.
FilterByLabel
Filter a box by checking if the label of the box is included in specified labels.
Note that, if labels is None all boxes pass through this filter.
Construct a new object.
Parameters:
-
(labelsSequence[str | SemanticLabel] | None, default:None) –Sequence of target labels. If
None, this filter always returnsTrue.
FilterByUUID
FilterByDistance
Filter a box by checking if the box is within the specified distance.
Note that, the type box is Box2D and its position is None,
these boxes pass through this filter.
Construct a new object.
Parameters:
-
(min_distancefloat) –Minimum distance from the ego [m].
-
(max_distancefloat) –Maximum distance from the ego [m].
FilterByRegion
Filter a box by checking if the box xy position is within the specified xy region.
Note that, the type box is Box2D and its position is None,
these boxes pass through this filter.
Construct a new object.
Parameters:
-
(min_xytuple[float, float]) –Minimum xy position [m].
-
(max_xytuple[float, float]) –Maximum xy position [m].
FilterBySpeed
FilterByNumPoints
Filter a 3D box by checking if the box includes points greater than the specified one.
Note that, the type box is Box2D, or Box3D and its num_points is None,
these boxes pass through this filter.
Construct a new object.
Parameters:
-
(min_num_pointsint, default:0) –The minimum number of points that a box should include.
FilterByVisibility
A filter that excludes 3D boxes with lower visibility than a specified threshold.
Boxes with UNAVAILABLE visibility are always passed through (i.e., not filtered).
Initialize the filter with a visibility threshold.
Parameters:
-
(visibilityVisibilityLevel, default:NONE) –The minimum visibility level for a box to pass the filter.
Raises:
-
ValueError–If the given visibility is not comparable (e.g., UNAVAILABLE).
FilterParams
A dataclass to represent filtering parameters.
Attributes:
-
labels(Sequence[str | SemanticLabel] | None) –Sequence of target labels.
-
uuids(Sequence[str] | None) –Sequence of target uuids.
-
min_distance(float) –Minimum distance from the ego [m].
-
max_distance(float) –Maximum distance from the ego [m].
-
min_xy(tuple[float, float]) –Minimum xy position from the ego [m].
-
min_xy(tuple[float, float]) –Maximum xy position from the ego [m].
-
min_speed(float) –Minimum speed [m/s].
-
max_speed(float) –Maximum speed [m/s].
-
min_num_points(int) –The minimum number of points which the 3D box should include.
-
visibility(str | VisibilityLevel) –Visibility threshold.