Returns a dictionary with the basic actor information Args: info (list): list corresponding to a row of the recorder
(info)
| 15 | |
| 16 | |
| 17 | def 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 | |
| 37 | def parse_transform(info): |