Skip to content

Commit

Permalink
Updated spawn_actor description
Browse files Browse the repository at this point in the history
  • Loading branch information
Daraan committed Apr 19, 2024
1 parent 0bef8d9 commit fa0e565
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions srunner/scenariomanager/carla_data_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def handle_actor_batch(batch, tick=True):
def spawn_actor(bp, spawn_point, must_spawn=False, track_physics=None, attach_to=None, attachment_type=carla.AttachmentType.Rigid):
# type: (carla.ActorBlueprint, carla.Waypoint | carla.Transform, bool, bool | None, carla.Actor | None, carla.AttachmentType) -> carla.Actor | None
"""
The method will create, return and spawn an actor into the world.
The method will spawn and return an actor.
The actor will need an available blueprint to be created.
It can also be attached to a parent with a certain attachment type.
Expand All @@ -694,12 +694,12 @@ def spawn_actor(bp, spawn_point, must_spawn=False, track_physics=None, attach_to
If True, the actor will be spawned or an exception will be raised.
If False, the function returns None if the actor could not be spawned.
Defaults to False.
track_physics (bool, optional):
track_physics (bool | None, optional):
If True, `get_location`, `get_transform` and `get_velocity`
can be used for this actor.
If None, the actor will be tracked if it is a Vehicle or Walker.
Defaults to None.
attach_to (Optional[carla.Actor], optional):
attach_to (carla.Actor | None, optional):
The parent object that the spawned actor will follow around.
Defaults to None.
attachment_type (carla.AttachmentType, optional):
Expand Down

0 comments on commit fa0e565

Please sign in to comment.