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

tryout for substitute launch argument - fails #448

Closed
wants to merge 1 commit into from

Conversation

knmcguire
Copy link
Collaborator

Trying to solve #430, however this doesn't work due to this error:

ros2 launch crazyflie launch.py backend:=sim config_folder:='/home/kimberly/Documents/csw2_config'
[INFO] [launch]: All log files can be found below /home/kimberly/.ros/log/2024-03-07-16-36-11-797281-pop-os-10935
[INFO] [launch]: Default logging verbosity is set to INFO
<launch.substitutions.launch_configuration.LaunchConfiguration object at 0x7954fb6c7af0>
[ERROR] [launch]: Caught exception in launch (see debug for traceback): Caught exception when trying to load file of format [py]: expected str, bytes or os.PathLike object, not LaunchConfiguration

@whoenig
Copy link

whoenig commented Mar 7, 2024

perhaps https://github.com/ros2/launch/blob/master/launch/launch/substitutions/path_join_substitution.py helps, but this whole substitution business is pretty tricky and very user-unfriendly. My guess is that it's so complicated because launch files can be in principle also *.yaml and *.xml files.

@knmcguire
Copy link
Collaborator Author

aha good tip. but yes it does not seem logical at all...

@knmcguire knmcguire closed this Mar 18, 2024
@knmcguire knmcguire deleted the default_yaml_folder branch March 18, 2024 19:53
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

Successfully merging this pull request may close these issues.

2 participants