@@ -265,12 +265,11 @@ class RssRestrictor:
265
265
266
266
Returns:
267
267
VehicleControl: The restricted vehicle control.
268
-
269
268
"""
270
269
# endregion
271
270
272
271
# region Setters
273
- def set_log_level (self , log_level : RssLogLevel ):
272
+ def set_log_level (self , log_level : RssLogLevel ) -> None :
274
273
"""Sets the log level."""
275
274
# endregion
276
275
@@ -332,23 +331,23 @@ class RssSensor(Sensor):
332
331
"""The current list of targets considered to route the vehicle. If no routing targets are defined, a route is generated at random."""
333
332
334
333
# region Methods
335
- def append_routing_target (self , routing_target : Transform ):
334
+ def append_routing_target (self , routing_target : Transform ) -> None :
336
335
"""
337
336
Appends a new target position to the current route of the vehicle.
338
337
339
338
Args:
340
339
routing_target (Transform): New target point for the route. Choose these after the intersections to force the route to take the desired turn.
341
340
"""
342
341
343
- def drop_route (self ):
342
+ def drop_route (self ) -> None :
344
343
"""
345
344
Discards the current route.
346
345
347
346
If there are targets remaining in `routing_targets`, creates a new route using those.
348
347
Otherwise, a new route is created at random.
349
348
"""
350
349
351
- def register_actor_constellation_callback (self , callback : Callable [[RssActorConstellationData ], RssActorConstellationResult ]):
350
+ def register_actor_constellation_callback (self , callback : Callable [[RssActorConstellationData ], RssActorConstellationResult ]) -> None :
352
351
"""
353
352
Register a callback to customize a `carla.RssActorConstellationResult`.
354
353
By this callback the settings of RSS parameters are done per actor constellation
@@ -358,12 +357,12 @@ class RssSensor(Sensor):
358
357
callback (Callable): The function to be called whenever a RSS situation is about to be calculated.
359
358
"""
360
359
361
- def reset_routing_targets (self ):
360
+ def reset_routing_targets (self ) -> None :
362
361
"""Erases the targets that have been appended to the route."""
363
362
364
- def set_log_level (self , log_level : RssLogLevel | int ):
363
+ def set_log_level (self , log_level : RssLogLevel | int ) -> None :
365
364
"""Sets the log level."""
366
- def set_map_log_level (self , log_level : RssLogLevel | int ):
365
+ def set_map_log_level (self , log_level : RssLogLevel | int ) -> None :
367
366
"""Sets the map log level."""
368
367
# endregion
369
368
0 commit comments