Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ThisLaunchFileDir throws error in debug mode #774

Open
tonynajjar opened this issue Apr 2, 2024 · 0 comments
Open

ThisLaunchFileDir throws error in debug mode #774

tonynajjar opened this issue Apr 2, 2024 · 0 comments

Comments

@tonynajjar
Copy link
Contributor

Bug report

This isn't blocking but I noticed so I thought I'd report. I noticed a traceback when running the gazebo launch file in debug mode. The launch file works fine despite the traceback (which is maybe another issue?)

Required Info:

  • Operating System:
    • Ubuntu 22
  • Installation type:
    • binaries

Steps to reproduce issue


ros2 launch gazebo_ros gazebo.launch.py -d

[DEBUG] [launch.launch_context]: emitting event synchronously: 'launch.events.IncludeLaunchDescription'
[INFO] [launch]: All log files can be found below /home/angsa/.ros/log/2024-04-02-22-30-48-565157-tony-xmg-22-2670761
[INFO] [launch]: Default logging verbosity is set to DEBUG
[DEBUG] [launch]: processing event: '<launch.events.include_launch_description.IncludeLaunchDescription object at 0x78bbf394b220>'
[DEBUG] [launch]: processing event: '<launch.events.include_launch_description.IncludeLaunchDescription object at 0x78bbf394b220>' ✓ '<launch.event_handlers.on_include_launch_description.OnIncludeLaunchDescription object at 0x78bbf394ada0>'
[DEBUG] [launch.launch_description_source]: Traceback (most recent call last):
  File "/home/angsa/overlay_ws/build/launch/launch/launch_description_source.py", line 68, in try_get_launch_description_without_context
    perform_substitutions(context, self.__location)
  File "/home/angsa/overlay_ws/build/launch/launch/utilities/perform_substitutions_impl.py", line 26, in perform_substitutions
    return ''.join([context.perform_substitution(sub) for sub in subs])
  File "/home/angsa/overlay_ws/build/launch/launch/utilities/perform_substitutions_impl.py", line 26, in <listcomp>
    return ''.join([context.perform_substitution(sub) for sub in subs])
  File "/home/angsa/overlay_ws/build/launch/launch/launch_context.py", line 240, in perform_substitution
    return substitution.perform(self)
  File "/home/angsa/overlay_ws/build/launch/launch/substitutions/this_launch_file_dir.py", line 57, in perform
    raise SubstitutionFailure(
launch.substitutions.substitution_failure.SubstitutionFailure: ThisLaunchFileDir used outside of a launch file (in a script)

[DEBUG] [launch.launch_description_source]: Failed to load the launch file without a context: ThisLaunchFileDir used outside of a launch file (in a script)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant