Skip to content

Commit 2a120e6

Browse files
authored
Assure the description is loaded as string (backport #229)
If this isn't explicitly specified, the description string might be interpreted as a yaml content, which leads to problems, obviously.
1 parent 9c8cb17 commit 2a120e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

launch/view_ur.launch.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from launch.substitutions import Command, FindExecutable, LaunchConfiguration, PathJoinSubstitution
3434
from launch_ros.actions import Node
3535
from launch_ros.substitutions import FindPackageShare
36+
from launch_ros.parameter_descriptions import ParameterValue
3637

3738

3839
def generate_launch_description():
@@ -127,7 +128,9 @@ def generate_launch_description():
127128
tf_prefix,
128129
]
129130
)
130-
robot_description = {"robot_description": robot_description_content}
131+
robot_description = {
132+
"robot_description": ParameterValue(value=robot_description_content, value_type=str)
133+
}
131134

132135
rviz_config_file = PathJoinSubstitution(
133136
[FindPackageShare(description_package), "rviz", "view_robot.rviz"]

0 commit comments

Comments
 (0)