Skip to content

Commit

Permalink
Assure the description is loaded as string (#229)
Browse files Browse the repository at this point in the history
If this isn't explicitly specified, the description string might be
interpreted as a yaml content, which leads to problems, obviously.
  • Loading branch information
urfeex authored Dec 3, 2024
1 parent f8438aa commit c79bdd1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion launch/view_ur.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c79bdd1

Please sign in to comment.