From c79bdd17d69d4474448557421516d9992e434e63 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Tue, 3 Dec 2024 16:06:13 +0100 Subject: [PATCH] Assure the description is loaded as string (#229) If this isn't explicitly specified, the description string might be interpreted as a yaml content, which leads to problems, obviously. --- launch/view_ur.launch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/launch/view_ur.launch.py b/launch/view_ur.launch.py index 7ee9002..2b65092 100644 --- a/launch/view_ur.launch.py +++ b/launch/view_ur.launch.py @@ -33,6 +33,7 @@ from launch.substitutions import Command, FindExecutable, LaunchConfiguration, PathJoinSubstitution from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare +from launch_ros.parameter_descriptions import ParameterValue def generate_launch_description(): @@ -128,7 +129,9 @@ def generate_launch_description(): tf_prefix, ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = { + "robot_description": ParameterValue(value=robot_description_content, value_type=str) + } joint_state_publisher_node = Node( package="joint_state_publisher_gui",