adf_core_python.implement.module.algorithm package#

Submodules#

adf_core_python.implement.module.algorithm.a_star_path_planning module#

class adf_core_python.implement.module.algorithm.a_star_path_planning.AStarPathPlanning(agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo, module_manager: ModuleManager, develop_data: DevelopData)#

ベースクラス: PathPlanning

calculate() AStarPathPlanning#
distance(from_entity_id: EntityID, to_entity_id: EntityID) float#
get_distance(from_entity_id: EntityID, to_entity_id: EntityID) float#
get_path(from_entity_id: EntityID, to_entity_id: EntityID) list[EntityID]#
get_path_to_multiple_destinations(from_entity_id: EntityID, destination_entity_ids: set[EntityID]) list[EntityID]#
heuristic(from_entity_id: EntityID, to_entity_id: EntityID) float#
reconstruct_path(came_from: dict[EntityID, EntityID], current: EntityID) list[EntityID]#

adf_core_python.implement.module.algorithm.dijkstra_path_planning module#

class adf_core_python.implement.module.algorithm.dijkstra_path_planning.DijkstraPathPlanning(agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo, module_manager: ModuleManager, develop_data: DevelopData)#

ベースクラス: PathPlanning

calculate() PathPlanning#
get_distance(from_entity_id: EntityID, to_entity_id: EntityID) float#
get_path(from_entity_id: EntityID, to_entity_id: EntityID) list[EntityID]#
get_path_to_multiple_destinations(from_entity_id: EntityID, destination_entity_ids: set[EntityID]) list[EntityID]#
is_goal(entity_id: EntityID, target_ids: set[EntityID]) bool#

adf_core_python.implement.module.algorithm.k_means_clustering module#

class adf_core_python.implement.module.algorithm.k_means_clustering.KMeansClustering(agent_info: AgentInfo, world_info: WorldInfo, scenario_info: ScenarioInfo, module_manager: ModuleManager, develop_data: DevelopData)#

ベースクラス: Clustering

calculate() Clustering#
create_cluster(cluster_number: int, entities: list[Entity]) list[list[Entity]]#
get_cluster_entities(cluster_index: int) list[Entity]#
get_cluster_entity_ids(cluster_index: int) list[EntityID]#
get_cluster_index(entity_id: EntityID) int#
get_cluster_number() int#
precompute(precompute_data: PrecomputeData) Clustering#
prepare() Clustering#
resume(precompute_data: PrecomputeData) Clustering#

Module contents#