def get_ui_description(self,p = None):
        """Returns the UI description for the docker"""
        if p is None:
            p = self.parameters
        
        return [(('left','Left Wheel PWM'), uiP(uiP.INT, p.left)),
					 (('right','Right Wheel PWM'), uiP(uiP.INT, p.right))]
    def get_ui_description(self, p=None):
        """Returns the UI description for the docker"""
        if p is None:
            p = self.parameters

        return [
            (("left", "Left Wheel PWM"), uiP(uiP.INT, p.left)),
            (("right", "Right Wheel PWM"), uiP(uiP.INT, p.right)),
        ]
Пример #3
0
    def get_ui_description(self, p=None):
        """Returns the UI description for the docker"""
        if p is None:
            p = self.parameters

        return [('joystick', [(('i_j',"Joystick index"), uiP(uiP.INT,p.joystick.i_j,0,self.jcontroller.joystick_count()-1)), \
                              (('i_x',"Omega axis"), uiP(uiP.INT,p.joystick.i_x,0,100)), \
                              (('inv_x',"Invert axis"), uiP(uiP.BOOL,p.joystick.inv_x)), \
                              (('i_y',"Velocity axis"), uiP(uiP.INT,p.joystick.i_y,0,100)), \
                              (('inv_y',"Invert axis"), uiP(uiP.BOOL,p.joystick.inv_y))])]
Пример #4
0
 def get_ui_description(self,p = None):
     """Returns the UI description for the docker"""
     if p is None:
         p = self.parameters
     
     return [('joystick', [(('i_j',"Joystick index"), uiP(uiP.INT,p.joystick.i_j,0,self.jcontroller.joystick_count()-1)), \
                           (('i_x',"Omega axis"), uiP(uiP.INT,p.joystick.i_x,0,100)), \
                           (('inv_x',"Invert axis"), uiP(uiP.BOOL,p.joystick.inv_x)), \
                           (('i_y',"Velocity axis"), uiP(uiP.INT,p.joystick.i_y,0,100)), \
                           (('inv_y',"Invert axis"), uiP(uiP.BOOL,p.joystick.inv_y))])]
Пример #5
0
 def get_ui_description(self,p = None):
     """Returns the UI description for the docker"""
     if p is None:
         p = self.parameters
     
     return [
         (('wall', "Follow wall"), [
             ('direction', (p.direction,['left','right'])),
             (('distance','Distance to wall'), uiP(uiP.FLOAT,p.distance,0.1))]),
         ('velocity', [('v',uiP(uiP.FLOAT,p.velocity.v,0.1))]),
         (('gains',"PID gains"), [
             (('kp','Proportional gain'), uiP(uiP.FLOAT,p.gains.kp,0.1)),
             (('ki','Integral gain'), uiP(uiP.FLOAT,p.gains.ki,0.1)),
             (('kd','Differential gain'), uiP(uiP.FLOAT,p.gains.kd,0.1))])]
Пример #6
0
    def get_ui_description(self, p=None):
        """Returns the UI description for the docker"""
        if p is None:
            p = self.parameters

        return [(('wall', "Follow wall"), [
            ('direction', (p.direction, ['left', 'right'])),
            (('distance', 'Distance to wall'), uiP(uiP.FLOAT, p.distance, 0.1))
        ]), ('velocity', [('v', uiP(uiP.FLOAT, p.velocity.v, 0.1))]),
                (('gains', "PID gains"),
                 [(('kp', 'Proportional gain'), uiP(uiP.FLOAT, p.gains.kp,
                                                    0.1)),
                  (('ki', 'Integral gain'), uiP(uiP.FLOAT, p.gains.ki, 0.1)),
                  (('kd', 'Differential gain'), uiP(uiP.FLOAT, p.gains.kd,
                                                    0.1))])]