From a627a16e60c8b9d8ed3f5800dacf72630fcb375b Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Wed, 18 Sep 2024 13:24:07 +0200 Subject: [PATCH] Assure the description is loaded as string If this isn't explicitly specified, the description string might be interpreted as a yaml content, which leads to problems, obviously. --- ur_robot_driver/launch/ur_control.launch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ur_robot_driver/launch/ur_control.launch.py b/ur_robot_driver/launch/ur_control.launch.py index bbcdd5fd0..9c1a036a7 100644 --- a/ur_robot_driver/launch/ur_control.launch.py +++ b/ur_robot_driver/launch/ur_control.launch.py @@ -30,7 +30,7 @@ # Author: Denis Stogl from launch_ros.actions import Node -from launch_ros.parameter_descriptions import ParameterFile +from launch_ros.parameter_descriptions import ParameterFile, ParameterValue from launch_ros.substitutions import FindPackageShare from launch import LaunchDescription @@ -200,7 +200,9 @@ def launch_setup(context, *args, **kwargs): " ", ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = { + "robot_description": ParameterValue(value=robot_description_content, value_type=str) + } initial_joint_controllers = PathJoinSubstitution( [FindPackageShare(runtime_config_package), "config", controllers_file]