def sdc_moving_dist(scenario):
        """Get the moving distance of SDC in this scenario. This is useful to filter the scenario.

        Args:
            scenario: The scenario description.

        Returns:
            (float) The moving distance of SDC.
        """
        scenario = ScenarioDescription(scenario)

        SD = ScenarioDescription
        metadata = scenario[SD.METADATA]

        sdc_id = metadata[SD.SDC_ID]
        sdc_info = metadata[SD.SUMMARY.OBJECT_SUMMARY][sdc_id]

        if SD.SUMMARY.MOVING_DIST not in sdc_info:
            sdc_info = SD.get_object_summary(object_dict=scenario.get_sdc_track(), object_id=sdc_id)

        moving_dist = sdc_info[SD.SUMMARY.MOVING_DIST]
        return moving_dist
Get the moving distance of SDC in this scenario. This is useful to filter the scenario.

        Args:
            scenario: The scenario description.

        Returns:
            (float) The moving distance of SDC.
        
metadrive/scenario/scenario_description.py