Skip to content

Commit c79bdd1

Browse files
authored
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.
1 parent f8438aa commit c79bdd1

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():
@@ -128,7 +129,9 @@ def generate_launch_description():
128129
tf_prefix,
129130
]
130131
)
131-
robot_description = {"robot_description": robot_description_content}
132+
robot_description = {
133+
"robot_description": ParameterValue(value=robot_description_content, value_type=str)
134+
}
132135

133136
joint_state_publisher_node = Node(
134137
package="joint_state_publisher_gui",

0 commit comments

Comments
 (0)