def __init__(self, position, heading_theta, lane=None, random_seed=None, name=None):
        """
        :param lane: the lane to spawn object
        """
        assert self.CLASS_NAME is not None, "Assign a name for this class for finding it easily"
        super(TrafficObject, self).__init__(position, heading_theta, lane, random_seed, name=name)
        self.set_metadrive_type(self.CLASS_NAME)
        self.crashed = False

        :param lane: the lane to spawn object
        
metadrive/component/static_object/traffic_object.py