From e3d9c9df8455945a88bc5b89f6b7709cf038cac0 Mon Sep 17 00:00:00 2001 From: Martin Pecka Date: Sat, 15 Feb 2020 23:49:40 -0800 Subject: [PATCH] Allow empty machine tag. Fixes #274. --- tools/roslaunch/src/roslaunch/xmlloader.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/roslaunch/src/roslaunch/xmlloader.py b/tools/roslaunch/src/roslaunch/xmlloader.py index ac0820de76..f6bf85e087 100644 --- a/tools/roslaunch/src/roslaunch/xmlloader.py +++ b/tools/roslaunch/src/roslaunch/xmlloader.py @@ -388,8 +388,6 @@ def _node_tag(self, tag, context, ros_config, default_machine, is_test=False, ve required = self.opt_attrs(tag, context, ('machine', 'args', 'output', 'respawn', 'respawn_delay', 'cwd', 'launch-prefix', 'required')) - if tag.hasAttribute('machine') and not len(machine.strip()): - raise XmlParseException(" 'machine' must be non-empty: [%s]"%machine) if not machine and default_machine: machine = default_machine.name # validate respawn, required