Example #1
1
class Playground:
    def __init__(self):
        self.shadow = Shadow(master_uri="http://ros:11311", num_workers=2)
        self.shadow.start()
        self.client = ServerProxy("http://localhost:11411")

    def run(self):
        print(self.client.lookupService("~Playground", "/rosout"))

    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_val, exc_tb):
        self.shadow.stop()
Example #2
0
class Playground:
    def __init__(self):
        self.shadow = Shadow(master_uri='http://ros:11311', num_workers=2)
        self.shadow.start()
        self.client = ServerProxy('http://localhost:11411')

    def run(self):
        print(self.client.lookupService('~Playground', '/rosout'))

    def __enter__(self):
        return self

    def __exit__(self, exc_type, exc_val, exc_tb):
        self.shadow.stop()
Example #3
0
 def __init__(self):
     self.shadow = Shadow(master_uri='http://ros:11311', num_workers=2)
     self.shadow.start()
     self.client = ServerProxy('http://localhost:11411')
Example #4
0
 def __init__(self):
     self.shadow = Shadow(master_uri="http://ros:11311", num_workers=2)
     self.shadow.start()
     self.client = ServerProxy("http://localhost:11411")