smarts.sstudio.genhistories module

class smarts.sstudio.genhistories.Argoverse(dataset_spec: Dict[str, Any], output: str)[source]

A tool for conversion of an Argoverse 2 dataset for use within SMARTS.

column_val_in_row(row, col_name: str) Any[source]

Access the value of a dataset row which intersects with the given column name.

property rows: Generator[Dict, None, None]

The iterable rows of the dataset.

class smarts.sstudio.genhistories.Interaction(dataset_spec: Dict[str, Any], output: str)[source]

A tool to convert a dataset to a database for use in SMARTS.

check_dataset_spec(dataset_spec: Dict[str, Any])[source]

Validate the form of the dataset specification.

column_val_in_row(row, col_name: str) Any[source]

Access the value of a dataset row which intersects with the given column name.

property rows: Generator[Dict, None, None]

The iterable rows of the dataset.

class smarts.sstudio.genhistories.NGSIM(dataset_spec: Dict[str, Any], output: str)[source]

A tool for conversion of a NGSIM dataset for use within SMARTS.

check_dataset_spec(dataset_spec: Dict[str, Any])[source]

Validate the form of the dataset specification.

column_val_in_row(row, col_name: str) Any[source]

Access the value of a dataset row which intersects with the given column name.

property rows: Generator[Dict, None, None]

The iterable rows of the dataset.

class smarts.sstudio.genhistories.Waymo(dataset_spec: Dict[str, Any], output: str)[source]

A tool for conversion of a Waymo dataset for use within SMARTS.

column_val_in_row(row, col_name: str) Any[source]

Access the value of a dataset row which intersects with the given column name.

property rows: Generator[Dict, None, None]

The iterable rows of the dataset.

property traffic_light_rows: Generator[Dict, None, None]

Iterable dataset rows representing traffic light states (if present).

smarts.sstudio.genhistories.import_dataset(dataset_spec: TrafficHistoryDataset, output_path: str, map_bbox: BoundingBox | None = None)[source]

called to pre-process (import) a TrafficHistoryDataset for use by SMARTS