Skip to content

Commit

Permalink
fb_helper add polygon2dSensorPos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Niemeyer committed Sep 10, 2024
1 parent f92f924 commit 836903d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/python/gRPC/util/fb_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ def createQuery(
dataUuids: List[str] = None,
withoutData: bool = False,
polygon2d: Union[int, None] = None,
polygon2dSensorPos: Union[int, None] = None,
fullyEncapsulated: bool = False,
inMapFrame: bool = True,
sortByTime: bool = False,
Expand All @@ -659,6 +660,8 @@ def createQuery(
without their attached data
polygon2d: A pointer to a Polygon2D object to retrieve only instances
within the polygon
polygon2dSensorPos: A pointer to a Polygon2D object to retrieve only
instances captured by sensors within the polygon
fullyEncapsulated: A boolean indicating if the returned instances should
be fully encapsulated by the polygon
inMapFrame: A boolean indicating if the polygon coordinates are in the
Expand Down Expand Up @@ -709,6 +712,8 @@ def createQuery(
Query.Start(builder)
if polygon2d:
Query.AddPolygon(builder, polygon2d)
if polygon2dSensorPos:
Query.AddPolygonSensorPosition(builder, polygon2dSensorPos)
if timeInterval:
Query.AddTimeinterval(builder, timeInterval)
if labels:
Expand Down

0 comments on commit 836903d

Please sign in to comment.