|
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | 14 |
|
15 | | -from typing import List |
16 | | - |
17 | 15 | from geometry_msgs.msg import Vector3 |
18 | 16 | from ipm_library.exceptions import NoIntersectionError |
19 | 17 | from ipm_library.ipm import IPM |
@@ -66,10 +64,10 @@ def map_marking_array( |
66 | 64 |
|
67 | 65 | def map_marking_intersections( |
68 | 66 | header: Header, |
69 | | - intersections_2d: List[sv2dm.MarkingIntersection], |
| 67 | + intersections_2d: list[sv2dm.MarkingIntersection], |
70 | 68 | ipm: IPM, |
71 | 69 | output_frame: str, |
72 | | - logger: RcutilsLogger) -> List[sv3dm.MarkingIntersection]: |
| 70 | + logger: RcutilsLogger) -> list[sv3dm.MarkingIntersection]: |
73 | 71 | """ |
74 | 72 | Map a given list of 2D field marking intersections onto the field plane. |
75 | 73 |
|
@@ -132,10 +130,10 @@ def map_marking_intersections( |
132 | 130 |
|
133 | 131 | def map_marking_segments( |
134 | 132 | header: Header, |
135 | | - marking_segments_2d: List[sv2dm.MarkingSegment], |
| 133 | + marking_segments_2d: list[sv2dm.MarkingSegment], |
136 | 134 | ipm: IPM, |
137 | 135 | output_frame: str, |
138 | | - logger: RcutilsLogger) -> List[sv3dm.MarkingSegment]: |
| 136 | + logger: RcutilsLogger) -> list[sv3dm.MarkingSegment]: |
139 | 137 | """ |
140 | 138 | Map a given list of 2D field marking segments onto the field plane. |
141 | 139 |
|
@@ -187,10 +185,10 @@ def map_marking_segments( |
187 | 185 |
|
188 | 186 | def map_marking_ellipses( |
189 | 187 | header: Header, |
190 | | - ellipses_2d: List[sv2dm.MarkingEllipse], |
| 188 | + ellipses_2d: list[sv2dm.MarkingEllipse], |
191 | 189 | ipm: IPM, |
192 | 190 | output_frame: str, |
193 | | - logger: RcutilsLogger) -> List[sv3dm.MarkingEllipse]: |
| 191 | + logger: RcutilsLogger) -> list[sv3dm.MarkingEllipse]: |
194 | 192 | """ |
195 | 193 | Map a given list of 2D field marking ellipses onto the field plane. |
196 | 194 |
|
|
0 commit comments