Skip to content

Commit

Permalink
fix: typehints.
Browse files Browse the repository at this point in the history
  • Loading branch information
jws-1 committed Mar 8, 2024
1 parent 6b9f223 commit febe5fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions skills/src/lasr_skills/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from lasr_vision_msgs.srv import YoloDetection

from typing import List
from typing import List, Union


class Detect(smach.State):
Expand All @@ -15,7 +15,7 @@ def __init__(
self,
image_topic: str = "/xtion/rgb/image_raw",
model: str = "yolov8n.pt",
filter: List[str] | None = None,
filter: Union[List[str], None] = None,
confidence: float = 0.5,
nms: float = 0.3,
):
Expand Down
4 changes: 2 additions & 2 deletions skills/src/lasr_skills/detect_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from sensor_msgs.msg import PointCloud2
from lasr_vision_msgs.srv import YoloDetection3D

from typing import List
from typing import List, Union


class Detect3D(smach.State):
Expand All @@ -13,7 +13,7 @@ def __init__(
self,
depth_topic: str = "/xtion/depth_registered/points",
model: str = "yolov8n-seg.pt",
filter: List[str] | None = None,
filter: Union[List[str], None] = None,
confidence: float = 0.5,
nms: float = 0.3,
):
Expand Down
4 changes: 2 additions & 2 deletions skills/src/lasr_skills/detect_3d_in_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from lasr_skills import Detect3D

from typing import List
from typing import List, Union

from shapely.geometry import Point
from shapely.geometry.polygon import Polygon
Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(
area_polygon: Polygon,
depth_topic: str = "/xtion/depth_registered/points",
model: str = "yolov8n-seg.pt",
filter: List[str] | None = None,
filter: Union[List[str], None] = None,
confidence: float = 0.5,
nms: float = 0.3,
):
Expand Down

0 comments on commit febe5fa

Please sign in to comment.