Пример #1
0
 def setUp(self):
     url = 'localhost:12311'
     channel = remote.get_insecure_channel(url)
     self.fs = fstub.FileStub(channel)
     self.ls = lstub.LaunchStub(channel)
     self.test_include_file = interpret_path("$(find fkie_node_manager_daemon)/tests/resources/include_dummy.launch")
     path = interpret_path("$(find fkie_node_manager_daemon)/../../../build")
     self.test_save_file = "%s/tmp_save_dummy.launch" % path
     self.test_rename_from_file = "%s/tmp_rename_from_dummy.launch" % path
     self.test_rename_to_file = "%s/tmp_rename_to_dummy.launch" % path
Пример #2
0
 def get_screen_manager(self, uri='localhost:12321'):
     channel = remote.get_insecure_channel(uri)
     if channel is not None:
         return sstub.ScreenStub(channel)
     raise Exception("Node manager daemon '%s' not reachable" % uri)
Пример #3
0
 def get_insecure_channel(self, uri):
     channel = remote.get_insecure_channel(uri)
     if channel is None:
         raise Exception("Node manager daemon '%s' not reachable" % uri)
     return channel