#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from controller_lane.components import SpeedControl as SpeedControlBase

import numpy as np
from common import Utils

class SpeedControl(SpeedControlBase):
    def __init__(self, *args, **kwargs):
        super(SpeedControl, self).__init__(*args, **kwargs)

    def speed_control(self, solution):
        if solution is None:
            return self.sigmoid_v_min * self.v_max
        else:
            return self.get_sigmoid_velocity(solution)

b73e8e40e0ac825b04e00870c7f2af9f3042e668
<mask token>


class SpeedControl(SpeedControlBase):
    <mask token>
    <mask token>

<mask token>


class SpeedControl(SpeedControlBase):

    def __init__(self, *args, **kwargs):
        super(SpeedControl, self).__init__(*args, **kwargs)
    <mask token>

<mask token>


class SpeedControl(SpeedControlBase):

    def __init__(self, *args, **kwargs):
        super(SpeedControl, self).__init__(*args, **kwargs)

    def speed_control(self, solution):
        if solution is None:
            return self.sigmoid_v_min * self.v_max
        else:
            return self.get_sigmoid_velocity(solution)

from controller_lane.components import SpeedControl as SpeedControlBase
import numpy as np
from common import Utils


class SpeedControl(SpeedControlBase):

    def __init__(self, *args, **kwargs):
        super(SpeedControl, self).__init__(*args, **kwargs)

    def speed_control(self, solution):
        if solution is None:
            return self.sigmoid_v_min * self.v_max
        else:
            return self.get_sigmoid_velocity(solution)

#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from controller_lane.components import SpeedControl as SpeedControlBase

import numpy as np
from common import Utils

class SpeedControl(SpeedControlBase):
    def __init__(self, *args, **kwargs):
        super(SpeedControl, self).__init__(*args, **kwargs)

    def speed_control(self, solution):
        if solution is None:
            return self.sigmoid_v_min * self.v_max
        else:
            return self.get_sigmoid_velocity(solution)
