Skip to content

Commit 90e5956

Browse files
author
Felix Exner (fexner)
authored
Assure the description is loaded as string (#1107)
If this isn't explicitly specified, the description string might be interpreted as a yaml content, which leads to problems, obviously.
1 parent c8f48e5 commit 90e5956

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ur_robot_driver/launch/ur_control.launch.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# Author: Denis Stogl
3131

3232
from launch_ros.actions import Node
33-
from launch_ros.parameter_descriptions import ParameterFile
33+
from launch_ros.parameter_descriptions import ParameterFile, ParameterValue
3434
from launch_ros.substitutions import FindPackageShare
3535

3636
from launch import LaunchDescription
@@ -200,7 +200,9 @@ def launch_setup(context, *args, **kwargs):
200200
" ",
201201
]
202202
)
203-
robot_description = {"robot_description": robot_description_content}
203+
robot_description = {
204+
"robot_description": ParameterValue(value=robot_description_content, value_type=str)
205+
}
204206

205207
initial_joint_controllers = PathJoinSubstitution(
206208
[FindPackageShare(runtime_config_package), "config", controllers_file]

0 commit comments

Comments
 (0)