From efbd53c535c9fc859ead8f619b285ab17e4d1572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Tue, 6 Jun 2023 10:54:25 +0200 Subject: [PATCH] fixed random error with urdf parsing. Must be parsed as str --- launch/full_bot_mini.launch.py | 3 ++- launch/min_bot_mini.launch.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/launch/full_bot_mini.launch.py b/launch/full_bot_mini.launch.py index 92f6781..942cb24 100644 --- a/launch/full_bot_mini.launch.py +++ b/launch/full_bot_mini.launch.py @@ -19,6 +19,7 @@ from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare from ament_index_python.packages import get_package_share_directory from launch_ros.actions import LifecycleNode +from launch_ros.descriptions import ParameterValue def generate_launch_description(): @@ -35,7 +36,7 @@ def generate_launch_description(): ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {"robot_description": ParameterValue(robot_description_content, value_type=str)} robot_controllers = PathJoinSubstitution( [ diff --git a/launch/min_bot_mini.launch.py b/launch/min_bot_mini.launch.py index f8a8245..e7c4d5d 100644 --- a/launch/min_bot_mini.launch.py +++ b/launch/min_bot_mini.launch.py @@ -19,6 +19,7 @@ from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare from ament_index_python.packages import get_package_share_directory from launch_ros.actions import LifecycleNode +from launch_ros.descriptions import ParameterValue def generate_launch_description(): @@ -35,7 +36,7 @@ def generate_launch_description(): ), ] ) - robot_description = {"robot_description": robot_description_content} + robot_description = {"robot_description": ParameterValue(robot_description_content, value_type=str)} robot_controllers = PathJoinSubstitution( [