MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / init_agents

Function init_agents

roach/utils/config_utils.py:65–70  ·  view source on GitHub ↗
(agent_configs_dict, **kwargs)

Source from the content-addressed store, hash-verified

63
64
65def init_agents(agent_configs_dict, **kwargs):
66 agents_dict = {}
67 for actor_id, cfg in agent_configs_dict.items():
68 AgentClass = load_entry_point(cfg['entry_point'])
69 agents_dict[actor_id] = AgentClass(cfg['path_to_conf_file'], **kwargs)
70 return agents_dict
71
72
73def parse_routes_file(routes_xml_filename):

Callers

nothing calls this directly

Calls 1

load_entry_pointFunction · 0.85

Tested by

no test coverage detected