diff --git a/tools/roslaunch/src/roslaunch/nodeprocess.py b/tools/roslaunch/src/roslaunch/nodeprocess.py index 8df5ce5740..cc86a4ad13 100644 --- a/tools/roslaunch/src/roslaunch/nodeprocess.py +++ b/tools/roslaunch/src/roslaunch/nodeprocess.py @@ -290,6 +290,12 @@ def start(self): cwd = get_ros_root() else: cwd = rospkg.get_ros_home() + if not os.path.exists(cwd): + try: + os.makedirs(cwd) + except OSError: + # exist_ok=True + pass _logger.info("process[%s]: start w/ args [%s]", self.name, self.args) _logger.info("process[%s]: cwd will be [%s]", self.name, cwd)