Ask Your Question
0

launch file find with current pkg name

asked 2016-08-19 08:24:22 -0600

Markus Bader gravatar image

updated 2016-08-19 08:25:30 -0600

Hi

Is there a way to resolve the current pkg folder name related to a launch file? My launch files uses the

$(find current_pkg)/my_file.xy

substitution to find and resolve a file in my current package. Every time I am renaming my pkg or if have to check all the finds. Is there a more common way such as

$(CURRENT_PKG)/my_file.xy

Greetings Markus

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-19 10:40:15 -0600

ElizabethA gravatar image

If you can set a system-wide environment variable for CURRENT_PKG (might need to put it in ~/.bashrc file), you can swap the $(find current_pkg) part with $(env CURRENT_PKG).

edit flag offensive delete link more

Comments

nice idea, but i have multiple such packages.

Markus Bader gravatar imageMarkus Bader ( 2016-11-13 00:40:24 -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

3 followers

Stats

Asked: 2016-08-19 08:24:22 -0600

Seen: 43 times

Last updated: Aug 19 '16