fixed random error with urdf parsing. Must be parsed as str

This commit is contained in:
Björn Ellensohn 2023-06-06 10:54:25 +02:00
parent 587177a56e
commit efbd53c535
2 changed files with 4 additions and 2 deletions

View File

@ -19,6 +19,7 @@ from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare from launch_ros.substitutions import FindPackageShare
from ament_index_python.packages import get_package_share_directory from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import LifecycleNode from launch_ros.actions import LifecycleNode
from launch_ros.descriptions import ParameterValue
def generate_launch_description(): 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( robot_controllers = PathJoinSubstitution(
[ [

View File

@ -19,6 +19,7 @@ from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare from launch_ros.substitutions import FindPackageShare
from ament_index_python.packages import get_package_share_directory from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import LifecycleNode from launch_ros.actions import LifecycleNode
from launch_ros.descriptions import ParameterValue
def generate_launch_description(): 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( robot_controllers = PathJoinSubstitution(
[ [