Closed GjermundOstensvig closed 10 months ago
Plan of action:
default_model_path
and default_rviz_config_path
in the urdf_tutorial
and robot_consepts_viz_pkg
. Does it work in one and not the other?Passing the paths directly workd as expected:
ld.add_action(IncludeLaunchDescription(
launch_description_source=PathJoinSubstitution([FindPackageShare('urdf_launch'), 'launch', 'display.launch.py']),
launch_arguments={
'urdf_package': 'robot_consepts_viz_pkg',
'urdf_package_path': r'urdf/h_bot.urdf',
'rviz_config': r'/home/jenandg/VisualizingRobotConsepts/ros2_ws/install/robot_consepts_viz_pkg/share/robot_consepts_viz_pkg/rviz/my_rviz_config.rviz'
}.items()
))
Removing the string conversion in the launch file seems to have fixed the issue: 85ca4e8ab111330124eb9580e23e5fe91180c1d7
When I don't specify argument values while launching, I get a xacro error.
This error must come from the model path not being passed properly. The path to the rviz config does not seem to be passed correctly either as it does not open the config file when I run the launch command.
The full error is: