def save(self, filename="", context='scene'): """ @brief Save a context in a file """ msg = srvs.WoLoadAndSaveRequest() msg.action = msg.SAVE msg.filename = filename msg.context = context res = self._call(self._load_and_save, msg) if (res): return res.ok return False
def load(self, filename="", context='scene'): """ @brief Load a file in a context If no filename is provided use the default name specified when booting the world model """ msg = srvs.WoLoadAndSaveRequest() msg.action = msg.LOAD msg.filename = filename msg.context = context res = self._call(self._load_and_save, msg) if (res): return res.ok return False
def save(self, filename="", context='scene'): """ @brief Saves a context in a file @param filename (string) The filename @param context (string) The context id @return True if successfully saved, False otherwise """ msg = srvs.WoLoadAndSaveRequest() msg.action = msg.SAVE msg.filename = filename msg.context = context res = self._call(self._load_and_save, msg) if (res): return res.ok return False
def load(self, filename="", context='scene'): """ @brief Loads a file in a context If no filename is provided use the default name specified when booting the world model @param filename (string) The filename @param context (string) The context id @return True if successfully loaded, False otherwise """ msg = srvs.WoLoadAndSaveRequest() msg.action = msg.LOAD msg.filename = filename msg.context = context res = self._call(self._load_and_save, msg) if (res): return res.ok return False