Skip to content

clearpath_diagnostics launch file does not work with other setup_paths #59

@SteveMacenski

Description

@SteveMacenski

Please provide the following information:

  • OS: 22.04
  • ROS 2 Distro: Humble
  • Built from source or installed: Source on main
  • Package version: N/A
  • Real hardware or simulation: N/A

Expected behaviour

    launch_diagnostics = IncludeLaunchDescription(
        PythonLaunchDescriptionSource([PathJoinSubstitution([
            FindPackageShare('clearpath_diagnostics'), 'launch', 'diagnostics.launch.py'])]),
        launch_arguments=[('setup_path', setup_path)],
        condition=UnlessCondition(use_simulation)
    )

Works, but for some reason I cannot get that setup path to be respected and I get errors in launch about no YAML can be found. After about 15 minutes of playing around I just copy pasted its contents into my launch file and works fine. the battery updater/estimator seem to get the setup_path correctly, and I'm not 100% sure why it is that this launch file isn't quite working (perhaps the opaque function?)

Actual behaviour

Works:


    launch_diagnostics = GroupAction([
        Node(
            package='diagnostic_aggregator',
            executable='aggregator_node',
            output='screen',
            parameters=[PathJoinSubstitution([
                get_package_share_directory('clearpath_diagnostics'), 'config', 'diagnostics.yaml'])],
            remappings=[
                ('/diagnostics', 'diagnostics'),
                ('/diagnostics_agg', 'diagnostics_agg'),
                ('/diagnostics_toplevel_state', 'diagnostics_toplevel_state')],
            condition=UnlessCondition(use_simulation)),
        Node(
            package='clearpath_diagnostics',
            executable='diagnostics_updater',
            output='screen',
            remappings=[
                ('/diagnostics', 'diagnostics'),
                ('/diagnostics_agg', 'diagnostics_agg'),
                ('/diagnostics_toplevel_state', 'diagnostics_toplevel_state')],
            arguments=['-s', setup_path],
            condition=UnlessCondition(use_simulation))
    ])

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions