Ejemplo n.º 1
0
from Robots.robotFactory import Factory
import time

if __name__ == '__main__':
    c = Factory.getRobot('Care-O-Bot 3.2')
    time.sleep(10)

    # SEQ1
    # eyes up and torso left and up
    c.setComponentState('head', [[-2.84]], False)
    c.setComponentState('torso', [[0, 0, -0.2, 0.0]])
    time.sleep(4)
    # torso right and up
    c.setComponentState('torso', [[0, 0, 0.2, 0.0]])
    time.sleep(3)

    # SEQ2
    # eyes up and torso left and back
    c.setComponentState('torso', [[0, 0, -0.15, -0.15]])
    time.sleep(5)
    # torso right and up
    # c.setComponentState('torso', [[0,0,0.0,-0.15]])
    # for some reason crashes here
    c.setComponentState('torso', [[0, 0, 0.15, -0.15]])
    time.sleep(3)

    # SEQ3
    c.setComponentState('head', [[-3.04]], False)
    c.setComponentState('head', [[-2.84]], False)
    time.sleep(5)
    c.setComponentState('torso', [[0, 0, 0.2, 0]])
Ejemplo n.º 2
0
from Robots.robotFactory import Factory
import time

if __name__ == "__main__":
    c = Factory.getRobot("Care-O-Bot 3.2")
    time.sleep(10)

    # SEQ1
    # eyes up and torso left and up
    c.setComponentState("head", [[-2.84]], False)
    c.setComponentState("torso", [[0, 0, -0.2, 0.0]])
    time.sleep(4)
    # torso right and up
    c.setComponentState("torso", [[0, 0, 0.2, 0.0]])
    time.sleep(3)

    # SEQ2
    # eyes up and torso left and back
    c.setComponentState("torso", [[0, 0, -0.15, -0.15]])
    time.sleep(5)
    # torso right and up
    # c.setComponentState('torso', [[0,0,0.0,-0.15]])
    # for some reason crashes here
    c.setComponentState("torso", [[0, 0, 0.15, -0.15]])
    time.sleep(3)

    # SEQ3
    c.setComponentState("head", [[-3.04]], False)
    c.setComponentState("head", [[-2.84]], False)
    time.sleep(5)
    c.setComponentState("torso", [[0, 0, 0.2, 0]])
Ejemplo n.º 3
0
from Robots.robotFactory import Factory
import time

if __name__ == '__main__':
    c = Factory.getRobot('Care-O-Bot 3.2')
    # base straight
    # c.setComponentState('base', [4.4,1,0])
    # base left
    c.setComponentState('base', [4.4, 1, -0.5])
    # base right
    c.setComponentState('base', [4.4, 1, 0.5])
    # torso and base straight
    c.setComponentState('base', [4.4, 1, -0.2])
    # torso down and left at table
    c.setComponentState('torso', [[0, 0, -0.2, 0.66]])
    # torso still down and right
    c.setComponentState('torso', [[0, 0, 0.2, 0.66]])
    # c.setComponentState('torso', [[0,0,0,0.35]])
    # torso down and center
    c.setComponentState('torso', [[0, 0, 0, 0.66]])
    # eyes up
    c.setComponentState('head', [[-2.84]], False)
    # time.sleep(1)
    # eyes down
    c.setComponentState('head', [[-3.14]], False)
    # time.sleep(1)
    # c.setComponentState('torso', 'right')
    # torso up
    # c.setComponentState('torso', 'left')
    
    # c.setComponentState('torso', 'home', False)
Ejemplo n.º 4
0
 def __init__(self):
     self._dao = DataAccess()
     self._robot = Factory.getRobot('UH Sunflower')
     self._thread1 = myThreadLights(1, "Thread-1", self._robot)
     self._thread2 = myThreadHead(2, "Thread-2", self._robot)