def to_dict(self) -> dict:
    return {'control_nodes': self.control_nodes, 'sample_nodes': self.sample_nodes, 'num_spline_nodes': self.num_spline_nodes, 'road_bbox_size': self.road_bbox.bbox.bounds, 'distance_to_boundary': self.distance_to_boundary}
def to_dict(self) -> dict:
    return {'control_nodes': self.control_nodes, 'sample_nodes': self.sample_nodes, 'num_spline_nodes': self.num_spline_nodes, 'road_bbox_size': self.road_bbox.bbox.bounds, 'distance_to_boundary': self.distance_to_boundary}