launch_tools package
Various tools load CARLA and data. Also handles problematic import deriving from version conflicts
- launch_tools.prepare_blueprints(ego_vehicle: str = 'vehicle.lincoln.mkz_2020', ego_color: str = '255,0,0') Tuple[carla.ActorBlueprint, carla.ActorBlueprint]
Convenience function to acquire two different colored blueprints, e.g. for the ego and all other NPC vehicles.
- Parameters:
- Returns:
A tuple containing the ego vehicle blueprint and the NPC vehicle blueprint.
- Return type:
Submodules
launch_tools.argument_parsing module
Argument parsers for arguments used by CARLA examples.
Deprecated since version _: In favor of Hydra.
- launch_tools.argument_parsing.subparser(func) ArgumentParser
This decorator allows to join multiple subparsers in a flexible way.
- Return type:
- launch_tools.argument_parsing.client_settings(parser: ArgumentParser)
- Parameters:
parser (ArgumentParser)
- launch_tools.argument_parsing.interactive_mode(parser: ArgumentParser)
- Parameters:
parser (ArgumentParser)
- launch_tools.argument_parsing.interactive_control_example(parser: ArgumentParser)
- Parameters:
parser (ArgumentParser)
- launch_tools.argument_parsing.automatic_control_example(argparser: ArgumentParser)
- Parameters:
argparser (ArgumentParser)
- launch_tools.argument_parsing.main_parser()
launch_tools.blueprint_helpers module
- launch_tools.blueprint_helpers.get_blueprint_library(world: carla.World | None = None)
Get the blueprint library of the given world.
Deprecated since version Consider: using
CarlaDataProvider._blueprint_libraryorCarlaDataProvider.create_blueprint()instead.- Parameters:
world (carla.World | None)
- launch_tools.blueprint_helpers.get_contrasting_blueprints(ego_vehicle: str = 'vehicle.lincoln.mkz_2020', ego_color: str = '255,0,0') Tuple[carla.ActorBlueprint, carla.ActorBlueprint]
Convenience function to acquire two different colored blueprints, e.g. for the ego and all other NPC vehicles.
- Parameters:
- Returns:
A tuple containing the ego vehicle blueprint and the NPC vehicle blueprint.
- Return type:
- launch_tools.blueprint_helpers.get_actor_blueprints(filter: str, generation: Literal[1, 2, 'all']) List[carla.ActorBlueprint] | carla.BlueprintLibrary
Returns a list of actor blueprints filtered by the given filter and generation.
- Parameters:
- Returns:
The list of actor blueprints that match the given filter and generation.
- Return type:
List of carla.ActorBlueprint
launch_tools.carla_service module
Provides tools to interact with carla: access the client, world, map, spawn actors, destroy actors, and initialize carla.
Deprecated since version In: favor of using GameFramework
- launch_tools.carla_service.initialize_carla(map_name='Town04', ip='127.0.0.1', port=2000, *, timeout=10.0, worker_threads=0, reload_world=False, reset_settings=True, map_layers=carla.MapLayer.All, sync: bool | None = True, fps: int = 20)
- launch_tools.carla_service.destroy_actors(actors: Iterable[carla.Actor | CustomSensorInterface])
Destroys the given actors and customs sensors implemented in this package.
Removes destroyed actors from the
CarlaDataProvideractor pool.- Parameters:
actors (Iterable[carla.Actor | CustomSensorInterface])
launch_tools.csv_tools module
Contains snippets that can can import/export vehicle positions from/to csv files.
- launch_tools.csv_tools.transform_to_pandas(transform: carla.Transform) pandas.Series
Format a
carla.Transformobject to apandas.Series.- Parameters:
transform (carla.Transform)
- Return type:
pandas.Series
- launch_tools.csv_tools.vehicle_location_to_dataframe(vehicles: list[carla.Actor])
Exports the locations of vehicles to a
pandas.Dataframe.- Parameters:
vehicles (list[carla.Actor])
- launch_tools.csv_tools.csv_to_transformations(path) List[carla.Transform]
Read a csv file and return a list of Transform objects. Expected columns:
x, y, z, pitch, yaw, roll.- Return type: