Ejemplo n.º 1
0
def BT():
    global c
    c = b - a
    sleep(2)
    print c
    if (c == 2):
       resp = elias.getResponse("AUTORESPOND1")          
    if (c == 4):
	  resp = elias.getResponse("AUTORESPOND2")           
    if (c == 6):
       resp = elias.getResponse("AUTORESPOND3")           
    if (c == 8):
       resp = elias.getResponse("AUTORESPOND4")        
    if (c == 10):
       speech.speakBlocking("I will tell myself a joke.")
       sleep(4)
       resp = elias.getResponse("TELL ME A JOKE")
    if (c == 12):
       resp = elias.getResponse("AUTORESPOND5")          
    if (c == 14):
       resp = elias.getResponse("AUTORESPOND6")
            #i01.headTracking.faceDetect()
            #i01.eyesTracking.faceDetect()
            #sleep(30)
            #i01.headTracking.stopTracking()
            #i01.eyesTracking.stopTracking()
    if (c == 16):
        speech.speakBlocking("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=OQIYEPe6DWY")  
        if x == 4:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=fpWNimba344")  
        if x == 6:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=tFXYuw96d0c")   
    if (c == -58):
       resp = elias.getResponse("AUTORESPOND1")  
    if (c == -56):
       resp = elias.getResponse("AUTORESPOND2")  
    if (c == -54):
       resp = elias.getResponse("AUTORESPOND3")  
    if (c == -52):
       resp = elias.getResponse("AUTORESPOND4")  
    if (c == -50):
       speech.speakBlocking("I will tell myself a joke.")
       sleep(4)
       resp = elias.getResponse("TELL ME A JOKE")
    if (c == -48):
       resp = elias.getResponse("AUTORESPOND5") 
    if (c == -46):
       resp = elias.getResponse("AUTORESPOND6") 
       #i01.headTracking.faceDetect()
       #i01.eyesTracking.faceDetect()
       #sleep(30)
       #i01.headTracking.stopTracking()
       #i01.eyesTracking.stopTracking()
    if (c == -44):    
        speech.speakBlocking("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=OQIYEPe6DWY")  
        if x == 4:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=fpWNimba344")  
        if x == 6:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=tFXYuw96d0c")                                                           
    else:
        sleep(54)
        resp = elias.getResponse("CHECKTIME")
        sleep(4)
        resp = elias.getResponse("7OF9")
Ejemplo n.º 2
0
rollneck = Runtime.start("rollneck","Servo")
right = Runtime.start("i01.right", "Arduino")
right.connect("COM7")


directionServo.attach(right, 24)
forwardServo.attach(right, 26)
rollneck.attach(right,12)
rollneck.setRest(90)

######################################################################
# Launch the web gui and create the webkit speech recognition gui
# This service works in Google Chrome only with the WebGui
#################################################################
webgui = Runtime.create("webgui","WebGui")
webgui.autoStartBrowser(False)
webgui.startService()
BareBonesBrowserLaunch.openURL("http://localhost:8888/#service/i01.ear")

######################################################################
# END MAIN SERVICE SETUP SECTION
######################################################################


######################################################################
# Helper functions and various gesture definitions
######################################################################
i01.loadGestures(gesturesPath)


Ejemplo n.º 3
0
# InMoov has a forward servo, i'm adding
forwardServo = Runtime.start("forwardServo", "Servo")
directionServo = Runtime.start("directionServo", "Servo")
sideneck = Runtime.start("sideneck", "Servo")
right = Runtime.start("i01.right", "Arduino")
right.connect("COM7")

directionServo.attach(right, 24)
forwardServo.attach(right, 26)
sideneck.attach(right, 12)
sideneck.setRest(90)

######################################################################
# Launch the web gui and create the webkit speech recognition gui
# This service works in Google Chrome only with the WebGui
#################################################################
webgui = Runtime.create("webgui", "WebGui")
webgui.autoStartBrowser(False)
webgui.startService()
BareBonesBrowserLaunch.openURL("http://localhost:8888/#service/i01.ear")

######################################################################
# END MAIN SERVICE SETUP SECTION
######################################################################

######################################################################
# Helper functions and various gesture definitions
######################################################################
i01.loadGestures(gesturesPath)
Ejemplo n.º 4
0
def garageLights(value):
  if value = 1
    BareBonesBrowserLaunch.openURL("http://ip_address:3480/data_request?id=action&output_format=xml&DeviceNum=6&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=01")
Ejemplo n.º 5
0
def BT():
    global c
    c = b - a
    sleep(2)
    print c
    if (c == 3):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am here.")
        if x == 2:
            mouth.speak("Hello, hello.")
        if x == 3:
            mouth.speak("Hi, I am here.")
    if (c == 5):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am bored.")
        if x == 2:
            mouth.speak("What a boring day.")
        if x == 3:
            mouth.speak("I have nothing to do.")
    if (c == 7):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am still bored.")
        if x == 2:
            mouth.speak("What a boring boring boring boring day.")
        if x == 3:
            mouth.speak("You can turn me off.")
    if (c == 10):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("Help! Please turn me off.")
        if x == 2:
            mouth.speak("Maybe I can go crazy now.")
        if x == 3:
            mouth.speak("meck meck meck meck meck")
    if (c == 13):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I will tell myself a joke.")
            sleep(4)
            resp = elias.getResponse("TELL ME A JOKE")
        if x == 2:
            mouth.speak("Do you like Star Wars?")
            sleep(4)
            resp = elias.getResponse("DO YOU LIKE STAR WARS")
            sleep(6)
            mouth.speak("It was worth a try.")
        if x == 3:
            mouth.speak("Let's talk about the weather.")
            sleep(4)
            resp = elias.getResponse("WEATHER")
    if (c == 16):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("Maybe I should talk to myself.")
        if x == 2:
            mouth.speak("Can I go to the moon?")
        if x == 3:
            mouth.speak("I want pizza. and a beer. no. 10 beer.")
    if (c == 20):
        mouth.speak("Where is everybody?")
        i01.headTracking.faceDetect()
        i01.eyesTracking.faceDetect()
        sleep(30)
        i01.headTracking.stopTracking()
        i01.eyesTracking.stopTracking()
    if (c == 25):
        mouth.speak("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=OQIYEPe6DWY")
        if x == 4:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=hD4KMp22jBg")
        if x == 6:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=tFXYuw96d0c")
    if (c == -57):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am here.")
        if x == 2:
            mouth.speak("Hello, hello.")
        if x == 3:
            mouth.speak("Hi, I am here.")
    if (c == -55):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am bored.")
        if x == 2:
            mouth.speak("What a boring day.")
        if x == 3:
            mouth.speak("I have nothing to do.")
    if (c == -53):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I am still bored.")
        if x == 2:
            mouth.speak("What a boring boring boring boring day.")
        if x == 3:
            mouth.speak("You can turn me off.")
    if (c == -50):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("Help! Please turn me off.")
        if x == 2:
            mouth.speak("Maybe I can go crazy now.")
        if x == 3:
            mouth.speak("meck meck meck meck meck")
    if (c == -47):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I will tell myself a joke.")
            sleep(4)
            resp = elias.getResponse("TELL ME A JOKE")
        if x == 2:
            mouth.speak("Do you like Star Wars?")
            sleep(4)
            resp = elias.getResponse("DO YOU LIKE STAR WARS")
            sleep(6)
            mouth.speak("It was worth a try.")
        if x == 3:
            mouth.speak("Let's talk about the weather.")
            sleep(4)
            resp = elias.getResponse("WEATHER")
    if (c == -44):
        x = (random.randint(1, 3))
        if x == 1:
            mouth.speak("I will talk to myself.")
            sleep(6)
            mouth.speak("I will talk to myself.")
        if x == 2:
            mouth.speak("Can I go to the moon?")
        if x == 3:
            mouth.speak("I want pizza. and a beer. no. 10 beer.")
    if (c == -40):
        mouth.speak("Where is everybody?")
        #i01.headTracking.faceDetect()
        #i01.eyesTracking.faceDetect()
        #sleep(30)
        #i01.headTracking.stopTracking()
        #i01.eyesTracking.stopTracking()
    if (c == -35):
        mouth.speak("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=OQIYEPe6DWY")
        if x == 4:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=fpWNimba344")
        if x == 6:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=tFXYuw96d0c")
    else:
        sleep(54)
        resp = elias.getResponse("CHECKTIME")
        sleep(4)
        resp = elias.getResponse("7OF9")
Ejemplo n.º 6
0
from org.myrobotlab.service import Runtime
from org.myrobotlab.service import OpenCV
from org.myrobotlab.service import VideoStreamer
from time import sleep
from org.myrobotlab.net import BareBonesBrowserLaunch

# create a video source (opencv) & a video streamer
opencv = Runtime.createAndStart("opencv","OpenCV")
streamer = Runtime.createAndStart("streamer","VideoStreamer")

# attache them
streamer.attach(opencv)

# add a pyramid down filter and gray to minimize the data
opencv.addFilter("pyramidDown", "PyramidDown");
opencv.addFilter("gray", "Gray");

# start the camera
opencv.capture();
#added sleep in order to give opencv the time to "warm up" the cam
sleep(3)


# go to http://localhost:9090/output
BareBonesBrowserLaunch.openURL("http://localhost:9090")
Ejemplo n.º 7
0
def BT():
    global c
    c = b - a
    sleep(2)
    print c
    if (c == 2):
        resp = elias.getResponse("AUTORESPOND1")
    if (c == 4):
        resp = elias.getResponse("AUTORESPOND2")
    if (c == 6):
        resp = elias.getResponse("AUTORESPOND3")
    if (c == 8):
        resp = elias.getResponse("AUTORESPOND4")
    if (c == 10):
        speech.speakBlocking("I will tell myself a joke.")
        sleep(4)
        resp = elias.getResponse("TELL ME A JOKE")
    if (c == 12):
        resp = elias.getResponse("AUTORESPOND5")
    if (c == 14):
        resp = elias.getResponse("AUTORESPOND6")
        #i01.headTracking.faceDetect()
        #i01.eyesTracking.faceDetect()
        #sleep(30)
        #i01.headTracking.stopTracking()
        #i01.eyesTracking.stopTracking()
    if (c == 16):
        speech.speakBlocking("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=OQIYEPe6DWY")
        if x == 4:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=fpWNimba344")
        if x == 6:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=tFXYuw96d0c")
    if (c == -58):
        resp = elias.getResponse("AUTORESPOND1")
    if (c == -56):
        resp = elias.getResponse("AUTORESPOND2")
    if (c == -54):
        resp = elias.getResponse("AUTORESPOND3")
    if (c == -52):
        resp = elias.getResponse("AUTORESPOND4")
    if (c == -50):
        speech.speakBlocking("I will tell myself a joke.")
        sleep(4)
        resp = elias.getResponse("TELL ME A JOKE")
    if (c == -48):
        resp = elias.getResponse("AUTORESPOND5")
    if (c == -46):
        resp = elias.getResponse("AUTORESPOND6")
        #i01.headTracking.faceDetect()
        #i01.eyesTracking.faceDetect()
        #sleep(30)
        #i01.headTracking.stopTracking()
        #i01.eyesTracking.stopTracking()
    if (c == -44):
        speech.speakBlocking("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=OQIYEPe6DWY")
        if x == 4:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=fpWNimba344")
        if x == 6:
            BareBonesBrowserLaunch.openURL(
                "https://www.youtube.com/watch?v=tFXYuw96d0c")
    else:
        sleep(54)
        resp = elias.getResponse("CHECKTIME")
        sleep(4)
        resp = elias.getResponse("7OF9")
Ejemplo n.º 8
0
def BT():
    global c
    c = b - a
    sleep(2)
    print c
    if (c == 3):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am here.")
        if x == 2:
            i01.mouth.speak("Hello, hello.")
        if x == 3:
            i01.mouth.speak("Hi, I am here.")
    if (c == 5):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am bored.")
        if x == 2:
            i01.mouth.speak("What a boring day.")
        if x == 3:
            i01.mouth.speak("I have nothing to do.")
    if (c == 7):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am still bored.")
        if x == 2:
            i01.mouth.speak("What a boring boring boring boring day.")
        if x == 3:
            i01.mouth.speak("You can turn me off.")
    if (c == 10):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("Help! Please turn me off.")
        if x == 2:
            i01.mouth.speak("Maybe I can go crazy now.")
        if x == 3:
            i01.mouth.speak("meck meck meck meck meck")
    if (c == 13):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I will tell myself a joke.")
            sleep(4)
            resp = elias.getResponse("TELL ME A JOKE") 
        if x == 2:
            i01.mouth.speak("Do you like Star Wars?")
            sleep(4)
            resp = elias.getResponse("DO YOU LIKE STAR WARS")
            sleep(6)
            i01.mouth.speak("It was worth a try.")
        if x == 3:
            i01.mouth.speak("Let's talk about the weather.")
            sleep(4)
            resp = elias.getResponse("WEATHER")
    if (c == 16):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("Maybe I should talk to myself.")
        if x == 2:
            i01.mouth.speak("Can I go to the moon?")
        if x == 3:
            i01.mouth.speak("I want pizza. and a beer. no. 10 beer.")           
    if (c == 20):
            i01.mouth.speak("Where is everybody?")
            i01.headTracking.faceDetect()
            i01.eyesTracking.faceDetect()
            sleep(30)
            i01.headTracking.stopTracking()
            i01.eyesTracking.stopTracking()
    if (c == 25):
        i01.mouth.speak("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=OQIYEPe6DWY")  
        if x == 4:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=fpWNimba344")  
        if x == 6:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=tFXYuw96d0c")   
    if (c == -57):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am here.")
        if x == 2:
            i01.mouth.speak("Hello, hello.")
        if x == 3:
            i01.mouth.speak("Hi, I am here.")
    if (c == -55):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am bored.")
        if x == 2:
            i01.mouth.speak("What a boring day.")
        if x == 3:
            i01.mouth.speak("I have nothing to do.")
    if (c == -53):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I am still bored.")
        if x == 2:
            i01.mouth.speak("What a boring boring boring boring day.")
        if x == 3:
            i01.mouth.speak("You can turn me off.")
    if (c == -50):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("Help! Please turn me off.")
        if x == 2:
            i01.mouth.speak("Maybe I can go crazy now.")
        if x == 3:
            i01.mouth.speak("meck meck meck meck meck")
    if (c == -47):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I will tell myself a joke.")
            sleep(4)
            resp = elias.getResponse("TELL ME A JOKE") 
        if x == 2:
            i01.mouth.speak("Do you like Star Wars?")
            sleep(4)
            resp = elias.getResponse("DO YOU LIKE STAR WARS")
            sleep(6)
            i01.mouth.speak("It was worth a try.")
        if x == 3:
            i01.mouth.speak("Let's talk about the weather.")
            sleep(4)
            resp = elias.getResponse("WEATHER")
    if (c == -44):
        x = (random.randint(1, 3))
        if x == 1:
            i01.mouth.speak("I will talk to myself.")
            sleep(6)
            i01.mouth.speak("I will talk to myself.")
        if x == 2:
            i01.mouth.speak("Can I go to the moon?")
        if x == 3:
            i01.mouth.speak("I want pizza. and a beer. no. 10 beer.") 
    if (c == -40):
       i01.mouth.speak("Where is everybody?")
       i01.headTracking.faceDetect()
       i01.eyesTracking.faceDetect()
       sleep(30)
       i01.headTracking.stopTracking()
       i01.eyesTracking.stopTracking()
    if (c == -35):    
        i01.mouth.speak("I will listen to some music.")
        sleep(5)
        x = (random.randint(1, 6))
        if x == 1:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=ozBHgQA4Jlk")
        if x == 2:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=Fw6k0kMVcCI")
        if x == 3:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=OQIYEPe6DWY")  
        if x == 4:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=DZiJQL9OLqI")
        if x == 5:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=fpWNimba344")  
        if x == 6:        
           BareBonesBrowserLaunch.openURL("https://www.youtube.com/watch?v=tFXYuw96d0c")                                                           
    else:
        sleep(54)
        resp = elias.getResponse("CHECKTIME")
        sleep(4)
        resp = elias.getResponse("7OF9")
Ejemplo n.º 9
0
from org.myrobotlab.service import Runtime
from org.myrobotlab.service import WebServer
from org.myrobotlab.net import BareBonesBrowserLaunch

#It creates and starts webserver service
webserver = Runtime.createAndStart("webserver", "WebServer")
#Launch your web browser to the URL of localhost, by default port is 19191
#helloworl.htm file is in your MRL main folder
#you can add files there and change the URL below as you desire
BareBonesBrowserLaunch.openURL("http://localhost:19191/helloworld.htm")
Ejemplo n.º 10
0
from org.myrobotlab.service import Runtime
from org.myrobotlab.service import OpenCV
from org.myrobotlab.service import VideoStreamer
from time import sleep
from org.myrobotlab.net import BareBonesBrowserLaunch

# create a video source (opencv) & a video streamer
opencv = Runtime.createAndStart("opencv","OpenCV")
streamer = Runtime.createAndStart("streamer","VideoStreamer")

# attache them
streamer.attach(opencv)

# add a pyramid down filter and gray to minimize the data
opencv.addFilter("pyramidDown", "PyramidDown");
opencv.addFilter("gray", "Gray");

# start the camera
opencv.capture();
#added sleep in order to give opencv the time to "warm up" the cam
sleep(3)


# go to http://localhost:9090/output
BareBonesBrowserLaunch.openURL("http://localhost:9090")
Ejemplo n.º 11
0
from org.myrobotlab.service import Runtime
from org.myrobotlab.service import WebServer
from org.myrobotlab.net import BareBonesBrowserLaunch

#It creates and starts webserver service
webserver = Runtime.createAndStart("webserver","WebServer")
#Launch your web browser to the URL of localhost, by default port is 19191
#helloworl.htm file is in your MRL main folder
#you can add files there and change the URL below as you desire
BareBonesBrowserLaunch.openURL("http://localhost:19191/helloworld.htm")