Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at and make sure that your projects conform to the requirements.

Commit 379c7ec1 authored by Edmond Irani Liu's avatar Edmond Irani Liu 🏂
Browse files

move to sumo_config/
parent 1d3f1ac7
## Core latex/pdflatex auxiliary files:
import sys, os
import time
import sys
from functools import lru_cache
import random
from typing import Dict, List, Union, Type, Tuple
from typing import Dict, Union, Type
from collections import defaultdict
import logging
import math
......@@ -13,15 +11,15 @@ import sumocr
from commonroad.planning.planning_problem import PlanningProblemSet
from commonroad.prediction.prediction import TrajectoryPrediction
from commonroad.scenario.trajectory import State, Trajectory
from commonroad.scenario.scenario import Scenario, LaneletNetwork
from commonroad.scenario.obstacle import ObstacleType, DynamicObstacle
from commonroad.scenario.scenario import Scenario
from commonroad.scenario.obstacle import DynamicObstacle
from commonroad.geometry.shape import Rectangle
from sumocr.interface.ego_vehicle import EgoVehicle
from sumocr.maps.scenario_wrapper import AbstractScenarioWrapper
from sumocr.interface.util import *
from sumocr.sumo_config import DefaultConfig, EGO_ID_START, ID_DICT, TYPE_MAPPING
from sumocr.pathConfig import SUMO_BINARY, SUMO_GUI_BINARY
from sumocr.sumo_config.pathConfig import SUMO_BINARY, SUMO_GUI_BINARY
import traci
import logging
import os, sys, warnings
import os
import matplotlib.pyplot as plt
from commonroad.visualization.draw_dispatch_cr import draw_object
from typing import List, Type
import pathlib
import xml.etree.ElementTree as et
from xml.dom import minidom
import numpy as np
from abc import ABCMeta, abstractmethod
from commonroad.scenario.lanelet import LaneletNetwork
from commonroad.common.util import Interval
from commonroad.common.file_reader import CommonRoadFileReader
from sumocr.interface.util import NetError
from sumocr.pathConfig import DEFAULT_CFG_FILE
from sumocr.sumo_config.pathConfig import DEFAULT_CFG_FILE
from sumocr.sumo_config import DefaultConfig
from sumocr.maps.scenario_wrapper import AbstractScenarioWrapper
from sumocr.maps.util import get_scenario_name_from_crfile, get_scenario_name_from_netfile, generate_rou_file, add_params_in_rou_file
from sumocr.maps.util import get_scenario_name_from_crfile, get_scenario_name_from_netfile, generate_rou_file
from crmapconverter.sumo_map.cr2sumo import CR2SumoMapConverter
Configuring paths for the sumo binaries
import os
# set installation locations
SUMO_GUI_BINARY = os.path.join(os.environ['SUMO_HOME'], 'bin', 'sumo-gui')
# path to binary of adapted sumo repository (see readme)
SUMO_BINARY = os.path.join(os.environ['SUMO_HOME'], 'bin', 'sumo')
# by default port 8873 is used, you can modify the port number
# default sumo configuration
DEFAULT_CFG_FILE = os.path.abspath(
os.path.join(os.path.dirname(__file__), '', '.sumo.cfg'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment