from drones.airsim_interface.droneController import DroneController as DroneControllerAirSim
try:
    from drones.aero_interface.droneController import DroneController as DroneControllerROS
except Exception as e:
    print("NO ROS")

# THIS LINE IS NEEDED:
from drones.rollout_exception import RolloutException


def drone_controller_factory(simulator):
    if simulator:
        return DroneControllerAirSim
    else:
        return DroneControllerROS

1e03d8b4f1bc50f8404eea3c9f98eff2b7618f7a
<mask token>

<mask token>


def drone_controller_factory(simulator):
    if simulator:
        return DroneControllerAirSim
    else:
        return DroneControllerROS

<mask token>
try:
    from drones.aero_interface.droneController import DroneController as DroneControllerROS
except Exception as e:
    print('NO ROS')
<mask token>


def drone_controller_factory(simulator):
    if simulator:
        return DroneControllerAirSim
    else:
        return DroneControllerROS

from drones.airsim_interface.droneController import DroneController as DroneControllerAirSim
try:
    from drones.aero_interface.droneController import DroneController as DroneControllerROS
except Exception as e:
    print('NO ROS')
from drones.rollout_exception import RolloutException


def drone_controller_factory(simulator):
    if simulator:
        return DroneControllerAirSim
    else:
        return DroneControllerROS

from drones.airsim_interface.droneController import DroneController as DroneControllerAirSim
try:
    from drones.aero_interface.droneController import DroneController as DroneControllerROS
except Exception as e:
    print("NO ROS")

# THIS LINE IS NEEDED:
from drones.rollout_exception import RolloutException


def drone_controller_factory(simulator):
    if simulator:
        return DroneControllerAirSim
    else:
        return DroneControllerROS
