Ask Your Question
0

[ros2cli] How can I get launch files?

asked 2018-07-10 01:09:33 -0600

thinwybk gravatar image

Can I get a list of all launch files (an equivalent to what ros2 pkg executables does for all executables)?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-07-10 01:50:52 -0600

dhood gravatar image

As of the Bouncy release, the closest functionality to what you are looking for is that a list of launch files that are in a specific package will tab-complete once ros2 launch <package_name> has already been typed. There isn't currently an equivalent to ros2 pkg executables (the functionality is there but it's currently only used for argument auto-complete), nor is there currently a way to list all packages that have launch files (see this tracking issue).

edit flag offensive delete link more

Comments

1

:+1: to dhood's answer. One clarification: the functionality is not currently there as the current solution relies on crawling the file system and would not recognize any launchfile not named *.launch.py hence the issue referenced above to be able to register them explicitly in the index.

marguedas gravatar imagemarguedas ( 2018-07-10 02:00:58 -0600 )edit

I thought there will probably be some list sub command for ros2 launch as well. In some cases it is more convenient to have "command based" instead of "interactive" stdout output (e.g. for automation purposes). In case it get's relevant for me I'll checkout the issues again. Thx.

thinwybk gravatar imagethinwybk ( 2018-07-10 02:01:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-07-10 01:09:33 -0600

Seen: 59 times

Last updated: Jul 10 '18