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

Function parse_actor

scenario_runner/srunner/metrics/tools/metrics_parser.py:17–34  ·  view source on GitHub ↗

Returns a dictionary with the basic actor information Args: info (list): list corresponding to a row of the recorder

(info)

Source from the content-addressed store, hash-verified

15
16
17def parse_actor(info):
18 """
19 Returns a dictionary with the basic actor information
20
21 Args:
22 info (list): list corresponding to a row of the recorder
23 """
24
25 actor = {
26 "type_id": info[2],
27 "location": carla.Location(
28 float(info[5][1:-1]) / 100,
29 float(info[6][:-1]) / 100,
30 float(info[7][:-1]) / 100
31 )
32 }
33
34 return actor
35
36
37def parse_transform(info):

Callers 1

parse_recorder_infoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected