From 2b268dd1e219658323bc65677114120bdc7726ad Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Mon, 18 Nov 2024 08:51:03 +0100 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. --- 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 7ee9002d..2b65092c 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",